/* --- VARIABLES --- */
:root {
    --border-color: #d1d1d1;
    --bg-gray: #ededed;
    --black: #1d1d1f;
}

* {
    box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #D9D9DE;
  color: #1A1A1A;
}

.top-banner {
  width: 100%;
  background-color: #FFFFFF;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.top-banner a {
  text-decoration: none;
  color: #1A1A1A;
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.top-banner a:hover {
  opacity: 0.6;
}

/* Navbar Base */
.navbar {
  width: 100%;
  background-color: #D9D9DE;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 40px;
  position: relative;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribuye: Logo - Menú - Botón */
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  flex: 1; /* Ocupa espacio para empujar el resto */
}

/* Menú Centrado */
.nav-wrapper {
  flex: 2; /* Toma más espacio para centrarse */
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #2E4057;
}

/* Botón derecha */
.cta-desktop {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  background-color: #2E4057;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s ease;
  white-space: nowrap;
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #1A1A1A;
  transition: 0.3s;
}



/* =========================
   RESPONSIVE (Mobile)
========================= */

@media (max-width: 1100px) {
  .nav-wrapper {
    display: none; /* Se oculta por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #D9D9DE;
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }

  .nav-wrapper.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hamburger {
    display: flex;
    order: 3; /* Mueve la hamburguesa a la derecha en móvil */
  }
  
  .cta-desktop {
    display: none; /* Escondemos el botón de la derecha en móvil */
  }

  /* Opcional: mostrar botón dentro del menú móvil */
  .nav-wrapper.active::after {
      content: 'Agendar reunión';
      display: block;
      margin: 20px auto;
      background: #2E4057;
      color: white;
      padding: 10px 20px;
      border-radius: 4px;
      font-size: 14px;
  }
  
  .logo { flex: 1; }
}

/* Animación Hamburguesa */
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }




/* ===== HERO SECTION ===== */

.hero-section {
    background-color: #D9D9DE;
    color: #1d1d1f;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

/* Container principal */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Texto */
.hero-text {
    flex: 0 0 55%;
    max-width: 650px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    border-left: 3px solid #2E4057;
    padding-left: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 2.5rem;
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: #2E4057;
    color: #ffffff;
    padding: 14px 34px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background-color: #2E4057;
}

.btn-secondary {
    border: 1px solid #2E4057;
    color: #2E4057;
    padding: 14px 34px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2E4057;
    color: #1d1d1f;
}



/* Imagen */
.hero-image {
    flex: 0 0 35%; /* antes 40% */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

/* Fade lateral para integrar la foto */
.hero-image::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(
        to right,
        #D9D9DE 60%,
        rgba(217,217,222,0)
    );
    z-index: 2;
}

/* Imagen ajustada */
.hero-image img {
    width: 100%;
    max-width: 360px; /* antes 420px */
    height: auto;
    filter: grayscale(45%) contrast(95%) brightness(0.95);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {

    .hero-container {
        flex-direction: column;
        text-align: left;
    }

    .hero-text {
        flex: 100%;
        max-width: 100%;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-image img {
        max-width: 320px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================= */
/* SECTION GENERAL                           */
/* ========================================= */

.problematica-article {
  background-color: #f3f4f6; /* mismo gris del hero */
  padding: 120px 0; /* aire vertical */
}

/* ========================================= */
/* CONTENEDOR CENTRAL                        */
/* ========================================= */

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================= */
/* GRID PRINCIPAL (2 COLUMNAS)              */
/* ========================================= */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
  gap: 80px; /* espacio entre imagen y texto */
  align-items: center;
}

/* ========================================= */
/* IMAGEN                                    */
/* ========================================= */

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 12px; /* bordes suaves */
  box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* sombra sutil */
}

/* ========================================= */
/* CONTENIDO TEXTO                           */
/* ========================================= */

.content h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 30px;
  color: #1e1e1e;
}

.content p {
  font-size: 20px;
  line-height: 1.7;
  color: #2E4057;
  margin-bottom: 24px;
  max-width: 600px;
}

.content strong {
  font-weight: 600;
  color: #1e1e1e;
}

.source {
  font-size: 14px;
  color: #777;
  margin-left: 6px;
}

/* ========================================= */
/* RESPONSIVE TABLET                         */
/* ========================================= */

@media (max-width: 1024px) {
  
  .grid {
    gap: 50px; /* reduce espacio */
  }

  .content h2 {
    font-size: 36px;
  }

  .content p {
    font-size: 18px;
  }
}

/* ========================================= */
/* RESPONSIVE MOBILE                         */
/* ========================================= */

@media (max-width: 768px) {

  .grid {
    grid-template-columns: 1fr; /* pasa a una sola columna */
    gap: 50px;
  }

  .image-wrapper {
    order: 1; /* imagen arriba */
  }

  .content {
    order: 2; /* texto abajo */
  }

  .content h2 {
    font-size: 30px;
  }

  .content p {
    font-size: 17px;
  }

  .problematica-article {
    padding: 80px 0; /* menos padding en mobile */
  }
}






/* =========================
   SECCIÓN MÉTODO
========================= */

.metodo {
  width: 100%;
  padding-bottom: 20px;
  background: #D9D9DE;
}

/* =========================
   HEADER STICKY
========================= */

.metodo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #F4F6F9;

  text-align: center;
  padding: 60px 20px 30px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.metodo-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.metodo-title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #2E4057;
  line-height: 1.15;
  margin: 0;
}

.metodo-subtitle {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.7;
  color: #5C6773;
}

/* Subrayado conceptual */
.metodo-highlight {
  border-bottom: 3px solid #2E4057;
  padding-bottom: 2px;
}

/* Asterisco */
.metodo-asterisco {
  color: #2E4057;
  margin-left: 4px;
  font-size: 16px;
}

.metodo-glosario {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #7A8591;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   STEPS (STACKING ACTIVO)
========================= */

.metodo-step {
  position: sticky;
  top: 140px; /* antes 200px */
  height: 85vh; /* antes 100vh */

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}

.metodo-step-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* =========================
   VIDEO
========================= */

.metodo-media {
  position: relative;
  width: 440px;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.metodo-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.metodo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.15)
  );
  pointer-events: none;
}

/* =========================
   CARD SUPERPUESTA
========================= */

.metodo-card {
  width: 480px;
  background: rgba(255,255,255,0.97);
  padding: 42px;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
  z-index: 2;

  margin-right: -44px;

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.metodo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.12);
}

.metodo-card span {
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 1px;
  color: #2E4057; ;
  font-weight: bold;
}

.metodo-card h2 {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.metodo-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {

  .metodo-media {
    width: 340px;
    height: 340px;
  }

  .metodo-card {
    width: 380px;
    padding: 32px;
    margin-right: -34px;
  }

}

@media (max-width: 768px) {

  .metodo-header {
    padding: 30px 20px 20px 20px;
  }

  .metodo-title {
    font-size: 22px;
  }

  .metodo-subtitle {
    font-size: 14px;
  }

  .metodo-step {
    top: 110px; /* mucho menor */
    height: 80vh; /* reduce vacío */
  }

  .metodo-step-inner {
    flex-direction: column;
  }

  .metodo-media {
    width: 240px;
    height: 240px;
  }

  .metodo-card {
    width: 90%;
    margin-right: 0;
    margin-top: -24px;
    padding: 26px;
  }

}










/* CONTENEDOR PRINCIPAL */

/* SECTION */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #D9D9DE;
  color: #1A1A1A;
}

.courses-section {
  padding: 20px 20px;
}

.courses-container {
  max-width: 1200px;
  margin: 0 auto;
}

.courses-header {
  text-align: center;
  margin-bottom: 30px;
}

.courses-header h1 {
  font-size: 36px;
  margin-bottom: 14px;
}

.courses-header p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.7;
}

/* GRID */

.courses-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD */


.card-courses {
background: #d1d1d1;
  border-radius: 18px;
  width: 340px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #d0d4da;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.8,.32,1);
}

.live-tag {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ff3b3b;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(255,59,59,0.4);
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(255,59,59,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255,59,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
}

.card-courses.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-courses.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.card-courses.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}


.card-courses:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.recommended-courses {
  border: 2px solid #2E4057;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.card-courses h2{
    margin-bottom: 15px;
}

.course-benefits{
    margin-top: 0;
}


/* BADGE */

.badge-courses {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #2E4057;
  margin-bottom: 10px;
  display: inline-block;
}

/* PRICING */

.price-courses {
  font-size: 28px;
  font-weight: bold;
  margin: 8px 0;
}

.old-price-courses {
  text-decoration: line-through;
  opacity: 0.6;
}

.discount-courses {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #2E4057;
  display: inline-block;
  margin-bottom: 8px;
}

/* BUTTON */

.btn-courses {
  margin-top: 20px;
  padding: 14px;
  border-radius: 30px;
  border: 2px solid #2E4057;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #2E4057;
}

.btn-courses:hover {
  background: #2E4057;
  color: white;
}

.btn-courses.primary {
  background: #2E4057;
  color: white;
}

/* =========================
   MODAL OVERLAY
========================= */

.course-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.6);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.course-modal.active {
  opacity: 1;
  pointer-events: all;
}

/* =========================
   MODAL CONTENT
========================= */

.course-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 28px;
  padding: 60px 50px 40px 50px;
  position: relative;
  box-shadow: 0 50px 120px rgba(0,0,0,0.25);
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: all 0.35s cubic-bezier(.22,.9,.3,1);
}

.course-modal.active .course-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* =========================
   CLOSE
========================= */

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: rgba(0,0,0,0.05);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(0,0,0,0.12);
  transform: rotate(90deg);
}
/* =========================
   TYPOGRAPHY
========================= */

.course-modal-content h2 {
  font-size: 32px;
  margin-bottom: 18px;
}

.detail-description {
  font-size: 16px;
  opacity: 0.75;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* =========================
   INFO BADGES
========================= */

.detail-info {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.detail-info span {
  padding: 8px 14px;
  border-radius: 20px;
  background: #f2f4f7;
  font-size: 13px;
}

/* =========================
   MODULES
========================= */

.learning-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.modules-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.modules-container div {
  padding: 12px 16px;
  background: #f7f8fa;
  border-radius: 12px;
  font-size: 14px;
}

/* =========================
   MODULE ACCORDION PRO FIX
========================= */

.module-item {
  background: #f7f8fa;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.module-item.active {
  background: #ffffff;
  border: 1px solid #2E4057;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.module-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.2s ease;
}

.module-header:hover {
  background: rgba(46,64,87,0.05);
}

.module-icon {
  transition: transform 0.25s ease;
}

.module-item.active .module-icon {
  transform: rotate(45deg);
}

/* 🔥 IMPORTANTE */

.module-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  font-size: 14px;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.module-item.active .module-content {
  max-height: 400px;
  padding: 0 18px 18px 18px;
  opacity: 0.85;
}

.module-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.module-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.module-content li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #2E4057;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

/* =========================
   CTA
========================= */

.cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 18px;
  border-radius: 50px;
  background: #2E4057;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(46,64,87,0.35);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .course-modal-content {
    padding: 40px 24px;
    border-radius: 24px;
    max-width: 95vw;
    max-height: 92vh;
  }

  .course-modal-content h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .detail-description {
    font-size: 15px;
  }

  .detail-info span {
    font-size: 12px;
  }

}



/* ===== CSS - ESTILO EXACTO A LA IMAGEN ===== */
        :root {

            --card-bg: #ededed;
            --star-green: #00c26b;
            --text-dark: #2E4057;
            --text-muted: #888;
        }

        .testimonials-section {
            padding: 20px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .carousel-container {
            display: flex;
            align-items: center;
            justify-content: center;
            max-width: 1250px;
            width: 100%;
            gap: 15px;
        }

        .carousel-viewport {
            overflow: hidden;
            width: 100%;
            border-radius: 4px;
        }

        .carousel-track {
            display: flex;
            gap: 20px; /* Espacio entre tarjetas */
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }

        /* Tarjetas */
        .carousel-slide {
            flex: 0 0 calc((100% - 40px) / 3); /* 3 tarjetas en desktop */
            box-sizing: border-box;
        }

        .testimonial-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 30px;
            height: 400px; /* Altura fija para uniformidad */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-sizing: border-box;
        }

        .testimonial-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .testimonial-header img {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            object-fit: cover;
            background-color: #ccc;
        }

        .header-info p {
            margin: 0;
            line-height: 1.2;
        }

        .testimonial-name {
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-dark);
            margin-bottom: 4px !important;
        }

        .testimonial-role {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .stars {
            color: var(--star-green);
            font-size: 1.1rem;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        .testimonial-text {
            font-size: 0.95rem;
            line-height: 1.5;
            color: #444;
            margin: 0;
        }

        .testimonial-link {
            text-decoration: none;
            color: #2E4057;
            font-weight: 600;
            font-size: 0.9rem;
            margin-top: 20px;
        }

        /* Botones de Navegación */
        .carousel-btn {
            border: none;
            width: 48px;
            height: 48px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            flex-shrink: 0;
            transition: opacity 0.3s;
        }

        .carousel-btn.prev {
            background-color:  #949494; /* Botón izquierdo negro */
        }

        .carousel-btn.next {
            background-color: #949494; /* Botón derecho gris */
        }

        .carousel-btn:active {
            transform: scale(0.95);
        }

        /* Indicadores (Dots) */
        .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border: 2px solid #000;
            border-radius: 50%;
            cursor: pointer;
            transition: background 0.3s;
        }

        .dot.active {
            background-color: #000;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .carousel-slide {
                flex: 0 0 calc((100% - 20px) / 2); /* 2 tarjetas */
            }
        }

        @media (max-width: 768px) {
            .carousel-slide {
                flex: 0 0 100%; /* 1 tarjeta */
            }
            .carousel-btn {
                display: none; /* Ocultar flechas en móvil para usar scroll táctil */
            }
            .carousel-viewport {
                overflow-x: auto;
                scroll-snap-type: x mandatory;
            }
            .carousel-slide {
                scroll-snap-align: center;
            }
        }




/* CONTENEDOR GENERAL */

.hero-courses {
  color: #2E4057;
  padding: 100px 0;
}

.hero-courses-container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
}


/* HERO */

.hero-courses-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 140px;
}

.hero-courses-text {
  flex: 1;
}

.hero-courses-text h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-courses-text p {
  font-size: 18px;
  color: #444;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-courses-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #2E4057;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s ease;
}
.hero-courses-btn-primary {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-courses-btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-courses-video {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-courses-video-wrapper {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9; /* mantiene proporción */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  animation: hero-scale 1s ease forwards;
}

.hero-courses-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* evita deformación */
  display: block;
}

@keyframes hero-scale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-courses-video-wrapper video {
  width: 100%;
  display: block;
}

/* Animación sutil */

@keyframes hero-courses-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}


/* METODO */

.hero-courses-metodo {
  text-align: center;
  margin-bottom: 140px;
}

.hero-courses-metodo h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-courses-metodo-sub {
  color: #666;
  margin-bottom: 60px;
}

.hero-courses-metodo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.hero-courses-metodo-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.hero-courses-metodo-item p {
  font-size: 16px;
  color: #555;
}


/* PROGRAMAS */

.hero-courses-programas h2 {
  font-size: 36px;
  margin-bottom: 60px;
  text-align: center;
}

.hero-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.hero-courses-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.hero-courses-card:hover {
  transform: translateY(-8px);
}

.hero-courses-card h3 {
  margin-bottom: 15px;
}

.hero-courses-card p {
  margin-bottom: 20px;
  color: #555;
}

.hero-courses-btn-secondary {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
}


/* RESPONSIVE */

@media (max-width: 1024px) {

  .hero-courses-hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-courses-metodo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .hero-courses-metodo-grid,
  .hero-courses-grid {
    grid-template-columns: 1fr;
  }

  .hero-courses-text h1 {
    font-size: 32px;
  }
}


/* HEADER TESTIMONIOS */

.testimonials-header-wrapper {
  padding: 0px 0 60px 0;
}

.testimonials-header-container {
  width: 85%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.testimonials-header-title {
  font-size: 36px;
  font-weight: 600;
  color: #2E4057;
  margin-bottom: 18px;
  line-height: 1.3;
  margin-top: 0;
}

.testimonials-header-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}


/* =========================
   FEATURED SECTION
========================= */


.featured-article {
  padding: 30px 20px;
}

.featured-card-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .featured-card-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.featured-header {
  max-width: 900px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.featured-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7A8591;
  display: block;
  margin-bottom: 18px;
}

.featured-heading {
  font-size: 36px;
  font-weight: 600;
  color: #2E4057;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0;
}


/* =========================
   divisor de secciones
========================= */

.section-divider {
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: center;
}

.section-divider::before {
  content: "";
  width: 220px;
  height: 1px;
  background: rgba(46, 64, 87, 0.25);
}

/* =========================
   FAQ MODERN SECTION
========================= */

.faq-modern {
  padding: 20px 0;
  font-family: "Inter", sans-serif;
}

.faq-modern-container {
  width: 85%;
  max-width: 1000px;
  margin: 0 auto;
}

/* TITULO */

.faq-modern-title {
  font-size: 42px;
  font-weight: 700;
  color: #2E4057;
  margin-bottom: 60px;
}

/* ITEM */

.faq-modern-item {
  margin-bottom: 25px;
}

/* BOTON PREGUNTA */

.faq-modern-question {
  width: 100%;
  background: #2E4057;
  color: #ffffff;
  border: none;
  padding: 26px 30px;
  border-radius: 14px;
  font-size: 18px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.faq-modern-question:hover {
  transform: translateY(-2px);
}

/* ICONO */

.faq-modern-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease;
}

/* RESPUESTA */

.faq-modern-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.faq-modern-answer p {
  margin-top: 15px;
  padding: 0 10px 10px 10px;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* ACTIVO */

.faq-modern-item.active .faq-modern-answer {
  max-height: 200px;
}

.faq-modern-item.active .faq-modern-icon {
  transform: rotate(180deg);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .faq-modern-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .faq-modern-question {
    font-size: 16px;
    padding: 20px 20px;
  }

  .faq-modern-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .faq-modern-answer p {
    font-size: 15px;
  }

}

@media (max-width: 480px) {

  .faq-modern-container {
    width: 90%;
  }

  .faq-modern-title {
    font-size: 26px;
  }

}







/* =========================
   BLOG SECTION
========================= */

.blog-section {
  padding: 80px 20px; /* antes 120px */
  background: #F4F6F9;
}

.blog-container {
  max-width: 1050px;
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.blog-header {
  text-align: center;
  margin-bottom: 50px; /* antes 80px */
}

.blog-title {
  font-size: 32px; /* antes 40px */
  font-weight: 600;
  color: #2E4057;
  margin: 0;
}

.blog-subtitle {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #5C6773;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   GRID
========================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px; /* antes 60px */
}

/* =========================
   CARD
========================= */
.blog-card {
  background: #ffffff; /* más contraste real */
  border-radius: 16px;
  overflow: hidden;

  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.06);

  transition: transform 0.35s ease,
              box-shadow 0.35s ease;

  display: flex;
  flex-direction: column;
}

blog-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Imagen más chica */
.blog-card img {
  width: 100%;
  height: 200px; /* antes 260px */
  max-height: 300px; /* límite absoluto */
  object-fit: cover;
  display: block;
}

/* Contenido más compacto */
.blog-card-content {
  padding: 22px; /* antes 30px */
}

.blog-category {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7A8591;
}

.blog-card h3 {
  margin-top: 8px;
  font-size: 18px; /* antes 20px */
  font-weight: 500;
  color: #2E4057;
  line-height: 1.35;
}

.blog-card p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}

.blog-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #2E4057;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.blog-link:hover {
  border-bottom: 2px solid #2E4057;
}

/* Hover más sutil */
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .blog-title {
    font-size: 24px;
  }

  .blog-subtitle {
    font-size: 14px;
  }

  .blog-card img {
    height: 180px;
  }

}




/* =========================
   FOOTER
========================= */

.footer {
  width: 100%;
  background-color: #2E4057;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 80px 20px 40px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- TOP SECTION ---------- */

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: #d1d1d1;
  margin: 0;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #d1d1d1;
}

/* ---------- LINKS ---------- */

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: #d1d1d1;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}

/* ---------- CONTACT ---------- */

.footer-contact p {
  font-size: 14px;
  color: #d1d1d1;
  margin: 0 0 10px 0;
}

.footer-contact a {
  font-size: 14px;
  color: #d1d1d1;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-contact a:hover {
  opacity: 0.6;
}

/* ---------- BOTTOM ---------- */

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #8A8F98;
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer {
    padding: 60px 20px 30px 20px;
  }

}









/* HERO */

.hero-equipos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 10%;
  gap: 60px;
}

.hero-content {
  max-width: 550px;
}

.hero-line {
  width: 4px;
  height: 80px;
  background-color: #2E4057;
  margin-bottom: 30px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333;
}

.hero-image img {
  width: 450px;
  height: auto;
  object-fit: cover;
}

/* BOTONES */

.btn-primary {
  background-color: #2E4057;
  color: white;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: #1f2f44;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #2E4057;
  color: #2E4057;
  padding: 12px 28px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.btn-outline:hover {
  background-color: #2E4057;
  color: white;
}

.equipos-section {
  padding: 100px 10%;
}

.container {
  max-width: 1100px;
  margin: auto;
}

h2 {
  font-weight: 500;
  margin-bottom: 30px;
}

.intro p {
  margin-bottom: 50px;
  color: #333;
}

/* ÁREAS */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 100px;
}

.area {
  padding: 20px;
  border: 1px solid #2E4057;
  text-align: center;
  transition: 0.3s;
  cursor: default;
}

.area:hover {
  background-color: #2E4057;
  color: white;
}


.equipos-faq {
  padding: 100px 10%;
}

.equipos-faq h2 {
  margin-bottom: 40px;
  font-weight: 500;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  width: 100%;
  background-color: #2E4057;
  color: white;
  border: none;
  padding: 20px;
  text-align: left;
  font-size: 18px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question span {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #D9D9DE;
  padding: 0 20px;
}

.faq-answer ul {
  padding: 20px 0;
  margin: 0;
}

.faq-answer li {
  margin-bottom: 8px;
}
/* =========================
   PROCESO
========================= */

.proceso {
  position: relative;
  padding: 160px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.proceso-header {
  text-align: center;
  margin-bottom: 120px;
}

.proceso-header h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #2E4057;
  margin: 0;
}

.proceso-header p {
  margin-top: 20px;
  font-size: 18px;
  color: #5C6773;
}

/* Línea vertical */

.proceso-line {
  position: absolute;
  left: 50%;
  top: 300px;
  width: 1px;
  height: calc(100% - 400px);
  background: rgba(46, 64, 87, 0.15);
  transform: translateX(-50%);
}

/* Step */

.proceso-step {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

/* Número grande */

.step-number {
  font-size: 80px;
  font-weight: 600;
  color: rgba(46, 64, 87, 0.08);
  width: 45%;
  text-align: right;
  padding-right: 40px;
}

/* Contenido */

.step-content {
  width: 45%;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #2E4057;
}

.step-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #5C6773;
}

/* =========================
   Animación sutil
========================= */

.proceso-step {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.proceso-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {

  .proceso-line {
    display: none;
  }

  .proceso-step {
    flex-direction: column;
    margin-bottom: 10px;
  }

  .step-number {
    font-size: 48px;
    text-align: left;
    padding: 0;
    width: 100%;
    margin-bottom: 20px;
  }

  .step-content {
    width: 100%;
  }

}

/* PLANES */
.planes-section {
  padding: 100px 10%;
}

.planes-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.plan-card {
  background: #D9D9DE;
  border: 2px solid #2E4057;
  border-radius: 20px;
  padding: 40px;
  max-width: 420px;
  flex: 1;
  min-width: 320px;
  transition: 0.3s ease;
}

.plan-desc-light {
color: #1A1A1A;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-badge {
  display: inline-block;
  border: 1px solid #2E4057;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  margin-bottom: 20px;
}

.plan-card h2 {
  font-weight: 500;
  margin-bottom: 20px;
}

.plan-desc {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #d1d1d1;
}

.plan-meta p {
  margin: 5px 0;
}

.plan-price {
  margin: 35px 0;
  font-size: 14px;
}

.plan-price span {
  display: block;
  font-size: 32px;
  font-weight: bold;
  margin-top: 5px;
}

.price-note {
  font-size: 12px;
  color: #555;
}

.price-note-dark {
  font-size: 12px;
  color: #7A8591;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  background-color: #2E4057;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

.plan-btn:hover {
  background-color: #1f2f44;
}

.premium {
  background-color: #2E4057;
  color: white;
}

.premium .plan-badge {
  border: 1px solid white;
}

.premium .plan-btn {
  background-color: white;
  color: #2E4057;
}

@media (max-width: 768px) {
  .planes-container {
    flex-direction: column;
    align-items: center;
  }
}

/* FORMULARIO */

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background-color: #2E4057;
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #1f2f44;
}

/* CTA FINAL */

.cta-final {
  padding: 80px 10%;
  text-align: center;
}

.cta-final h2 {
  font-weight: 500;
  margin-bottom: 30px;
}









/* Botones flotantes base */
.floating-btn {
  position: fixed;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #2E4057;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 9999;
}

/* WhatsApp izquierda */
.whatsapp-btn {
  right: 24px;
  text-decoration: none;
}

/* Hover minimalista */
.floating-btn:hover {
  background-color: #3f5877;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .floating-btn {
    width: 46px;
    height: 46px;
    bottom: 18px;
  }

  .whatsapp-btn {
    right: 18px;
  }

}