/* ==========================================
   01. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================== */
:root {
    --primary-dark: #0b131e;
    --primary-blue: #0088ff;
    --accent-cyan: #00e5ff;
    --bg-light: #f4f7fb;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

body.hero-body {
    overflow: hidden;
    background-color: var(--primary-dark);
    height: 100vh;
    width: 100vw;
}

body.secundario-body {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1effe 100%);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
}

/* ==========================================
   02. BARRA DE NAVEGACIÓN Y MENÚS
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 95px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 115, 230, 0.08);
    border-bottom: 1px solid #dbeafe;
}

.navbar.navbar-cristal {
    background-color: rgba(11, 19, 30, 0.25);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo img,
.nav-logo-img img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo img:hover,
.nav-logo-img img:hover {
    transform: scale(1.03);
}

.nav-logo-img {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-blue);
}

.navbar-cristal .nav-links a {
    color: #ffffff;
}

.navbar-cristal .nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-alumno {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0066cc !important;
}

/* Botones de navegación */
.btn-inscribirme {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 180, 219, 0.35);
    transition: all 0.3s ease !important;
}

.btn-inscribirme:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.5);
}

.btn-volver-portada {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 6px 16px !important;
    border-radius: 20px;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-volver-portada:hover {
    background: #ffffff;
    color: var(--primary-dark) !important;
}

/* Menú Desplegable (Dropdown) */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(11, 19, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 170px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu a {
    padding: 10px 18px;
    color: #ffffff;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-dark);
    cursor: pointer;
    z-index: 1100;
}

/* ==========================================
   03. SECCIÓN HERO / PORTADA
   ========================================== */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('logo.jpg');
    background-size: cover;
    background-position: 30% center;
    background-repeat: no-repeat;
    animation: transicionBlurZoom 8s infinite alternate ease-in-out;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 19, 30, 0.85) 0%, rgba(11, 19, 30, 0.2) 60%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.btn-container {
    display: inline-block;
    animation: aparecerBoton 1s ease-out forwards;
}

.btn-comenzar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #041225;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-blue) 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.7), 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    animation: pulsoNeon 2.5s infinite;
}

.btn-comenzar i {
    transition: transform 0.3s ease;
}

.btn-comenzar:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, #33ebff 0%, #3399ff 100%);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.95), 0 8px 25px rgba(0, 0, 0, 0.6);
    color: #000;
}

.btn-comenzar:hover i {
    transform: translateX(6px);
}

/* Hero Secundario */
.secundario-hero-header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    background-image: url('potada.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 40px 40px 70px;
}

.secundario-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
}

.hero-text-box h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.15;
    text-shadow: 2px 3px 15px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.6);
}

.hero-text-box h1 span {
    color: var(--accent-cyan);
    text-shadow: 0 0 25px rgba(0, 229, 255, 0.8);
}

.hero-text-box > p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.9);
}

.eslogan-tectra {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #ffffff;
    background: rgba(11, 19, 30, 0.45);
    backdrop-filter: blur(6px);
    padding: 25px 30px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-cyan);
    margin: 0;
    line-height: 1.7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   04. ENCABEZADOS Y CONTENEDORES DE CURSOS
   ========================================== */
.cursos-header {
    padding: 160px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2942 100%);
    color: #ffffff;
}

.cursos-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.cursos-header h1 span {
    color: var(--accent-cyan);
}

.cursos-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

.header-btn-container {
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.btn-explorar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #041225;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-blue) 100%);
    border: none;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-explorar:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #33ebff 0%, #3399ff 100%);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.8);
    color: #000;
}

.cursos-container {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
}

/* Tarjetas de Cursos */
.curso-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.curso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 136, 255, 0.15);
    border-color: var(--accent-cyan);
}

.curso-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #000;
}

.curso-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.curso-card:hover .curso-img-wrapper img {
    transform: scale(1.1);
}

.curso-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(11, 19, 30, 0.85);
    backdrop-filter: blur(5px);
    color: var(--accent-cyan);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.curso-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.curso-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.curso-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.curso-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.curso-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.curso-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.curso-modalidad {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.btn-detalles {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-detalles:hover {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

/* ==========================================
   05. SECCIÓN ¿QUIÉNES SOMOS? (Glassmorphism)
   ========================================== */
.quienes-somos-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(11, 19, 30, 0.95) 0%, rgba(18, 35, 55, 0.9) 100%), url('11.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

.quienes-somos-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.qs-header {
    text-align: center;
}

.qs-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.qs-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--accent-cyan);
}

.qs-subtitulo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #cfd8dc;
}

.qs-card-glass {
    background: rgba(11, 19, 30, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.qs-card-glass:hover {
    transform: translateY(-5px);
}

.qs-grid-principal {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.qs-texto-principal p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.qs-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.qs-feature-item {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 12px;
}

.qs-feature-item strong {
    color: #ffffff;
}

.qs-image-box {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.qs-img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.qs-image-box:hover .qs-img-fluid {
    transform: scale(1.03);
}

.qs-grid-mision-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.qs-card-glass h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.qs-card-glass p {
    color: #e2e8f0;
    line-height: 1.6;
}

.qs-valores-box h3 {
    text-align: center;
    margin-bottom: 25px;
}

.qs-valores-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
}

.qs-valores-list li {
    background: rgba(255, 255, 255, 0.04);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.qs-valores-list strong {
    color: var(--accent-cyan);
}

.qs-equipo-section {
    margin-top: 20px;
}

.qs-grid-equipo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.qs-miembro h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.qs-miembro p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* Galería Estratégica */
.qs-galeria-estrategica {
    margin-top: 40px;
}

.qs-grid-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.qs-galeria-item {
    background: rgba(11, 19, 30, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    height: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.qs-galeria-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.25);
    border-color: rgba(0, 229, 255, 0.5);
}

.qs-galeria-item .qs-img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.qs-galeria-item:hover .qs-img-fluid {
    transform: scale(1.06);
}

/* ==========================================
   06. FOOTER
   ========================================== */
footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 3px solid var(--primary-blue);
}

footer p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ==========================================
   07. ANIMACIONES KEYFRAMES
   ========================================== */
@keyframes transicionBlurZoom {
    0% {
        filter: blur(12px);
        transform: scale(1.08);
    }
    50% {
        filter: blur(0px);
        transform: scale(1);
    }
    100% {
        filter: blur(10px);
        transform: scale(1.05);
    }
}

@keyframes pulsoNeon {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 35px rgba(0, 229, 255, 0.9), 0 8px 20px rgba(0, 0, 0, 0.5); }
}

@keyframes aparecerBoton {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   08. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .qs-grid-galeria {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-bg {
        background-position: 25% center;
    }

    .navbar {
        padding: 0 20px;
        height: 80px;
    }

    .nav-logo img,
    .nav-logo-img img {
        height: 55px;
    }

    .qs-grid-principal,
    .qs-grid-mision-vision,
    .qs-grid-equipo {
        grid-template-columns: 1fr;
    }

    .secundario-container h1 {
        font-size: 2.2rem;
    }

    .secundario-container p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: rgba(11, 19, 30, 0.95);
        backdrop-filter: blur(15px);
        justify-content: center;
        align-items: center;
        gap: 25px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: #ffffff !important;
    }

    .cursos-header {
        padding: 130px 20px 40px;
    }

    .cursos-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 650px) {
    .qs-grid-galeria {
        grid-template-columns: 1fr;
    }
    
    .qs-galeria-item {
        height: 230px;
    }
}

/* ==========================================
   SECCIÓN DE SERVICIOS (Estilo Glassmorphism)
   ========================================== */
.servicios-section {
    position: relative;
    width: 100%;
    padding: 90px 20px;
    background: linear-gradient(135deg, rgba(11, 19, 30, 0.95) 0%, rgba(18, 35, 55, 0.9) 100%), url('11.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
}

.servicios-header {
    text-align: center;
    margin-bottom: 50px;
}

.servicios-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.servicios-header p {
    font-size: 1.15rem;
    color: #cbd5e1;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Tarjetas con efecto cristal idénticas a Quiénes Somos */
.servicio-card-glass {
    background: rgba(11, 19, 30, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.servicio-card-glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.servicio-card-glass:hover .servicio-icon img {
    transform: scale(1.1);
}

.servicio-card-glass h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

/* Responsivo para Servicios */
@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ESTILOS GENERALES Y BARRA LIMPIA
   ========================================== */
body {
    margin: 0;
    padding: 0;
    background-color: #0b131e;
    font-family: 'Open Sans', sans-serif;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 100;
    background: transparent; /* Sin barras ni fondos extraños */
    box-sizing: border-box;
}

.nav-logo-img img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00d2ff;
}

.btn-volver {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-inscribirme {
    background: #00b4d8;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

/* ==========================================
   SECCIÓN HERO (Sin fondo en la caja de texto)
   ========================================== */
.cursos-hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 140px 20px 80px;
    background-image: url('10.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

.cursos-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 30, 0.45);
    z-index: 1;
}

.cursos-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.cursos-glass-box {
    background: transparent; /* Fondo completamente removido */
    backdrop-filter: none;   
    -webkit-backdrop-filter: none;
    border: none;            
    box-shadow: none;        
    padding: 20px;
}

.cursos-glass-box h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cursos-glass-box p {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* Botón interno del hero */
.btn-explorar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00d2ff;
    color: #0b131e;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-explorar:hover {
    background: #00b4d8;
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================
   CONTENEDOR DE CURSOS (Tarjetas alineadas y ordenadas)
   ========================================== */
.cursos-container {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(11, 19, 30, 0.95) 0%, rgba(18, 35, 55, 0.9) 100%), url('10.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    justify-content: center; 
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Estilo base de las tarjetas de curso */
.curso-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.curso-card:hover {
    transform: translateY(-5px);
}

.curso-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.curso-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.curso-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0b131e;
    color: #00d2ff;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.curso-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.curso-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #0096c7;
    margin-bottom: 12px;
    font-weight: 600;
}

.curso-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0b131e;
    margin: 0 0 12px 0;
}

.curso-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.curso-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    margin-top: auto;
}

.curso-modalidad {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}

.btn-detalles {
    border: 2px solid #00b4d8;
    color: #00b4d8;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-detalles:hover {
    background: #00b4d8;
    color: #fff;
}

/* Footer general */
footer {
    background: #070b12;
    color: #94a3b8;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.formacion-especializada-section {
    padding: 60px 20px;
    background-color: #090e17; /* Fondo azul oscuro exacto */
    color: #f8fafc;
    font-family: 'Montserrat', sans-serif;
}

.fes-container {
    max-width: 1200px;
    margin: 0 auto;
}

.fes-header {
    text-align: center;
    margin-bottom: 40px;
}

.fes-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.fes-header p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 950px;
    margin: 0 auto;
}

.fes-subtitulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 30px;
    color: #00d2ff;
}

.fes-grid-niveles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.fes-card-glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #00d2ff;
}

.fes-card-glass h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.fes-card-glass p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.fes-ventajas-box {
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.fes-ventajas-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.fes-ventajas-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fes-ventajas-list li {
    line-height: 1.6;
    color: #cbd5e1;
}

.fes-ventajas-list strong {
    color: #00d2ff;
}

.fes-cta-final {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(15, 23, 42, 0.8));
    border: 1px solid #00d2ff;
    border-radius: 12px;
    padding: 35px;
}

.fes-cta-final h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.fes-cta-final p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.fes-frase-final {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00d2ff;
}

.secundario-hero-header {
    background-image: url('img/potada.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}        

/* Estilos del Footer: Mismo azul de arriba y logo más grande */
.footer-tectra {
    background-color: #090e17; /* Mismo tono azul/cian de la barra superior */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    padding: 40px 20px 20px 20px;
    text-align: center;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
        
/* Logo centrado, arriba y más grande */
.footer-logo-center {
    margin-bottom: 25px;
}
.footer-logo-center img {
    height: 130px; /* Tamaño aumentado para mayor protagonismo */
    width: auto;
    object-fit: contain;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 25px;
    margin-bottom: 25px;
}
        
.footer-contacto-rapido {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1rem;
    flex-wrap: wrap;
}
.footer-contacto-rapido a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-contacto-rapido a:hover {
    text-decoration: underline;
}

.footer-links-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.footer-links-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}
.footer-links-nav a:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}
.footer-socials a {
    color: #ffffff;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    text-decoration: none;
}
.footer-socials a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}        

/* Corrección para celulares en el título principal */
@media (max-width: 768px) {
    /* Ajusta el tamaño de la letra grande para que quepa en la pantalla del celular */
    .hero-title, h1 {
        font-size: 2.2rem !important; 
        line-height: 1.1 !important;
        word-break: break-word;
    }
    
    /* Asegura que el contenedor respete los márgenes laterales */
    .hero-container, .contenedor-heroes {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}