/* ============================================================
   Sotavent — landing (staff augmentation con IA)
   Sistema de diseño: crema #f3ece0 · marino #1e34c8 · coral #ff5a33
   Tipografía: Space Grotesk (body) · Source Serif 4 italic (display)
              · Space Mono (metadata)
   Sin frameworks, sin build step. El layout vive inline en index.html;
   este archivo tiene el reset, las animaciones y los estados (hover /
   focus / reveal) que el HTML inline no puede expresar.
   ============================================================ */

*        { box-sizing: border-box; }
html     { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f3ece0;
  color: #12183a;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #ff5a33; color: #12183a; }
input, textarea, button { font-family: inherit; }

/* El atributo hidden debe ganarle al display inline de los bloques
   (form / estado "Recibido" / paneles del acordeón). */
[hidden] { display: none !important; }

/* Énfasis editorial — serif itálica. El color y (en el hero) el subrayado
   se aplican por contexto. */
em {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 500;
  font-synthesis: none;
}
.hero em {
  color: #f3ece0;
  text-decoration: underline;
  text-decoration-color: #ff5a33;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Grano / textura sutil sobre toda la página */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.page { position: relative; z-index: 1; overflow-x: hidden; }

/* ---- Empleados: chips de tareas dentro del acordeón ---- */
.task {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #12183a;
  border: 1.5px solid #12183a;
  border-radius: 2px;
  padding: 8px 13px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
}
.task::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: #ff5a33;
  border-radius: 50%;
  display: inline-block;
}

/* ---- Potencial liberado: tarjetas ---- */
.slide-card {
  border: 2px solid #12183a;
  background: #f3ece0;
  padding: 30px 30px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
.slide-card:hover {
  transform: translateY(-5px);
  box-shadow: 9px 9px 0 #ff5a33;
}

/* ---- Formulario de inmersión ---- */
.field {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(18, 24, 58, 0.3);
  color: #12183a;
  font-size: 18px;
  padding: 11px 0;
  outline: none;
  transition: border-bottom-color .2s ease;
}
.field:focus { border-bottom-color: #ff5a33; }

/* ---- Botones (el fondo base va inline; acá solo el hover) ---- */
.btn-coral:hover  { background: #ff734f !important; }
.btn-marino:hover { background: #2842e0 !important; }
.btn-marino:disabled { opacity: 0.6; cursor: default; }

/* ============================================================
   Animaciones
   ============================================================ */
@keyframes heroLine {
  from { opacity: 0; transform: translateY(26px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes heroFade {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes caretBlink {
  0%, 45%  { opacity: 1; }
  55%, 100% { opacity: 0; }
}
@keyframes livePulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.65); }
}
@keyframes sotaUp {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal al hacer scroll — sólo donde el navegador soporta scroll-driven
   animations. Sin soporte, el contenido queda visible (sin salto). */
@supports (animation-timeline: view()) {
  .reveal {
    animation: sotaUp linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

/* Respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, .reveal {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Ajustes responsive puntuales
   ============================================================ */
@media (max-width: 600px) {
  /* Aire lateral más ajustado en pantallas chicas */
  .hero > div { padding-left: 22px !important; padding-right: 22px !important; }
}
