/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #1E22A6;
  color: #F2EFE6;
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
input::placeholder { color: rgba(30,34,166,.3); }
input:focus { outline: none; }

@keyframes ndTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes ndCue {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Header ===== */
.nd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 44px);
  mix-blend-mode: difference;
}
.nd-logo,
.nd-nav-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #F2EFE6;
}

/* ===== Hero ===== */
.nd-hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  background: #0C0E3C;
}
.nd-hero-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #12154a 0 16px, #0C0E3C 16px 32px);
}
.nd-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  /* Atenúa apenas lo necesario para que el texto se lea, sin tapar el video */
  filter: brightness(.8) saturate(.95) contrast(1.02);
}
.nd-hero-gradient {
  position: absolute;
  inset: 0;
  /* Degradado ligero: solo refuerza la parte baja para que el título
     y la copy se lean, dejando el resto del video visible */
  background: linear-gradient(180deg,
    rgba(8,9,40,.12) 0%,
    rgba(8,9,40,.08) 35%,
    rgba(12,14,60,.18) 60%,
    rgba(18,20,90,.4) 82%,
    rgba(30,34,166,.62) 100%);
}
.nd-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Más espacio abajo: deja libre la franja donde el video trae sus
     propios subtítulos, para que no se crucen con el texto del sitio */
  padding: 0 clamp(18px, 4vw, 44px) clamp(110px, 16vh, 190px);
}
.nd-hero-title,
.nd-hero-sub {
  position: relative;
  z-index: 1;
}
.nd-hero-title {
  margin: 0;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 900;
  font-size: clamp(40px, 9vw, 130px);
  line-height: .82;
  letter-spacing: -.03em;
  transform-origin: left bottom;
  /* Sombra marcada en vez de un panel sólido: da legibilidad sin tapar el video */
  text-shadow: 0 4px 24px rgba(4,5,24,.75), 0 1px 4px rgba(4,5,24,.6);
}
.nd-hero-title span { display: block; }
.nd-hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(26px, 4vh, 44px);
  padding-top: 18px;
  border-top: 1px solid rgba(242,239,230,.3);
}
.nd-hero-tagline {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 600;
  font-size: clamp(15px, 2vw, 24px);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(4,5,24,.7);
}
.nd-hero-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(242,239,230,.85);
  text-shadow: 0 2px 12px rgba(4,5,24,.7);
}
.nd-scroll-cue {
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  top: 50%;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(242,239,230,.55);
  animation: ndCue 2.4s ease-in-out infinite;
}

/* ===== Móvil: el hero a 100vh sobre-recorta un video horizontal
   en pantallas altas y angostas. Bajamos el alto y afinamos el
   encuadre para que se vea completo y bien centrado. ===== */
@media (max-width: 640px) {
  .nd-hero {
    height: 78vh;
    height: 78dvh; /* usa la unidad dinámica cuando el navegador la soporta */
    min-height: 520px;
  }
  .nd-hero-video {
    object-position: center 30%;
  }
  .nd-hero-content {
    padding-bottom: clamp(90px, 15vh, 130px);
  }
  .nd-hero-title {
    font-size: clamp(38px, 13vw, 76px);
  }
}

/* ===== Ticker ===== */
.nd-ticker-wrap {
  background: #F2EFE6;
  color: #1E22A6;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid rgba(30,34,166,.15);
}
.nd-ticker {
  display: flex;
  width: max-content;
  animation: ndTicker 34s linear infinite;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nd-ticker span { padding-right: 36px; }
.nd-ticker .nd-star { color: oklch(.66 .16 45); }

/* ===== About ===== */
.nd-about {
  padding: clamp(70px, 10vw, 150px) clamp(18px, 4vw, 44px);
}
.nd-about-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}
.nd-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(242,239,230,.6);
  margin-bottom: 22px;
}
.nd-eyebrow--muted { color: rgba(30,34,166,.55); margin-bottom: 0; }
.nd-about-title {
  margin: 0;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -.02em;
}
.nd-about-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: clamp(0px, 2vw, 42px);
}
.nd-about-copy p {
  margin: 0;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ===== Signup ===== */
.nd-signup {
  background: #F2EFE6;
  color: #1E22A6;
  padding: clamp(64px, 9vw, 130px) clamp(18px, 4vw, 44px);
}
.nd-signup-inner { max-width: 900px; margin: 0 auto; }
.nd-signup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #1E22A6;
}
.nd-signup-head h3 {
  margin: 0;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.02em;
}

/* Success message */
.nd-success {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
}
.nd-success-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: oklch(.6 .16 45);
  margin-bottom: 20px;
}
.nd-success-title {
  margin: 0 0 18px;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 900;
  font-size: clamp(38px, 8vw, 92px);
  line-height: .95;
  letter-spacing: -.02em;
}
.nd-success-copy {
  margin: 0 auto;
  max-width: 440px;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
}

/* Form */
.nd-form { padding-top: clamp(34px, 5vw, 56px); }
.nd-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(26px, 3.5vw, 44px) clamp(26px, 4vw, 56px);
}
.nd-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nd-field--full { grid-column: 1 / -1; }
.nd-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(30,34,166,.7);
}
.nd-required { color: oklch(.6 .16 45); }
.nd-field input[type="text"],
.nd-field input[type="email"],
.nd-field input[type="tel"] {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(30,34,166,.45);
  color: #1E22A6;
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  padding: 8px 2px;
  min-height: 46px;
  transition: border-color .15s ease;
}
.nd-field input:focus { border-bottom-color: #1E22A6; }
.nd-field-error {
  font-size: 11.5px;
  letter-spacing: .03em;
  color: oklch(.52 .18 25);
}
.nd-field-error--block { display: block; margin-top: 10px; }

.nd-consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 48px);
  cursor: pointer;
  max-width: 640px;
}
.nd-consent input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  border: 1.5px solid #1E22A6;
  background: transparent;
  cursor: pointer;
}
.nd-consent input[type="checkbox"]:checked {
  background: #1E22A6;
  box-shadow: inset 0 0 0 3px #F2EFE6;
}
.nd-consent span {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(30,34,166,.85);
}

.nd-submit {
  margin-top: clamp(30px, 4vw, 48px);
  width: 100%;
  background: #1E22A6;
  color: #F2EFE6;
  border: 0;
  padding: 22px 40px;
  min-height: 60px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.nd-submit:hover { background: #0C0E3C; }
.nd-submit:disabled { opacity: .6; cursor: not-allowed; }

.nd-form-error {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: oklch(.52 .18 25);
}

/* ===== Footer ===== */
.nd-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 34px clamp(18px, 4vw, 44px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(242,239,230,.55);
}
