/* ============================================================
  VARIABLES DE MARCA
   ============================================================ */
:root {
  --midnight-deep: #001226;
  --midnight-mirage: #001F3F;
  --chartreuse: #DBE64C;      /* SOLO isotipo + palabra RESULTS */
  --white: #F4F4EE;
  --cobalt: #1E488F;          /* accion */
  --cobalt-light: #3564B0;
  --line: rgba(244, 244, 238, 0.14); /* bordes suaves */
}

* { margin: 0; padding: 0; box-sizing: border-box; } 
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--midnight-deep);
  color: var(--white);
  font-family: 'Montserrat', system-ui, sans-serif;
  min-height: 100vh;
}

/* ============================================================
  FONDO: grilla tecnica sutil (blueprint) que deriva lento.
  Perillas: el 0.04 = intensidad | el 48px = tamano de celda
            el 55s = velocidad de la deriva.
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(244,244,238,0.04) 0, rgba(244,244,238,0.04) 1px,
      transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg,
      rgba(244,244,238,0.04) 0, rgba(244,244,238,0.04) 1px,
      transparent 1px, transparent 48px);
  animation: gridDrift 55s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

/* El contenido va por encima de la grilla */
.hero, .section, footer { position: relative; z-index: 1; }

/* ============================================================
  BARRA SUPERIOR FIJA
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  pointer-events: none;
}

/* Marca mini (izquierda): escondida hasta scrollear */
.brandmini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
}
.js.scrolled .brandmini { opacity: 1; transform: none; }
.brandmini .mini-svg { height: 26px; width: auto; }
.mini-line { fill: none; stroke: var(--chartreuse); stroke-width: 6px;
            stroke-linecap: round; stroke-linejoin: round; }
.brandmini .mini-word {
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; line-height: 1;
}
.brandmini .mini-word .s { color: var(--white); }
.brandmini .mini-word .r { color: var(--chartreuse); }

/* "(proximamente)" derecha: siempre visible */
.soon {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--white);
  opacity: 0.65;
  pointer-events: auto;
}

/* ============================================================
  HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  transform: translateY(var(--shift, 0px));
  transition: transform 0.7s ease;
}
.js.drawn .wrap { transform: translateY(0); }

.isotipo { height: clamp(190px, 38vh, 320px); width: auto; }
.iso-line {
  fill: none; stroke: var(--chartreuse); stroke-width: 5px;
  stroke-miterlimit: 10; stroke-linecap: round; stroke-linejoin: round;
}

.wordmark { font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.75rem); line-height: 1; letter-spacing: 0.02em; }
.wordmark .secure  { color: var(--white); display: block; }
.wordmark .results { color: var(--chartreuse); display: block; }

.slogan {
  font-weight: 300; font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--white); opacity: 0.85;
}

/* Flechita de "segui bajando" */
.scrollhint {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 1.4rem; color: var(--white); opacity: 0.5;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================
  SECCIONES DE CONTENIDO
   ============================================================ */
.section { padding: clamp(4rem, 12vh, 8rem) 0; }
.container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.manifiesto h1 {
  font-weight: 600; font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.18; color: var(--white);
  text-align: center;
}
.manifiesto p {
  font-weight: 300; font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.65; color: var(--white); opacity: 0.8;
  max-width: 62ch; margin: 1.5rem auto 0;
  text-align: center;
}

/* ============================================================
  FORM DE CONTACTO
   ============================================================ */
.contacto { scroll-margin-top: 80px; }
.contacto h2 { font-weight: 600; font-size: clamp(1.3rem, 4vw, 1.9rem); color: var(--white); text-align: center; }
.contacto .lead { font-weight: 300; opacity: 0.75; margin-top: 0.6rem; margin-bottom: 2rem; text-align: center; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }
.field input, .field textarea {
  font-family: inherit; font-size: 0.95rem;
  background: var(--midnight-mirage); color: var(--white);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.8rem 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,244,238,0.35); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cobalt-light);
  box-shadow: 0 0 0 3px rgba(53, 100, 176, 0.25);
}

.submit-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.btn {
  background: var(--cobalt); color: var(--white); border: none;
  font-family: inherit; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.9rem 2rem; border-radius: 8px; cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--cobalt-light); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.form-status { font-size: 0.85rem; opacity: 0.7; }

/* ============================================================
  CARTEL DE GRACIAS (aparece al enviar bien; reemplaza al form)
   ============================================================ */
.gracias {
  text-align: center;
  padding: 2rem 0;
}
.gracias h2 {
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--white);
}
.gracias p {
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--white);
  opacity: 0.8;
  margin-top: 0.6rem;
}

/* ============================================================
  PIE DE PAGINA
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: 2.5rem 1.5rem; text-align: center; }
.pie-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: center; margin-bottom: 1.2rem; }
.pie-links a, .pie-links span {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--white); opacity: 0.7; text-decoration: none; transition: opacity 0.2s ease;
}
.pie-links a:hover { opacity: 1; }
.pie-copy { font-size: 0.78rem; font-weight: 300; opacity: 0.5; }

/* ============================================================
  REVEAL (mecanismo unico: se agrega .in cuando entra en pantalla)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
  RESPONSIVE
   ============================================================ */
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
  ACCESIBILIDAD: menos movimiento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wrap { transition: none; }
  .scrollhint { animation: none; }
  body::before { animation: none; }
}