/* Cortijo Las Mozas — sistema de diseño de Finca La Concepción (extraído con skillui) */

/* Las rutas de fuentes son relativas a este archivo */
@font-face { font-family: "Merriweather"; src: url("../../fonts/Merriweather-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../../fonts/Merriweather-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../../fonts/Merriweather-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../../fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../../fonts/OpenSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../../fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* Colores: solo de la paleta extraída */
  --bg: #ffffff;
  --ink: #000000;
  --muted: #444444;
  --soft: #747474;
  --line: #cccccc;
  --border: #333333;
  --surface: #eeeeee;
  --surface-2: #e2e0e0;
  --dark: #212934;
  --on-dark: #ffffff;
  --on-dark-muted: #cccccc;

  --serif: "Merriweather", Georgia, serif;
  --sans: "Open Sans", system-ui, sans-serif;

  --radius: 15px;
  --container: 1024px;
  --header-h: 88px;
  --ease: cubic-bezier(.21,.6,.35,1);
  --shadow-overlay: 0 0 50px 1px rgba(0,0,0,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10000; background: var(--bg); padding: 8px 12px; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  color: var(--on-dark);
  transition: background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.header::before { /* velo suave para leer el menú sobre el vídeo */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0));
  transition: opacity 300ms var(--ease);
}
.header.is-solid { background: var(--bg); color: var(--ink); box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.header.is-solid::before { opacity: 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.header__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo { display: block; position: relative; flex-shrink: 0; }
.logo img { height: 56px; width: auto; transition: opacity 300ms var(--ease); }
.logo .logo--dark { position: absolute; inset: 0; opacity: 0; }
.header.is-solid .logo .logo--light { opacity: 0; }
.header.is-solid .logo .logo--dark { opacity: 1; }
@media (max-width: 640px) { .logo img { height: 44px; } }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; position: relative; }
.nav > a::after, .nav__group > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: currentColor; transition: right 300ms var(--ease); }
.nav > a:hover::after, .nav > a:focus-visible::after, .nav > a[aria-current]::after,
.nav__group > a:hover::after, .nav__group > a[aria-current]::after { right: 0; }

.nav__group { position: relative; }
.nav__group > a { display: inline-flex; align-items: center; gap: 4px; }
.nav__group > a svg { width: 12px; height: 12px; }
.nav__sub {
  position: absolute; top: 100%; left: 50%; min-width: 220px; padding: 8px;
  background: var(--bg); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-overlay);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav__sub a { display: block; padding: 12px 16px; border-radius: 12px; font-weight: 400; letter-spacing: .12em; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--surface); }

.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); color: var(--ink); padding: 8px 16px 24px;
    box-shadow: var(--shadow-overlay); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s linear 250ms;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { display: block; width: 100%; padding: 16px 0; border-bottom: 1px solid var(--surface); text-align: center; }
  .nav a::after { display: none; }
  .nav__group > a { display: flex; justify-content: center; }
  .nav__group > a svg { display: none; }
  .nav__sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0; min-width: 0; border-radius: 0; background: var(--surface); }
  .nav__sub a { border-radius: 0; font-size: 11px; padding: 12px 0; color: var(--muted); border-bottom-color: var(--bg); }
}

/* ---------- Hero con vídeo (inicio) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.hero video, .hero .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.45) 100%); }
.sound {
  position: absolute; z-index: 2; top: 112px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; color: inherit; cursor: pointer; font-family: var(--serif); font-size: 16px;
}
.sound svg { width: 40px; height: 40px; }
.sound .off-line { transition: opacity 200ms; }
.sound[aria-pressed="true"] .off-line { opacity: 0; }
.scroll-hint { position: absolute; z-index: 2; bottom: 32px; left: 50%; transform: translateX(-50%); color: inherit; }
.scroll-hint span { display: block; width: 28px; height: 44px; border: 2px solid currentColor; border-radius: 16px; position: relative; }
.scroll-hint span::before { content: ""; position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: currentColor; animation: wheel 2000ms ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Hero de página interior (espacios) ---------- */
.page-hero { position: relative; height: 72vh; height: 72svh; min-height: 480px; display: flex; align-items: flex-end; color: var(--on-dark); overflow: hidden; background: var(--dark); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 1600ms var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.6) 100%); }
.page-hero__content { position: relative; z-index: 1; width: 100%; padding-bottom: 56px; }
.page-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7vw, 72px); line-height: 1.2; margin: 8px 0 0; }
.page-hero .eyebrow { color: var(--on-dark); opacity: .9; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.crumbs a { text-decoration: none; opacity: .85; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Secciones ---------- */
section { scroll-margin-top: var(--header-h); }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--tint { background: var(--surface); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); margin: 0 0 16px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.3; margin: 0 0 24px; }
h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.6; color: var(--ink); }

.intro { text-align: center; max-width: 760px; margin: 0 auto; }
.intro p { font-size: 17px; }
.link-more { display: inline-block; margin-top: 8px; font-family: var(--serif); font-style: italic; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color 200ms; }
.link-more:hover { border-color: var(--ink); }

.ornament { display: flex; justify-content: center; margin: 0 0 24px; color: var(--soft); }
.ornament svg { width: 96px; height: 24px; }

/* Historia / bloques imagen + texto */
.story { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.story__media { position: relative; }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.story__media--wide img { aspect-ratio: 4 / 3; }
.story__badge {
  position: absolute; right: -16px; bottom: 32px; background: var(--bg); padding: 16px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-overlay); text-align: center;
}
.story__badge strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.2; }
.story__badge span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
@media (min-width: 900px) {
  .story { grid-template-columns: 5fr 6fr; gap: 64px; }
  .story--flip { grid-template-columns: 6fr 5fr; }
  .story--flip .story__media { order: 2; }
}
@media (max-width: 899px) { .story__badge { right: 16px; } }

/* Tarjetas de espacios */
.features { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } .features--3 { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.1); text-decoration: none; color: inherit; transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); }
.feature:hover, .feature:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-overlay); }
.feature__img { aspect-ratio: 4 / 3; overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.feature:hover .feature__img img { transform: scale(1.04); }
.feature__body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.feature__body p { font-size: 14px; margin: 0 0 16px; }
.feature__cta { margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.feature__cta svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.feature:hover .feature__cta svg { transform: translateX(4px); }

/* Ficha del espacio */
.specs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt, .specs .k { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.specs .v { font-family: var(--serif); text-align: right; }

.uses { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.uses li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 1000px; font-size: 14px; color: var(--muted); background: var(--bg); }

.space-detail { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .space-detail { grid-template-columns: 7fr 4fr; gap: 64px; } }
.space-aside { display: flex; flex-direction: column; gap: 32px; }
.space-aside h3 { font-size: 18px; margin-bottom: 16px; }

/* Anterior / siguiente */
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 32px 16px; text-decoration: none; transition: background-color 250ms var(--ease); }
.pager a:hover { background: var(--surface); }
.pager a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.pager small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.pager span { font-family: var(--serif); font-size: 20px; }

/* Banner de imagen */
.banner { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--on-dark); overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.banner__content { position: relative; z-index: 1; padding: 64px 16px; max-width: 760px; }
.banner h2 { color: var(--on-dark); }
.banner p { color: var(--on-dark); font-size: 17px; }

/* Cómo llegar */
.location { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 900px) { .location { grid-template-columns: 5fr 7fr; } }
.distances { list-style: none; padding: 0; margin: 24px 0 0; }
.distances li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.distances li:first-child { border-top: 1px solid var(--line); }
.distances strong { font-family: var(--serif); font-weight: 400; font-size: 24px; white-space: nowrap; }
.distances span { color: var(--muted); font-size: 14px; text-align: right; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.1); background: var(--surface-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; } }
.form { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); transition: border-color 200ms;
}
.field textarea { min-height: 144px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--border); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding: 16px 32px; border-radius: var(--radius); cursor: pointer; text-decoration: none;
  transition: background-color 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease);
}
.btn--dark { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn--dark:hover { background: var(--bg); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: transparent; color: var(--on-dark); border: 1px solid var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }
.form-note { font-size: 14px; color: var(--muted); margin: 0; min-height: 24px; }
.social { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; text-decoration: none; font-family: var(--serif); }
.social svg { width: 24px; height: 24px; }

/* Pie */
.footer { background: var(--dark); color: var(--on-dark); padding: 64px 0 32px; text-align: center; }
.footer__logo { display: inline-block; }
.footer__logo img { height: 72px; width: auto; margin: 0 auto; }
.footer p { color: var(--on-dark-muted); font-size: 14px; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 24px; margin: 32px 0 24px; }
.footer__links a { text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer__links a:hover { color: var(--on-dark); }
.footer__legal { border-top: 1px solid var(--muted); margin-top: 32px; padding-top: 24px; font-size: 12px; }

/* Movimiento: aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.features .reveal:nth-child(2) { transition-delay: 100ms; }
.features .reveal:nth-child(3) { transition-delay: 200ms; }
.features .reveal:nth-child(4) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span::before, .page-hero > img { animation: none; transform: none; }
  .feature, .feature__img img { transition: none; }
}

/* =========================================================
   Página "El Cortijo" — historia del edificio
   ========================================================= */
.hist-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--on-dark); overflow: hidden; background: var(--dark); }
.hist-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: settle 2400ms var(--ease) forwards; }
.hist-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.35) 50%, rgba(0,0,0,.7)); }
.hist-hero__content { position: relative; z-index: 1; padding: 0 16px; }
.hist-hero .eyebrow { color: var(--on-dark); letter-spacing: .4em; }
.hist-hero__num { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(120px, 26vw, 320px); line-height: 1; letter-spacing: -.02em; margin: 8px 0 0; }
.hist-hero__label { display: block; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(24px, 3.6vw, 40px); margin-top: 8px; }
.hist-hero h1 { font-size: 12px; font-family: var(--sans); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; margin: 32px 0 0; }

.statement { max-width: 880px; margin: 0 auto; text-align: center; }
.statement blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.4; color: var(--ink); }
.statement blockquote em { font-style: italic; }
.statement cite { display: block; margin-top: 24px; font-style: normal; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }

/* Cifras */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures div { background: var(--bg); padding: 40px 16px; text-align: center; }
.figures strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 56px); line-height: 1.2; }
.figures span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }

/* Línea del tiempo con progreso al hacer scroll */
.timeline { position: relative; padding: 32px 0; }
.timeline::before, .timeline__progress { content: ""; position: absolute; top: 0; bottom: 0; left: 20px; width: 1px; background: var(--line); }
.timeline__progress { background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.era { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; padding: 0 0 96px 56px; }
.era:last-child { padding-bottom: 0; }
.era::before { content: ""; position: absolute; left: 14px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); transition: background-color 400ms var(--ease); }
.era.is-visible::before { background: var(--ink); }
.era__when { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 20px; color: var(--soft); margin: 0 0 8px; }
.era h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.era__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.era__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .timeline::before, .timeline__progress { left: 50%; }
  .era { grid-template-columns: 1fr 1fr; gap: 96px; padding-left: 0; align-items: center; }
  .era::before { left: calc(50% - 6px); top: 50%; }
  .era__text { text-align: right; }
  .era:nth-of-type(odd) .era__img { order: 2; }
  .era:nth-of-type(even) .era__text { order: 2; text-align: left; }
  .era:nth-of-type(even) .era__img { justify-self: end; }
}

/* Bloque oscuro: materiales */
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--on-dark-muted); }
.materials { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
@media (min-width: 900px) { .materials { grid-template-columns: repeat(3, 1fr); } }
.material__img { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.material__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: filter 800ms var(--ease), transform 800ms var(--ease); }
.material:hover .material__img img { filter: none; transform: scale(1.03); }
.material__n { font-family: var(--serif); font-style: italic; color: var(--on-dark-muted); font-size: 14px; }

/* =========================================================
   Página "Empresas y retiros"
   ========================================================= */
.split-hero { display: grid; grid-template-columns: 1fr; min-height: 100vh; min-height: 100svh; background: var(--surface); }
.split-hero__text { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 48px) 16px 64px; }
.split-hero__text > * { max-width: 560px; }
.split-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 60px); line-height: 1.2; margin: 0 0 24px; }
.split-hero__media { position: relative; min-height: 420px; overflow: hidden; }
.split-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) {
  .split-hero { grid-template-columns: 1fr 1fr; }
  .split-hero__text { padding-left: max(16px, calc((100vw - 1200px) / 2 + 16px)); padding-right: 64px; }
}
/* La cabecera empieza sólida en esta página: el hero es claro */
.page-light .header { color: var(--ink); }
.page-light .header::before { opacity: 0; }
.page-light .header .logo .logo--light { opacity: 0; }
.page-light .header .logo .logo--dark { opacity: 1; }

.proof { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.proof div { font-size: 14px; color: var(--muted); }
.proof strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); }

.services { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 400ms var(--ease), transform 400ms var(--ease); }
.service:hover { box-shadow: var(--shadow-overlay); transform: translateY(-4px); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service__body ul { list-style: none; padding: 0; margin: 0 0 24px; }
.service__body li { padding: 8px 0; border-bottom: 1px solid var(--surface); font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.service__body li::before { content: "—"; color: var(--soft); }
.service__body .btn { margin-top: auto; align-self: flex-start; padding: 12px 24px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }

.reasons { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
@media (min-width: 640px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason { background: var(--bg); padding: 32px 24px; }
.reason svg { width: 32px; height: 32px; color: var(--ink); margin-bottom: 16px; }
.reason h3 { font-size: 18px; }
.reason p { font-size: 14px; margin: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px; list-style: none; padding: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 1px solid var(--on-dark-muted); padding-top: 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1.2; margin-bottom: 12px; }
.steps h3 { font-size: 18px; }
.steps p { font-size: 14px; margin: 0; }

.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mosaic figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }

.contact-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 18px; }
.contact-direct svg { width: 24px; height: 24px; flex-shrink: 0; }

/* Banda de empresas en inicio */
.b2b-band { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .b2b-band { grid-template-columns: 6fr 5fr; gap: 64px; } }
.b2b-band__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b2b-band__imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.b2b-band__imgs img:nth-child(2) { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .hist-hero > img { animation: none; transform: none; }
  .timeline__progress { transform: none; }
  .material__img img, .mosaic img { transition: none; }
}

/* Formularios: campo trampa antispam y consentimiento */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--ink); }

/* =========================================================
   Estructura 2026: menú, idiomas y componentes nuevos
   ========================================================= */

/* Contacto como botón en el menú */
.nav a.nav__cta { border: 1px solid currentColor; border-radius: 1000px; padding: 8px 18px; }
.nav a.nav__cta::after { display: none; }
.nav a.nav__cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.header:not(.is-solid) .nav a.nav__cta:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
@media (max-width: 1180px) {
  .nav a.nav__cta { border: 0; border-radius: 0; padding: 16px 0; background: var(--ink); color: var(--bg); margin-top: 16px; }
}

/* Selector de idioma ES / EN */
.lang { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.lang a { text-decoration: none; padding: 6px 8px; border-radius: 1000px; opacity: .7; transition: opacity 200ms; }
.lang a:hover { opacity: 1; }
.lang a[aria-current] { opacity: 1; border: 1px solid currentColor; }

/* Botones */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions--center { justify-content: center; }
.btn--ghost-light { background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--on-dark); }
.banner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.footer__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Navegación interna de página */
.subnav { position: sticky; top: var(--header-h); z-index: 50; display: flex; justify-content: center; gap: 8px 32px; flex-wrap: wrap; padding: 16px; background: var(--bg); border-bottom: 1px solid var(--surface); }
.subnav a { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.subnav a:hover { color: var(--ink); }

/* Accesos a los apartados (inicio) */
.paths { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
@media (min-width: 700px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .paths { grid-template-columns: repeat(4, 1fr); } }
.path { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; color: var(--on-dark); text-decoration: none; background: var(--dark); }
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.path::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,.75)); }
.path:hover img { transform: scale(1.05); }
.path__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; }
.path__body .eyebrow { color: var(--on-dark); opacity: .8; margin-bottom: 8px; }
.path__body h3 { font-size: 26px; color: var(--on-dark); }
.path__body p { color: var(--on-dark-muted); font-size: 14px; margin-bottom: 12px; }
.path .feature__cta svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.path:hover .feature__cta svg { transform: translateX(4px); }

/* Galería con visor */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 48px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; } }
.gallery__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .gallery__item { aspect-ratio: auto; }
  /* 8 fotos: una grande (2×2) y la última apaisada → tres filas completas */
  .gallery:not([class*="gallery--"]) .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery:not([class*="gallery--"]) .gallery__item:nth-child(8) { grid-column: span 2; }
  /* 6 fotos: tres columnas, una grande (2×2) → tres filas completas */
  .gallery--6 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
  .gallery--6 .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery--4 { grid-auto-rows: 360px; }
  .gallery--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 420px; }
}
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(15,18,24,.94); opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s linear 300ms; }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; border-radius: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 16px; font-size: 32px; line-height: 1; font-family: var(--serif); }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 20px; left: 16px; right: 16px; text-align: center; color: var(--on-dark-muted); font-size: 14px; }

/* Lista de espacios */
.spaces-list { display: grid; gap: 64px; margin-top: 56px; }
.space-row { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; text-decoration: none; color: inherit; }
.space-row__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.space-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.space-row:hover .space-row__img img { transform: scale(1.04); }
.space-row__n { display: block; font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 1; color: var(--line); margin-bottom: 16px; }
.space-row h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
@media (min-width: 900px) {
  .space-row { grid-template-columns: 7fr 5fr; gap: 64px; }
  .space-row:nth-child(even) .space-row__img { order: 2; }
}

/* Tabla de aforos */
.table-wrap { margin-top: 40px; overflow-x: auto; }
.capacity { width: 100%; min-width: 560px; border-collapse: collapse; }
.capacity th { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); text-align: right; padding: 0 12px 12px; border-bottom: 1px solid var(--ink); }
.capacity td { font-family: var(--serif); font-size: 18px; text-align: right; padding: 18px 12px; border-bottom: 1px solid var(--line); }
.capacity th:first-child, .capacity td:first-child { text-align: left; padding-left: 0; }
.capacity th:nth-child(2), .capacity td:nth-child(2) { text-align: left; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.capacity a { text-decoration: none; border-bottom: 1px solid var(--line); }
.capacity a:hover { border-color: var(--ink); }
.table-note { font-size: 14px; margin-top: 16px; }

/* Visita virtual */
.tour { position: relative; }
.tour__badge { position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 1000px; background: rgba(0,0,0,.55); color: #fff; font-family: var(--serif); font-size: 18px; backdrop-filter: blur(6px); }
.tour__badge svg { width: 28px; height: 28px; }

/* Fin de semana completo */
.weekend { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .weekend { grid-template-columns: 5fr 6fr; gap: 72px; } }
.weekend__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.weekend__media img { width: 100%; height: 100%; object-fit: cover; }
.days { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .days { grid-template-columns: repeat(3, 1fr); } }
.days li { background: var(--bg); padding: 24px 20px; }
.days__day { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; color: var(--soft); margin-bottom: 8px; }
.days h3 { font-size: 18px; }
.days p { font-size: 14px; margin: 0; }

/* Ventajas en bloque oscuro */
.freedom { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 800px) { .freedom { grid-template-columns: 1fr 1fr; } .freedom--3 { grid-template-columns: repeat(3, 1fr); } }
.freedom__item { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 32px; }
.freedom__item svg { width: 40px; height: 40px; margin-bottom: 20px; }
.freedom__item h3 { font-size: 24px; }

/* Ceremonias */
.ceremonies { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
@media (min-width: 800px) { .ceremonies { grid-template-columns: 1fr 1fr; gap: 48px; } }
.ceremony__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 24px; }
.ceremony__img img { width: 100%; height: 100%; object-fit: cover; }
.ceremony h3 { font-size: 24px; }

.services--2 { }
@media (min-width: 900px) { .services--2 { grid-template-columns: 1fr 1fr; } }

/* Listas con marca */
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; gap: 12px; }
.ticks li::before { content: "—"; color: var(--soft); }

/* Hero alto de festivales */
.page-hero--tall { height: 100vh; height: 100svh; min-height: 600px; }
.page-hero--tall h1 { font-size: clamp(34px, 5.4vw, 64px); max-width: 900px; }

/* Páginas sin imagen de cabecera */
.page-top { padding-top: var(--header-h); }
.page-title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1.2; margin: 0 0 24px; }
.visit-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.visit-card svg { width: 32px; height: 32px; flex-shrink: 0; }
.visit-card h3 { font-size: 18px; }
.visit-card p { font-size: 14px; margin: 0; }

.section--dark .btn--light { margin-top: 8px; }
.section--dark .actions { margin-top: 40px; }
.section--tint .container + .container { margin-top: 0; }
#alojamiento .gallery { margin-top: 56px; }

@media (prefers-reduced-motion: reduce) {
  .path img, .gallery__item img, .space-row__img img { transition: none; }
}
