/* Cala Cerrada Beach — v2
   Lenguaje visual de las referencias: Horizonte al Mar (serif de display + Montserrat ligera,
   bloques partidos foto/texto, fondos arena, botones de contorno redondeados, formulario oscuro)
   y Amal (tarjetas grandes con foto, cajas de características, «¿Hablamos?»).
   Paleta del logo (sol, olas, palmera y texto) sobre blanco y arena:
   petróleo = superficies oscuras, turquesa = interacción y etiquetas,
   dorado = acentos y botones, sol = acento puntual sobre fondos oscuros. */
:root {
  --navy: #1C4C65;      /* palmera · azul petróleo */
  --turquoise: #0C6E9C; /* ola superior */
  --gold: #E6B445;      /* ola inferior */
  --gold-soft: #F6E3AE;
  --sun: #FBC82E;       /* sol */
  --sand: #f4efe6;
  --sand-2: #ebe5d8;
  --sand-3: #ddd2bb;
  --light: #faf8f4;
  --white: #fff;
  --ink: #373A4C;       /* texto del logo · azul pizarra */
  --text: #545868;
  --muted: #6E7182;
  --line: #e2dccf;
  --display: 'Gloock', 'Times New Roman', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--white); color: var(--text); font: 300 .95rem/1.75 var(--sans); }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
strong { font-weight: 500; }

.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.bg-sand { background: var(--sand); }
.bg-white { background: var(--white); }
.bg-light { background: var(--light); }

/* Tipografía */
.title-xl, .title-lg, .title-md, .title-sm, .hero-title { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
.title-xl { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.title-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.title-md { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.title-sm { font-size: 1.45rem; margin: 1.2em 0 .25em; }
.title-caps { font-family: var(--sans); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.1rem); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); margin: 0 0 1.6rem; }
.subtitle { font-family: var(--sans); font-weight: 200; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.15; color: #fff; margin: 0; text-align: left; }
.subtitle-dark { color: var(--ink); margin: -.3em 0 1.2em; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.lead { font-size: 1.05rem; color: var(--ink); }
.lead-center { max-width: 640px; margin: 0 auto 3rem; text-align: center; font-size: 1.02rem; }
.note { font-size: .8rem; color: var(--muted); }
.mock-note { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .8rem 0 0; }

/* Huecos marcados: material pendiente del cliente */
.pending { display: inline-block; font: 500 .7rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #8a6d2f; background: #fbf5e6; border: 1px dashed var(--gold); padding: .25em .6em; }

/* Botones de contorno redondeados (Horizonte) */
.pills { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.pills-center { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px;
  padding: .55em 1.5em; border: 1px solid var(--ink); border-radius: 999px; background: transparent;
  font: 400 .78rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s, color .2s;
}
.pill svg { width: 15px; height: 15px; }
.pill:hover { background: var(--ink); color: #fff; }
.pill.is-disabled { opacity: .45; cursor: default; }
.pill.is-disabled:hover { background: transparent; color: var(--ink); }

/* Botones sólidos de la ficha (Amal) */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 2.2rem 0; }
.btn-solid { display: inline-flex; align-items: center; gap: .6em; min-height: 46px; padding: .8em 2.2em; border-radius: 999px; transition: background-color .2s, color .2s, border-color .2s; background: var(--gold); border: 1px solid var(--gold); color: var(--ink); font: 400 .85rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn-solid svg { width: 17px; height: 17px; }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid.is-disabled { opacity: .6; cursor: default; }
.btn-solid.is-disabled:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { color: #fff; }

/* Logo provisional */
.logo { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--display); line-height: 1; text-transform: uppercase; }
.logo-main { font-size: 1.05rem; letter-spacing: .16em; white-space: nowrap; }
.logo-sub { font-family: var(--sans); font-size: .62rem; font-weight: 400; letter-spacing: .6em; padding-left: .6em; margin-top: .35em; color: var(--gold); }
.mark { width: 110px; height: auto; }
.site-header.is-solid .logo-sub { color: #A57D1F; }
.brand { display: flex; align-items: center; }
.logo-svg { display: block; height: calc(var(--header-h) - 12px); width: auto; }
.logo-svg--color, .site-header.is-solid .logo-svg--claro { display: none; }
.site-header.is-solid .logo-svg--color { display: block; }

/* Cabecera: transparente sobre la foto, blanca al hacer scroll */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); color: #fff; transition: background-color .3s, color .3s, box-shadow .3s; }
.site-header.is-solid { background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 1rem; }
.brand { text-decoration: none; margin-right: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a, .nav span { text-decoration: none; font-size: .78rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.lang { display: flex; align-items: center; gap: .7rem; }
.lang .flag { display: block; line-height: 0; padding: 3px 2px; border-bottom: 1px solid transparent; transition: opacity .2s; }
.lang .flag svg { display: block; width: 24px; height: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang a.flag { opacity: .55; }
.lang a.flag:hover, .lang a.flag:focus-visible { opacity: 1; }
.lang span.flag { border-bottom-color: var(--gold); }
.header-cta { border: 0; background: none; color: inherit; font: 500 .76rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: .5rem 0; }
.menu-toggle { width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 1px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; color: var(--ink); padding: .5rem var(--gutter) 1.6rem; display: none; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .nav.is-open { display: block; }
  .nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--sand-2); }
  .lang { padding-top: 1.1rem; gap: .9rem; }
  .lang .flag { padding: 8px 4px; }
  .header-cta { font-size: .7rem; max-width: 10rem; text-align: right; }
}
@media (max-width: 399px) { .header-cta { display: none; } .logo-main { font-size: .9rem; } }
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .menu-toggle { display: none; }
  .brand { flex: 1; margin: 0; }
  .nav { display: flex; align-items: center; gap: 2.5rem; }
  .nav ul { display: flex; gap: 2.4rem; }
  .nav li a { display: block; padding: .6rem .5rem; border-bottom: 1px solid transparent; }
  .nav a[aria-current="page"] { border-bottom-color: currentColor; }
  .header-cta { flex: 1; text-align: right; }
  .lang { font-size: .78rem; }
}

/* Hero del inicio: vídeo a pantalla completa */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; display: grid; place-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 38, 52, .45) 0%, rgba(14, 38, 52, .12) 30%, rgba(14, 38, 52, .18) 70%, rgba(14, 38, 52, .38) 100%); }
.hero-content { position: relative; display: grid; justify-items: center; gap: 1.2rem; padding: 0 var(--gutter); text-align: center; }
.hero-content .mark { width: clamp(90px, 14vw, 150px); color: #fff; opacity: .95; }
.hero-title { color: #fff; margin: 0; font-size: clamp(3.4rem, 10.5vw, 6.6rem); line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, .15); }
.hero-title span { display: block; }
.hero-place { position: absolute; left: clamp(1rem, 4vw, 3rem); bottom: clamp(1.4rem, 4vw, 2.6rem); margin: 0; display: flex; align-items: center; gap: .55rem; font: 400 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero-place svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 759px) { .hero-place { bottom: calc(56px + 1.2rem + env(safe-area-inset-bottom)); font-size: .68rem; letter-spacing: .16em; } }
.hero-title em { display: block; font: italic 200 clamp(2rem, 5.6vw, 3.6rem)/1.2 var(--sans); margin-top: .25em; padding-left: clamp(2rem, 14vw, 10rem); }

/* Cabecera de página interior */
.page-hero { position: relative; min-height: clamp(340px, 52vh, 520px); display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 38, 52, .62), rgba(14, 38, 52, .55)); }
.page-hero-inner { position: relative; z-index: 1; padding-top: var(--header-h); padding-bottom: 2rem; }
.page-hero .title-xl { color: #fff; margin-bottom: .1em; }
.page-hero .subtitle { max-width: 900px; font-weight: 300; text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.page-hero-text { max-width: 36em; margin: .9rem 0 0; font-size: clamp(1rem, 1.5vw, 1.18rem); font-weight: 300; line-height: 1.6; color: #fff; text-wrap: pretty; text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }

/* Bloques partidos foto/texto (Horizonte) */
.split { display: grid; }
.split-media { min-height: 320px; position: relative; overflow: hidden; }
.split-media img, .split-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.split-text { display: flex; align-items: center; }
.split-text-inner { position: relative; width: 100%; max-width: 560px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.split-text-inner > p:not(.subtitle) { max-width: 30em; }
/* «Isla Plana, Cartagena» en una línea: algo más pequeño que .title-lg para que quepa en la columna */
.title-loc { font-size: min(2rem, 8.5vw); }
@media (min-width: 900px) { .title-loc { font-size: clamp(2rem, 3.8vw, 2.55rem); } }
.split-mark { position: absolute; right: var(--gutter); bottom: 2rem; color: var(--gold-soft); }
.split-mark .mark { width: 70px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 600px; }
  .split-text-inner { padding-left: clamp(2rem, 5vw, 5rem); padding-right: clamp(2rem, 5vw, 5rem); }
}
.plan { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--sand), var(--sand) 14px, var(--sand-2) 14px, var(--sand-2) 28px); }

/* Franja arena con titular (Horizonte) */
.band { background: var(--sand-3); padding: clamp(1.8rem, 4vw, 2.8rem) var(--gutter); text-align: center; }
.band .title-lg { margin: 0; font-size: clamp(1.7rem, 3.8vw, 2.7rem); }

/* Valores en recuadros redondeados, sin fotos (Horizonte, «Arquitectura inspirada en el entorno») */
.values-section { background: var(--sand); text-align: center; }
.values-section .title-lg { margin-bottom: 2.2rem; }
.values { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; gap: 1.2rem; }
.values li { border: 1px solid var(--sand-3); border-radius: 20px; padding: 1.8rem 1.4rem; background: var(--light); }
.values .title-sm { margin: 0 0 .3em; }
.values p { margin: 0; color: var(--text); font-size: .92rem; }
.values-section .pills { margin-top: 2.4rem; }
/* Tres columnas solo cuando los títulos caben en una línea */
@media (min-width: 1080px) { .values { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (min-width: 640px) and (max-width: 1079px) { .values { max-width: 560px; } }

/* Tarjetas de promociones con foto (Amal) */
.promo-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem 1.2rem; }
@media (min-width: 640px) { .promo-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .promo-cards:not(.promo-cards-lg) { grid-template-columns: repeat(4, 1fr); } }
.promo-card { display: block; text-decoration: none; color: var(--ink); }
.promo-card-img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.promo-cards-lg .promo-card-img { aspect-ratio: 3 / 2; }
.promo-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.promo-card:hover .promo-card-img img { transform: scale(1.04); }
.promo-card-body { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem .2rem 0; }
.promo-card-arrow svg { width: 30px; height: 30px; color: var(--turquoise); stroke-width: 1.3; margin-top: .1rem; transition: transform .25s; }
.promo-card:hover .promo-card-arrow svg { transform: translateX(4px); }
.promo-card-title { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.15; }
.promo-card-meta { display: block; margin-top: .2rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1080px) { .promo-cards:not(.promo-cards-lg) .promo-card-title { font-size: 1.45rem; } .promo-cards:not(.promo-cards-lg) .promo-card-arrow svg { width: 24px; height: 24px; } }

/* Mosaico de Isla Plana (Amal) */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 10px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(10, 1fr); grid-auto-rows: 120px; gap: 16px; }
  .mosaic .m1 { grid-column: 1 / 5; grid-row: span 2; }
  .mosaic .m2 { grid-column: 5 / 9; grid-row: span 2; }
  .mosaic .m3 { grid-column: 9 / 11; grid-row: span 2; }
  .mosaic .m4 { grid-column: 1 / 3; grid-row: span 2; }
  .mosaic .m5 { grid-column: 3 / 7; grid-row: span 2; }
  .mosaic .m6 { grid-column: 7 / 11; grid-row: span 2; }
}
.quote { max-width: 620px; margin: 2.5rem auto 3.5rem; text-align: center; font-style: italic; font-weight: 400; color: var(--ink); }
.isla-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .isla-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.isla-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem 2rem; }
@media (min-width: 560px) { .isla-points { grid-template-columns: 1fr 1fr; } }
.isla-points .title-sm, .distances .title-sm { margin-top: .4em; }
.isla-points p { color: var(--text); font-size: .92rem; }
.distances ul { list-style: none; margin: 0; padding: 0; }
.distances li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.dist-time { flex: none; color: var(--ink); font-weight: 400; }
.distances .note { margin-top: .8rem; }

/* Formulario */
.form { margin-top: 1.6rem; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field input, .field textarea {
  width: 100%; font: 300 .9rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 6px; padding: .75rem .9rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(12, 110, 156, .15); }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .85rem; }
.check { cursor: pointer; }
.check input { margin: .05rem 0 0; accent-color: var(--turquoise); width: 22px; height: 22px; flex: none; cursor: pointer; }
.btn-submit { width: 100%; margin-top: 1rem; padding: .85rem; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font: 400 .85rem/1 var(--sans); letter-spacing: .04em; cursor: pointer; transition: background-color .2s; }
.btn-submit:hover { background: var(--turquoise); }
.form-status { margin: .8rem 0 0; font-size: .85rem; min-height: 1.3em; }
.form-status.ok { color: var(--turquoise); }
.form-status.error { color: #c0533f; }

/* Formulario sobre fondo oscuro (Horizonte, en el azul marino de la marca) */
.form-section { background: var(--navy); color: rgba(255, 255, 255, .85); padding: clamp(4rem, 9vw, 7rem) 0; background-image: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .05), transparent 45%); }
.form-section .title-lg { color: #fff; }
.form-dark .field input, .form-dark .field textarea { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }
.form-dark .field input::placeholder, .form-dark .field textarea::placeholder { color: rgba(255, 255, 255, .7); }
.form-dark .btn-submit { background: var(--sun); color: var(--navy); font-weight: 500; }
.form-dark .btn-submit:hover { background: #fff; }
.form-dark .form-status.ok { color: #9fe0d8; }
.form-dark .form-status.error { color: #ffb4a3; }

/* «¿Hablamos?» (Amal) */
.talk { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 auto; max-width: 1280px; }
.talk-inner { display: grid; gap: 1rem; align-items: center; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.talk-btn { display: inline-flex; align-items: center; gap: 1.2rem; border: 0; background: none; padding: 0; cursor: pointer; font: 400 clamp(2.2rem, 6vw, 3.6rem)/1 var(--sans); letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); }
.talk-btn svg { width: clamp(44px, 7vw, 70px); height: auto; color: var(--turquoise); stroke-width: 1.2; transition: transform .25s; }
.talk-btn:hover svg { transform: translateX(6px); }
.talk p { margin: 0; max-width: 26em; }
@media (min-width: 900px) { .talk-inner { grid-template-columns: 1.3fr 1fr; } }

/* Ficha de promoción (Amal) */
.crumb { font-size: .88rem; margin: 0 0 1.5rem; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.boxes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .boxes { grid-template-columns: repeat(var(--boxes-n, 6), 1fr); } }
.boxes li { border: 1px solid var(--line); padding: 1.1rem .9rem 1.3rem; min-height: 130px; }
.boxes svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: .8rem; }
.box-label { display: block; font-size: .78rem; color: var(--turquoise); line-height: 1.3; }
.box-value { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-top: .3rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 2.5rem; }
.promo-text { max-width: 760px; margin: 0 auto; }
.facts { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 1.6rem; }
.facts th, .facts td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.facts th { font-weight: 300; color: var(--muted); padding-right: 1rem; }
.facts td { text-align: right; color: var(--ink); font-weight: 400; }
@media (max-width: 639px) {
  .facts th { width: 44%; vertical-align: top; }
  .facts td { text-align: left; vertical-align: top; }
}

/* Equipo (Amal) */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-grid p { color: var(--ink); max-width: 34em; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
/* Hasta 4 por fila; con 4 personas, 2 + 2 en tablet */
@media (min-width: 640px) { .team { grid-template-columns: repeat(min(var(--team-n, 3), 3), 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .team[style*="--team-n: 4"] { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team { grid-template-columns: repeat(min(var(--team-n, 3), 4), 1fr); } }
/* El primero de la lista (David) va primero en móvil y en el centro cuando hay una fila de 3 */
@media (min-width: 640px) { .team[style*="--team-n: 3"] > li:nth-child(2) { order: -1; } }
/* Descripción opcional: texto bajo el puesto, sin caja */
.team .team-bio { margin-top: .9rem; color: var(--ink); font-size: .9rem; line-height: 1.65; }
.portrait { aspect-ratio: 3 / 4; background: var(--sand); display: grid; place-items: center; margin-bottom: 1rem; }
/* Equipo: grupo centrado y con aire; fotos con esquinas redondeadas y texto centrado bajo cada persona */
.team-title { text-align: center; margin-bottom: 2.6rem; }
.team { max-width: 920px; margin-inline: auto; text-align: center; }
@media (min-width: 640px) { .team { column-gap: clamp(2rem, 5vw, 4rem); } }
.team { row-gap: 3rem; }
.team > li { max-width: min(340px, 78vw); width: 100%; justify-self: center; }
.portrait-photo { overflow: hidden; border-radius: 20px; margin-bottom: 1.3rem; }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; }
.team .title-sm { margin: 0; }
.team p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Contacto y legales */
.contact-data { margin: 1rem 0 0; }
.contact-data dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--turquoise); margin-top: 1.2rem; }
.contact-data dd { margin: .2rem 0 0; color: var(--ink); }
.map-full .map { width: 100%; height: clamp(320px, 45vw, 480px); border: 0; }
.prose p, .credits { font-size: .9rem; }
.credits { padding-left: 1.1rem; }
.credits li { margin-bottom: .4rem; }
.credits a { color: var(--turquoise); }

/* Popup */
.modal { width: min(640px, calc(100% - 2 * var(--gutter))); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--text); }
.modal::backdrop { background: rgba(14, 38, 52, .6); }
.modal-box { position: relative; padding: 2.6rem var(--gutter) 2rem; }
@media (min-width: 640px) { .modal-box { padding: 3rem 2.6rem 2.4rem; } }
.modal-close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--ink); cursor: pointer; }

/* Botones flotantes: pestañas con icono y texto pegadas al borde (Horizonte) */
.floating { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 6px; }
.floating { justify-items: end; }
.floating a, .floating button {
  display: flex; align-items: center; height: 44px; padding: 0 13px; border: 0; border-radius: 22px 0 0 22px;
  background: var(--navy); color: #fff; font: 400 .8rem/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 4px 14px rgba(14, 38, 52, .18); transition: background-color .2s;
}
.floating svg { width: 18px; height: 18px; flex: none; }
.floating span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s, margin .25s; }
.floating a:hover, .floating button:hover, .floating a:focus-visible, .floating button:focus-visible { background: var(--turquoise); }
.floating a:hover span, .floating button:hover span, .floating a:focus-visible span, .floating button:focus-visible span { max-width: 8em; margin-left: .55rem; }
@media (max-width: 759px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .floating { top: auto; bottom: 0; left: 0; transform: none; grid-template-columns: repeat(3, 1fr); gap: 0; justify-items: stretch; background: var(--navy); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(14, 38, 52, .15); }
  .floating a, .floating button { height: 56px; border-radius: 0; justify-content: center; box-shadow: none; font-size: .78rem; }
  .floating > * + * { border-left: 1px solid rgba(255, 255, 255, .14); }
  .floating span, .floating a:hover span, .floating button:hover span { max-width: none; margin-left: .5rem; }
}

/* Pie (Horizonte) */
.site-footer { background: #fff; color: var(--ink); font-size: .88rem; }
.footer-grid { display: grid; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.footer-brand { text-decoration: none; color: var(--muted); }
.footer-brand .logo-main { font-size: 1.3rem; }
.footer-title { font-family: var(--display); font-weight: 400; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-block; padding: .2rem 0; }
@media (max-width: 759px) {
  .footer-nav a, .site-footer p a, .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--turquoise); }
.site-footer p { margin: 0 0 .25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; align-items: start; } }
.footer-legal { background: var(--sand-3); font-size: .78rem; }
.footer-legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 2rem; padding-top: .7rem; padding-bottom: .7rem; }
.footer-legal p { margin: 0; }
/* Escritorio: copyright y enlaces legales a la izquierda, firma a la derecha.
   Móvil: dos líneas, arriba los enlaces legales y abajo copyright y firma (letra que encoge con el ancho para que quepan) */
.footer-legal-main, .footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .7rem; }
.footer-legal-main a::before { content: "·"; margin-right: .7rem; color: var(--muted); }
.footer-credit a { font-weight: 500; letter-spacing: .02em; }
@media (max-width: 759px) {
  .footer-legal { font-size: min(.78rem, 2.85vw); }
  .footer-legal .container { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 0 .75rem; }
  .footer-legal-main { display: contents; }
  .footer-legal-links { grid-column: 1 / -1; grid-row: 1; }
  .footer-legal-links a:first-child::before { content: none; margin: 0; }
  .footer-legal-main > span, .footer-credit { white-space: nowrap; }
  .footer-credit { text-align: right; }
}

/* Isla Plana desde el aire: vídeos verticales del cliente.
   Escritorio: dentro de un marco de iPhone. Móvil y tablet: sin marco (un móvil dentro del móvil queda raro). */
.aerial { overflow: hidden; }
.aerial-grid { display: grid; gap: 2.5rem; align-items: center; }
.aerial-text { max-width: 520px; }
.aerial-phones { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.phone { margin: 0; }
.phone-frame { display: none; }
.phone-screen { aspect-ratio: 464 / 832; border-radius: 14px; overflow: hidden; background: var(--navy); }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .aerial-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .aerial-phones { display: flex; justify-content: center; gap: clamp(1.5rem, 3vw, 2.4rem); }
  .phone { position: relative; width: min(20vw, 270px); aspect-ratio: 389 / 800; }
  .phone-frame { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; user-select: none; }
  /* Hueco de la pantalla medido sobre el PNG (389×800) */
  .phone-screen { position: absolute; top: 1.75%; bottom: 1.625%; left: 4.37%; right: 4.11%; aspect-ratio: auto; border-radius: 13% / 6%; }
}

/* Vídeo de presentación: sala oscura en el azul de la sombra del hero, vídeo 16:9 sin recortar.
   Móvil: a sangre (de borde a borde). Escritorio: al ancho del contenido. */
.film { --film-ease: cubic-bezier(.16, 1, .3, 1); background: #0E2634; color: rgba(255, 255, 255, .8); padding: clamp(3.5rem, 8vw, 6.5rem) 0; overflow: hidden; }
.film-head { display: grid; gap: .6rem; margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
.film-head .title-lg { color: #fff; margin: 0; }
.film-head p { margin: 0; max-width: 30em; font-size: clamp(.95rem, 1.4vw, 1.05rem); line-height: 1.85; }
@media (min-width: 900px) {
  .film-head { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
  .film-head p { max-width: 24em; text-align: right; }
}
.film-stage { max-width: 1200px; margin: 0 auto; }
@media (min-width: 760px) { .film-stage { padding: 0 var(--gutter); } }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
@media (min-width: 760px) { .film-frame { border-radius: 6px; } }
.film-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; transition: transform 1.4s var(--film-ease); }

/* Póster: sombra suave para que el botón destaque sobre el plano nocturno */
.film-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(14, 38, 52, .05) 0%, rgba(14, 38, 52, .45) 100%); transition: opacity .6s var(--film-ease); }
.film-play { position: absolute; inset: 0; z-index: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.7rem, 2vw, 1.1rem); width: 100%; border: 0; padding: 0; background: none; color: #fff; cursor: pointer; transition: opacity .5s var(--film-ease), visibility .5s; }
.film-play-icon { display: grid; place-items: center; width: clamp(58px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); color: var(--navy); box-shadow: 0 0 0 0 rgba(251, 200, 46, .45), 0 10px 30px rgba(0, 0, 0, .3); transition: transform .5s var(--film-ease), box-shadow .5s var(--film-ease); animation: film-halo 2.8s var(--film-ease) infinite; }
.film-play-icon svg { width: 38%; height: 38%; margin-left: 8%; }
.film-play-text { display: flex; align-items: center; gap: .8em; padding: .75em 1.2em; border-radius: 999px; background: rgba(14, 38, 52, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 400 clamp(.68rem, 1vw, .78rem)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.film-play-text span { padding-left: .8em; border-left: 1px solid rgba(255, 255, 255, .5); letter-spacing: .1em; }
.film-play:hover .film-play-icon, .film-play:focus-visible .film-play-icon { transform: scale(1.08); animation: none; box-shadow: 0 0 0 14px rgba(251, 200, 46, .2), 0 14px 36px rgba(0, 0, 0, .35); }
.film-play:focus-visible { outline: none; }
.film-play:focus-visible .film-play-icon { outline: 2px solid #fff; outline-offset: 6px; }
.film-frame:has(.film-play:hover) video { transform: scale(1.025); }
@keyframes film-halo { 0% { box-shadow: 0 0 0 0 rgba(251, 200, 46, .45), 0 10px 30px rgba(0, 0, 0, .3); } 70%, 100% { box-shadow: 0 0 0 22px rgba(251, 200, 46, 0), 0 10px 30px rgba(0, 0, 0, .3); } }

/* Final: invitación a pedir información sobre el último fotograma */
.film-end { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: clamp(.9rem, 2.4vw, 1.8rem); padding: 1rem var(--gutter); text-align: center; background: rgba(14, 38, 52, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .8s var(--film-ease), visibility .8s; }
.film-end-title { margin: 0; font: 400 clamp(1.35rem, 3.6vw, 2.8rem)/1.1 var(--display); color: #fff; text-wrap: balance; transform: translateY(12px); transition: transform 1s var(--film-ease); }
.film-end-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.6rem; }
.film-end .btn-solid { margin: 0; }
.film-end .btn-solid:hover { background: #fff; border-color: #fff; color: var(--navy); }
.film-replay { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 .2em; border: 0; background: none; color: rgba(255, 255, 255, .85); font: 400 .78rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: color .2s; }
.film-replay svg { width: 17px; height: 17px; transition: transform .5s var(--film-ease); }
.film-replay:hover { color: #fff; }
.film-replay:hover svg { transform: rotate(-60deg); }
@media (max-width: 559px) {
  .film-end .btn-solid { min-height: 40px; padding: .65em 1.5em; font-size: .78rem; }
  .film-replay { min-height: 40px; font-size: .7rem; }
}

/* Estados (los pone main.js) */
.film.is-ready .film-play { display: flex; }
.film.is-playing .film-play, .film.is-ended .film-play { opacity: 0; visibility: hidden; }
.film.is-playing .film-frame::after, .film.is-ended .film-frame::after { opacity: 0; }
.film.is-ended .film-end { opacity: 1; visibility: visible; }
.film.is-ended .film-end-title { transform: none; }
/* Entrada: el vídeo se abre de los lados hacia el ancho completo al llegar a él */
.film.has-reveal .film-frame { clip-path: inset(0 7% round 6px); transition: clip-path 1.4s var(--film-ease); }
.film.has-reveal.is-in .film-frame { clip-path: inset(0 0 round 0); }
@media (min-width: 760px) { .film.has-reveal.is-in .film-frame { clip-path: inset(0 0 round 6px); } }

@media (prefers-reduced-motion: reduce) {
  .film-play-icon { animation: none; }
  .film-frame video { transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Material del cliente: logo, iconos de promoción, planos y galería */
.logo-img { display: block; width: 170px; height: auto; }
.promo-icon { display: block; width: 150px; height: auto; margin: 0 auto 2rem; }
.plan-img { display: block; background: #fff; }
.split-media.plan-img { cursor: zoom-in; }
.split-media.plan-img img { object-fit: contain; padding: clamp(1rem, 3vw, 2.5rem); }
.plan-zoom { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; padding: .45em 1.1em; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font: 400 .74rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.plan-img:hover .plan-zoom { background: var(--ink); color: #fff; }
@media (max-width: 899px) {
  .split-media.plan-img { min-height: 0; padding-bottom: 3.5rem; }
  .split-media.plan-img img { position: static; height: auto; padding: 1rem var(--gutter); }
}
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.facts-left td { text-align: left; }
/* Plano a la izquierda en escritorio: alineado con el margen del contenido, no con el borde de la ventana */
@media (min-width: 900px) {
  .split > .plan-img:first-child img { padding-left: max(2.5rem, calc((100vw - 1200px) / 2 + var(--gutter))); }
}
