/* ==========================================================================
   Perú Sano SRL - Estilos Modulares (Prototipo Oficial & Embudo CRO)
   ========================================================================== */

:root {
  --color-crema: #FAF8F2;
  --color-crema-alt: #F2EDE0;
  --color-verde: #15803D;
  --color-verde-oscuro: #14532D;
  --color-rojo: #DC2626;
  --color-rojo-oscuro: #B91C1C;
  --color-tinta: #111827;
}

@layer base {
  html {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
    background-color: var(--color-crema);
    color: var(--color-tinta);
    -webkit-font-smoothing: antialiased;
  }
}

/* Indicador de estado operativo activo (Verde) */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

/* Indicador de urgencia en garita / control sanitario (Rojo) */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.animate-pulse-green {
  animation: pulse-green 2s infinite;
}

.animate-pulse-red {
  animation: pulse-red 2s infinite;
}

/* Transición suave entre pasos del embudo */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.funnel-step-enter {
  animation: fadeSlideIn 0.25s ease-out forwards;
}

/* Tarjetas de selección de vehículo (Paso 1) */
.vehicle-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.vehicle-card:hover {
  transform: translateY(-2px);
}

.vehicle-card.is-selected {
  border-color: var(--color-verde);
  background-color: #F0FDF4;
  box-shadow: 0 8px 20px -6px rgba(21, 128, 61, 0.22);
}

/* Input de placa estilo vehicular */
.input-placa {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Subrayado ondulado verde del título principal */
.wavy-underline {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #16A34A;
  text-underline-offset: 6px;
  text-decoration-thickness: 2.5px;
}

/* Cinta diagonal HOMOLOGADO */
.ribbon-homologado {
  position: absolute;
  top: 18px;
  right: -34px;
  width: 130px;
  transform: rotate(45deg);
  background-color: #DC2626;
  color: #FFFFFF;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
