    /* =========================================
           VARIABLES GLOBALES
           ========================================= */
    :root {
      --primary-curso: #7d0000;
      --primary-dark: #4a0000;
      --accent: #d97706;
      --bg-body: #f8fafc;
      --text-main: #0f172a;
      --text-soft: #475569;
      --ed-text-muted: #666666;
      --bg-color: #f4f6f8;
      --radius-xl: 28px;
      --radius-lg: 20px;
    }


    /* 1. NAVEGACIÓN SUPERIOR */
    .navbar-hero {
      background-color: transparent;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      padding: 24px 40px;
      display: flex;
      justify-content: center;
      gap: 40px;
      z-index: 100;
    }

    .navbar-hero a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 1px;
      transition: color 0.3s;
    }

    .navbar-hero a:hover {
      color: #ffffff;
    }

    /* 2. CABECERA HERO CON OLA SVG */
    .hero-banner {
      background: linear-gradient(145deg, #e11d48 0%, #8f0000 100%);
      color: white;
      padding: 120px 20px 220px 20px;
      position: relative;
    }

    .hero-banner::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 120px;
      background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,120L1360,120C1280,120,1120,120,960,120C800,120,640,120,480,120C320,120,160,120,80,120L0,120Z' fill='%23f8fafc'/%3E%3C/svg%3E") no-repeat bottom;
      background-size: cover;
      z-index: 1;
    }

    .hero-container {
      max-width: 1400px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 40px;
    }

    .hero-text-area {}

    .breadcrumb {
      display: inline-block;
      background: rgba(255, 255, 255, 0.15);
      padding: 8px 20px;
      border-radius: 99px;
      color: #fde047;
      font-weight: 700;
      font-size: 1rem;
      margin-bottom: 24px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .hero-title {
      font-size: 4rem;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 24px;
      letter-spacing: -1px;
    }

    .hero-subtitle {
      font-size: 2.2rem;
      color: rgba(255, 255, 255, 0.9);
      line-height: 1.7;
      max-width: 90%;
    }


    .floating-card {
      background: #ffffff;
      border-radius: var(--radius-xl);
      padding: 0;
      box-shadow: 0 25px 50px -12px rgba(125, 0, 0, 0.25);
      position: absolute;
      top: 0;
      right: 0;
      width: 550px;
      color: var(--text-main);
      z-index: 10;
      overflow: hidden;
      border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .card-image-header {
      width: 100%;

      position: relative;
      overflow: hidden;

    }


    .card-image-header img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }


    .card-image-header::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 80px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
      pointer-events: none;
    }

    .card-badge {
      position: absolute;
      top: 20px;
      left: 20px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      color: white;
      padding: 6px 16px;
      border-radius: 99px;
      font-weight: 600;
      font-size: 0.85rem;
      border: 1px solid rgba(255, 255, 255, 0.4);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .card-content {
      padding: 32px;
    }

    .price-tag {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--primary-curso);
      margin-bottom: 24px;
      display: flex;
      align-items: baseline;
      gap: 8px;
      line-height: 1;
    }

    .price-tag span {
      font-size: 1.1rem;
      color: #64748b;
      font-weight: 500;
    }

    .cta-btn-huge {

      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      background: linear-gradient(90deg, #e11d48, #be123c);
      color: white;
      padding: 20px;
      border-radius: 16px;
      font-size: 1.6rem;
      font-weight: 700;
      text-decoration: none;
      margin: 24px 0;
      transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    }

    .cta-btn-huge:hover {
      background: #9e0f33;
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 10px 20px -5px rgba(125, 0, 0, 0.267);
    }

    .cta-btn-huge i {
      opacity: 0;
      max-width: 0;
      transform: translateX(-15px);
      overflow: hidden;
      transition: all 0.3s ease-out;
    }


    .cta-btn-huge:hover i {
      opacity: 1;
      max-width: 20px;
      margin-left: 10px;
      transform: translateX(0);
    }

    .quick-facts {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 16px;
      border-top: 1px solid #f1f5f9;
      padding-top: 24px;
    }

    .quick-facts p {
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 1.6rem;
      color: #475569;
      font-weight: 500;
    }

    .quick-facts i {
      width: 32px;
      height: 32px;
      background: rgba(197, 138, 16, 0.1);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-size: 1.6rem;
    }

    .cecyd-container-materials {
      max-width: 80%;
      margin: 0 auto;
    }

    .cecyd-materials-section {
      background: #ffffff;
      border-radius: 24px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
      padding: 30px;
      margin-top: 20px;
    }

    /* =========================================
           CLASES DE LAS TARJETAS (CON PREFIJO CECYD)
           ========================================= */
    .cecyd-materials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
      margin-top: 20px;
    }

    .cecyd-material-card {
      display: flex;
      gap: 1rem;
      background: var(--ed-surface);
      border: 1px solid var(--ed-border);
      border-radius: 12px;
      padding: 1rem;
      align-items: center;
      transition: transform 0.3s ease;
    }

    .cecyd-material-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .cecyd-material-img {
      width: 120px;
      height: 150px;
      border-radius: 6px;
      box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
      flex-shrink: 0;
      object-fit: cover;
    }

    .cecyd-material-info {
      flex-grow: 1;
      text-align: left;
    }

    .cecyd-material-info h4 {
      margin: 0 0 0.3rem 0;
      font-size: 1.1rem;
      color: var(--primary-curso);
      font-weight: 800;
      line-height: 1.2;
    }

    .cecyd-material-info p {
      margin: 0 0 0.5rem 0;
      font-size: 1rem;
      color: var(--text-soft);
      line-height: 1.3;
    }

    .cecyd-material-badge {
      display: inline-block;
      font-size: 0.95rem;
      padding: 3px 8px;
      border-radius: 5px;
      background: rgba(232, 97, 39, 0.1);
      color: var(--ed-accent);
      font-weight: 800;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .cecyd-level {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 5px;
    }

    .cecyd-level-item {
      background: var(--bg-color);
      border: 1px solid var(--ed-border);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 0.8rem;
      color: var(--ed-text-muted);
      margin: 0;
      font-weight: bold;
    }

    .cecyd-editorial-related {
      margin-bottom: 4rem !important;
      margin-top: 2rem;
    }

    .cecyd-editorial-related .cecyd-syllabus-header {
      margin-bottom: 3rem;
    }

    .cecyd-editorial-related p {
      font-size: 1.6rem;
      line-height: 1.5;
      color: #333;
    }

    .related-grid-cecyd {
      display: flex;
      flex-wrap: wrap;
      gap: 2.5rem !important;
    }


    .course-list-card {
      position: relative;
      max-width: 350px;
      min-width: 250px;
      aspect-ratio: 4 / 5;
      border-radius: 22px;
      overflow: hidden;
      border: 2px solid #f07c22;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
      text-decoration: none;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
      background: #fff;
    }

    .course-list-img {
      position: absolute;
      inset: 0;
      z-index: 1;
      background: #fff;
    }

    .course-list-img img {
      width: 100%;
      height: 100%;
      transform-origin: center;
      object-fit: cover;
      object-position: center;
      display: block;
    }

    .course-list-card:hover .course-list-img img {
      transform: scale(1.1);
    }

    .course-list-img .badge {
      position: absolute;
      top: 1rem;
      right: 1rem;
      z-index: 4;
      font-size: 0.75rem;
      padding: 0.4rem 0.8rem;
      border-radius: 50px;
    }


    .course-list-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to top,
          rgba(255, 255, 255, 0.98) 0%,
          rgba(255, 255, 255, 0.9) 50%,
          rgba(255, 255, 255, 0.2) 100%);
      z-index: 2;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .course-list-card:hover::after {
      opacity: 1;
    }

    .course-list-content {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      padding: 1.2rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      z-index: 3;
      opacity: 0;
      transform: translateY(14px);
      transition: all 0.4s ease;
    }

    .course-list-card:hover .course-list-content {
      opacity: 1;
      transform: translateY(0);
    }

    .course-list-header {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .course-list-header .title {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 0.35rem;
      line-height: 1.2;
      color: var(--text-light);

    }

    .course-list-header .meta p {
      font-size: 1.2rem;
      color: var(--text-muted);
      margin-bottom: 0.8rem;
    }

    .course-list-header .description {
      font-size: 0.95rem;
      color: var(--text-muted);
      max-width: 100%;
      margin-top: 0.7rem;
      line-height: 1.5;
      text-align: justify;
    }

    .cecyd-course-list-link {
      color: var(--ed-text-main, #7d0000);
      /* Color guinda por defecto */
      text-decoration: none;
      font-size: 1.2rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      transition: all 0.2s ease-in-out;
      padding: 2px 0;
      border-bottom: 2px solid transparent;
    }


    .aplicaciones-container {
      max-width: 80%;
      margin: 40px auto;
      padding: 20px;
      font-family: system-ui, -apple-system, sans-serif;
    }


    .aplicaciones-header {
      text-align: center;
      margin-bottom: 32px;
    }

    .aplicaciones-header h2 {

      text-transform: uppercase;
      margin: 0 0 16px 0;
      letter-spacing: 1px;
    }


    .instruccion-card {
      background: #fffbeb;
      border: 1px solid #fde68a;
      border-left: 5px solid #d97706;
      border-radius: 12px;
      padding: 24px 32px;
      margin-bottom: 40px;
      display: flex;
      align-items: flex-start;
      gap: 20px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }

    .instruccion-icon {
      background: #d97706;
      color: white;
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.6rem;
      flex-shrink: 0;
    }

    .instruccion-content h3 {
      margin: 0 0 8px 0;
      color: #92400e;
      font-size: 1.8rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .instruccion-content p {
      margin: 0;
      color: #78350f;
      font-size: 1.6rem;
      line-height: 1.6;
    }

    .email-link {
      color: #d97706;
      background: #fef3c7;
      padding: 2px 8px;
      border-radius: 6px;
      font-weight: 700;
      text-decoration: none;
      display: inline-block;
      transition: background 0.2s ease;
    }

    .email-link:hover {
      background: #fde68a;
    }

    /* Grid de Modalidades */
    .modalidades-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 32px;
    }

    /* Tarjetas de modalidades */
    .modalidad-card {
      background: #ffffff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      border: 1px solid #e2e8f0;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .modalidad-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }

    /* Cabecera general de modalidades */
    .modalidad-header {
      color: white;
      padding: 18px;
      text-align: center;
    }

    .modalidad-header h3 {
      margin: 0;
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: 1px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
    }

    /* Estilos específicos Presencial (Azul) */
    .modalidad-card.presencial .modalidad-header {
      background: #2563eb;
      border-bottom: 4px solid #1e40af;
    }

    /* Estilos específicos A Distancia (Naranja) */
    .modalidad-card.distancia .modalidad-header {
      background: #ea580c;
      border-bottom: 4px solid #c2410c;
    }

    /* Cuerpo de la imagen */
    .modalidad-body {
      padding: 0;
      background: #f8fafc;
    }

    .modalidad-body img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* Ajustes responsivos para dispositivos móviles */
    @media (max-width: 600px) {
      .instruccion-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
      }
    }

    .cecyd-course-list-link:hover {
      color: var(--ed-accent, #d3ac00);
      /* Cambia a dorado al pasar el cursor */
      border-bottom: 2px solid var(--ed-accent, #d3ac00);
      /* Subrayado animado */
      transform: translateX(3px);
      /* Pequeño salto hacia la derecha */
    }

    /* Ajuste opcional para el span interno si quieres un icono sutil */
    .cecyd-course-list-link span::after {
      content: " \2192";
      /* Código para una flecha derecha (→) */
      display: inline-block;
      margin-left: 4px;
      transition: transform 0.2s ease;
    }

    .lcecyd-course-list-link:hover span::after {
      transform: translateX(4px);
    }


    @media (max-width: 1024px) {
      .hero-container {
        grid-template-columns: 1fr;
      }

      .floating-card {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-top: 40px;
      }

      .hero-banner {
        padding-bottom: 100px;
      }

      .hero-banner::after {
        display: none;
      }
    }

    .main-content {
      max-width: 80%;
      margin: 0 auto;
      padding: 0 20px;
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 40px;
      margin-top: -40px;
    }

    @media (max-width: 1024px) {
      .main-content {
        grid-template-columns: 1fr;
        margin-top: 40px;
      }
    }

    .content-left {
      position: relative;
      z-index: 5;
      padding-right: 20px;
    }

    .section-heading {

      margin-bottom: 24px;
      margin-top: 60px;
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .section-heading:first-child {
      margin-top: 0;
    }

    .section-heading i {
      color: var(--accent);
      background: #fffbeb;
      padding: 12px;
      border-radius: 12px;
      font-size: 2rem;
    }

    .text-body {
      font-size: 2.2rem;
      color: var(--text-soft);
      line-height: 1.8;
      margin-bottom: 24px;
    }


    .dates-container {
      display: flex;
      flex-direction: column;
      gap: 24px;
      margin-top: 30px;
    }

    .ticket-card {
      display: flex;
      background: white;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.02);
      transition: transform 0.3s;
    }

    .ticket-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px -10px rgba(125, 0, 0, 0.15);
    }

    .ticket-modality {
      background: var(--primary-curso);
      color: white;
      width: 150px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 1.2rem;
      text-align: center;
      padding: 20px;
    }

    .ticket-modality i {
      font-size: 2.2rem;
      color: rgba(255, 255, 255, 0.7);
    }

    .ticket-details {
      padding: 30px;
      flex: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      position: relative;
    }

    .ticket-details::before {
      content: '';
      position: absolute;
      left: -10px;
      top: 0;
      bottom: 0;
      width: 20px;
      background-image: radial-gradient(circle at 0px 50%, var(--bg-body) 8px, transparent 9px);
      background-size: 20px 24px;
      background-position: left;
    }

    .t-row strong {
      display: block;
      font-size: 1.6rem;
      color: var(--text-soft);
      text-transform: uppercase;
      margin-bottom: 6px;
      letter-spacing: 0.5px;
      color: #d97706;
      font-weight: 700;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .t-row span {
      color: var(--text-main);
      font-size: 1.6rem;
      color: #0f172a;
      font-weight: 700;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    @media (max-width: 600px) {
      .ticket-card {
        flex-direction: column;
      }

      .ticket-modality {
        width: 100%;
        padding: 15px;
        flex-direction: row;
      }

      .ticket-details::before {
        display: none;
      }

      .ticket-details {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
      }
    }

    /* 6. TEMARIO CON LÍNEA DE TIEMPO ANIMADA */
    .timeline-list {
      list-style: none;
      position: relative;
      padding-left: 30px;
      margin-top: 30px;
    }

    .timeline-list::before {
      content: '';
      position: absolute;
      top: 10px;
      left: 7px;
      bottom: 10px;
      width: 2px;
      background: repeating-linear-gradient(to bottom, #cbd5e1 0, #cbd5e1 6px, transparent 6px, transparent 12px);
    }

    .timeline-list li {
      position: relative;
      margin-bottom: 24px;
      font-size: 1.1rem;
      color: var(--text-main);
      font-weight: 500;
      background: white;
      padding: 20px 24px;
      border-radius: 16px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
      border: 1px solid #f1f5f9;
      transition: transform 0.3s, border-color 0.3s;
      cursor: default;
    }

    .timeline-list li:hover {
      transform: translateX(10px);
      border-color: var(--accent);
    }

    .timeline-list li::before {
      content: '';
      position: absolute;
      left: -31px;
      top: 25px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 4px var(--bg-body);
      transition: transform 0.3s;
    }

    .timeline-list li:hover::before {
      transform: scale(1.3);
    }