/* =========================================================
   LOS TRES ENCANTOS · Blanca (Murcia)
   3 temas conmutables: elegante (def.) · moderno · rustico
   ========================================================= */

/* ---------- Tema ELEGANTE (por defecto) ---------- */
:root,
:root[data-theme="elegante"] {
  --bg:          #faf6f0;
  --bg-alt:      #f2ebe1;
  --surface:     #ffffff;
  --ink:         #2c2823;
  --ink-soft:    #6b6258;
  --line:        #e4dccf;
  --accent:      #b06a43;   /* terracota */
  --accent-deep: #8d5230;
  --gold:        #b89968;
  --hero-overlay: linear-gradient(180deg, rgba(28,22,17,.25) 0%, rgba(28,22,17,.55) 100%);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 18px 50px -20px rgba(60,40,25,.30);
  --shadow-sm: 0 8px 24px -12px rgba(60,40,25,.25);
  --maxw: 1180px;
  --head-weight: 600;
  --head-spacing: .2px;
  --hero-name-size: clamp(2.8rem, 8vw, 6.5rem);
}

/* ---------- Tema MODERNO ---------- */
:root[data-theme="moderno"] {
  --bg:          #ffffff;
  --bg-alt:      #f5f6f7;
  --surface:     #ffffff;
  --ink:         #14181d;
  --ink-soft:    #6a727c;
  --line:        #e7eaee;
  --accent:      #1f6feb;   /* azul limpio */
  --accent-deep: #1659c4;
  --gold:        #8b95a1;
  --hero-overlay: linear-gradient(180deg, rgba(10,14,20,.20) 0%, rgba(10,14,20,.50) 100%);
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 20px 50px -24px rgba(20,30,45,.30);
  --shadow-sm: 0 6px 20px -12px rgba(20,30,45,.22);
  --maxw: 1180px;
  --head-weight: 700;
  --head-spacing: -.8px;
  --hero-name-size: clamp(2.4rem, 7vw, 5.4rem);
}

/* ---------- Tema RÚSTICO MEDITERRÁNEO ---------- */
:root[data-theme="rustico"] {
  --bg:          #f6efe3;
  --bg-alt:      #ece0cb;
  --surface:     #fffaf0;
  --ink:         #3a2f22;
  --ink-soft:    #786243;
  --line:        #ddc9a8;
  --accent:      #c0492b;   /* arcilla */
  --accent-deep: #993621;
  --gold:        #1f7a6d;   /* azulejo verde-azulado */
  --hero-overlay: linear-gradient(180deg, rgba(40,25,12,.30) 0%, rgba(40,25,12,.62) 100%);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 18px 48px -20px rgba(80,45,20,.38);
  --shadow-sm: 0 8px 24px -12px rgba(80,45,20,.30);
  --maxw: 1160px;
  --head-weight: 700;
  --head-spacing: .2px;
  --hero-name-size: clamp(2.7rem, 8vw, 6rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.12; letter-spacing: var(--head-spacing); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .9rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.92); color: #1c1611; }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color:#fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(20px, 4vw, 48px);
  transition: all .35s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .75rem; padding-bottom: .75rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; transition: color .35s; }
.site-header.scrolled .brand { color: var(--ink); }
.brand .mark {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid currentColor;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.18rem; font-weight: var(--head-weight); letter-spacing: .3px; }
.brand-text span { font-size: .64rem; text-transform: uppercase; letter-spacing: .26em; opacity: .8; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: #fff; font-size: .92rem; font-weight: 500; opacity: .92; transition: opacity .2s, color .35s; }
.site-header.scrolled .nav a { color: var(--ink); }
.nav a:hover { opacity: 1; color: var(--accent); }
.nav .btn { padding: .6rem 1.2rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: .3s; color:#fff; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1){ top:0 } .nav-toggle span:nth-child(2){ top:10px } .nav-toggle span:nth-child(3){ top:20px }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after { content:""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; z-index: 2; padding-top: 5rem; }
.hero .kicker { text-transform: uppercase; letter-spacing: .34em; font-size: .8rem; font-weight: 600; margin-bottom: 1.2rem; opacity: .95; }
.hero h1 { font-size: var(--hero-name-size); margin-bottom: 1.2rem; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero p { font-size: 1.2rem; max-width: 46ch; opacity: .95; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Hero limpio SIN foto: fondo elegante oscuro, centrado, con el logo */
.hero-clean {
  background: radial-gradient(120% 90% at 50% 28%, #34302a 0%, #221d18 55%, #18130f 100%);
  color: #fff;
}
.hero-clean .hero-inner {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 24px 4rem;
}
.hero-clean .hero-inner > p { margin-inline: auto; color: rgba(255,255,255,.86); }
.hero-clean .hero-cta { justify-content: center; }
.hero-clean h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); margin-bottom: 1.1rem; line-height: 1.05; }
.hero-clean .kicker { color: #d7a978; margin-bottom: 1.2rem; }
.hero-clean .hero-inner > p { font-size: clamp(1.02rem, 2.2vw, 1.22rem); max-width: 50ch; }
.hero-emblem { line-height: 0; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.hero-emblem svg, .hero-emblem img { width: clamp(96px, 13vw, 140px); height: auto; filter: drop-shadow(0 10px 26px rgba(0,0,0,.45)); }

.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; color:#fff; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity:.85; display:flex; flex-direction:column; align-items:center; gap:.5rem; }
.scroll-cue::after { content:""; width:1px; height:38px; background:#fff; opacity:.6; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.3 } 50%{ transform: scaleY(1); opacity:.8 } }

/* ---------- Intro ---------- */
.intro { padding: clamp(5rem, 10vw, 8rem) 0; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro-figure { position: relative; }
.intro-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.intro-figure .badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem;
  box-shadow: var(--shadow-sm); text-align: center;
}
.intro-figure .badge strong { font-family: var(--font-head); font-size: 2rem; display:block; color: var(--accent); }
.intro-figure .badge span { font-size: .74rem; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-soft); }
.stats { display: flex; gap: 2.2rem; margin-top: 2rem; flex-wrap: wrap; }
.stats .s strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--accent); display:block; }
.stats .s span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Apartamentos ---------- */
.apts { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-alt); }
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 3rem; }
.apt-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease;
}
.apt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.apt-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.apt-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.apt-card:hover .apt-photo img { transform: scale(1.06); }
.apt-tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94); color:#1c1611; font-size: .72rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; letter-spacing: .04em; }
.apt-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.apt-body h3 { font-size: 1.7rem; margin-bottom: .35rem; }
.apt-body .apt-sub { color: var(--accent); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.apt-body p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.apt-specs { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.1rem 0 1.3rem; font-size: .86rem; color: var(--ink-soft); }
.apt-specs span { display:inline-flex; align-items:center; gap:.35rem; }
.apt-actions { display: flex; gap: .7rem; }
.apt-actions .btn { flex: 1; justify-content: center; padding: .75rem 1rem; font-size: .9rem; }

/* ---------- Experiencia / comodidades ---------- */
.experience { padding: clamp(4rem, 8vw, 7rem) 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.feature {
  padding: 1.8rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-alt); color: var(--accent); display:grid; place-items:center; margin-bottom: 1rem; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { font-size: .9rem; color: var(--ink-soft); }

/* banda terraza */
.terrace { position: relative; min-height: 60vh; display: grid; place-items: center; text-align: center; color:#fff; overflow:hidden; margin: 0; }
.terrace img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.terrace::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,15,8,.35), rgba(20,15,8,.55)); }
.terrace .container { position: relative; z-index: 2; }
.terrace h2 { font-size: clamp(2rem,5vw,3.4rem); margin-bottom: 1rem; }
.terrace p { max-width: 52ch; margin: 0 auto; opacity: .95; font-size: 1.1rem; }

/* ---------- Ubicación ---------- */
.location { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-alt); }
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.location ul { list-style: none; margin-top: 1.5rem; display: grid; gap: .8rem; }
.location li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.location li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(.95); }

/* ---------- Contacto / CTA ---------- */
.cta { padding: clamp(4rem, 9vw, 8rem) 0; text-align: center; }
.cta .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem); box-shadow: var(--shadow); max-width: 820px; margin: 0 auto;
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.cta p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.phone-big { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent); margin: .5rem 0 1.8rem; display:inline-block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d2c7; padding: 3.5rem 0 2rem; }
:root[data-theme="moderno"] .site-footer { background:#0f1318; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-grid h5 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; color: #fff; margin-bottom: 1rem; opacity: .8; }
.footer-grid a, .footer-grid p { color: #c8c0b4; font-size: .9rem; line-height: 1.9; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { max-width: 40ch; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; font-size: .76rem; color: #948b7e; display:flex; justify-content: space-between; gap:1rem; flex-wrap: wrap; }
.footer-legal .reg { font-size: .72rem; }
.footer-legal a { color: #c8c0b4; text-decoration: underline; }
.footer-legal a:hover { color: #fff; }

/* ---------- Selector de estilo ---------- */
.theme-switch {
  position: fixed; z-index: 200; right: 18px; bottom: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); padding: 6px; display: flex; align-items: center; gap: 4px;
  font-family: var(--font-body);
}
.theme-switch .ts-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); padding: 0 .6rem 0 .7rem; }
.theme-switch button {
  border: 0; cursor: pointer; background: transparent; color: var(--ink-soft);
  font-size: .82rem; font-weight: 600; padding: .5rem .85rem; border-radius: 999px; transition: all .2s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.active { background: var(--accent); color: #fff; }
.theme-switch .ts-swatch { width: 12px; height: 12px; border-radius: 50%; display:inline-block; margin-right: 6px; vertical-align: middle; border: 1px solid rgba(0,0,0,.1); }

/* ---------- Galería detalle ---------- */
.detail-hero { position: relative; height: 62vh; min-height: 420px; color:#fff; display: grid; align-items: end; }
.detail-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.detail-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,15,8,.25), rgba(20,15,8,.7)); }
.detail-hero .container { position: relative; z-index: 2; padding-bottom: 3rem; }
.detail-hero .back { color:#fff; font-size:.85rem; opacity:.9; display:inline-flex; gap:.4rem; align-items:center; margin-bottom: 1rem; }
.detail-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.detail-hero .sub { font-size: 1.05rem; opacity:.95; margin-top: .5rem; }
.detail-meta { display:flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.2rem; font-size:.95rem; }
.detail-meta span { display:inline-flex; gap:.45rem; align-items:center; }

.detail-body { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.detail-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.detail-cols h2 { font-size: 2rem; margin-bottom: 1rem; }
.detail-cols p { color: var(--ink-soft); margin-bottom: 1rem; }
.amenities { list-style:none; display:grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.5rem; }
.amenities li { display:flex; gap:.6rem; align-items:center; font-size:.93rem; }
.amenities svg { width:18px; height:18px; color: var(--accent); flex:none; }
.book-card {
  position: sticky; top: 100px; background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.book-card .price { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: .3rem; }
.book-card .muted { color: var(--ink-soft); font-size:.86rem; margin-bottom: 1.3rem; }
.book-card .btn { width:100%; justify-content:center; margin-bottom:.7rem; }
.book-card .divider { height:1px; background: var(--line); margin: 1.3rem 0; }
.book-card .row { display:flex; justify-content:space-between; font-size:.88rem; color:var(--ink-soft); padding:.3rem 0; }

.gallery { padding: 0 0 clamp(3rem,7vw,5rem); }
.gallery-grid { columns: 3; column-gap: 14px; }
.gallery-grid img { width:100%; margin-bottom: 14px; border-radius: var(--radius); cursor: zoom-in; transition: filter .25s, transform .25s; break-inside: avoid; }
.gallery-grid img:hover { filter: brightness(1.05); transform: scale(.99); }

/* Lightbox */
.lightbox { position: fixed; inset:0; z-index: 300; background: rgba(12,9,5,.94); display:none; align-items:center; justify-content:center; }
.lightbox.open { display:flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox .lb-btn { position:absolute; background: rgba(255,255,255,.12); border:0; color:#fff; width:52px; height:52px; border-radius:50%; font-size:1.5rem; cursor:pointer; display:grid; place-items:center; transition: background .2s; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; } .lb-close { top: 3vh; right: 3vw; width:46px; height:46px; }
.lb-count { position:absolute; bottom: 3vh; left:50%; transform:translateX(-50%); color:#fff; font-size:.85rem; opacity:.8; }

/* ---------- Reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 200; width: 56px; height: 56px; border-radius: 50%; background:#25d366; display:grid; place-items:center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill:#fff; }

/* ---------- Logo (emblema en color) ---------- */
.brand .mark { width: auto; height: auto; border: none; border-radius: 0; overflow: visible; font-size: 0; }
.brand .mark svg, .brand .mark img { width: 38px; height: 38px; display: block; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 250;
  max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem;
  display: none; gap: 1rem; align-items: flex-start; flex-wrap: wrap;
  font-family: var(--font-body);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: .88rem; color: var(--ink-soft); flex: 1 1 100%; margin: 0; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; width: 100%; }
.cookie-banner .btn { padding: .6rem 1.1rem; font-size: .85rem; flex: 1; justify-content: center; }

/* placeholder del mapa hasta consentir cookies */
.map-consent {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: var(--bg-alt); color: var(--ink-soft); padding: 2rem; gap: .8rem;
}
.map-consent p { font-size: .9rem; max-width: 32ch; margin: 0 auto; }

/* ---------- Páginas legales ---------- */
.legal-hero { padding: 9rem 0 2.5rem; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-hero p { color: var(--ink-soft); margin-top: .5rem; }
.legal-body { padding: 3.5rem 0 5rem; }
.legal-body .container { max-width: 820px; }
.legal-body h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.legal-body h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; font-family: var(--font-body); font-weight: 700; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: .9rem; font-size: .98rem; line-height: 1.75; }
.legal-body ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-body .data-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.2rem 0; }
.legal-body .data-box p { margin-bottom: .35rem; }
.legal-body .updated { font-size: .82rem; color: var(--ink-soft); margin-top: 2.5rem; font-style: italic; }

.footer-grid .legal-links a { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .apt-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid, .location-grid, .detail-cols { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .book-card { position: static; }
}
@media (max-width: 720px) {
  /* Menú móvil: overlay a pantalla completa */
  .nav {
    position: fixed; inset: 0; width: 100%; height: 100svh;
    background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 1.8rem; padding: 2rem;
    transform: translateX(100%); transition: transform .35s ease;
    z-index: 200; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a, .site-header.scrolled .nav a { color: var(--ink); font-size: 1.5rem; font-family: var(--font-head); opacity: 1; }
  .nav .btn, .site-header.scrolled .nav .btn { color: #fff; font-family: var(--font-body); font-size: 1.05rem; padding: .8rem 2rem; margin-top: .5rem; }
  body.menu-open { overflow: hidden; }
  .nav-toggle { display: block; z-index: 210; }
  .nav-toggle span { background: #fff; transition: transform .3s, opacity .3s, background .3s; }
  .site-header.scrolled .nav-toggle span { background: var(--ink); }
  body.menu-open .nav-toggle span { background: var(--ink); }
  body.menu-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
  .apt-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .gallery-grid { columns: 1; }
  .theme-switch .ts-label { display: none; }
  .theme-switch button { padding: .5rem .65rem; font-size: .78rem; }
  body { font-size: 16px; }
}
