/* ============================================================
   PIANOBLANCO · v3
   Multi-página + drawer + cookies + instagram
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* ---------- TOKENS ---------- */
:root {
  --bg:          #FAFAF7;
  --bg-soft:     #F2EEE6;
  --bg-deep:     #E8E3DA;
  --ink:         #1A1612;
  --ink-soft:    #6B6357;
  --ink-faint:   #A89E91;
  --rule:        #E0DACE;
  --gold:        #B8895E;
  --gold-soft:   #D4B896;

  --font-display: 'Italiana', 'Cormorant Garamond', serif;
  --font-serif:   'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans:    'Jost', system-ui, -apple-system, sans-serif;

  --max:         1240px;
  --pad-x:       max(24px, 6vw);
  --section-pad: clamp(96px, 14vw, 200px);

  --drawer-w:    0px;
  --drawer-size: 420px;

  --ease:        cubic-bezier(.16,.84,.24,1);
  --ease-drawer: cubic-bezier(.7,0,.2,1);
}

@media (min-width: 861px) {
  body.drawer-open { --drawer-w: var(--drawer-size); }
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-right: var(--drawer-w);
  transition: padding-right .65s var(--ease-drawer);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- UTILS ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--gold); }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0;
  right: var(--drawer-w);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--pad-x);
  transition: right .65s var(--ease-drawer),
              background .5s var(--ease),
              backdrop-filter .5s var(--ease),
              padding .4s var(--ease),
              border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 18px var(--pad-x);
  border-bottom-color: var(--rule);
}
.nav .brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.nav .brand .dot { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

.nav.on-dark:not(.scrolled) .brand,
.nav.on-dark:not(.scrolled) .nav-links a { color: #fff; }
.nav.on-dark:not(.scrolled) .brand .dot { color: var(--gold-soft); }

@media (max-width: 980px) and (min-width: 761px) {
  .nav-links { gap: 20px; font-size: 11px; }
}

/* ---------- CONTACT DRAWER ---------- */
.contact-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--drawer-size);
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-soft);
  border-left: 1px solid var(--rule);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .65s var(--ease-drawer);
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(80px, 11vh, 110px) clamp(28px, 3.2vw, 48px) 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-faint) transparent;
}
.contact-drawer.open { transform: translateX(0); }
.contact-drawer::-webkit-scrollbar { width: 6px; }
.contact-drawer::-webkit-scrollbar-thumb {
  background: var(--ink-faint);
  border-radius: 3px;
}

.contact-drawer .eyebrow { color: var(--ink-soft); }
.drawer-heading {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 300;
  line-height: 1;
  margin-top: 6px;
}
.drawer-heading em { color: var(--gold); font-style: italic; }
.drawer-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  margin-top: 4px;
  margin-bottom: 12px;
}

.drawer-info {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
}
.drawer-info-item { display: flex; gap: 14px; align-items: baseline; }
.drawer-info-item .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  width: 64px;
  flex-shrink: 0;
}
.drawer-info-item .value {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
}

/* ---------- DRAWER TOGGLE ---------- */
.contact-drawer-toggle {
  position: fixed;
  top: 50%;
  right: var(--drawer-w);
  transform: translateY(-50%);
  width: 38px;
  height: 88px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 95;
  transition: right .65s var(--ease-drawer),
              background .35s var(--ease);
  box-shadow: -4px 4px 24px rgba(0,0,0,0.08);
}
.contact-drawer-toggle:hover { background: var(--gold); }
.contact-drawer-toggle .arrow {
  display: inline-block;
  transition: transform .5s var(--ease);
}
body.drawer-open .contact-drawer-toggle .arrow { transform: rotate(180deg); }
.contact-drawer-toggle::before {
  content: 'Contacto';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
body:not(.drawer-open) .contact-drawer-toggle:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- INSTAGRAM FLOATING BUTTON ---------- */
.ig-link {
  position: fixed;
  top: calc(50% - 100px);
  right: var(--drawer-w);
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-right: none;
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 95;
  transition: right .65s var(--ease-drawer),
              background .3s var(--ease),
              color .3s var(--ease),
              transform .3s var(--ease);
  box-shadow: -4px 4px 18px rgba(0,0,0,0.05);
}
.ig-link:hover {
  background: var(--gold);
  color: #fff;
}
.ig-link svg { width: 18px; height: 18px; display: block; }

@media (max-width: 860px) {
  .contact-drawer { width: min(92vw, 460px); }
  .contact-drawer-toggle::before { display: none; }
  body.drawer-open .contact-drawer-toggle,
  body.drawer-open .ig-link {
    right: min(92vw, 460px);
  }
}

/* ---------- IMAGE FALLBACKS (textured backgrounds) ---------- */
.img-fallback {
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(135deg, rgba(184,137,94,0.08) 0%, transparent 50%, rgba(26,22,18,0.05) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(26,22,18,0.04) 0,
      rgba(26,22,18,0.04) 1px,
      transparent 1px,
      transparent 14px
    );
}
.img-fallback-warm {
  background-color: #2a221b;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(184,137,94,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(212,184,150,0.18) 0%, transparent 60%),
    linear-gradient(135deg, #2a221b 0%, #1a1612 100%);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x) clamp(80px, 12vh, 140px);
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  background-image: url('https://images.unsplash.com/photo-1520523839897-bd0b52f945a0?auto=format&fit=crop&w=2400&q=85');
  background-size: cover;
  background-position: center 40%;
  background-color: #1a1612;
  z-index: -2;
  will-change: transform;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.65) 100%);
  z-index: -1;
}
.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.hero .eyebrow { color: rgba(255,255,255,0.75); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero h1 {
  font-size: clamp(52px, 8.5vw, 124px);
  font-weight: 300;
  line-height: 0.95;
  margin: 28px 0 36px;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--gold-soft); }
.hero .lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 300;
  font-style: italic;
  max-width: 540px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x) clamp(60px, 10vh, 110px);
  overflow: hidden;
  color: #fff;
}
.page-header-bg {
  position: absolute;
  inset: -10% 0 0 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1612;
  z-index: -2;
  will-change: transform;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.6) 100%);
  z-index: -1;
}
.page-header-inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.page-header .eyebrow { color: rgba(255,255,255,0.75); }
.page-header .eyebrow::before { background: var(--gold-soft); }
.page-header h1 {
  font-size: clamp(38px, 5.6vw, 84px);
  font-weight: 300;
  margin: 24px 0 0;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.page-header h1 em { color: var(--gold-soft); }

/* ---------- SECTIONS ---------- */
section { padding-block: var(--section-pad); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(60px, 8vw, 110px);
}
.section-head h2 {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 300;
}
.section-head .lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 300;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.services-grid > article {
  background: var(--bg);
  padding: clamp(40px, 4vw, 64px) clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background .5s var(--ease);
}
.services-grid > article:hover { background: var(--bg-soft); }
.service-num {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.service-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 8px;
}
.service-desc { color: var(--ink-soft); max-width: 38ch; }
.service-link {
  margin-top: auto;
  padding-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap .35s var(--ease), color .3s var(--ease);
}
.service-link::after {
  content: '→';
  font-size: 16px;
  transition: transform .35s var(--ease);
}
.service-link:hover { color: var(--gold); }
.service-link:hover::after { transform: translateX(6px); }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- INSTRUMENTS / FORMACIONES (2x2) ---------- */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 4vw, 64px);
}
.instrument-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.instrument-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -30px rgba(26, 22, 18, 0.2);
}
.instrument-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.instrument-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.instrument-card:hover .instrument-image img { transform: scale(1.06); }
.instrument-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.instrument-body {
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.instrument-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.instrument-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.05;
}
.instrument-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 44ch;
}
@media (max-width: 760px) {
  .instruments-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 80px);
}
.team-member { display: flex; flex-direction: column; gap: 32px; }
.team-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
  filter: grayscale(0.15) contrast(1.02);
}
.team-member:hover .team-photo img { transform: scale(1.04); }
.team-info { display: flex; flex-direction: column; gap: 14px; }
.team-role {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.team-name {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}
.team-bio { color: var(--ink-soft); max-width: 42ch; font-size: 16px; }
@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------- TIENDA ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.shop-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background .5s var(--ease);
}
.shop-card:hover { background: var(--bg-soft); }
.shop-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.shop-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.shop-card:hover .shop-image img { transform: scale(1.05); }
.shop-body {
  padding: clamp(28px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.shop-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.shop-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 4px;
}
.shop-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .shop-grid { grid-template-columns: 1fr; } }

/* ---------- LONG-FORM PROSE ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose .lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 56px;
  font-weight: 300;
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  margin: 64px 0 20px;
  letter-spacing: -0.01em;
}
.prose p { color: var(--ink-soft); margin-bottom: 1.4em; }
.prose ul { list-style: none; margin: 24px 0; padding: 0; }
.prose ul li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.prose ul li:last-child { border-bottom: 1px solid var(--rule); }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 28px;
  width: 16px;
  height: 1px;
  background: var(--gold);
}

/* ---------- FORMS ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; display: flex; flex-direction: column; }
.field label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231A1612' stroke-width='1' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
  padding-right: 28px;
  cursor: pointer;
}

.service-fixed {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  padding: 10px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.btn {
  align-self: flex-start;
  margin-top: 12px;
  padding: 16px 38px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.form-status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--gold);
  min-height: 18px;
}

/* ---------- EXPLORE GRID (home secundaria) ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.explore-card {
  background: var(--bg);
  padding: clamp(48px, 5vw, 72px) clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  transition: background .5s var(--ease);
}
.explore-card:hover { background: var(--bg-soft); }
.explore-card .num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.explore-card .title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.05;
}
.explore-card .desc { color: var(--ink-soft); font-size: 15px; }
.explore-card .link {
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.explore-card .link::after {
  content: '→';
  transition: transform .35s var(--ease);
}
.explore-card:hover .link { color: var(--gold); }
.explore-card:hover .link::after { transform: translateX(6px); }
@media (max-width: 860px) {
  .explore-grid { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 80px var(--pad-x) 32px;
  font-size: 14px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 18px;
}
.footer .brand .dot { color: var(--gold-soft); }
.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  max-width: 30ch;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.55;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.85); transition: color .3s var(--ease); }
.footer ul a:hover { color: var(--gold-soft); }

.footer-sedes li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
}
.footer-sedes .city {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fff;
}
.footer-sedes .city.is-main::after {
  content: '· sede';
  margin-left: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer-sedes .detail {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.footer-coverage p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-size: 14px;
}
.footer-coverage strong { color: #fff; font-weight: 400; }

.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); transition: color .3s var(--ease); }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-bottom .contact-line { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-bottom .ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom .ig svg { width: 14px; height: 14px; }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- COOKIE MODAL ---------- */
.cookie-modal {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: calc(24px + var(--drawer-w));
  max-width: 640px;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.18);
  z-index: 200;
  padding: 28px 32px;
  font-size: 14px;
  color: var(--ink);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform .6s var(--ease-drawer), opacity .4s var(--ease), right .65s var(--ease-drawer);
}
.cookie-modal.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
  padding-right: 28px;
}
.cookie-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-faint);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .25s var(--ease), transform .25s var(--ease);
  font-family: var(--font-sans);
  font-weight: 300;
}
.cookie-close:hover {
  color: var(--ink);
  transform: rotate(90deg);
}
.cookie-modal p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.cookie-btn {
  padding: 11px 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.cookie-btn:hover { background: var(--gold); border-color: var(--gold); }
.cookie-btn.is-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.cookie-btn.is-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.cookie-config {
  display: none;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  flex-direction: column;
  gap: 14px;
}
.cookie-modal.config-open .cookie-config { display: flex; }
.cookie-modal.config-open .cookie-actions-main { display: none; }

.cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
}
.cookie-row .name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
}
.cookie-row .desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.toggle {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--rule);
  border-radius: 11px;
  cursor: pointer;
  transition: background .3s var(--ease);
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle.on { background: var(--gold); }
.toggle.on::after { transform: translateX(16px); }
.toggle.locked {
  background: var(--ink);
  cursor: not-allowed;
  opacity: 0.55;
}
.toggle.locked::after { transform: translateX(16px); background: var(--bg); }

.cookie-config-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .cookie-modal {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 24px 24px 28px;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  body.drawer-open .cookie-modal { right: 0; }
}

/* ---------- REVEAL ANIMATIONS ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal-delay="3"] { transition-delay: .36s; }

.hero .eyebrow,
.hero h1,
.hero .lede {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1.4s var(--ease) forwards;
}
.hero h1 { animation-delay: .25s; }
.hero .lede { animation-delay: .55s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
.page-header .eyebrow,
.page-header h1 {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1.2s var(--ease) forwards;
}
.page-header h1 { animation-delay: .2s; }

/* ---------- MOBILE NAV ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 18px;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    padding: 80px 24px;
    z-index: 105;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 22px;
    justify-content: center;
    align-items: flex-end;
    z-index: 110;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transition: transform .35s var(--ease), width .35s var(--ease), background .35s var(--ease);
  }
  .nav-toggle span:nth-child(2) { width: 60%; }
  .nav.on-dark:not(.scrolled) .nav-toggle span { background: #fff; }
  .nav-toggle.open span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { width: 100%; transform: rotate(-45deg); }
  .nav-toggle.open span:nth-child(3) { display: none; }
}

@media (max-width: 760px) {
  body.menu-open .contact-drawer-toggle,
  body.menu-open .ig-link,
  body.menu-open .cookie-modal { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
