
        /* Estilos generales */
        body {
            font-family: 'Manrope', sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #87CEEB 0%, #4361ee 30%, #f72585 70%, #FF0000 100%);
         
            color: #333;
            min-height: 100vh;
        }
        
        body {
  opacity: 0.95; /* ligera transparencia inicial */
}
body.css-loaded {
  opacity: 1; /* transición suave cuando se cargue el CSS */
}
* {
  transition: all 0.4s ease-in-out;
}

        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 40px;
            background: rgba(255, 255, 255, 0.9);
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .section-header h2 {
            font-size: 2.5rem;
            color: #1e2a44;
            margin-bottom: 15px;
        }
        
        .section-description {
            font-size: 1.1rem;
            color: #555;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .course-card {
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .course-image-container {
            position: relative;
            overflow: hidden;
            height: 200px;
        }
        
        .course-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .course-card:hover .course-image {
            transform: scale(1.05);
        }
        
        .course-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
            opacity: 0.7;
        }
        
        .course-body {
            padding: 20px;
        }
        
        .course-badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            color: white;
            font-size: 0.75rem;
            font-weight: 700;
            margin-bottom: 12px;
        }
        
        .course-title {
            font-size: 1.3rem;
            margin: 0 0 15px;
            color: #1e2a44;
        }
        
        .course-details {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: #666;
        }
        
        .course-button {
            width: 100%;
            padding: 12px;
            background: linear-gradient(to right, #4361ee, #3a0ca3);
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .course-button:hover {
            background: linear-gradient(to right, #3a0ca3, #4361ee);
            transform: translateY(-2px);
        }

        /* Modal Styles with Technology Theme and Background Images */
        dialog.modal {
            max-width: 720px;
            width: 90%;
            border: none;
            border-radius: 16px;
            background: transparent;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
            padding: 0;
            max-height: 85vh;
            overflow-y: auto;
            z-index: 1000;
            transition: opacity 0.3s ease, transform 0.3s ease;
            font-family: 'Manrope', sans-serif;
            position: fixed;
            inset: 0;
            display: none;
            justify-content: center;
            align-items: center;
            margin: auto;
        }

        dialog.modal[open] {
            display: flex;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        dialog.modal::backdrop {
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
        }

        .modal-content {
            width: 100%;
            max-width: 800px;
            background-size: cover;
            background-position: center;
            border-radius: 12px;
            padding: 0;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
            transform: scale(0.95);
            transition: transform 0.3s ease;
            color: #fff;
            background-color: transparent;
        }

        dialog.modal[open] .modal-content {
            transform: scale(1);
        }

        .modal-content::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 0;
        }

        .modal-content * {
            position: relative;
            z-index: 1;
            font-family: 'Manrope', sans-serif;
            font-size: 1.2rem;
            line-height: 1.6;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            background: rgba(67, 97, 238, 0.8);
            color: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 1;
        }

        .modal-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        }

        .btn-close {
            background: none;
            border: none;
            font-size: 1.8rem;
            color: #fff;
            cursor: pointer;
            transition: color 0.3s ease, transform 0.2s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .btn-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .modal-body {
            padding: 25px;
            font-size: 1rem;
            line-height: 1.7;
            color: #fff;
            font-family: 'Manrope', sans-serif;
            background: transparent;
            max-height: 50vh;
            overflow-y: auto;
        }

        .modal-body p {
            margin: 0 0 20px;
            font-size: 0.95rem;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .modal-body h6 {
            font-size: 1.3rem;
            font-weight: 700;
            color: #fff;
            margin: 25px 0 15px;
            letter-spacing: 0.3px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .modal-body ul {
            list-style: none;
            padding: 0;
            margin: 0 0 20px;
        }

        .modal-body ul li {
            padding: 10px 0;
            position: relative;
            padding-left: 30px;
            font-size: 0.95rem;
            color: #fff;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .modal-body ul li::before {
            content: '⚡';
            color: #f72585;
            position: absolute;
            left: 0;
            font-size: 1.1rem;
        }

        .modal-body .row {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
        }

        .modal-body .column {
            flex: 1;
            min-width: 220px;
            background: rgba(30, 42, 68, 0.7);
            padding: 15px;
            border-radius: 8px;
        }

        .modal-body .column h2 {
            font-size: 1.2rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 12px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .modal-footer {
            padding: 20px 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            text-align: right;
            background: transparent;
        }

        .btn-secondary {
            padding: 10px 24px;
            background: linear-gradient(to right, #4361ee, #f72585);
            color: #fff;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
            font-family: 'Manrope', sans-serif;
        }

        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
        }

       /* Background Images for Each Modal (lazy load con --bg-url) */
#modalBarberia .modal-content {
    --bg-url: url("https://placehold.co/800x600/87CEEB/white?text=Barbería");
}

#modalDiseno .modal-content {
    --bg-url: url("https://placehold.co/800x600/4361ee/white?text=Diseño+Gráfico");
}

#modalCocina .modal-content {
    --bg-url: url("https://placehold.co/800x600/f72585/white?text=Cocina");
}

#modalCosmetologia .modal-content {
    --bg-url: url("https://placehold.co/800x600/FF0000/white?text=Cosmetología");
}

#modalCajero .modal-content {
    --bg-url: url("https://placehold.co/800x600/87CEEB/white?text=Cajero+Bancario");
}

#modalLogistica .modal-content {
    --bg-url: url("https://placehold.co/800x600/4361ee/white?text=Logística");
}

#modalAdministracion .modal-content {
    --bg-url: url("https://placehold.co/800x600/f72585/white?text=Administración");
}

#modalEmpresas .modal-content {
    --bg-url: url("https://placehold.co/800x600/FF0000/white?text=Empresas");
}

#modalComputacion .modal-content {
    --bg-url: url("https://placehold.co/800x600/87CEEB/white?text=Computación");
}

#modalCelulares .modal-content {
    --bg-url: url("https://placehold.co/800x600/4361ee/white?text=Celulares");
}

#modalComputadoras .modal-content {
    --bg-url: url("https://placehold.co/800x600/f72585/white?text=Computadoras");
}

#modalExcel .modal-content {
    --bg-url: url("https://placehold.co/800x600/FF0000/white?text=Excel");
}

#modalPasteleria .modal-content {
    --bg-url: url("https://placehold.co/800x600/87CEEB/white?text=Pastelería");
}

#modalEnfermeria .modal-content {
    --bg-url: url("https://placehold.co/800x600/4361ee/white?text=Enfermería");
}

#modalFarmacia .modal-content {
    --bg-url: url("https://placehold.co/800x600/f72585/white?text=Farmacia");
}

#modalFisioterapia .modal-content {
    --bg-url: url("https://placehold.co/800x600/FF0000/white?text=Fisioterapia");
}

#modalIngles .modal-content {
    --bg-url: url("https://placehold.co/800x600/87CEEB/white?text=Inglés");
}

#modalContabilidad .modal-content {
    --bg-url: url("https://placehold.co/800x600/4361ee/white?text=Contabilidad");
}

        /* Responsive Adjustments for Modals */
        @media (max-width: 768px) {
            dialog.modal {
                width: 95%;
                max-height: 90vh;
            }

            .modal-content {
                padding: 0;
            }

            .modal-title {
                font-size: 1.5rem;
            }

            .modal-body {
                padding: 20px;
                font-size: 0.9rem;
            }

            .modal-body h6 {
                font-size: 1.1rem;
            }

            .modal-body .column {
                min-width: 100%;
            }

            .modal-body p {
                font-size: 0.9rem;
            }

            .modal-body ul li {
                font-size: 0.9rem;
            }

            .btn-secondary {
                padding: 8px 20px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 576px) {
            dialog.modal {
                width: 98%;
            }

            .modal-content {
                padding: 0;
            }

            .modal-title {
                font-size: 1.3rem;
            }

            .modal-body p {
                font-size: 0.85rem;
            }

            .modal-body ul li {
                font-size: 0.85rem;
            }

            .modal-body .column h2 {
                font-size: 1rem;
            }
            
            .modal-header {
                padding: 15px 20px;
            }
            
            .modal-body {
                padding: 15px;
            }
            
            .modal-footer {
                padding: 15px 20px;
            }
        }
    
    

/* Cuadro del título más angosto y centrado */
.titulo-box {
  width: 70%;            /* antes 100% */
  margin: 0 auto 25px;   /* lo centra y mantiene separación */
  background: rgba(255, 255, 255, 0.85);
  padding: 25px 10px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  z-index: 99999 !important;
  backdrop-filter: blur(5px);

  /* Anula cualquier filtro global */
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Título */
.titulo-cursos {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #000 !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.25);
  font-size: clamp(28px, 4vw, 55px);

  /* Se asegura de no ser ocultado */
  position: relative;
  z-index: 999999 !important;
  mix-blend-mode: normal !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Aumentar tamaño del párrafo de descripción */
.section-description {
  font-size: 1.25rem;   /* antes normal => ahora más grande */
  line-height: 1.7;
  color: #222;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

