/* ================== BOTÓN FLOTANTE WHATSAPP ================== */

.wa-float{
  position: fixed;
  right: clamp(12px, 2.4vw, 20px);
  bottom: calc(clamp(12px, 2.4vw, 20px) + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transform: translateZ(0);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, filter .2s ease;
}
.wa-float:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 32px rgba(0,0,0,.22);
}
.wa-float:active{
  transform: translateY(0);
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.wa-float svg{
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}
.wa-float .wa-label{
  font-weight: 800;
  letter-spacing:.2px;
  line-height:1;
  white-space: nowrap;
}
.wa-float::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow: 0 0 0 0 rgba(37,211,102,.45);
  animation: wa-pulse 2.2s ease-out infinite;
}
.wa-float{
  color: #fff !important;
  text-decoration: none !important;
}

@keyframes wa-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70%{ box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ================== ALERTAS ================== */

.alert {
  background-color: #d72454;
  color: #FFF;
  padding: 10px 12px;
  border-radius: 3px;
  margin: 10px auto;
  width: 100%;
  display: block;
  text-align: left;
}
.success {
  background-color: #3ead66;
  color: #FFF;
  padding: 10px 12px;
  border-radius: 3px;
  margin: 10px auto;
  width: 100%;
  display: block;
  text-align: left;
}

/* ================== VIDEO ================== */

.video-xl {
  width: 100%;
  max-width: 1200px;
}

/* ================== NIVELES ================== */

.niveles-photo-wrap{
  max-width:340px;
}

.niveles-rainbow{
  width:100%;
  max-width:420px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(15,23,42,.18);
  margin-left:auto;
  margin-right:auto;
}

.nivel-row{
  display:flex;
  align-items:center;
  padding:10px 18px;
}

.nivel-dot{
  width:18px;
  height:18px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  margin-right:12px;
  flex-shrink:0;
}

.nivel-label{
  color:#ffffff;
  font-weight:700;
  letter-spacing:0.03em;
  text-transform:uppercase;
  font-size:.9rem;
}

/* Colores de la paleta */
.nivel-1{ background:#E05331; }
.nivel-2{ background:#FF7F41; }
.nivel-3{ background:#F7EA49; }
.nivel-4{ background:#2DC74D; }
.nivel-5{ background:#147BD1; }
.nivel-6{ background:#753BBD; }
.nivel-7{ background:#FF78CF; }

/* Texto oscuro solo en la franja amarilla */
.nivel-3 .nivel-label{
  color:#111827;
}

/* Botón alineado con la tarjeta de niveles */
.niveles-cta-wrap{
  max-width:420px;
  margin:1.5rem auto 0;
  text-align:center;
}

/* ================== BENEFICIOS: ICONOS IZQUIERDA ================== */

#beneficios .benef-row{
  display:flex;
  align-items:center;          /* icono y texto centrados verticalmente */
  justify-content:flex-start;  /* icono a la izquierda, texto a la derecha */
  gap:18px;
  width:100%;
  max-width:420px;             /* mismo ancho para las 3 filas */
  margin:0 auto 22px;          /* centrado en la columna */
}

#beneficios .benef-icon{
  flex:0 0 90px;               /* misma caja para todos los iconos */
  height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
}

#beneficios .benef-icon img{
  display:block;
  max-width:100%;
  max-height:100%;
}

#beneficios .benef-text{
  margin:0;
  font-size:0.98rem;
  line-height:1.4;
  text-align:left;
}

/* ================== BENEFICIOS: PANEL DERECHO ================== */

.benef-panel{
  background:#D0ABD8;
  border-radius:32px;
  padding:26px 22px 26px;
  position:relative;
}

.benef-header-wrap{
  position:relative;
  margin-bottom:18px;
}

.benef-header-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 40px;
  border-radius:999px;
  background:#ffffff;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:.9rem;
  z-index:2;
  position:relative;
}

.benef-header-line{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:32px;
  width:70%;
  height:3px;
  background:#FF78CF;
  border-radius:999px;
  z-index:1;
}

.benef-cards{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.benef-card{
  background:#ffffff;
  border-radius:24px;
  padding:14px 18px;
  box-shadow:0 8px 24px rgba(15,23,42,.12);
}

.benef-title{
  font-size:0.98rem;
  font-weight:700;
  margin-bottom:3px;
}

.benef-sub{
  font-size:0.86rem;
  margin:0;
}

/* ================== SERVICIOS (SIN CARDS) ================== */

#aprendizajes .aprender-cards .col-12 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* sin fondo/blanco ni sombra; solo icono + texto */
.service-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  transition: none;
}
.service-card:hover {
  transform: none;
  box-shadow: none;
}

.service-card h5 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

/* Iconos circulares */
.service-icon-wrap {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15,23,42,.12);
  margin: 0 auto 0.5rem;
}
.service-img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 22px;
  object-fit: contain;
  display: block;
}

/* ul centrado visualmente bajo cada icono/título */
#aprendizajes .service-card ul{
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* ================== TIPOGRAFÍA + ESPACIADO GLOBAL ================== */

:root{
  --sec-space-y-mobile: 3.5rem;
  --sec-space-y-desktop: 5rem;

  --fs-body: 1rem;
  --fs-body-sm: 0.95rem;
  --fs-h1: 2.3rem;
  --fs-h2: 1.85rem;
  --fs-h3: 1.35rem;
}

/* Fondo 100% blanco + Poppins global */
html,
body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #111827;
  background:#ffffff;
}

/* Eliminar degradados de fondo globales */
.rainbow-bg,
.rainbow-fixed{
  display:none !important;
}

.custom-jakarta,
.hero-section,
.navbar,
.btn,
h1, h2, h3, h4, h5, h6,
p,
li {
  font-family: inherit;
}

/* Titulares base */
h1, .fs-120 {
  font-size: var(--fs-h1);
  font-weight: 700;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}
p,
li {
  font-size: var(--fs-body);
}
.benef-sub,
.service-card ul,
.small,
.text-muted {
  font-size: var(--fs-body-sm) !important;
}

/* Espaciado uniforme entre secciones */
section.hero-section,
section.soft-fade,
section.block-rainbow,
.py-50,
.py-60,
.py-lg-100,
.py-xxl-120 {
  padding-top: var(--sec-space-y-mobile) !important;
  padding-bottom: var(--sec-space-y-mobile) !important;
}

@media (min-width: 992px){
  section.hero-section,
  section.soft-fade,
  section.block-rainbow,
  .py-50,
  .py-60,
  .py-lg-100,
  .py-xxl-120 {
    padding-top: var(--sec-space-y-desktop) !important;
    padding-bottom: var(--sec-space-y-desktop) !important;
  }
}

/* ================== HERO PRINCIPAL ================== */

.hero-main-title {
  text-align: center;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-main-title-line {
  display: block;
  font-size: var(--fs-h1);
  font-weight: 700;
  color: #5c0a8b;
}
.hero-main-title-sub {
  display: block;
  margin-top: .15rem;
  font-size: calc(var(--fs-h1) - 0.4rem);
  font-weight: 600;
  font-style: italic;
  color: #8a2ba7;
}

/* Párrafo morado -> ahora negro */
.hero-highlight {
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 1.02rem;
  color:#111111;
  font-weight:600;
  background:none;
  -webkit-background-clip:initial;
  -webkit-text-fill-color:initial;
}

.hero-intro {
  max-width: 720px;
  margin: 0 auto .75rem;
  text-align: center;
  font-size: var(--fs-body);
}

.hero-list {
  max-width: 720px;
  margin: 0 auto 1.3rem;
  padding-left: 1.4rem;
  list-style: disc;
  list-style-position: outside;
}

/* Puntos de color */
.hero-dots-wrap {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}
.hero-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-block;
}
.hero-dot-1 { background:#e05331; }
.hero-dot-2 { background:#ff7f41; }
.hero-dot-3 { background:#f7ea49; }
.hero-dot-4 { background:#2dc74d; }
.hero-dot-5 { background:#4ea4d9; }
.hero-dot-6 { background:#147bd1; }
.hero-dot-7 { background:#753bbd; }

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* Imagen hero (por defecto sin sombra en #inicio, ver override más abajo) */
.hero-img-desktop {
  border-radius: 26px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

/* ================== RESPONSIVE ================== */

@media (max-width: 991.98px){
  h1, .fs-120 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .hero-main-title-line { font-size: 1.9rem; }
  .hero-main-title-sub { font-size: 1.5rem; }

  .hero-highlight,
  .hero-intro,
  .hero-list { font-size: 0.96rem; }

  .hero-img-desktop {
    margin-top: 1.4rem;
    max-width: 85%;
  }
}

@media (max-width:575.98px){
  .benef-panel{
    padding:22px 16px;
  }
  .benef-card{
    padding:12px 14px;
  }
  #beneficios .benef-row{
    max-width:340px;
    justify-content:flex-start;
  }
  .service-icon-wrap {
    width: 135px;
    height: 135px;
  }
  .niveles-photo-wrap{
    margin-bottom:1.5rem;
  }
}

/* ================== SERVICIOS SIN CARDS (override fuerte) ================== */

#aprendizajes .card.service-card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#aprendizajes .card.service-card.shadow-sm,
#aprendizajes .card.service-card.rounded-4{
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* =========================
   Quitar card/sombra de las imágenes grandes
   ========================= */

/* Hero principal (bebé) */
#inicio .hero-figure,
#inicio .hero-img-desktop {
  box-shadow: none !important;
  background: transparent !important;
}

/* "EDUCACIÓN ASERTIVA ES" (cuadro de 4 colores) */
#que-es .bw-img,
#que-es .bw-img-cuadro,
#que-es .bw-img-cuadro img {
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* ================================
   HERO: Imagen en móvil (centrada, sin sombra, sin recortes)
   ================================ */

#inicio .hero-figure {
  text-align: center !important;
  margin: 1rem auto !important;
}

#inicio .hero-img-desktop {
  width: 100%;
  height: auto;
  max-width: 420px;              /* ancho cómodo en móvil */
  border-radius: 22px !important; /* bordes redondos */
  object-fit: contain !important; /* NO recortes */
  box-shadow: none !important;    /* sin sombra */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* En pantallas pequeñas forzamos que la imagen aparezca justo después de los títulos */
@media (max-width: 767.98px){
  #inicio .col-lg-6:nth-child(2){
    order: 2; /* imagen nueva posición */
  }
  #inicio .col-lg-6:nth-child(1){
    order: 1; /* texto arriba */
  }
}
