/**
* Template Name: Logis
* Updated: Sep 18 2023 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/logis-bootstrap-logistics-website-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Variables y configuraciones generales
--------------------------------------------------------------*/
:root {
  /* Fuentes */
  --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-primary: "Inter", sans-serif;
  --font-secondary: "Poppins", sans-serif;
  
  /* Colores */
  --color-default: #0a0d13;
  --color-primary: #0d42ff;
  --color-secondary: #0e1d34;
  
  /* Scroll suave */
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Estilos generales
--------------------------------------------------------------*/
body {
  font-family: var(--font-default);
  color: var(--color-default);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: #406aff;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
}

/*--------------------------------------------------------------
# Header y navegación
--------------------------------------------------------------*/
.header {
  transition: all 0.5s;
  z-index: 997;
  padding: 30px 0;
}

.header.sticked {
  background: rgba(14, 29, 52, 0.9);
  padding: 15px 0;
  box-shadow: 0px 2px 20px rgba(14, 29, 52, 0.1);
}

body.pagina-articulo .header {
  background: #211647;
  padding: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

body.pagina-articulo .header.sticked {
  background: #211647;
  padding: 16px 0;
}

.header .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-primary);
}

/* Contenedor de íconos móviles */
.mobile-nav-icons {
  display: none;
}

/* Navegación desktop */
@media (min-width: 1280px) {
  .navbar {
    padding: 0;
  }

  .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navbar li {
    position: relative;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 30px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    transition: 0.3s;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover>a {
    color: #fff;
  }

  .navbar .get-a-quote,
  .navbar .get-a-quote:focus {
    background: var(--color-primary);
    padding: 8px 20px;
    margin-left: 30px;
    border-radius: 4px;
    color: #fff;
  }

  .navbar .get-a-quote:hover,
  .navbar .get-a-quote:focus:hover {
    color: #fff;
    background: #2756ff;
  }

  /* Enlaces de texto simple (Inicio, Blog, Habla con el Ing): sin fondo ni borde */
  .navbar .nav-link-plain,
  .navbar .nav-link-plain:focus {
    background: none;
    padding: 10px 0 10px 30px;
    margin-left: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.85);
  }

  .navbar .nav-link-plain:hover,
  .navbar .nav-link-plain:focus:hover {
    background: none;
    color: #fff;
  }

  /* Botón sólido (Descargar Certificado, Ingresar): mismas acciones destacadas del menú */
  .navbar .nav-btn-solid,
  .navbar .nav-btn-solid:focus {
    background: #ffffff;
    color: #5a3fd9;
    padding: 9px 18px;
    margin-left: 15px;
    border-radius: 8px;
    font-weight: 500;
    justify-content: center;
    gap: 6px;
  }

  .navbar .nav-btn-solid:hover,
  .navbar .nav-btn-solid:focus:hover {
    background: #f1f0fe;
    color: #5a3fd9;
  }

  .navbar .nav-btn-solid i {
    margin-left: 0;
  }

  .navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 14px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
    border-radius: 4px;
  }

  .navbar .dropdown ul li {
    min-width: 200px;
  }

  .navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    font-weight: 400;
    color: var(--color-secondary);
  }

  .navbar .dropdown ul a i {
    font-size: 12px;
  }

  .navbar .dropdown ul a:hover,
  .navbar .dropdown ul .active:hover,
  .navbar .dropdown ul li:hover>a {
    color: var(--color-primary);
  }

  .navbar .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
  }

  .navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }
}

/*--------------------------------------------------------------
# Navegación móvil - CORREGIDA
--------------------------------------------------------------*/
@media (max-width: 1279px) {
  /* Mostrar contenedor de íconos móviles */
  .mobile-nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
  }
  
  /* Estilos base del navbar móvil */
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%; /* Cambiado: era max-width: 400px */
    max-width: 320px; /* Máximo para tablets */
    bottom: 0;
    transition: 0.3s;
    z-index: 9999;
  }
  
  /* Contenido del menú */
  .navbar ul {
    position: absolute;
    inset: 0;
    padding: 80px 20px 30px 20px; /* Más padding arriba para la X */
    margin: 0;
    background: rgba(14, 29, 52, 0.98); /* Más opaco */
    backdrop-filter: blur(10px); /* Efecto blur */
    overflow-y: auto;
    transition: 0.3s;
    z-index: 10000;
    width: 100%;
  }
  
  /* Enlaces */
  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar a:last-child {
    border-bottom: none;
  }
  
  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 8px;
  }
  
  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover>a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  /* Botón especial (WhatsApp) */
  .navbar .get-a-quote,
  .navbar .get-a-quote:focus {
    background: var(--color-primary);
    padding: 12px 20px;
    border-radius: 6px;
    margin: 10px 0;
    color: #fff;
    text-align: center;
    display: block;
    border: none;
  }
  
  .navbar .get-a-quote:hover,
  .navbar .get-a-quote:focus:hover {
    color: #fff;
    background: rgba(13, 66, 255, 0.9);
  }

  /* Enlace de texto simple (Inicio, Blog, Habla con el Ing) */
  .navbar .nav-link-plain,
  .navbar .nav-link-plain:focus {
    color: rgba(255, 255, 255, 0.85);
  }

  /* Botón sólido (Descargar Certificado, Ingresar): mismas acciones destacadas del menú */
  .navbar .nav-btn-solid,
  .navbar .nav-btn-solid:focus {
    background: #ffffff;
    color: #5a3fd9;
    padding: 9px 18px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
  }

  .navbar .nav-btn-solid:hover,
  .navbar .nav-btn-solid:focus:hover {
    color: #5a3fd9;
    background: #f1f0fe;
  }

  .navbar .nav-btn-solid i {
    margin-left: 0;
  }

  /* Íconos del menú móvil */
  .mobile-nav-toggle {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    background: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 10001;
    position: relative;
  }
  
  .mobile-nav-show {
    display: flex !important;
  }
  
  .mobile-nav-hide {
    display: none !important;
    position: fixed;
    right: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10002;
  }
  
  /* Cuando el menú está activo */
  .mobile-nav-active {
    overflow: hidden;
  }
  
  .mobile-nav-active .navbar {
    right: 0;
  }
  
  .mobile-nav-active .mobile-nav-show {
    display: none !important;
  }
  
  .mobile-nav-active .mobile-nav-hide {
    display: flex !important;
  }
  
  .mobile-nav-active .navbar:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    backdrop-filter: blur(2px);
  }
  
  /* Dropdowns en móvil */
  .navbar .dropdown ul,
  .navbar .dropdown .dropdown ul {
    position: static;
    display: none;
    padding: 10px 0;
    margin: 10px 20px;
    transition: all 0.5s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
  }
  
  .navbar .dropdown>.dropdown-active,
  .navbar .dropdown .dropdown>.dropdown-active {
    display: block;
  }
  
  /* Mejorar el scroll en móvil */
  .navbar ul::-webkit-scrollbar {
    width: 6px;
  }
  
  .navbar ul::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .navbar ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }
}

/* Va despues de ambos bloques .navbar .nav-btn-solid (desktop >=1280px y
   mobile <=1279px) para ganar la cascada por orden ya que comparten
   especificidad (dos clases) -- si se declara antes, el ultimo
   .nav-btn-solid del archivo la vuelve a pisar. */
.navbar .nav-btn-accent,
.navbar .nav-btn-accent:focus {
  background: #f97316;
  color: #fff;
}

.navbar .nav-btn-accent:hover,
.navbar .nav-btn-accent:focus:hover {
  background: #ea6a0c;
  color: #fff;
}

/*--------------------------------------------------------------
# Responsive adicional para pantallas muy pequeñas
--------------------------------------------------------------*/
/* Para pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 480px) {
  .navbar {
    max-width: 280px; /* Aún más pequeño para móviles */
  }
}

@media (max-width: 375px) {
  .navbar {
    max-width: 260px; /* Aún más pequeño */
  }
  
  .navbar ul {
    padding: 70px 15px 25px 15px;
  }
  
  .navbar a,
  .navbar a:focus {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .mobile-nav-hide {
    right: 15px;
    top: 15px;
  }
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 50vh;
  background: linear-gradient(90deg, 
    #2d1b69 0%,
    #3d2489 25%,
    #4d2ca9 50%,
    #5d34c9 75%,
    #6d3ce9 100%
  );
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 120px 0 60px 0;
  color: rgba(255, 255, 255, 0.8);
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.hero h2 {
  margin-bottom: 20px;
  padding: 0;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
}

.hero p {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 40px;
}

.hero form {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

.hero form .form-control {
  padding: 18px 20px;
  border: none;
  margin-right: 10px;
  border: none !important;
  background: none !important;
}

.hero form .form-control:hover,
.hero form .form-control:focus {
  outline: none;
  box-shadow: none;
}

.hero form .btn-primary {
  background-color: var(--color-primary);
  padding: 15px 30px;
}

.hero form .btn-primary:hover {
  background-color: #2756ff;
}

.hero .stats-item {
  padding: 30px;
  width: 100%;
}

.hero .stats-item span {
  font-size: 32px;
  display: block;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 15px;
  position: relative;
}

.hero .stats-item span:after {
  content: "";
  position: absolute;
  display: block;
  width: 20px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.hero .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
}

/* Hero compacto */
.row.gy-4.d-flex.justify-content-between.align-items-stretch {
  align-items: stretch;
  min-height: 450px;
}

.col-lg-6.order-2.order-lg-1.d-flex.flex-column.justify-content-center {
  height: 100%;
  justify-content: center;
}

.hero-header {
  max-width: 90%;
}

.logo-compact {
  flex-shrink: 0;
}

.compact-logo {
  height: 60px;
  width: auto;
  filter: 
    brightness(0)
    invert(1)
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.compact-logo:hover {
  transform: scale(1.05);
  filter: 
    brightness(0)
    invert(1)
    drop-shadow(0 3px 6px rgba(255, 255, 255, 0.4));
}

.compact-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  font-family: var(--font-primary);
}

.highlight-main {
  background: linear-gradient(90deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.subtitle {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 2px;
}

.key-benefit {
  display: flex;
  align-items: center;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  border-left: 3px solid #FFD700;
  margin-top: 1rem;
}

.benefit-text {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
}

.compact-cta {
  max-width: 350px;
}

.cta-mini {
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
  transition: transform 0.3s ease;
}

.cta-mini:hover {
  transform: translateY(-3px);
}

.cta-info {
  flex: 1;
}

.cta-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin-top: 2px;
}

.whatsapp-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon i {
  color: white;
}

.btn-whatsapp {
  background: #FFFFFF;
  color: #FF6B00;
  border: none;
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-whatsapp:hover {
  background: #FFD700;
  color: #2d1b69;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mini-stats {
  max-width: 350px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.mini-stat:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 215, 0, 0.3);
}

.mini-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFD700;
  line-height: 1;
  margin-bottom: 2px;
  font-family: var(--font-primary);
}

.mini-label {
  font-size: 0.65rem;
  color: #FFFFFF;
  opacity: 0.9;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.hero-footer {
  max-width: 350px;
}

.footer-text {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border-left: 2px solid rgba(255, 215, 0, 0.3);
}

.footer-text i {
  color: #FFD700;
  font-size: 0.8rem;
}

/* Video Hero */
.video-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  background: #000;
  height: 400px;
  width: auto;
  aspect-ratio: 9 / 16;
  display: block;
}

.video-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(90deg, #FF0000, #FF4500);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.video-badge i {
  font-size: 0.9rem;
}

.video-embed {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, 
    rgba(45, 27, 105, 0.9) 0%, 
    rgba(77, 44, 169, 0.9) 100%
  );
  color: white;
  font-size: 0.85rem;
  border-top: 2px solid #FFD700;
  display: flex;
  align-items: center;
  line-height: 1.3;
  padding: 10px 15px;
  z-index: 5;
}

.video-caption i {
  color: #FFD700;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* Responsive Hero */
@media (max-width: 1199px) {
  .hero {
    padding: 90px 0 50px 0;
    min-height: calc(100vh - 90px);
  }
  
  .compact-title {
    font-size: 1.7rem;
  }
  
  .compact-logo {
    height: 55px;
  }

  .video-wrapper {
    height: 380px;
    width: auto;
  }

}

@media (max-width: 992px) {
  .hero {
    padding: 80px 0 40px 0;
    min-height: auto;
  }

  .video-wrapper {
    height: 350px;
    width: auto;
  }

  .hero-header {
    max-width: 100%;
    text-align: center;
  }
  
  .d-flex.align-items-center.mb-3 {
    justify-content: center;
  }
  
  .key-benefit {
    justify-content: center;
    text-align: center;
  }
  
  .compact-cta,
  .mini-stats,
  .hero-footer {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 0 30px 0;
  }
  
  .compact-title {
    font-size: 1.5rem;
  }
  
  .compact-logo {
    height: 45px;
  }

  .video-wrapper {
    height: 300px;
    width: auto;
  }

}

@media (max-width: 576px) {
  .hero {
    padding: 60px 0 20px 0;
  }

  .compact-title {
    font-size: 1.3rem;
  }

  .compact-logo {
    height: 35px;
  }

  .video-wrapper {
    height: 250px;
    width: auto;
  }

}

/*--------------------------------------------------------------
# Niveles Captación Section - banner de acceso a Niveles Gratuitos
--------------------------------------------------------------*/
.niveles-captacion {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background: linear-gradient(115deg, #3d2a63 0%, #5e3080 40%, #7a3568 75%, #8a4550 100%);
}

/* Formas decorativas flotando sobre el fondo, ocupando el ancho completo del viewport */
.captacion-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.captacion-shape {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.captacion-shape-circle-left {
  width: 260px;
  height: 260px;
  top: -90px;
  left: -80px;
  background: rgba(255, 255, 255, .06);
}

.captacion-shape-circle-right {
  width: 220px;
  height: 220px;
  bottom: -80px;
  right: -60px;
  background: rgba(255, 140, 0, .1);
}

.captacion-shape-ring {
  width: 110px;
  height: 110px;
  top: 24px;
  right: 6%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .12);
}

.captacion-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.captacion-glow-dorado {
  width: 220px;
  height: 220px;
  top: -60px;
  left: 8%;
  background: rgba(255, 214, 10, .12);
}

.captacion-glow-celeste {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: 10%;
  background: rgba(56, 189, 248, .15);
}

.captacion-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .captacion-shape-circle-left,
  .captacion-shape-circle-right,
  .captacion-shape-ring {
    display: none;
  }
}

.captacion-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0ea5e9;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.captacion-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbf7d0;
  display: inline-block;
}

.captacion-titulo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.captacion-subtitulo {
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  margin: 0 0 10px 0;
}

.captacion-seo {
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.captacion-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.captacion-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: .78rem;
  font-weight: 600;
}

.captacion-chip-verde { background: rgba(34, 197, 94, .95); }
.captacion-chip-azul { background: rgba(14, 165, 233, .95); }
.captacion-chip-mostaza { background: rgba(217, 164, 6, .95); }

.captacion-cta {
  display: inline-block;
  background: linear-gradient(90deg, #ff8a3d, #e63946);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 26px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(230, 57, 70, .35);
  transition: transform .2s ease;
}

.captacion-cta:hover {
  transform: translateY(-2px);
  color: #fff;
}

/*--------------------------------------------------------------
# Mini Cursos Section - TARJETAS PEQUEÑAS 3x2 EN MÓVIL
--------------------------------------------------------------*/
.mini-cursos {
  padding: 20px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(45, 27, 105, 0.05);
}

/* Header */
.mini-cursos .text-center.mb-3 {
  margin-bottom: 15px !important;
}

.mini-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.2);
}

.mini-cursos h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d1b69;
  margin: 5px 0 2px 0;
}

.mini-subtitle {
  color: #666;
  font-size: 0.7rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* GRID: 3 tarjetas por fila en móvil */
.mini-cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Tarjetas compactas */
.mini-card {
  background: white;
  border-radius: 8px;
  padding: 10px 8px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 130px;
  position: relative;
  overflow: hidden;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Número en esquina */
.mini-card-number {
  position: absolute;
  top: 4px;
  left: 42%;
  font-size: 0.6rem;
  font-weight: 900;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Icono */
.mini-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin: 15px 0 5px 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Título pequeño */
.mini-card h5 {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2d1b69;
  margin: 0 0 5px 0;
  line-height: 1.1;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 26px;
  max-width: 100%;
}

/* Metadatos */
.mini-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 30px; /* Asegura altura mínima */
  margin-top: auto;
}


.mini-time {
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}

.mini-access {
  color: white;
  font-weight: 700;
  background: #4d2ca9;
  padding: 3px 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.mini-card:hover .mini-access {
  background: #FF6B00;
}

/* Colores por curso */
.curso-tipos {
  background: linear-gradient(135deg, #E8EAF6 0%, #C5CAE9 100%);
  border-color: rgba(63, 81, 181, 0.2);
}

.curso-tipos .mini-icon { color: #3F51B5; }
.curso-tipos .mini-card-number { background: rgba(63, 81, 181, 0.9); }

.curso-electricidad {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border-color: rgba(255, 107, 0, 0.2);
}

.curso-electricidad .mini-icon { color: #FF6B00; }
.curso-electricidad .mini-card-number { background: rgba(255, 107, 0, 0.9); }

.curso-mediciones {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-color: rgba(33, 150, 243, 0.2);
}

.curso-mediciones .mini-icon { color: #2196F3; }
.curso-mediciones .mini-card-number { background: rgba(33, 150, 243, 0.9); }

.curso-paneles {
  background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%);
  border-color: rgba(255, 193, 7, 0.2);
}

.curso-paneles .mini-icon { color: #FFC107; }
.curso-paneles .mini-card-number { background: rgba(255, 193, 7, 0.9); }

.curso-diseno {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border-color: rgba(76, 175, 80, 0.2);
}

.curso-diseno .mini-icon { color: #4CAF50; }
.curso-diseno .mini-card-number { background: rgba(76, 175, 80, 0.9); }

.curso-equipos {
  background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
  border-color: rgba(156, 39, 176, 0.2);
}

.curso-equipos .mini-icon { color: #9C27B0; }
.curso-equipos .mini-card-number { background: rgba(156, 39, 176, 0.9); }

.curso-practicas {
  background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
  border-color: rgba(0, 188, 212, 0.2);
}

.curso-practicas .mini-icon { color: #00BCD4; }
.curso-practicas .mini-card-number { background: rgba(0, 188, 212, 0.9); }

/* RESPONSIVE */
/* Desktop: 7 tarjetas en fila */
@media (min-width: 768px) {
  .mini-cursos-grid {
    grid-template-columns: repeat(7, 1fr);
    max-width: 1050px;
    gap: 10px;
    padding: 0 15px;
  }
  
  .mini-card {
    height: 140px;
    padding: 12px 10px;
  }
  
  .mini-icon {
    font-size: 1.6rem;
    height: 35px;
    margin: 20px 0 8px 0;
  }
  
  .mini-card h5 {
    font-size: 0.7rem;
  }
  
  .mini-meta {
    font-size: 0.65rem;
  }
  
  .mini-access {
    padding: 4px 10px;
  }
}

/* Tablet: 3 tarjetas por fila */
@media (min-width: 576px) and (max-width: 767px) {
  .mini-cursos-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 500px;
    gap: 10px;
  }
}

/* Móvil pequeño: ajustar tamaño */
@media (max-width: 575px) {
  .mini-cursos-grid {
    gap: 6px;
    padding: 0 8px;
  }
  
  .mini-card {
    height: 125px;
    padding: 8px 6px;
  }
  
  .mini-icon {
    font-size: 1.2rem;
    height: 25px;
    margin: 12px 0 4px 0;
  }
  
  .mini-card h5 {
    font-size: 0.6rem;
    min-height: 24px;
  }
  
  .mini-card-number {
    width: 16px;
    height: 16px;
    font-size: 0.55rem;
  }
  
  .mini-meta {
    font-size: 0.55rem;
  }
  
  .mini-access {
    padding: 2px 6px;
  }
}

/*--------------------------------------------------------------
# Laboratorios Modal Section
--------------------------------------------------------------*/
.laboratorios-modal {
  padding: 70px 0;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  position: relative;
}

.laboratorios-modal:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.3), transparent);
}

.lab-info-modern {
  background: white;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.lab-header-modern {
  margin-bottom: 30px;
}

.lab-badge-modern {
  display: inline-block;
  background: linear-gradient(90deg, #2d1b69, #4d2ca9);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.lab-info-modern h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.2;
}

.highlight-modern {
  background: linear-gradient(90deg, #FF6B00, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lab-sub-modern {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0;
}

.lab-list-modern {
  margin-bottom: 25px;
}

.lab-item-modern {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.lab-item-modern:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.lab-icon-modern {
  font-size: 1.3rem;
  margin-right: 15px;
  width: 45px;
  height: 45px;
  background: rgba(255, 107, 0, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lab-item-modern h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.lab-item-modern p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Grid de videos */
.videos-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.video-tile {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.video-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tile-thumbnail {
  position: relative;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
}

.tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  background: rgba(255, 107, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.video-tile:hover .tile-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #FF6B00;
}

.tile-number {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

.tile-title {
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d1b69;
  text-align: center;
  background: white;
}

/* Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  overflow: hidden;
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  background: linear-gradient(90deg, #2d1b69, #4d2ca9);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #FFD700;
}

.modal-body {
  padding: 0;
}

.modal-body .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.modal-body .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Laboratorios */
@media (max-width: 992px) {
  .laboratorios-modal {
    padding: 50px 0;
  }

  .lab-info-modern {
    padding-right: 0;
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .lab-item-modern {
    flex-direction: column;
    text-align: center;
  }

  .lab-icon-modern {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .videos-grid-modal {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/*--------------------------------------------------------------
# Medios Compact Section
--------------------------------------------------------------*/
.medios-compact {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.medios-badge {
  display: inline-block;
  background: linear-gradient(90deg, #FF6B00, #FF8C00);
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(255, 107, 0, 0.2);
}

.medios-sub {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.medios-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.medio-logo {
  width: 120px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  text-align: center;
}

.medio-logo:hover {
  transform: translateY(-5px);
}

.logo-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 3px solid white;
  transition: all 0.3s ease;
}

.medio-logo:hover .logo-img {
  border-color: #FF6B00;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
}

.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-top: 5px;
}

/* Responsive Medios */
@media (max-width: 768px) {
  .medios-logos {
    gap: 8px;
  }
  
  .medio-logo {
    width: 90px;
  }
  
  .logo-img {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 576px) {
  .medios-compact {
    padding: 30px 0;
  }
  
  .medios-logos {
    gap: 6px;
  }
  
  .medio-logo {
    width: 80px;
  }
  
  .logo-img {
    width: 60px;
    height: 60px;
  }
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.faq {
  padding-top: 80px;
}

.faq .accordion-item {
  border: 0;
  margin-bottom: 10px;
}

.faq .accordion-collapse {
  border: 0;
}

.faq .accordion-button {
  padding: 15px 30px 20px 60px;
  font-weight: 600;
  border: 0;
  font-size: 18px;
  color: var(--color-default);
  text-align: left;
  background: rgba(14, 29, 52, 0.03);
  border-radius: 5px;
}

.faq .accordion-button:focus {
  box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  border-bottom: 0;
  box-shadow: none;
}

.faq .question-icon {
  position: absolute;
  top: 14px;
  left: 25px;
  font-size: 20px;
  color: var(--color-primary);
}

.faq .accordion-button:after {
  position: absolute;
  right: 15px;
  top: 15px;
}

.faq .accordion-body {
  padding: 0 30px 25px 60px;
  border: 0;
  background: rgba(14, 29, 52, 0.03);
  border-radius: 5px;
}

/*--------------------------------------------------------------
# FAQ Section - Modern (estilo Bogotá, usado por includes/preguntas-frecuentes.php)
--------------------------------------------------------------*/
.training-header-ultra {
  text-align: center;
  margin-bottom: 30px;
}

.training-badge-ultra {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #5a3fd9;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.training-title-ultra {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin: 0 0 5px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.faq.faq-modern {
  padding-top: 36px;
  padding-bottom: 40px;
  background: #ffffff;
}

.faq-modern .training-header-ultra {
  margin-bottom: 24px;
}

.faq-titulo-oscuro {
  color: #1e293b !important;
  text-shadow: none !important;
}

.faq-modern .accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-modern .accordion-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  background: #f8f7fd;
  border: none;
  transition: background 0.15s ease;
}

.faq-modern .accordion-button:not(.collapsed) {
  color: #5a3fd9;
  background: #f0ecfd;
  box-shadow: none;
}

.faq-modern .accordion-button:focus {
  box-shadow: none;
}

.faq-modern .faq-icono-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a3fd9 0%, #7b61ff 100%);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-modern .accordion-button:after {
  margin-left: auto;
  flex-shrink: 0;
}

.faq-modern .accordion-body {
  padding: 4px 18px 16px 56px;
  background: #f8f7fd;
  border: none;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #475569;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  padding: 24px 0;
  background: #202124;
  position: relative;
  border-top: 4px solid #4285F4;
}

.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.testimonials .section-header {
  margin-bottom: 20px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
  color: #fff;
}

.testimonials .testimonial-item .testimonial-img {
  width: 70px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.15);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 6px 0 2px 0;
  color: #fff;
}

.testimonials .testimonial-item h4 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 6px 0;
}

.testimonials .testimonial-item .stars {
  margin-bottom: 8px;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  font-size: 0.82rem;
  max-width: 600px;
  margin: 0 auto 8px auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 0.5;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #fff;
  opacity: 1;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  font-size: 14px;
  background-color: var(--color-secondary);
  padding: 30px 0;
  color: white;
}

.footer .footer-info .logo {
  line-height: 0;
  margin-bottom: 15px;
}

.footer .footer-info h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}

.footer .footer-info .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-info .logo span {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  font-family: var(--font-primary);
}

.footer .footer-info p {
  font-size: 14px;
  font-family: var(--font-primary);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: #fff;
  border-color: #fff;
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

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

.footer .footer-links ul i {
  padding-right: 2px;
  color: rgba(13, 66, 255, 0.8);
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.6);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: #fff;
}

.footer .footer-contact p {
  line-height: 26px;
}

.footer .copyright {
  text-align: center;
}

.footer .credits {
  padding-top: 4px;
  text-align: center;
  font-size: 13px;
}

.footer .credits a {
  color: #fff;
}

/*--------------------------------------------------------------
# Utilidades y componentes adicionales
--------------------------------------------------------------*/

/* Scroll top button */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: rgba(13, 66, 255, 0.8);
  color: #fff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* Sections header */
.section-header {
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 0;
  color: #001973;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-header h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-header span {
  position: absolute;
  top: 46px;
  color: rgba(14, 29, 52, 0.06);
  left: 0;
  right: 0;
  z-index: 1;
  font-weight: 700;
  font-size: 56px;
  text-transform: uppercase;
  line-height: 0;
}

.section-header p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

/* Responsive general */
@media (max-width: 640px) {
  .section-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .section-header span {
    font-size: 38px;
  }
}

/* Call to Action */
.call-to-action {
  background: linear-gradient(rgba(14, 29, 52, 0.6), rgba(14, 29, 52, 0.8)), url("../img/cta-bg1.jpg") center center;
  /* WebP (más liviano) con el JPG de respaldo: si el navegador no entiende image-set(type()), ignora esta línea */
  background-image: linear-gradient(rgba(14, 29, 52, 0.6), rgba(14, 29, 52, 0.8)), image-set(url("../img/cta-bg1.webp") type("image/webp"), url("../img/cta-bg1.jpg") type("image/jpeg"));
  background-size: cover;
  padding: 100px 0;
}

.call-to-action h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.call-to-action p {
  color: #fff;
}

.call-to-action .cta-btn {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 5px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid #fff;
  color: #fff;
}

.call-to-action .cta-btn:hover {
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
}

/* Call to Action con logo */
.logo-cta {
  padding: 0 10px;
}

.cta-logo {
  width: 60px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.cta-logo:hover {
  transform: scale(1.05);
}

.row.align-items-center {
  margin: 0 -5px;
}

.col-4, .col-8 {
  padding: 0 5px;
}

/* Estilos texto */
.frase-pequena {
  font-size: 0.7em;
  color: #FFFFFF;
  font-weight: 300;
}

.fecha-negra {
  color: #000000;
  font-size: 0.85em;
  font-weight: 400;
}

.course-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  text-align: left;
  margin-top: 30px;
}

/*--------------------------------------------------------------
# Botón Flotante WhatsApp - CORREGIDO
--------------------------------------------------------------*/
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    text-decoration: none;
    opacity: 1 !important; /* Fuerza a que sea visible */
    transform: none !important; /* Evita que se mueva */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Tooltip siempre visible en desktop */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.whatsapp-tooltip strong {
    font-size: 15px;
    margin-bottom: 3px;
}

.whatsapp-tooltip .frase-pequena {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
}

.whatsapp-tooltip:after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #128C7E;
}

/* Icono */
.whatsapp-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge opcional */
.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
    }
    
    .whatsapp-icon {
        font-size: 28px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móviles */
    }
    
    .whatsapp-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

@media (min-width: 769px) {
    .whatsapp-tooltip {
        display: flex !important; /* Forzar a mostrar en desktop */
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        font-size: 26px;
    }
    
    .whatsapp-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/*--------------------------------------------------------------
# Articulo (blog dinamico) - articulo.php
--------------------------------------------------------------*/
.articulo-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 38px 0;
  background: #8c74f0;
}

.articulo-hero-contenido {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.articulo-hero-volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.articulo-hero-volver:hover {
  color: #fff;
}

.articulo-hero-contenido h1 {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.articulo-hero-resumen {
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.articulo-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  margin: 0;
}

.articulo-eyebrow-nivel-h1 {
  font-size: 1rem;
}

.articulo-eyebrow-nivel-h1 .articulo-eyebrow-nivel-icono {
  width: 24px;
  height: 24px;
  font-size: .75rem;
}

.articulo-hero-linea-inferior {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.articulo-hero-resumen {
  font-size: .625rem;
  margin: 0;
  max-width: 460px;
}

.articulo-hero-meta {
  margin: 0;
  white-space: nowrap;
}

.articulo-contenido-section {
  padding: 48px 0 60px 0;
  background: #ffffff;
}

.articulo-contenido {
  max-width: 760px;
  margin: 0 auto;
  color: #334155;
}

.articulo-portada {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 28px;
}

.articulo-contenido h2,
.articulo-contenido h3 {
  color: #1e293b;
  font-weight: 800;
  margin: 32px 0 16px 0;
}

.articulo-contenido p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .875rem;
  line-height: 1.75;
  margin: 0 0 18px 0;
}

.articulo-contenido ul {
  margin: 0 0 22px 0;
  padding: 0;
  list-style: none;
}

.articulo-contenido ul li {
  position: relative;
  padding: 0 0 12px 28px;
  font-size: .95rem;
  line-height: 1.6;
}

.articulo-contenido ul li:before {
  content: '\f26b';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: 0;
  color: #5a3fd9;
}

.articulo-foto-texto {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin: 8px 0 28px 0;
  padding: 20px;
  border-radius: 16px;
  background: #f8f7fd;
}

.articulo-foto-texto-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.articulo-foto-texto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.articulo-foto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c6ae0;
  font-size: 2rem;
}

.articulo-foto-texto-body h4 {
  font-family: var(--font-primary);
  color: #1e293b;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 8px 0;
}

.articulo-foto-texto-body p {
  font-family: Georgia, 'Times New Roman', serif;
  color: #475569;
  font-size: .85rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 576px) {
  .articulo-foto-texto {
    grid-template-columns: 1fr;
  }

  .articulo-foto-texto-img {
    aspect-ratio: 16 / 9;
  }
}

/* Color por nivel de los 7 articulos "Nivel": mismas variables que ya
   sobreescriben .nivel-card-1..7 en blog.php (ver mas abajo) -- aqui solo se
   define el valor por defecto (el purpura de siempre) para que un articulo
   SIN nivel asociado (ej. el de la Resolución 171) no necesite ningun caso
   especial en PHP. */
:root {
  --nivel-color: #5a3fd9;
  --nivel-color-soft: #ede9fe;
  --nivel-color-bg: #f5f3fe;
}

.articulo-eyebrow-nivel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  padding: 6px 16px 6px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.articulo-eyebrow-nivel-icono {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--nivel-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
}

.articulo-foto-texto {
  border-left: 4px solid var(--nivel-color);
}

.texto-video-bloque {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.texto-video-recuadro {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.texto-video-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5a3fd9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.texto-video-recuadro span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0 12px;
}

.texto-video-texto h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px;
}

.texto-video-texto p {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 576px) {
  .texto-video-bloque {
    grid-template-columns: 1fr;
  }
}

.articulo-cta {
  margin-top: 36px;
  padding: 32px 28px;
  border-radius: 18px;
  background: #f1eefd;
  text-align: center;
}

.articulo-cta-texto {
  font-family: var(--font-primary);
  color: #3d2a63;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 18px 0;
}

.articulo-cta-btn {
  display: inline-block;
  background: #5a3fd9;
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 26px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(90, 63, 217, .25);
  transition: transform .2s ease;
}

.articulo-cta-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* CTA de cierre de los 7 artículos-Nivel (distinto del .articulo-cta
   genérico de arriba, que sigue usando el artículo sin nivel asociado, ej.
   Resolución 171). */
.articulo-cta-nivel {
  margin-top: 36px;
  padding: 28px;
  border-radius: 12px;
  background: #f1eefd;
  text-align: center;
}

.articulo-cta-nivel-linea1 {
  font-family: var(--font-primary);
  color: #5a3fd9;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.articulo-cta-nivel-linea2 {
  font-family: var(--font-primary);
  color: #7c6fc4;
  font-size: 11.5px;
  margin: 0 0 4px 0;
}

.articulo-cta-nivel-linea3 {
  font-family: var(--font-primary);
  color: #94a3b8;
  font-size: 10.5px;
  margin: 0 0 18px 0;
}

.articulo-cta-nivel-btn {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 20px;
  text-decoration: none;
  animation: articulo-cta-nivel-parpadeo 2.8s linear infinite;
}

.articulo-cta-nivel-btn:hover {
  color: #fff;
}

@keyframes articulo-cta-nivel-parpadeo {
  0%, 49.9% { background-color: #5a3fd9; }
  50%, 99.9% { background-color: #7c5cfc; }
  100% { background-color: #5a3fd9; }
}

.articulo-cta-nivel-social {
  margin: 14px 0 0 0;
  color: #64748b;
  font-size: 10.5px;
}

/* Sección "Sigue aprendiendo": grid de 3 columnas con los otros niveles. */
.articulo-mas-niveles {
  margin-top: 40px;
}

.articulo-mas-niveles-titulo {
  font-family: var(--font-primary);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 16px 0;
}

.articulo-mas-niveles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.articulo-mas-niveles-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  transition: background .2s ease;
}

.articulo-mas-niveles-card:hover {
  background: #f1f5f9;
}

.articulo-mas-niveles-icono {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1eefd;
  color: #5a3fd9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

.articulo-mas-niveles-nombre {
  color: #334155;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 700px) {
  .articulo-mas-niveles-grid {
    grid-template-columns: 1fr;
  }
}

.articulo-404 {
  padding: 160px 0 100px 0;
  background: #f8f9fa;
}

.articulo-404-code {
  display: block;
  font-size: 4.5rem;
  font-weight: 800;
  color: #5a3fd9;
  opacity: .25;
  line-height: 1;
  margin-bottom: 8px;
}

.articulo-404 h1 {
  color: #1e293b;
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0 0 12px 0;
}

.articulo-404 p {
  color: #475569;
  margin: 0 0 24px 0;
}

@media (max-width: 768px) {
  .articulo-hero {
    padding: 68px 0 32px 0;
  }

  .articulo-hero-contenido h1 {
    font-size: 1.25rem;
  }
}

/*--------------------------------------------------------------
# Blog listado - blog.php
--------------------------------------------------------------*/
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 48px 0;
  background: linear-gradient(135deg, #5a3fd9 0%, #7b61ff 45%, #4a2fc7 100%);
  text-align: center;
}

.blog-hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blog-hero-shape {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.blog-hero-shape-circle-left {
  width: 240px;
  height: 240px;
  top: -80px;
  left: -70px;
  background: rgba(255, 255, 255, .08);
}

.blog-hero-shape-circle-right {
  width: 200px;
  height: 200px;
  bottom: -70px;
  right: -50px;
  background: rgba(255, 140, 0, .12);
}

.blog-hero-contenido {
  position: relative;
  z-index: 1;
}

.blog-hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, #FF6B00, #FF8C00);
  color: #fff;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 3px 8px rgba(255, 107, 0, .2);
}

.blog-hero-contenido h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.blog-hero-contenido p {
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  margin: 0;
}

.blog-listado-section {
  padding: 48px 0 60px 0;
  background: #f8f9fa;
}

.niveles-cards-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

/* Variables de color por Nivel -- mismo patron que .captacion-chip-verde/azul/mostaza */
.nivel-card-1 { --nivel-color: #5a3fd9; --nivel-color-soft: #ede9fe; --nivel-color-bg: #f5f3fe; }
.nivel-card-2 { --nivel-color: #f97316; --nivel-color-soft: #ffedd5; --nivel-color-bg: #fff7ed; }
.nivel-card-3 { --nivel-color: #0ea5e9; --nivel-color-soft: #e0f2fe; --nivel-color-bg: #f0f9ff; }
.nivel-card-4 { --nivel-color: #eab308; --nivel-color-soft: #fef9c3; --nivel-color-bg: #fefce8; }
.nivel-card-5 { --nivel-color: #22c55e; --nivel-color-soft: #dcfce7; --nivel-color-bg: #f0fdf4; }
.nivel-card-6 { --nivel-color: #a855f7; --nivel-color-soft: #f3e8ff; --nivel-color-bg: #faf5ff; }
.nivel-card-7 { --nivel-color: #06b6d4; --nivel-color-soft: #cffafe; --nivel-color-bg: #ecfeff; }

.nivel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 14px 20px 14px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--nivel-color-bg) 0%, #ffffff 75%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(30, 41, 59, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nivel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(30, 41, 59, .14);
  color: inherit;
}

.nivel-card-numero {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--nivel-color);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nivel-card-icono {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--nivel-color-soft);
  color: var(--nivel-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin: 10px 0 16px 0;
}

.nivel-card-titulo {
  font-size: .88rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.32;
  margin: 0 0 18px 0;
  min-height: 2.4em;
}

.nivel-card-btn {
  display: inline-block;
  margin-top: auto;
  background: #5a3fd9;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
}

/* Lista horizontal delgada tipo directorio (reemplaza las tarjetas grandes
   en blog.php) -- reutiliza las mismas variables --nivel-color/-soft/-bg de
   .nivel-card-1..7 de arriba, así que cada fila hereda el color de su Nivel
   sin duplicar la paleta. Pensada para que quepan muchos articulos sin
   ocupar mucho espacio vertical. */
.nivel-filas-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto;
}

.nivel-fila {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #eef0f4;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.nivel-fila:hover {
  border-color: var(--nivel-color);
  box-shadow: 0 3px 10px rgba(30, 41, 59, .08);
  transform: translateX(2px);
  color: inherit;
}

.nivel-fila-icono {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--nivel-color-soft);
  color: var(--nivel-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.nivel-fila-texto {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}

.nivel-fila-eyebrow {
  flex-shrink: 0;
  color: var(--nivel-color);
  font-family: var(--font-primary);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.nivel-fila-titulo {
  font-family: var(--font-primary);
  color: #1e293b;
  font-size: .85rem;
  font-weight: 800;
}

.nivel-fila-desc {
  font-family: var(--font-primary);
  color: #64748b;
  font-size: .8rem;
}

.nivel-fila-flecha {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 1rem;
}

.nivel-fila:hover .nivel-fila-flecha {
  color: var(--nivel-color);
}

@media (max-width: 576px) {
  .nivel-fila-desc {
    display: none;
  }
}

@media (max-width: 1100px) {
  .niveles-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .niveles-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .niveles-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 130px 0 36px 0;
  }

  .blog-hero-contenido h1 {
    font-size: 1.5rem;
  }
}

/*--------------------------------------------------------------
# Footer moderno (index) — bloque compacto, tono claro, acentos morados
# Copiado de index.php:1113-1216 -- compartido con includes/site-footer.php
# (blog.php y los 7 artículos), que ya traía el HTML pero no este CSS.
--------------------------------------------------------------*/
.footer-modern {
  padding: 0;
  background: #ffffff;
  color: #334155;
}

.footer-modern .footer-main {
  background: #f7f6fb;
  border-top: 1px solid #e7e4f3;
  padding: 20px 0;
}

.footer-modern .footer-line1,
.footer-modern .footer-line2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #334155;
}

.footer-modern .footer-line2 {
  margin-top: 8px;
}

.footer-modern .footer-sep {
  color: #c4bfe0;
}

.footer-modern .footer-line1 a {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-modern .footer-line1 a:hover {
  color: #5a3fd9;
}

.footer-modern .footer-line2 a {
  color: #5a3fd9;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-modern .footer-line2 a:hover {
  color: #4527a0;
  text-decoration: underline;
}

.footer-modern .footer-bottom {
  background: #ffffff;
  border-top: 1px solid #e7e4f3;
  padding: 12px 0;
}

.footer-modern .footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-modern .footer-credit,
.footer-modern .footer-copyright {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

.footer-modern .footer-name {
  color: #5a3fd9;
  font-weight: 600;
}

.footer-modern .footer-copyright {
  color: #94a3b8;
}

.footer-modern .footer-brand {
  color: #334155;
  font-weight: 600;
}

.footer-modern .footer-vsep {
  color: #cbd5e1;
  font-size: 11px;
}

@media (max-width: 576px) {
  .footer-modern .footer-vsep {
    display: none;
  }
}

/* ============================================
   BOTÓN FLOTANTE "6 CURSOS GRATIS" - VISIBLE
   Copiado de index.php:594-908 -- compartido con includes/site-footer.php
   (el HTML lo genera el script de mas abajo, igual que en index.php).
   ============================================ */

.free-courses-float {
    position: fixed;
    width: auto; /* Ancho automático */
    height: 65px;
    bottom: 60px;
    left: 40px;
    background: linear-gradient(135deg,
        #FF6B00 0%,
        #FF8C00 25%,
        #FFA500 50%,
        #FFB347 75%,
        #FFC107 100%
    );
    color: white;
    border-radius: 40px; /* Más ovalado */
    font-size: 16px;
    box-shadow:
        0 10px 30px rgba(255, 107, 0, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 0 0 6px rgba(255, 107, 0, 0.2);
    z-index: 9998;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    animation: floatAnimation 6s ease-in-out infinite;
    will-change: transform, bottom;
    padding: 0 25px;
    min-width: 200px; /* Ancho mínimo */
}

/* Contenido del botón */
.fc-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Icono de regalo */
.fc-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    animation: iconBounce 2s infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* Texto del botón */
.fc-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.fc-main-text {
    font-size: 16px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fc-sub-text {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0.3px;
}

/* Badge GRATIS */
.fc-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FF4757;
    color: white;
    font-size: 10px;
    font-weight: 900;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.5);
    animation: badgePulse 2s infinite;
    z-index: 10001;
}

/* Flecha indicadora */
.fc-arrow {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #FF6B00;
    font-size: 20px;
    animation: arrowBlink 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes arrowBlink {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Animación de flotación actualizada */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        box-shadow:
            0 10px 30px rgba(255, 107, 0, 0.4),
            0 0 0 3px rgba(255, 255, 255, 0.9),
            0 0 0 6px rgba(255, 107, 0, 0.2);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
        box-shadow:
            0 20px 40px rgba(255, 107, 0, 0.6),
            0 0 0 3px rgba(255, 255, 255, 1),
            0 0 0 8px rgba(255, 107, 0, 0.3);
    }
}

/* Estados especiales */
.free-courses-float.near-courses {
    background: linear-gradient(135deg,
        #4CAF50 0%,
        #8BC34A 50%,
        #CDDC39 100%
    );
    animation: nearCoursesFloat 4s ease-in-out infinite;
}

@keyframes nearCoursesFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 10px 30px rgba(76, 175, 80, 0.4),
            0 0 0 3px rgba(255, 255, 255, 0.9),
            0 0 0 6px rgba(76, 175, 80, 0.2);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        box-shadow:
            0 15px 35px rgba(76, 175, 80, 0.6),
            0 0 0 3px rgba(255, 255, 255, 1),
            0 0 0 8px rgba(76, 175, 80, 0.3);
    }
}

.free-courses-float.pulse {
    animation: strongPulse 1s ease-in-out;
}

@keyframes strongPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 10px 30px rgba(255, 107, 0, 0.4),
            0 0 0 3px rgba(255, 255, 255, 0.9),
            0 0 0 6px rgba(255, 107, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow:
            0 25px 50px rgba(255, 107, 0, 0.8),
            0 0 0 5px rgba(255, 255, 255, 1),
            0 0 0 12px rgba(255, 107, 0, 0.4);
    }
}

.free-courses-float.clicked {
    animation: clickEffect 0.3s ease;
}

@keyframes clickEffect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .free-courses-float {
        height: 55px;
        bottom: 25px;
        left: 25px;
        padding: 0 15px;
        min-width: 160px;
        font-size: 14px;
    }

    .fc-content {
        gap: 8px;
    }

    .fc-icon {
        font-size: 20px;
    }

    .fc-main-text {
        font-size: 14px;
    }

    .fc-sub-text {
        font-size: 9px;
    }

    .fc-badge {
        width: 28px;
        height: 28px;
        font-size: 8px;
        top: -8px;
        right: -8px;
    }

    .fc-arrow {
        bottom: -20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .free-courses-float {
        height: 50px;
        bottom: 20px;
        left: 20px;
        padding: 0 12px;
        min-width: 140px;
    }

    .fc-main-text {
        font-size: 13px;
    }

    .fc-sub-text {
        font-size: 8px;
    }

    .fc-badge {
        width: 25px;
        height: 25px;
        font-size: 7px;
        top: -7px;
        right: -7px;
    }

    .fc-arrow {
        display: none; /* Ocultar flecha en móviles muy pequeños */
    }
}

/* Para tabletas */
@media (min-width: 769px) and (max-width: 1024px) {
    .free-courses-float {
        left: 30px;
    }
}

/* Asegurar que no se superponga con WhatsApp */
@media (min-width: 1200px) {
    .free-courses-float {
        left: 40px;
    }

    .whatsapp-float {
        right: 40px;
    }
}

/* Para pantallas muy anchas */
@media (min-width: 1600px) {
    .free-courses-float {
        left: 60px;
    }

    .whatsapp-float {
        right: 60px;
    }
}