:root {
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-soft: #eff6ff;
  --blue-bg: #f8fbff;
  --navy: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --success: #16a34a;
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1180px;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 84px 0; }
.light { background: var(--bg); }
.dark-surface { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: var(--white); }
.dark-surface h1, .dark-surface h2, .dark-surface h3 { color: var(--white); }
.dark-surface p, .dark-surface li, .dark-surface .muted { color: rgba(255,255,255,.84); }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.42rem 0.8rem;
  background: var(--blue-soft);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-pill);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.dark-surface .eyebrow {
  color: #93c5fd;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.lead { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.title-wrap { max-width: 820px; }
.center .title-wrap { margin-inline: auto; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.92);
}
.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand__image { width: 205px; height: auto; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.35rem;
  cursor: pointer;
}
.nav-wrap { display: flex; align-items: center; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a:not(.btn) {
  color: #475569;
  font-weight: 500;
  transition: color var(--transition);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active:not(.btn) { color: var(--blue-dark); }

.hero {
  padding: 92px 0 72px;
  background:
    radial-gradient(circle at left top, rgba(96,165,250,.18), transparent 34%),
    radial-gradient(circle at right bottom, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(180deg, var(--white) 0%, var(--blue-bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1, .hero .lead { color: #64748b; }
.hero h1 { max-width: 12ch; line-height: 1.04; }
.hero .lead { max-width: 700px; font-size: 1.1rem; }

.points {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
}
.points li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.points li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.28rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  color: var(--blue);
  border-color: var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-soft {
  background: #e0edff;
  color: #1d4ed8;
  border-color: transparent;
}
.btn-soft:hover {
  background: #dbeafe;
  color: #1d4ed8;
}
.btn-full { width: 100%; }
.dark-surface .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.dark-surface .btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
}

.card, .panel, .form-box, .stat {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card, .panel, .stat { padding: 1.5rem; }
.card, .panel { transition: transform var(--transition), box-shadow var(--transition); }
.card:hover, .panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon, .badge, .module-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.grid-2, .grid-3 { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.list, .checklist {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding: 0;
}
.list li, .checklist li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.list li::before {
  content: "•";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue-dark);
  margin-top: 0.05rem;
}
.checklist li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: rgba(22,163,74,.12);
  color: var(--success);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.form-box { padding: 1.35rem; }
.form-box__head {
  padding: 1rem 1rem 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.form-box__head p { margin-top: 0.35rem; color: var(--muted); font-size: 0.98rem; }
.form-box form {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.88rem; }

.resource-list, .channel-list, .policy-list {
  display: grid;
  gap: 0.9rem;
}
.resource-item, .channel-item, .policy-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.resource-item:last-child, .channel-item:last-child, .policy-item:last-child { border-bottom: 0; }
.resource-item a, .channel-item a {
  color: var(--blue-dark);
  font-weight: 700;
}
.resource-item small, .channel-item small, .policy-item small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #16a34a !important;
  font-weight: 700;
}
.whatsapp-link:hover { color: #15803d !important; }

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.cta-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
}
.cta-box ul {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.3rem;
  padding: 0;
}
.cta-box li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.cta-box li::before {
  content: "✓";
  color: #93c5fd;
  font-weight: 800;
}

.site-footer {
  background: #020617;
  color: rgba(255,255,255,.72);
  padding: 26px 0;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: rgba(255,255,255,.86); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero__grid, .split, .cta-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-wrap {
    width: 100%;
    display: block;
    margin-top: 0.35rem;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1rem 0 0.65rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.15rem 0; }
  .brand__image { width: 185px; }
  .hero h1 { max-width: 100%; }
  .hero { padding: 72px 0 54px; }
  .eyebrow { padding: 0.38rem 0.72rem; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .form-row, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .btn-group .btn { width: 100%; }
  .site-footer__inner { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .brand__image { width: 165px; }
  .site-header__inner { gap: 0.65rem; }
  .site-nav { gap: 0.85rem; }
}

/* Código para boton WhatsApp*/
/* ===== WhatsApp Float Premium ===== */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.28);
  z-index: 1200;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: whatsapp-float-in 0.6s ease forwards;
}

/* Hover premium */
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.35);
  background: #1ebe5d;
}

/* Click feedback */
.whatsapp-float:active {
  transform: scale(0.95);
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

/* Flecha tooltip */
.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

/* Mostrar tooltip */
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Animación de entrada */
@keyframes whatsapp-float-in {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animación sutil tipo pulso */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation:
    whatsapp-float-in 0.6s ease forwards,
    whatsapp-pulse 2.5s infinite;
}

/* Mobile ajustes */
@media (max-width: 520px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* Código para mensajes del envio del correo*/
.alert-box {
  margin: 0 1rem 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert-success {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}