/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --navy:       #1a2744;
  --navy-dark:  #0f1828;
  --gold:       #c9a84c;
  --gold-hover: #b8952e;
  --cream:      #faf9f7;
  --light:      #f0ece4;
  --border:     #e2ddd5;
  --text:       #2c2c2c;
  --text-muted: #6b6b6b;
  --white:      #ffffff;
  --header-h:   82px;
  --max-w:      1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
address { font-style: normal; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 300; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem);    font-weight: 300; line-height: 1.15; }
h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
h4 { font-size: 1rem;    font-weight: 600; line-height: 1.4; letter-spacing: .02em; }

h1 em { font-style: italic; color: var(--gold); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header.centered { text-align: center; margin-bottom: 5rem; }
.section-header.centered h2 { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .85rem;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: .6rem auto 0;
  line-height: 1.85;
}

.btn-primary {
  display: inline-block;
  padding: .875rem 2.25rem;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  transition: background .3s, border-color .3s, color .3s;
}
.btn-primary:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  display: inline-block;
  padding: .875rem 2.25rem;
  background: transparent;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.5);
  transition: border-color .3s, background .3s;
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s;
}
#header.scrolled,
.page-legal #header {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

.logo img { height: 46px; }

nav ul {
  display: flex;
  gap: 1.8rem;
  flex-wrap: nowrap;
}
nav a {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
}
nav a:hover { color: var(--gold); }

.btn-tel {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.25rem;
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.btn-tel:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa-header {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.25rem;
  border: 1px solid rgba(37,211,102,.5);
  color: #25d366;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-wa-header svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.btn-wa-header:hover { border-color: #25d366; background: rgba(37,211,102,.1); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: .1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.lang-switcher a {
  padding: .3rem .5rem;
  color: rgba(255,255,255,.5);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.lang-switcher a:hover { color: var(--gold); }
.lang-switcher .lang-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: contrast(1.04) brightness(0.92) saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(10, 18, 34, .88) 0%,
    rgba(26, 39, 68, .70) 55%,
    rgba(26, 39, 68, .38) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--header-h);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero-content h1 {
  color: var(--white);
  max-width: 900px;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  white-space: nowrap;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 9rem 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
  align-items: center;
}

.about-image { position: relative; }
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201,168,76,.06) 0%, rgba(26,39,68,.10) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.about-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.05) brightness(1.00) saturate(0.92);
  box-shadow: 12px 12px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(201,168,76,.2);
}

.about-text h2 { margin-bottom: 1.75rem; }
.about-text p {
  font-size: .94rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-top: 2.25rem;
}
.value-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  background: var(--light);
}
.value-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.value-item strong {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .1rem;
}
.value-item span { font-size: .82rem; color: var(--text-muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 9rem 0;
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 1.85rem;
  position: relative;
  border-top: 2px solid transparent;
  box-shadow: 0 1px 12px rgba(0,0,0,.05);
  transition: border-top-color .3s, box-shadow .3s, transform .3s;
}
.service-card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--gold); }

.service-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: .75rem;
}
.service-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 9rem 0;
  background: var(--light);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.faq-item {
  border: 1px solid var(--border);
  background: var(--white);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  transition: color .2s;
}
.faq-question:hover { color: var(--gold); }
.faq-question[aria-expanded="true"] { color: var(--gold); }
.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform .3s ease;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.75rem 1.4rem;
  border-top: 1px solid var(--border);
}
.faq-answer p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.85;
  padding-top: 1.1rem;
}

/* ============================================================
   NOTARÍA ONLINE
   ============================================================ */
.notaria-online {
  padding: 9rem 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.notaria-online::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.12);
  pointer-events: none;
}
.notaria-online::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.09);
  pointer-events: none;
}

.online-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.online-step {
  background: var(--white);
  padding: 2.75rem 2.25rem;
  position: relative;
  border-top: 3px solid transparent;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: border-color .3s, box-shadow .3s;
}
.online-step:hover {
  border-top-color: var(--gold);
  box-shadow: 0 6px 28px rgba(0,0,0,.1);
}
.online-step h3 {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: .85rem;
}
.online-step p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.step-icon svg { width: 28px; height: 28px; stroke: var(--gold); }

.online-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.online-services,
.online-requirements {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.online-services h3,
.online-requirements h3 {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.online-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 2rem;
}
.online-list li {
  font-size: .875rem;
  color: var(--text-muted);
  padding: .4rem 0 .4rem 1.1rem;
  position: relative;
}
.online-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .75rem;
  top: .45rem;
}

.online-requirements .req-items {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1.75rem;
}
.req-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.req-item svg { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; }
.online-legal {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}

/* ============================================================
   PROTOCOLO POSADA
   ============================================================ */
.protocolo {
  padding: 9rem 0;
  background: var(--light);
}
.protocolo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.protocolo-text h2 { margin-bottom: 1.75rem; }
.protocolo-text p {
  font-size: .94rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.protocolo-text .btn-primary { margin-top: 1.25rem; }

.protocolo-cards {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.info-card {
  background: var(--white);
  padding: 2.25rem;
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.info-icon {
  width: 46px;
  height: 46px;
  background: rgba(201,168,76,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.info-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.info-card h4 { margin-bottom: 1rem; color: var(--navy); }
.info-card ul li {
  font-size: .875rem;
  color: var(--text-muted);
  padding: .4rem 0 .4rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.info-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .7rem;
  top: .55rem;
}
.info-card ul li:last-child { border-bottom: none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 9rem 0;
  background: var(--cream);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 900px;
  margin: 0 auto 3.5rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
  padding: 2.75rem 2rem;
  background: var(--white);
  border-top: 2px solid transparent;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: border-top-color .3s;
}
.contact-card:hover { border-top-color: var(--gold); }

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.contact-card strong {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}
.contact-card span,
.contact-card a {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.contact-card a:hover { color: var(--gold); }

.contact-action { text-align: center; margin-bottom: 3.5rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 3.5rem;
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  transition: background .3s, color .3s, border-color .3s;
}
.btn-mail svg { width: 17px; height: 17px; stroke: currentColor; flex-shrink: 0; }
.btn-mail:hover { background: transparent; color: var(--navy); }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 3.5rem;
  background: #25d366;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 2px solid #25d366;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-whatsapp svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.btn-whatsapp:hover { background: transparent; color: #25d366; }

.contact-map-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: var(--light);
  border-left: 3px solid var(--gold);
  transition: background .2s;
}
.contact-map-link:hover { background: var(--border); }
.contact-map-link svg { width: 22px; height: 22px; stroke: var(--gold); flex-shrink: 0; }
.contact-map-link span { font-size: .9rem; color: var(--text-muted); }
.map-cta { font-weight: 600; color: var(--gold) !important; white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.55);
  padding-top: 4rem;
  border-top: 1px solid rgba(201,168,76,.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand img { height: 44px; margin-bottom: 1.5rem; }
.footer-brand p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 300px;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
}
.footer-brand address {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  margin-top: .25rem;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.footer-col ul li { font-size: .875rem; margin-bottom: .65rem; }
.footer-col a:hover { color: var(--gold); }

.footer-press-list {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.footer-press {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .85rem 1rem;
  border-left: 2px solid rgba(201,168,76,.25);
  transition: border-color .2s, background .2s;
}
.footer-press:hover {
  border-left-color: var(--gold);
  background: rgba(255,255,255,.03);
}
.footer-press-pub {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.footer-press-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-style: italic;
  color: rgba(255,255,255,.7);
  line-height: 1.35;
}

.footer-col address p { font-size: .875rem; margin-bottom: .75rem; line-height: 1.65; }
.footer-col address a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
  font-size: .78rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-legal a {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   FLOATING ACTION BUTTON
   ============================================================ */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.4rem;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
  transition: background .2s, transform .2s, box-shadow .2s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fab:hover {
  background: var(--gold-hover);
  box-shadow: 0 6px 24px rgba(201,168,76,.5);
}
.fab svg { width: 16px; height: 16px; stroke: var(--navy); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 2rem;
  font-size: .82rem;
  line-height: 1.6;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  flex-wrap: wrap;
  border-top: 2px solid var(--gold);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { flex: 1; min-width: 240px; }
.cookie-banner .btn-primary {
  white-space: nowrap;
  padding: .6rem 1.5rem;
  font-size: .75rem;
  flex-shrink: 0;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-main {
  padding: calc(var(--header-h) + 5rem) 0 7rem;
  min-height: 70vh;
}
.legal-main .container { max-width: 820px; }
.legal-main h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gold);
}
.legal-main h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: .85rem;
  color: var(--navy);
}
.legal-main p,
.legal-main li {
  font-size: .94rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: .85rem;
}
.legal-main ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-main strong { color: var(--text); }
.legal-main a { color: var(--gold); text-decoration: underline; }

.legal-update {
  margin-top: 2.5rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 1.5rem 0;
}
.legal-table th {
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
}
.legal-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.legal-table tr:last-child td { border-bottom: none; }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 .legal-main { text-align: center; }
.page-404 .legal-main .container { max-width: 640px; }
.error-code {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 6rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.page-404 h1 { margin-bottom: 1.25rem; }
.page-404 .legal-main p { margin-bottom: 2.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Hamburger threshold ── */
@media (max-width: 1100px) {
  nav, .btn-tel, .btn-wa-header, .lang-switcher { display: none; }
  .menu-toggle { display: flex; }

  nav.open {
    display: flex !important;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 2rem 2rem 2.5rem;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 199;
  }
  nav.open ul { flex-direction: column; gap: 1.5rem; }
  nav.open a  { font-size: .95rem; white-space: normal; }

  .about-grid  { gap: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .protocolo-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-cards  { grid-template-columns: 1fr; max-width: 420px; }
  .online-steps   { grid-template-columns: 1fr; }
  .online-bottom  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .about-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .about-image img { height: 320px; box-shadow: none; }
  .hero            { height: 75vh; min-height: 520px; }
  .hero-actions    { flex-direction: column; align-items: flex-start; }
  .footer-grid     { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .about-values    { grid-template-columns: 1fr; }
  .online-steps    { gap: .85rem; }
  .online-step     { padding: 1.75rem; }
  .online-step h3  { font-size: 1.05rem; }
  .online-step p   { font-size: .84rem; }
}

@media (max-width: 560px) {
  .container     { padding: 0 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about, .services, .faq, .notaria-online, .protocolo, .contact { padding: 5.5rem 0; }
  .hero          { height: 65vh; min-height: 460px; }
  .hero-content h1 { font-size: 2.2rem; white-space: normal; }
  .fab span      { display: none; }
  .fab           { padding: .85rem; }
  .footer-legal  { justify-content: center; }
  .lang-switcher { display: none; }
  .legal-table   { font-size: .78rem; }
  .legal-table th,
  .legal-table td { padding: .5rem .65rem; }
}
