:root {
  --navy: #071e4a;
  --blue: #0a2a66;
  --gold: #ffc61a;
  --gold-dark: #b9860b;
  --ink: #16233a;
  --text: #33405a;
  --muted: #5c6577;
  --soft: #c7d3e8;
  --soft-2: #e3e9f4;
  --line: #e3e7ef;
  --label: #8a7a4e;
  --cream: #fbf8f2;
  --mist: #f4f6fa;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Barlow, system-ui, sans-serif;
  --script: "Alex Brush", cursive;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold-dark); }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; }
button, input, textarea, select { font-family: var(--sans); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.serif { font-family: var(--serif); font-weight: 600; }
.u { text-decoration: underline; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 16px; line-height: 1.1; }
.lead { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0 0 14px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font-size: 15px; font-weight: 600; border-radius: 3px; border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; text-align: center; }
.btn:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.btn-out { background: transparent; color: var(--blue); font-weight: 400; }
.btn-out:hover { background: #f1f4fa; color: var(--blue); border-color: var(--blue); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 14px; }
.skip:focus { left: 10px; top: 10px; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand .b1 { display: block; font-family: var(--script); font-size: 21px; color: var(--gold); line-height: 1; margin-bottom: -1px; }
.brand .b2 { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: 0.18em; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--soft-2); padding: 8px 0 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; padding: 8px 12px; font-size: 14px; border-radius: 3px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: rgba(255, 255, 255, 0.1); }
  .header-cta { display: none; }
}

/* Cabecera de páginas internas */
.page-head { background: var(--navy); color: #fff; }
.page-head .wrap { padding-top: 28px; padding-bottom: 34px; }
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: underline; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; line-height: 1.05; }
.page-head p.sub { margin: 0; font-size: 16px; color: var(--soft); }

/* Inicio */
.hero { background: var(--navy); color: #fff; padding: 38px 0 46px; }
.hero .t { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; line-height: 1.1; font-size: clamp(28px, 3.6vw, 40px); }
.hero .s { margin: 0; font-size: 16px; color: var(--soft); }

.searchbar { position: relative; z-index: 10; margin-top: -30px; }
.searchbar .box { background: #fff; border: 3px solid var(--gold); border-radius: 5px; display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; }
.searchbar .cell { border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px; display: grid; gap: 2px; min-width: 0; }
.searchbar .place { flex: 2 1 220px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 15px; }
.searchbar .place .dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; flex: 0 0 auto; }
.searchbar .place span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbar label.cell > span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.searchbar input { border: 0; outline: none; font-size: 15px; width: 100%; color: var(--ink); background: transparent; }
.searchbar .btn { flex: 0 1 auto; padding: 14px 30px; font-size: 16px; border-radius: 3px; }

.intro { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; padding-top: 26px; }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; line-height: 1.05; }
.intro p.addr { margin: 0; font-size: 15px; color: #44506a; }
.score { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.score b { background: var(--blue); color: #fff; font-size: 16px; padding: 6px 9px; border-radius: 6px 6px 6px 0; }
.score span { font-size: 14px; color: var(--text); }
.score strong { color: var(--ink); }
.intro .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 6px; position: relative; margin-top: 18px; }
.mosaic a { overflow: hidden; display: block; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s; }
.mosaic img:hover { opacity: 0.93; }
.mosaic .all { position: absolute; right: 12px; bottom: 12px; background: #fff; border: 1px solid var(--blue); color: var(--blue); padding: 9px 14px; font-size: 13px; font-weight: 600; border-radius: 3px; }
@media (max-width: 640px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .mosaic a:nth-child(4) { grid-column: span 2; }
}

.two-col { display: flex; flex-wrap: wrap; gap: 34px; align-items: flex-start; padding-top: 34px; }
.two-col > .main { flex: 1 1 420px; min-width: 0; }
.card { border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 22px; font-size: 15px; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; }
.highlights li::before { content: ""; width: 6px; height: 6px; background: var(--gold); margin-top: 8px; flex: 0 0 auto; }

.units { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.units .head { background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.units .row { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; align-items: center; font-size: 15px; border-top: 1px solid var(--line); }
.units .c1 { flex: 1 1 180px; min-width: 0; }
.units .c2 { flex: 1 1 90px; color: var(--text); }
.units .head .c2 { color: inherit; }
.units .c3 { flex: 1 1 110px; }
.units .c1 p { margin: 0 0 4px; font-weight: 600; }
.units .c1 small { font-size: 13px; color: var(--muted); }

.side { flex: 1 1 300px; position: sticky; top: 86px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 4px; padding: 20px; background: var(--cream); }
.side h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 4px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.field input, .field textarea, .field select { border: 1px solid #d9d0bc; background: #fff; padding: 10px; font-size: 15px; border-radius: 3px; color: var(--ink); width: 100%; }
.fine { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); }

.band { background: var(--navy); color: #fff; }
.band .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.band img { width: 100%; height: 300px; object-fit: cover; object-position: center 30%; display: block; }

.faqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 40px; align-items: start; }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.faqs summary:hover { color: var(--blue); }
.faqs p { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--text); }

.list { border-top: 1px solid var(--line); }
.list .item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list .item p { margin: 0 0 3px; font-size: 16px; font-weight: 500; }
.list .item small { font-size: 13px; color: var(--muted); }
.list .item .d { font-size: 14px; color: var(--text); white-space: nowrap; }

.section { padding-top: 56px; }
.section-last { padding-bottom: 64px; }

/* La casa */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.gallery button { border: 0; padding: 0; background: none; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s, transform 0.4s; }
.gallery button:hover img { opacity: 0.92; transform: scale(1.02); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(7, 15, 30, 0.94); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox .nav-b { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox .prev { left: 12px; }
.lightbox .next { right: 12px; }
.lightbox .close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.amenities h3 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); margin: 0 0 10px; }
.amenities ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--text); }
.rows { border: 1px solid var(--line); border-radius: 4px; }
.rows > div { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows > div:last-child { border-bottom: 0; }
.rows .k { flex: 0 0 190px; font-weight: 600; margin: 0; font-size: 16px; }
.rows .v { flex: 1 1 240px; color: var(--text); margin: 0; line-height: 1.65; }

/* Historia */
.h-hero { position: relative; min-height: clamp(460px, 78vh, 760px); display: flex; align-items: flex-end; background: var(--navy); }
.h-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.h-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 30, 74, 0.15) 0%, rgba(7, 30, 74, 0.35) 45%, rgba(7, 30, 74, 0.92) 100%); }
.h-hero .wrap { position: relative; width: 100%; padding-bottom: 56px; color: #fff; }
.h-hero .crumbs, .h-hero .crumbs a { color: var(--soft-2); }
.script { font-family: var(--script); line-height: 1; }
.h-hero .script { margin: 0 0 4px; font-size: clamp(34px, 4vw, 50px); color: var(--gold); }
.h-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6.4vw, 84px); line-height: 0.98; margin: 0; max-width: 900px; text-wrap: balance; }
.stripes { display: grid; grid-template-columns: repeat(6, 1fr); height: 12px; }
.chapter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.num { margin: 0 0 14px; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--gold); font-weight: 600; }
.chapter h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; margin: 0 0 20px; }
.chapter p.body { font-size: 19px; line-height: 1.75; color: var(--text); margin: 0; max-width: 520px; }
.framed { position: relative; }
.framed .block { position: absolute; width: 55%; height: 60%; }
.framed img { position: relative; width: 100%; object-fit: cover; display: block; }

/* Contacto */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; padding-top: 44px; padding-bottom: 64px; }
.contact .line { border-top: 1px solid var(--line); padding: 16px 0; }
.contact .line:last-child { border-bottom: 1px solid var(--line); }
.contact .line p { margin: 0; font-size: 22px; }
.contact .line p.eyebrow { font-size: 12px; margin-bottom: 4px; }
.form { display: grid; gap: 16px; }
.form .field > span { font-size: 12px; letter-spacing: 0.14em; color: #6b5e3a; }
.form .field input, .form .field textarea, .form .field select { border-color: #bfc6d4; padding: 11px; font-size: 16px; }
.form .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: 0 0 auto; }
.note { background: var(--mist); border: 1px solid var(--line); border-radius: 3px; padding: 14px; font-size: 13px; line-height: 1.6; color: var(--text); }
.ok { background: #eef7f0; border: 1px solid #b9dcc3; border-radius: 4px; padding: 16px; color: #1c4a2b; }
.err { color: #a12a1c; font-size: 14px; margin: 0; }

/* Legales */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 18px 64px; font-size: 16px; line-height: 1.7; color: var(--text); }
.legal section { margin: 0 0 22px; }
.legal h2 { font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.legal p { margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--soft); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 44px; }
.site-footer a, .site-footer button { color: var(--soft); }
.site-footer a:hover, .site-footer button:hover { color: var(--gold); }
.site-footer h2 { margin: 0 0 6px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.site-footer nav, .site-footer .col { display: grid; gap: 11px; font-size: 15px; align-content: start; justify-items: start; }
.site-footer button { background: none; border: 0; padding: 0; text-align: left; font-size: 15px; cursor: pointer; }
.site-footer .mail { overflow-wrap: anywhere; }
.site-footer .fcta { margin-top: 8px; color: var(--navy); }
.site-footer .fcta:hover { color: var(--navy); }
.fbrand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.fbrand:hover { color: #fff; }
.fbrand img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.fbrand .b1 { display: block; font-family: var(--script); font-size: 26px; color: var(--gold); line-height: 1; }
.fbrand .b2 { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: 0.2em; line-height: 1.1; color: #fff; }
.brandcol p { margin: 18px 0 0; font-size: 14px; line-height: 1.7; }
.site-footer .legalbar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer .legalbar .wrap { padding-top: 22px; padding-bottom: 26px; }
.site-footer .meta { margin: 0; font-size: 13px; line-height: 1.7; }
.site-footer .lic { color: var(--gold); white-space: nowrap; }
.site-footer .disc { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: #9aabc8; max-width: 860px; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #9aabc8; }
.site-footer .bottom a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
.site-footer .bottom a:hover { color: var(--gold); }
@media (max-width: 960px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; } }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.15); }
.mobile-bar a { padding: 15px; text-align: center; color: #fff; font-size: 15px; }
.mobile-bar a:first-child { color: var(--gold); font-weight: 600; }
.mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.mobile-bar a:hover { background: rgba(255, 255, 255, 0.08); }
@media (min-width: 861px) {
  .mobile-bar { display: none; }
  .cookie-banner { bottom: 20px; }
}
@media (max-width: 860px) { body { padding-bottom: 50px; } }

/* Cookies */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 62px; z-index: 80; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #d9dee8; border-top: 3px solid var(--gold); border-radius: 5px; box-shadow: 0 10px 30px rgba(7, 30, 74, 0.18); padding: 20px; color: var(--ink); }
.cookie-banner .t { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.cookie-banner .d { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 140px; }
.modal-bg { position: fixed; inset: 0; z-index: 95; background: rgba(7, 15, 30, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 5px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; color: var(--ink); }
.modal h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 14px; }
.pref { display: flex; gap: 14px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.pref:last-of-type { border-bottom: 1px solid var(--line); }
.pref b { display: block; margin: 0 0 4px; }
.pref small { display: block; font-size: 13px; color: var(--muted); }
.pref input { width: 22px; height: 22px; accent-color: var(--blue); flex: 0 0 auto; }
