/* 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: 28px; }
.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: 900px) {
  .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); }

/* ── Multilingual Switcher (Header Integrated) ── */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1001;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  padding: 5px 10px;
  cursor: pointer;
  color: currentColor;
  font-family: var(--sans);
  line-height: 1;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header.is-solid .lang-switcher__btn {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.lang-switcher__btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

.header.is-solid .lang-switcher__btn:hover {
  background: #eae6df;
  border-color: #cfc9be;
}

.lang-switcher__btn .lang-flag {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
}

.lang-switcher__btn .lang-arrow {
  width: 9px;
  height: 6px;
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-arrow {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 146px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1002;
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switcher__menu button:hover,
.lang-switcher__menu button.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.lang-switcher__menu .lang-flag {
  font-size: 16px;
  line-height: 1;
}

/* ── Completely Hide Google Translate Toolbar & Layout Shifts ── */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
body > .skiptranslate:first-child {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

html, body {
  top: 0px !important;
  position: static !important;
}

body[style*="top"] {
  top: 0px !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
  visibility: hidden !important;
}
