/* Kuna · hoja de estilos única. Marca PROVISIONAL (la misma del video): azul noche, marfil y un
   solo acento dorado arena. Al llegar la marca real, se cambian los tokens de :root. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-italic-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #06121f;
  --deep: #0b2236;
  --ivory: #f6f3ec;
  --ivory-soft: rgba(246, 243, 236, 0.74);
  --ivory-faint: rgba(246, 243, 236, 0.6);
  --gold: #e2b765;
  --sand: #f0dcae;
  --line: rgba(240, 220, 174, 0.2);
  --line-soft: rgba(246, 243, 236, 0.1);
  --error: #f2a48f;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(22px, 5vw, 80px);
  --max: 1440px;
  --section-y: clamp(120px, 15vw, 240px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 1.6s;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--night);
  color: var(--ivory);
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--night);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 340;
  line-height: 1.75;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.3em; }
a:hover { text-decoration-color: var(--gold); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
  border-radius: 1px;
}

::selection { background: var(--gold); color: var(--night); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--night);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 em,
.hero-line {
  font-style: italic;
  color: var(--sand);
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.lead {
  margin-top: 2rem;
  max-width: 32em;
  color: var(--ivory-soft);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}

.disclaimer {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--ivory-faint);
  line-height: 1.7;
}

.section { padding-block: var(--section-y); }

/* ---------- Encabezado ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  /* Mismo borde izquierdo y derecho que .container, en pantallas anchas también. */
  padding: 22px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  transition: background-color 0.8s var(--ease), padding 0.8s var(--ease), border-color 0.8s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 14px;
  background: rgba(6, 18, 31, 0.82);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: -0.42em;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 2.6vw, 44px);
  margin-left: auto;
}
.site-nav a,
.header-cta,
.music-toggle {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-soft);
  transition: color 0.5s var(--ease);
}
.site-nav a:hover,
.header-cta:hover,
.music-toggle:hover { color: var(--ivory); }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}

.header-cta {
  color: var(--ivory);
  padding: 10px 18px;
  border: 1px solid var(--line);
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.header-cta:hover { border-color: var(--gold); }

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}
.music-toggle[hidden] { display: none; }
.music-icon { opacity: 0.6; transition: opacity 0.5s var(--ease); }
.music-toggle[aria-pressed="true"] { color: var(--sand); }
.music-toggle[aria-pressed="true"] .music-icon { opacity: 1; }

/* ---------- Portada: giro de 360° ---------- */

/* Por defecto (sin JS, movimiento reducido o celular) la portada es estática: póster o video en
   bucle y todos los textos a la vista. El giro con scroll solo se activa con html.spin-scrub. */
.hero-spin {
  position: relative;
  background: var(--night);
}
.spin-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.spin-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  background: var(--night);
}
.spin-poster,
.spin-canvas,
.spin-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spin-canvas,
.spin-video { display: none; }

/* Degradado detrás del texto: el título queda legible sobre cualquier ángulo del barco. */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 31, 0.55) 0%, rgba(6, 18, 31, 0) 22%),
    linear-gradient(0deg, rgba(6, 18, 31, 0.97) 0%, rgba(6, 18, 31, 0.72) 26%, rgba(6, 18, 31, 0) 58%),
    linear-gradient(90deg, rgba(6, 18, 31, 0.62) 0%, rgba(6, 18, 31, 0.2) 40%, rgba(6, 18, 31, 0) 60%);
}

.spin-copy {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(88px, 11vh, 130px);
  /* Portada estática: título arriba, los datos en una fila, la fecha al final. */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  column-gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.spin-cap--intro,
.spin-cap--end { grid-column: 1 / -1; }
.spin-cap--intro { margin-bottom: clamp(36px, 4vw, 56px); }
.spin-cap .eyebrow { margin-bottom: 0.75rem; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.75rem, 12.5vw, 11.5rem);
  line-height: 0.86;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
  text-transform: uppercase;
}
.hero-line {
  margin-top: clamp(20px, 2.4vw, 36px);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.3vw, 2.125rem);
  line-height: 1.3;
  max-width: 22em;
}
.spin-line {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  line-height: 1.25;
}
.spin-sub {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--ivory-soft);
}
.hero-date {
  margin-top: clamp(22px, 2.4vw, 34px);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
}
.hero-disclaimer {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  left: var(--gutter);
  text-align: right;
}
.spin-hint { display: none; }

/* ----- Giro con scroll (escritorio, con movimiento) ----- */

/* La sección mide 5,2 pantallas: la escena queda fija y el scroll de ~4,2 pantallas da la vuelta. */
.spin-scrub .hero-spin { height: 520vh; }
.spin-scrub .spin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  overflow: clip;
}
.spin-scrub .spin-canvas { display: block; }
.spin-scrub .spin-copy {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  height: 100%;
  pointer-events: none;
}
/* Todos los textos ocupan el mismo lugar y se relevan según el ángulo (opacidad desde main.js). */
.spin-scrub .spin-cap {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  right: var(--gutter);
  bottom: clamp(88px, 11vh, 130px);
  margin: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.spin-scrub .spin-cap--intro { opacity: 1; }
.spin-scrub .spin-cap .eyebrow { margin-bottom: 1.25rem; }
.spin-scrub .spin-line { font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1.1; }
.spin-scrub .spin-sub { margin-top: 1rem; font-size: 1rem; }
.spin-scrub .spin-cap--end .hero-date {
  margin-top: 0;
  gap: 28px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
}
.spin-scrub .spin-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  white-space: nowrap;
}
.spin-hint-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(226, 183, 101, 0) 0%, var(--gold) 100%);
}

/* Entrada del héroe al cargar: termina en transform none y usa fill backwards. */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-title { animation: rise 2s var(--ease) 0.2s backwards; }
.hero-line { animation: rise 2s var(--ease) 0.55s backwards; }
.hero-date { animation: rise 2s var(--ease) 0.85s backwards; }
.hero-disclaimer,
.spin-hint,
.site-header { animation: fade 2s var(--ease) 1.1s backwards; }

/* ---------- Medios (foto o clip) ---------- */

.media {
  position: relative;
  overflow: clip;
  background: var(--deep);
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--band { aspect-ratio: 21 / 9; }
.media--zone { aspect-ratio: 2.2 / 1; }
.media--port { aspect-ratio: 2.2 / 1; }
.media--pos-top img { object-position: 50% 30%; }

.caption {
  margin-top: 18px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ---------- El barco ---------- */

.ship-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: end;
}
.spec-list { border-top: 1px solid var(--line); }
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}
.spec-row dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.spec-row dd {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.approx { color: var(--gold); margin-right: 0.12em; }
.spec-note {
  margin-top: 18px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ivory-faint);
}
.ship { padding-bottom: 0; }
.ship-plan { margin-top: clamp(80px, 10vw, 160px); }

/* ---------- La experiencia ---------- */

.experience { background: linear-gradient(180deg, var(--night) 0%, var(--deep) 40%, var(--deep) 70%, var(--night) 100%); }
.experience-head { max-width: 46rem; }

.experience-grid {
  margin-top: clamp(80px, 10vw, 150px);
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(40px, 5vw, 96px);
}

/* Firma de la página: el indicador de niveles. Cuatro líneas escalonadas como el perfil del barco
   (la cocina abajo, la más larga; la cubierta superior arriba, la más corta). */
.deck-rail {
  position: sticky;
  top: 32vh;
  align-self: start;
}
.deck-rail-title {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 28px;
}
.deck {
  display: grid;
  gap: 10px;
  padding-bottom: 22px;
}
.deck-line {
  display: block;
  height: 1px;
  background: var(--ivory-faint);
  opacity: 0.35;
  transition: background-color 1.2s var(--ease), opacity 1.2s var(--ease);
}
.deck[data-deck-item="superior"] .deck-line { width: 46%; }
.deck[data-deck-item="bali"] .deck-line { width: 66%; }
.deck[data-deck-item="principal"] .deck-line { width: 86%; }
.deck[data-deck-item="cocina"] .deck-line { width: 100%; }
.deck-name {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--ivory-faint);
  opacity: 0.6;
  transition: color 1.2s var(--ease), opacity 1.2s var(--ease);
}
.deck.is-active .deck-line { background: var(--gold); opacity: 1; }
.deck.is-active .deck-name { color: var(--sand); opacity: 1; }

.zones {
  display: grid;
  gap: clamp(110px, 12vw, 200px);
}
.zone-text {
  margin-top: clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.zone-text .eyebrow { margin-bottom: 1rem; }
.zone-text > p {
  color: var(--ivory-soft);
  max-width: 30em;
}

/* ---------- Cartagena ---------- */

.port { padding-top: 0; }
.port-text {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: end;
}
.port-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3125rem, 1.9vw, 1.75rem);
  line-height: 1.5;
  color: var(--ivory-soft);
}

/* ---------- Hito ---------- */

.milestone {
  text-align: center;
  background: var(--night);
}
.milestone-inner { display: flex; flex-direction: column; align-items: center; }
.milestone-year {
  font-size: clamp(6rem, 22vw, 18rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
}
.horizon {
  width: min(100%, 880px);
  height: 1px;
  margin-top: clamp(28px, 3vw, 44px);
  background: linear-gradient(90deg, rgba(226, 183, 101, 0) 0%, var(--gold) 50%, rgba(226, 183, 101, 0) 100%);
}
.timeline {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 560px);
}
.timeline li { display: grid; gap: 6px; align-content: start; padding-inline: 8px; }
.timeline-when {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.timeline-what {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--ivory-soft);
}

/* ---------- Contacto ---------- */

.contact { background: var(--deep); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(56px, 8vw, 140px);
  align-items: end;
}
.contact h2 { font-size: clamp(3rem, 7vw, 6.5rem); }
.channels { border-top: 1px solid var(--line); }
.channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}
.channel dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.channel dd {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Marcador visible: aún no hay datos reales de contacto. */
.placeholder {
  color: var(--sand);
  border-bottom: 1px dashed rgba(240, 220, 174, 0.5);
}
.investors {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 4vw, 64px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
  color: var(--ivory-soft);
}
.investors .eyebrow { margin: 0; flex: none; }

/* ---------- Formulario de contacto ---------- */

/* Misma retícula que «Inversionistas»: el rótulo a la izquierda y el contenido a la derecha. */
.form-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 120px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
}
.form-intro .eyebrow { margin-bottom: 1.25rem; }
.form-lead {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.35;
  max-width: 16em;
}
.form-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ivory-faint);
}
.form-area { min-width: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px clamp(24px, 3vw, 48px);
}
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  line-height: 1.6;
}
.req { color: var(--gold); }
.optional {
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--ivory-faint);
}

/* Campos con solo la línea de abajo, como las filas de datos del barco. */
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.4;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-bottom-color: rgba(240, 220, 174, 0.45); }
/* Foco visible: la línea se vuelve dorada y más gruesa (sin el recuadro general). */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 0 var(--gold);
}
.field [aria-invalid="true"] {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 0 var(--error);
}
/* El autocompletado de Chrome no debe pintar el campo de amarillo o blanco. */
.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--deep) inset;
  -webkit-text-fill-color: var(--ivory);
  caret-color: var(--ivory);
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  cursor: pointer;
}
.select-wrap select:invalid { color: var(--ivory-faint); }
.select-wrap option { background: var(--deep); color: var(--ivory); }
/* Flecha dibujada con bordes: la CSP no permite imágenes «data:». */
.select-wrap::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -7px;
  border-right: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  transform: rotate(45deg);
  pointer-events: none;
}

.field-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--ivory-faint);
  font-variant-numeric: tabular-nums;
}
.field-error {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--error);
}
.field-error:empty { display: none; }

/* Campo trampa: fuera de la vista, pero no con display:none (algunos robots lo saltan). */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
/* El tamaño va en el contenedor: si no, la línea hereda el alto de 1,75 del cuerpo y se separa. */
.consent-text {
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.consent-text label {
  cursor: pointer;
  color: var(--ivory);
}
.consent .field-error { margin-left: 38px; }
.consent-notice {
  margin: 12px 0 0 38px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--ivory-faint);
}

/* Casilla propia: un cuadro fino que se llena de dorado con la marca en azul noche. */
.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid rgba(240, 220, 174, 0.55);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.consent-row input[type="checkbox"]:hover { border-color: var(--gold); }
.consent-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 1.5px solid var(--night);
  border-bottom: 1.5px solid var(--night);
  transform: rotate(45deg);
  opacity: 0;
}
.consent-row input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.consent-row input[type="checkbox"]:checked::after { opacity: 1; }
.consent-row input[type="checkbox"][aria-invalid="true"] { border-color: var(--error); }

/* Botón con aspecto de enlace (abre la política, reintenta, etc.). */
.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sand);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: rgba(240, 220, 174, 0.45);
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: text-decoration-color 0.4s var(--ease), color 0.4s var(--ease);
}
.link-button:hover { color: var(--ivory); text-decoration-color: var(--gold); }

.form-actions { margin-top: 40px; }
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 36px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: var(--night);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.submit-button:hover { background: var(--sand); border-color: var(--sand); }
.submit-button--quiet {
  min-height: 48px;
  padding: 12px 28px;
  background: transparent;
  border-color: var(--line);
  color: var(--ivory);
}
.submit-button--quiet:hover { background: transparent; border-color: var(--gold); }
.submit-button[aria-disabled="true"] { cursor: progress; }

/* Único indicador de carga: el círculo dentro del botón mientras se envía. */
.spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.submit-button.is-busy .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 1px solid var(--sand);
  background: rgba(240, 220, 174, 0.06);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ivory);
}
.form-status.is-error {
  border-left-color: var(--error);
  background: rgba(242, 164, 143, 0.07);
}
.form-status .link-button { margin-left: 4px; }

.form-success { padding-top: 6px; animation: rise 1s var(--ease) backwards; }
.form-success[hidden] { display: none; }
.form-success .eyebrow { margin-bottom: 1.25rem; }
.form-success-title { outline: none; }
.form-success > p:not(.eyebrow) {
  margin-top: 1.25rem;
  max-width: 34em;
  color: var(--ivory-soft);
}
.form-success strong { color: var(--ivory); font-weight: 500; overflow-wrap: anywhere; }
.form-success .link-button { margin-top: 1.75rem; }

/* ---------- Política de datos (ventana y página) ---------- */

.policy-dialog {
  width: min(780px, calc(100vw - 48px));
  max-width: none;
  max-height: min(86vh, 920px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--night);
  color: var(--ivory);
  overflow: hidden;
}
.policy-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: rise 0.6s var(--ease) backwards;
}
.policy-dialog::backdrop {
  background: rgba(3, 9, 16, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* Mientras la ventana está abierta, la página de atrás no se desplaza. */
html:has(.policy-dialog[open]) { overflow: hidden; }

.policy-dialog-head,
.policy-dialog-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 3vw, 36px);
}
.policy-dialog-head { border-bottom: 1px solid var(--line-soft); }
.policy-dialog-foot {
  border-top: 1px solid var(--line-soft);
  font-size: 0.875rem;
}
.policy-dialog-title {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}
.dialog-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ivory-soft);
  cursor: pointer;
  transition: color 0.4s var(--ease);
}
.dialog-close:hover { color: var(--ivory); }
.policy-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 3vw, 36px);
}
.policy-dialog-body:focus-visible { outline-offset: -6px; }

.policy {
  color: var(--ivory-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.policy-section { margin-top: 2.75rem; }
.policy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.25;
  color: var(--ivory);
}
.policy p + p,
.policy p + ul,
.policy ul + p,
.policy ol + p,
.policy .table-scroll + p,
.policy p + .table-scroll { margin-top: 1rem; }
.policy ul,
.policy ol { margin: 0; padding-left: 1.25em; }
.policy ol { list-style: decimal; }
.policy li + li { margin-top: 0.5rem; }
.policy strong { color: var(--ivory); font-weight: 500; }
.nowrap { white-space: nowrap; }

.draft-banner {
  padding: 16px 20px;
  border: 1px dashed rgba(240, 220, 174, 0.6);
  background: rgba(240, 220, 174, 0.07);
  color: var(--sand);
  font-size: 0.9375rem;
}
.draft-banner strong { color: var(--sand); font-weight: 600; }
.review-note {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 0.875rem;
  color: var(--sand);
}

.policy-facts { border-top: 1px solid var(--line); margin-top: 1rem; }
.policy-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.policy-facts dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.policy-facts dd {
  min-width: 0;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--ivory);
  overflow-wrap: anywhere;
}

.table-scroll {
  min-width: 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.policy table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.policy th,
.policy td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.policy th {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.policy td:first-child { color: var(--ivory); }

/* Página propia de la política (sin menú: el botón de volver va a la derecha). */
.policy-body .header-actions { margin-left: auto; }
.policy-page { padding-top: clamp(140px, 14vw, 200px); }
.policy-container { max-width: 900px; }
.policy-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.policy-page .policy .policy-section:first-of-type { margin-top: 2.5rem; }

/* ---------- Pie ---------- */

.site-footer {
  padding-block: clamp(64px, 8vw, 110px) 48px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 48px;
  align-items: baseline;
}
.wordmark--footer { font-size: 1.5rem; }
.footer-place {
  justify-self: end;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
/* Dominio de la web (el dueño, 2026-11-21): bajo la ciudad, en dorado y espaciado como el logo. */
.footer-domain {
  grid-column: 2;
  justify-self: end;
  margin-top: -8px;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
}
.footer-domain a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast, 0.2s) ease;
}
.footer-domain a:hover,
.footer-domain a:focus-visible { border-bottom-color: currentColor; }
.footer-meta { grid-column: 1 / -1; }
.footer-meta {
  font-size: 0.75rem;
  color: var(--ivory-faint);
  line-height: 1.8;
}
.footer-meta span { margin-inline: 8px; }

/* ---------- Entradas al hacer scroll (solo con JS; ver boot.js) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* Las fotos entran con un leve acercamiento invertido, dentro de su marco. */
.js .media.reveal img,
.js .media.reveal video,
.js .reveal .media img,
.js .reveal .media video {
  transform: scale(1.05);
  transition: transform 2.6s var(--ease);
}
.js .media.reveal.is-in img,
.js .media.reveal.is-in video,
.js .reveal.is-in .media img,
.js .reveal.is-in .media video { transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .experience-grid { grid-template-columns: minmax(0, 1fr); }
  .deck-rail { display: none; }
}

@media (max-width: 900px) {
  .spin-stage { min-height: 0; justify-content: flex-start; }
  .spin-media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 4 / 3;
  }
  .spin-video { display: block; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 18, 31, 0.6) 0%, rgba(6, 18, 31, 0) 28%),
      linear-gradient(0deg, rgba(6, 18, 31, 1) 0%, rgba(6, 18, 31, 0) 38%);
  }
  .spin-copy {
    margin-top: -64px;
    position: relative;
    padding-bottom: 28px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
  }
  .spin-cap--intro { margin-bottom: 14px; }
  .spin-cap .eyebrow { margin-bottom: 0.4rem; }
  .spin-cap--end .hero-date { margin-top: 6px; }
  .hero-disclaimer {
    position: static;
    padding: 8px var(--gutter) 40px;
    text-align: left;
  }
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .ship-grid,
  .contact-grid,
  .port-text,
  .zone-text { grid-template-columns: minmax(0, 1fr); }
  .ship-grid { align-items: start; }
  .port-text { gap: 28px; }
  .zone-text { gap: 18px; }
  .form-block { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .site-header { padding-block: 16px; gap: 16px; }
  .site-header.is-scrolled { padding-block: 12px; }
  .wordmark { font-size: 1rem; letter-spacing: 0.36em; margin-right: -0.36em; }
  .header-cta { padding: 9px 14px; letter-spacing: 0.2em; }
  .music-toggle { letter-spacing: 0.2em; }
  .music-toggle [data-music-label] { display: none; }
  .music-toggle { padding: 10px 4px; }


  /* En el teléfono los medios ocupan todo el ancho y pasan a 4:3. */
  .media--zone,
  .media--band,
  .media--port {
    aspect-ratio: 4 / 3;
    margin-inline: calc(var(--gutter) * -1);
  }
  .media--band,
  .media--port { margin-inline: 0; }

  .spec-row { padding: 18px 0 16px; }
  .channel { flex-direction: column; gap: 6px; }
  .investors { flex-direction: column; gap: 14px; border-top: 0; padding-top: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-place { justify-self: start; }
  .footer-domain { grid-column: 1; justify-self: start; margin-top: 0; }
  .timeline { gap: 24px; }

  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .field input,
  .field select,
  .field textarea { font-size: 1.1875rem; }
  .submit-button:not(.submit-button--quiet) { width: 100%; }
  .consent-notice,
  .consent .field-error { margin-left: 38px; }

  /* En el teléfono la política ocupa toda la pantalla. */
  .policy-dialog {
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
  }
  .policy-dialog-foot { flex-wrap: wrap; }
  .policy-facts > div { flex-direction: column; gap: 4px; }
  .policy-facts dd { text-align: left; }
}

/* ---------- Movimiento reducido: sin entradas ni video (se queda el póster) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .reveal img,
  .js .reveal video,
  .js .media.reveal img,
  .js .media.reveal video { opacity: 1; transform: none; }
}
