/* ==========================================================================
   KG GESTIÓN INTEGRAL S.A.S. - Sistema de diseño
   --------------------------------------------------------------------------
   Los colores, sombras, degradados y tipografías son los mismos de KG Academy
   (tailwind.config.ts y src/styles/globals.css de ese proyecto). Se replican
   aquí como variables CSS para que el sitio corporativo y la plataforma se
   vean como una sola marca sin compartir dependencias: este sitio no tiene
   build ni node_modules, se publica tal cual.

   Si la marca cambia, se cambia aquí y en el otro proyecto.
   ========================================================================== */

:root {
  /* --- Azul institucional ---------------------------------------------- */
  --navy-50: #edf3f9;
  --navy-100: #d6e4f0;
  --navy-200: #a9c4dd;
  --navy-300: #7ba3c9;
  --navy-400: #3f6e9b;
  --navy-500: #1b4a73;
  --navy-600: #123c61;
  --navy-700: #0a2d4d;
  --navy-800: #07223a;
  --navy-900: #051828;

  /* --- Verde de acento -------------------------------------------------- */
  --lime-50: #f5fae6;
  --lime-100: #e9f4c8;
  --lime-200: #d4e993;
  --lime-300: #bcdd5a;
  --lime-400: #a5ce30;
  --lime-500: #8fbf16;
  --lime-600: #759f11;
  --lime-700: #5c7d0e;

  --ink: #0b1620;
  --cloud: #f6f8fb;
  --blanco: #ffffff;

  /* --- Tipografía ------------------------------------------------------- */
  --fuente: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui,
    -apple-system, sans-serif;
  --fuente-titulo: "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI",
    Inter, system-ui, sans-serif;

  /* --- Sombras ---------------------------------------------------------- */
  --sombra: 0 18px 40px -18px rgba(10, 45, 77, 0.35);
  --sombra-lg: 0 30px 70px -25px rgba(10, 45, 77, 0.45);
  --brillo: 0 0 0 4px rgba(143, 191, 22, 0.18);

  /* --- Degradados ------------------------------------------------------- */
  --grad-kg: linear-gradient(135deg, #0a2d4d 0%, #123c61 45%, #1b4a73 100%);
  --grad-lima: linear-gradient(135deg, #8fbf16 0%, #a5ce30 100%);
  --malla: radial-gradient(at 12% 18%, rgba(143, 191, 22, 0.22) 0, transparent 55%),
    radial-gradient(at 88% 8%, rgba(27, 74, 115, 0.35) 0, transparent 50%),
    radial-gradient(at 70% 92%, rgba(143, 191, 22, 0.14) 0, transparent 45%);
  --rejilla: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);

  /* --- Medidas ---------------------------------------------------------- */
  --ancho: 1200px;
  --radio: 16px;
  --radio-lg: 26px;
  --alto-cabecera: 76px;
}

/* ==========================================================================
   Reinicio
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Para que los anclajes no queden tapados por la cabecera fija. */
  scroll-padding-top: calc(var(--alto-cabecera) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-800);
  background: var(--blanco);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fuente-titulo);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--navy-700);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--lime-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Salto de accesibilidad: solo aparece al tabular. */
.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy-700);
  color: #fff;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}

.saltar:focus {
  left: 0;
}

/* ==========================================================================
   Estructura
   ========================================================================== */

.contenedor {
  width: min(100% - 44px, var(--ancho));
  margin-inline: auto;
}

.seccion {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}

.seccion--clara {
  background: var(--cloud);
}

.seccion--oscura {
  background: var(--grad-kg);
  color: #fff;
}

.seccion--oscura h2,
.seccion--oscura h3 {
  color: #fff;
}

/* ==========================================================================
   Encabezados de sección
   ========================================================================== */

.encabezado {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.encabezado--centrado {
  margin-inline: auto;
  text-align: center;
}

.marbete {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-700);
  background: var(--lime-50);
  border: 1px solid var(--lime-200);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.seccion--oscura .marbete {
  color: var(--lime-300);
  background: rgba(143, 191, 22, 0.12);
  border-color: rgba(143, 191, 22, 0.3);
}

.marbete::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-500);
}

.titulo {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.entradilla {
  margin-top: 18px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--navy-500);
}

.seccion--oscura .entradilla {
  color: rgba(255, 255, 255, 0.72);
}

/* Palabra resaltada con subrayado verde. */
.resalte {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.resalte > span {
  position: relative;
  z-index: 1;
}

.resalte::after {
  content: "";
  position: absolute;
  inset-inline: -2px;
  bottom: 0.1em;
  height: 0.34em;
  background: rgba(143, 191, 22, 0.32);
  border-radius: 4px;
  z-index: 0;
}

.seccion--oscura .resalte > span,
.hero .resalte > span {
  color: var(--lime-300);
}

/* ==========================================================================
   Botones
   ========================================================================== */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

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

.boton:active {
  transform: translateY(0);
}

.boton--lima {
  background: var(--grad-lima);
  color: var(--navy-800);
  box-shadow: var(--sombra);
}

.boton--lima:hover {
  box-shadow: var(--sombra-lg), var(--brillo);
}

.boton--marino {
  background: var(--navy-700);
  color: #fff;
  box-shadow: var(--sombra);
}

.boton--marino:hover {
  background: var(--navy-600);
}

.boton--contorno {
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
}

.boton--contorno:hover {
  border-color: var(--lime-400);
  background: rgba(143, 191, 22, 0.1);
}

.boton--fantasma {
  border: 1.5px solid var(--navy-100);
  color: var(--navy-700);
  background: #fff;
}

.boton--fantasma:hover {
  border-color: var(--lime-400);
  color: var(--lime-700);
}

.boton--sm {
  padding: 10px 20px;
  font-size: 0.86rem;
}

/* ==========================================================================
   Tarjetas
   ========================================================================== */

.tarjeta {
  background: #fff;
  border: 1px solid var(--navy-50);
  border-radius: var(--radio-lg);
  box-shadow: 0 2px 10px -6px rgba(10, 45, 77, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.tarjeta--elevable:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra);
  border-color: var(--lime-200);
}

.vidrio {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radio-lg);
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   Viñetas con marca de verificación
   ========================================================================== */

.lista-check {
  display: grid;
  gap: 11px;
}

.lista-check li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
  color: var(--navy-600);
}

.lista-check li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--lime-500)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.seccion--oscura .lista-check li {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Curvas divisorias
   --------------------------------------------------------------------------
   La curva amplia que separa el azul del blanco es la firma visual de KG:
   viene del portafolio impreso y se repite aquí para que el sitio se lea como
   la misma marca. Es decorativa, por eso queda oculta a los lectores de
   pantalla.
   ========================================================================== */

.curva {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 0;
  width: 100%;
  height: clamp(48px, 6vw, 92px);
  pointer-events: none;
}

/* ==========================================================================
   Aparición al desplazar
   ========================================================================== */

.revelar {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.revelar.visible {
  opacity: 1;
  transform: none;
}

/* Quien pida menos movimiento no ve ninguna animación de entrada. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .revelar {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
