/* ==========================================================================
   1. DEFINICIÓN DE FUENTES (@font-face) - 
   ========================================================================== */


/* Thin */
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueThin.woff2') format('woff2'),
       url('/assets/fonts/UniNeueThin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueThin-Italic.woff2') format('woff2'),
       url('/assets/fonts/UniNeueThin-Italic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
}

/* Light */
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueLight.woff2') format('woff2'),
       url('/assets/fonts/UniNeueLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueLight-Italic.woff2') format('woff2'),
       url('/assets/fonts/UniNeueLight-Italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
}

/* Book */
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueBook.woff2') format('woff2'),
       url('/assets/fonts/UniNeueBook.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueBook-Italic.woff2') format('woff2'),
       url('/assets/fonts/UniNeueBook-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

/* Regular */
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueRegular.woff2') format('woff2'),
       url('/assets/fonts/UniNeueRegular.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueRegular-Italic.woff2') format('woff2'),
       url('/assets/fonts/UniNeueRegular-Italic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
}

/* Bold */
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueBold.woff2') format('woff2'),
       url('/assets/fonts/UniNeueBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueBold-Italic.woff2') format('woff2'),
       url('/assets/fonts/UniNeueBold-Italic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}

/* Heavy */
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueHeavy.woff2') format('woff2'),
       url('/assets/fonts/UniNeueHeavy.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueHeavy-Italic.woff2') format('woff2'),
       url('/assets/fonts/UniNeueHeavy-Italic.woff') format('woff');
  font-weight: 800;
  font-style: italic;
}

/* Black */
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueBlack.woff2') format('woff2'),
       url('/assets/fonts/UniNeueBlack.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'UniNeue';
  src: url('/assets/fonts/UniNeueBlack-Italic.woff2') format('woff2'),
       url('/assets/fonts/UniNeueBlack-Italic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
}

  
  
  /* ==========================================================================
     2. RESET BÁSICO Y ESTILOS GLOBALES
     ========================================================================== */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'UniNeue', sans-serif;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit; /* Hereda fuente del padre (body) */
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  input,
  textarea,
  select {
      font-family: inherit; /* Asegura que hereden la fuente del body */
      font-size: inherit;
      line-height: inherit;
      color: inherit;
  }
  
  
  /* Contenedor Principal */
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px; /* Padding lateral por defecto */
    padding-right: 20px;
  }
  
  /* ==========================================================================
     3. HEADER / NAVEGACIÓN PRINCIPAL
     ========================================================================== */
  
  .main-header {
    background: #020c28;
    padding: 15px 0;
    border-bottom: 1px solid #2a3b4a;
    color: #e0e0e0; /* Texto claro para header oscuro */
  }
  
  /* Sobrescribe padding del container solo para el header */
  .main-header .container {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* Nota: .header-container ya no es necesario si aplicas directo a .main-header .container */
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700; /* Usa Uni Neue Bold */
    font-size: 1.6em;
    color: #fff;
    text-decoration: none;
  }
  
  .logo img {
    height: 50px;
    width: auto;
  }
  
  .main-nav ul {
    display: flex;
    gap: 25px;
  }
  
  .main-nav a {
    color: #b0c4de;
    font-size: 0.95em;
    transition: color 0.3s ease;
  }
  
  .main-nav a:hover {
    color: #fff;
  }
  
  .main-nav .premium {
    margin-top: -1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1a1a1a;
    color: #ffc857;
    padding: 6px 14px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    transform: translateY(-3px); /* <- Esto lo sube */
  }
  
  .main-nav .premium:hover {
    background-color: #333;
    color: #ffffff;
    border-color: #ffc857;
  }
  
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .search-form {
    display: flex;
    align-items: center;
    background-color: #1A2631;
    border-radius: 4px;
    padding: 5px 8px;
    border: 1px solid #345670;
  }
  
  .search-form input {
    background: none;
    border: none;
    color: #b0c4de;
    outline: none;
    padding: 3px 5px;
    font-size: 0.9em;
  }
  
  .search-form input::placeholder {
    color: #7890ab;
  }
  
  .search-form button {
    color: #b0c4de;
    padding-left: 5px;
    font-size: 1.1em;
  }
  
  /* ==========================================================================
     4. HERO SECTION
     ========================================================================== */
  
  .hero-section {
    background-image: linear-gradient(rgba(26, 38, 49, 0), rgba(26, 38, 49, 0.8)), url('/images/b1.png'); /* Más oscuro */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #e0e0e0; /* Texto claro */
  }
  
  .hero-container { /* Usar clase específica si es necesario o aplicar a .hero-section .container */
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .hero-text {
    flex: 1 1 45%;
  }
  
  .hero-text h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700; /* Usa Uni Neue Bold */
    color: #fff;
  }
  
  .hero-text p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #b0c4de;
  }
  
  .cta-button { /* Estilo base botón CTA */
    display: inline-block;
    background-color: #007AC2;
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700; /* Usa Uni Neue Bold */
    font-size: 1.1em;
    transition: background-color 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #005A90;
  }
  
  .hero-image {
    flex: 1 1 55%;
    text-align: center;
  }
  .hero-image video {
    width: 100%;
    max-width: 500px; /* Cambia este valor según necesites */
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  .hero-image img {
     border-radius: 5px;
     box-shadow: 0 10px 25px rgba(0, 122, 194, 0.15);
  }
  
  /* ==========================================================================
     5. FEATURES SECTION ("Por Qué Elegirnos")
     ========================================================================== */
  
  .features-section {
    padding: 120px 0 180px; /* Padding vertical aumentado */
    background: #f4f2fb;
    color: #383835; /* Texto claro */
  }
  
  .features-section .container {
    text-align: center;
  }
  
  .features-section .section-title {
    font-size: 2.8em; /* Tamaño título aumentado */
    color: #04184f;
    margin-bottom: 70px; /* Espacio inferior aumentado */
    font-weight: 700; /* Usa Uni Neue Bold */
  }
  
  .features-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 50px; /* Gap aumentado */
    text-align: left; /* Alineación de texto en items */
  }
  
  .features-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px;
  }
  
  .features-list li i {
    color: #103cb3;
    font-size: 3em; /* Iconos más grandes */
    margin-right: 20px; /* Más espacio */
    margin-top: 0.1em;
    flex-shrink: 0;
  }
  
  .feature-text h3 {
    margin: 0;
    font-size: 1.5em; /* Título característica más grande */
    color: #383835;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 700; /* Usa Uni Neue Bold */
  }
  
  .feature-text p {
    margin: 0;
    font-size: 1.1em; /* Párrafo más grande */
    color: #383835;
    line-height: 1.7;
  }
  
  /* ==========================================================================
     6. FEATURED COURSES SECTION
     ========================================================================== */
  
  .featured-courses {
    background-color: #ffffff; /* Fondo claro */
    padding: 50px 0;
    color: #f5f2f4; /* Texto oscuro por defecto en esta sección */
  }
  .section-title {
    font-size: 2.8em;
    color: #04184f;
    margin-bottom: 70px;
    font-weight: 700;
    text-align: center;
  }
  
  
  /* Navegación de Categorías */
  .category-nav {
    margin-bottom: 40px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    text-align: center;
  }
  .category-nav::-webkit-scrollbar { display: none; }
  
  .category-tabs {
    padding: 0; margin: 0; display: inline-flex; gap: 10px;
  }
  .category-tabs li { display: inline-block; }
  
  .tab-button {
    padding: 8px 18px;
    border: 1px solid #a0b4cb;
    background-color: transparent;
    color: #345670;
    border-radius: 4px;
    font-size: 0.9em; white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  
  .tab-button:hover {
    background-color: #eef2f7;
    border-color: #507da1;
    color: #1A2631;
  }
  
  .tab-button.active {
    background-color: #007AC2;
    border-color: #007AC2;
    color: #ffffff;
    font-weight: 700; /* Usa Uni Neue Bold */
  }
  
  /* Grid de Cursos */
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 260px));
    gap: 25px;
    margin-bottom: 40px;
    justify-content: center;
  }
  
  
  .course-card {
    max-width: 1450px; /* Ancho mayor */
    height: 470px;    /* Altura fija para recortar el exceso */
    overflow: visible;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #e0e0e0;
  }
  
  .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 122, 194, 0.2);

  }
  
  .card-image-container {
    position: relative;
    background-color: #f5f2f4;
  }
  .card-image-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: contain; /* Muestra imagen completa */
    display: block;
    background-color: #ffffff;
  }
  
  .student-count {
    position: absolute; bottom: 10px; left: 10px;
    background-color: rgba(0, 0, 0, 0.65); color: #fff;
    padding: 4px 10px; border-radius: 12px; font-size: 0.8em;
    display: inline-flex; align-items: center; gap: 5px;
  }
  
  .card-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #ffffff;
  }
  
  .program-tag {
    display: inline-block; padding: 4px 10px; border-radius: 4px;
    font-size: 0.75em; font-weight: 700; /* Usa Uni Neue Bold */ margin-bottom: 10px;
    color: #fff; align-self: flex-start;
  }
  .tag-profesional { background-color: #007AC2; }
  .tag-especializado { background-color: #00A9E0; }
  
  .card-content h3 {
      font-size: 1.1em;
      color: #010100;
      margin-bottom: 8px;
      line-height: 1.4;
      font-weight: 700; /* Usa Uni Neue Bold */
  }
  .card-content p { font-size: 0.9em; color: #010100; line-height: 1.5; margin-bottom: 15px; flex-grow: 1; }
  .course-count { font-size: 0.85em; color: #90a4bb; margin-bottom: 15px; display: inline-flex; align-items: center; gap: 5px; }
  
  .details-button {
    display: block; text-align: center; padding: 10px 15px;
    border: 1px solid #007AC2; color: #007AC2;
    background-color: transparent; border-radius: 4px; font-weight: 700; /* Usa Uni Neue Bold */
    text-decoration: none; margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .details-button:hover { background-color: #007AC2; color: #ffffff; }
  
  /* Controles Carousel (si existe) */
  .carousel-controls { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 40px; }
  .arrow-button { color: #007AC2; font-size: 2em; padding: 0 10px; }
  .pagination-dots { display: flex; gap: 8px; }
  .dot { width: 10px; height: 10px; background-color: #4a6b84; border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease; }
  .dot.active { background-color: #007AC2; }
  
  /* Botón Ver Todos */
  .view-all-container { text-align: center; margin-top: 20px; }
  .view-all-button {
    display: inline-block; background-color: #007AC2; color: #fff;
    padding: 12px 35px; border-radius: 4px; font-weight: 700; /* Usa Uni Neue Bold */
    font-size: 1.1em; text-decoration: none;
    transition: background-color 0.3s ease;
  }
  .view-all-button:hover { background-color: #005A90; }
  
  /* ==========================================================================
     7. INSTRUCTOR SECTION
     ========================================================================== */
  
  .instructor-section {
    background-color: #e2fff9;
    color: #333; /* Texto oscuro para fondo claro */
    padding: 100px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .instructor-content {
    display: flex;
    align-items: center;
    gap: 60px;
  }
  
  .instructor-bio {
    flex: 1 1 60%;
    max-width: 60%;
  }
  
  .instructor-title {
    font-size: 2.6em;
    color: #003366;
    font-weight: 700; /* Usa Uni Neue Bold */
    margin-bottom: 40px;
    line-height: 1.3;
  }
  
  .instructor-bio p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
  }
  .instructor-bio p:last-child { margin-bottom: 0; }
  
  .instructor-bio strong {
    font-weight: 700; /* Usa Uni Neue Bold */
    color: #003366;
  }
  
  .instructor-image {
    flex: 1 1 35%;
    max-width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .instructor-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .instructor-cta {
    margin-top: 40px;
    text-align: left;
  }
  .instructor-cta .cta-button { /* Reutiliza o define estilo específico */
    background-color: #007AC2;
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700; /* Usa Uni Neue Bold */
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  .instructor-cta .cta-button:hover {
    background-color: #005A90;
    transform: translateY(-2px);
  }
  
  /* ==========================================================================
     8. CERTIFICATES SECTION
     ========================================================================== */
  
  .certificates-section {
    background-color: #081445;
    color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
    height: 700px;
  }
  
  .certificates-content {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .certificates-image {
    flex: 1 1 48%;
  }
  
  .certificates-image img {
    width: 90%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
  }
  
  .certificates-text {
    flex: 1 1 52%;
  }
  
  .certificates-title {
    font-size: 2.6em;
    font-weight: 700; /* Usa Uni Neue Bold */
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.3;
  }
  
  .certificates-text p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #f0f0f0;
    max-width: 500px;
  }
  
  .cta-button-red { /* Botón opcional */
    display: inline-block;
    background-color: #ffffff;
    color: #a91e22;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700; /* Usa Uni Neue Bold */
    font-size: 1em;
    text-decoration: none;
    margin-top: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 1px solid transparent;
  }
  .cta-button-red:hover {
    background-color: #f0f0f0;
    color: #8c181c;
    transform: translateY(-2px);
  }
  
  /* ==========================================================================
     9. FAQ SECTION (Simple)
     ========================================================================== */
  
  .faq-simple-section {
    background-color: #ffffff;
    padding: 40px 0 0;
    height: 750px;
    color: #333; /* Texto oscuro */
  }
  
  .faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
  }
  
  .faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600; /* Semi-bold, el navegador elegirá el más cercano */
    outline: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #003366;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary .arrow { font-size: 0.8em; transition: transform 0.3s ease; }
  .faq-item[open] summary .arrow { transform: rotate(180deg); }
  
  .faq-item p {
    padding: 0px 20px 20px;
    margin: 0;
    line-height: 1.7;
    color: #555;
  }
  
  /* ==========================================================================
     11. FOOTER
     ========================================================================== */
  
  .main-footer-final {
    background-color: #020c28; /* Azul oscuro */
    color: #bdc3c7; /* Texto gris claro */
    padding: 30px 0;
    font-size: 0.9em;
  }
  
  .footer-container { /* Clase específica para el contenedor del footer */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .footer-copyright p {
    margin: 0;
  }
  
  .footer-links ul {
    padding: 0; margin: 0; display: flex; gap: 25px;
  }
  
  .footer-links a {
    color: #ecf0f1;
    transition: color 0.3s ease;
  }
  .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
  }
  
  
  /* ==========================================================================
     12. MEDIA QUERIES (Responsividad)
     ========================================================================== */
  
  /* --- Tablet (Ej: < 992px) --- */
  @media (max-width: 992px) {
      /* Header */
      .header-left, .header-right { gap: 15px; }
      /* Ocultar nav principal (si se usa menú hamburguesa) */
      /* .main-nav { display: none; } */
  
      /* Hero */
      .hero-container { flex-direction: column; text-align: center; }
      .hero-text { margin-bottom: 40px; flex-basis: auto; }
      .hero-image { flex-basis: auto; }
  
      /* Features */
      .features-list { grid-template-columns: repeat(2, 1fr); gap: 35px 40px; }
  
      /* Instructor */
      .instructor-content { gap: 40px; }
      .instructor-bio { flex-basis: 55%; max-width: 55%; }
      .instructor-image { flex-basis: 40%; max-width: 40%; }
      .instructor-image img { max-width: 280px; }
      .instructor-title { font-size: 2.2em; }
      .instructor-bio p { font-size: 1em; }
  
      /* Certificates */
      .certificates-content { gap: 30px; }
      .certificates-title { font-size: 2.2em; }
      .certificates-text p { font-size: 1.05em; max-width: none; }
  
      /* Contact */
      .contact-content { flex-direction: column; gap: 40px; }
      .contact-form-column,
      .contact-map-column { max-width: 100%; }
      .contact-map-column { min-height: 350px; }
  }
  
  /* --- Mobile (Ej: < 768px) --- */
  @media (max-width: 768px) {
      /* Header */
      .main-header .container { flex-direction: column; gap: 15px; }
      .header-right { flex-wrap: wrap; justify-content: center; }

      .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
      }
      
      .main-nav a,
      .main-nav .premium {
        font-size: 0.85em;
        padding: 8px 10px;
        white-space: nowrap;
      }
      
  
      /* Hero */
      .hero-text h1 { font-size: 2.2em; }
      .hero-text p { font-size: 1em; }
      .cta-button { font-size: 1em; padding: 10px 22px; }
  
      /* Courses */
      .courses-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
        justify-content: center;
      }
      .category-nav { padding: 0 5px; }
      .category-tabs { padding: 0 10px; }

      #course-loader {
        /* ... tus estilos para el loader ... */
         grid-column: 1 / -1;
         text-align: center;
         padding: 40px;
         color: #555;
      }
  
      /* Features */
      .features-section { padding: 90px 0; }
      .features-section .section-title { font-size: 2.4em; margin-bottom: 50px; margin-top: 40px;}
      .features-list { grid-template-columns: repeat(2, 1fr); gap: 35px 30px; max-width: 100%; }
      .features-list li i { font-size: 2.5em; margin-right: 15px; }
      .feature-text h3 { font-size: 1.3em; }
      .feature-text p { font-size: 1.0em; }
  
      /* Instructor */
      .instructor-section { padding: 60px 0; }
      .instructor-content { flex-direction: column-reverse; gap: 40px; text-align: center; }
      .instructor-bio { flex-basis: 100%; max-width: 100%; text-align: left; }
      .instructor-image { flex-basis: auto; max-width: 250px; margin: 0 auto; width: 70%; }
      .instructor-image img { max-width: 100%; border-width: 4px; }
      .instructor-title { font-size: 2em; margin-bottom: 30px; text-align: center; }
      .instructor-cta { text-align: center; }
  
      /* Certificates */
      .certificates-section { padding: 60px 0; }
      .certificates-content { flex-direction: column; text-align: center; }
      .certificates-image { margin-bottom: 40px; order: 1; flex-basis: auto; }
      .certificates-image img { max-width: 85%; }
      .certificates-text { order: 2; flex-basis: auto; }
      .certificates-title { font-size: 1.9em; margin-bottom: 20px; }
      .certificates-text p { font-size: 1em; margin: 0 auto; }
      .cta-button-red { margin-top: 25px; }
  
      /* Contact */
      .contact-section { padding: 50px 0; }
      .contact-title { font-size: 2.2em; margin-bottom: 30px; }
      .recaptcha-group { flex-direction: column; align-items: stretch; }
      .submit-button { width: 100%; padding: 18px; }
  
      /* Footer */
      .footer-container { flex-direction: column; text-align: center; gap: 10px; }
      .footer-links ul { justify-content: center; gap: 20px; }
  }
  
  /* --- Mobile Small (Ej: < 576px) --- */
  @media (max-width: 576px) {
      /* Features */
      .features-list { grid-template-columns: 1fr; gap: 30px; }
      .features-list li { padding: 5px; }
  }
  @keyframes parpadeo {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }
  
  .cta-button:hover {
    animation: parpadeo 1s infinite;
  }

   /* --- resoruces --- */
   .resources-section {
    background-color: #f4f2fb;
    padding: 60px 0;
  }
  
  .resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .resource-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .resource-card:hover {
    transform: translateY(-5px);
  }
  
  .resource-card img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .resource-content {
    padding: 20px;
  }
  
  .resource-title {
    font-size: 1.8em;
    color: #04184f;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .resource-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
  }
  
  .resource-button {
    display: inline-block;
    background-color: #007AC2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
  }
  
  .resource-button:hover {
    background-color: #005A90;
  }
  
  .fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .fade-in {
    animation: fadeIn 0.5s forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Ejemplo para la animación de 3 puntos */
  .loader-dots {
    display: flex;
    gap: 5px;
    font-size: 2em;
  }
  .loader-dots span {
    animation: blink 1s infinite;
  }
  .loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
  }
  .loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  .floating-icons {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: #0D2B5B;
    padding: 8px; /* Reducido de 10px */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reducido de 15px */
    z-index: 9999;
  }
  
  .floating-icons a img {
    width: 22px;  /* Reducido de 40px */
    height: 22px; /* Reducido de 40px */
    display: block;
    background: transparent;
  }
  
  .resource-card {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    margin-bottom: 20px;
  }
  
  .resource-card img {
    width: 150px;
    object-fit: cover;
  }
  
  .resource-content {
    padding: 15px;
    flex: 1;
  }
  
  .resource-title {
    margin: 0 0 10px;
    font-size: 1.2em;
  }
  
  .resource-description {
    margin: 0 0 12px;
    font-size: 0.95em;
    color: #444;
  }
  
  .resource-button {
    background-color: #4c42b8;
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-block;
  }
  
  .resource-button:hover {
    background-color: #3a3391;
  }
  
  /* Estilos adaptativos por tipo */
  .resource-card.descargable .resource-button::before {
    content: "📥 ";
  }
  
  .resource-card.video .resource-button::before {
    content: "▶ ";
  }
  
  .resource-card.externo .resource-button::before {
    content: "🌐 ";
  }
  