/* catalogo.css - Estilos adaptados al diseño EDUCAET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

/* Header Mejorado */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    gap: 300px;
    position: relative;
    z-index: 1000;
}

.tlalnepantla-logo {
    width: 120px;
    height: 150px;
    object-fit: contain;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
    transform: scale(1.8);
    transform-origin: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: visible;
}

.educaet-logo {
    max-width: 200px;
    height: auto;
    border: none;
    outline: none;
    background-color: transparent;
    object-fit: contain;
    transform: scale(1.5);
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 1001;
    position: relative;
}

/* Botones Mejorados - Color vino con diseño bonito */
.nav-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #8B1538 0%, #6B0F28 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #6B0F28 0%, #8B1538 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn.active {
    background: linear-gradient(135deg, #6B0F28 0%, #4A0A1C 100%);
    box-shadow: 0 4px 15px rgba(74, 10, 28, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section para Catálogo */
.hero-cursos {
    background: linear-gradient(135deg, #8B1538 0%, #6B0F28 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    text-align: center;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-content-cursos h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Catálogo de Cursos */
.catalogo-simple {
    padding: 60px 20px;
    background: #f8f9fa;
    min-height: 80vh;
}

.titulo-catalogo {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.titulo-catalogo h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #8B1538;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.titulo-catalogo p {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 300;
}

.contador-cursos {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: #7f8c8d;
    background: white;
    padding: 15px 30px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-left: 50%;
    transform: translateX(-50%);
}

.contador-cursos strong {
    color: #8B1538;
    font-size: 1.3rem;
}

/* Grid de Cursos - 4 TARJETAS POR FILA */
.grid-cursos {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas fijas */
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tarjetas de Curso UN POCO MÁS ALTAS */
.tarjeta-curso {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 530px; /* UN POCO MÁS ALTAS - de 500px a 530px */
    border: 1px solid rgba(139, 21, 56, 0.1);
    display: flex;
    flex-direction: column;
}

.tarjeta-curso:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 21, 56, 0.15);
    border-color: rgba(139, 21, 56, 0.3);
}

/* Imagen ajustada para tarjetas estrechas */
.imagen-curso {
    width: 100%;
    height: 150px; /* Imagen más pequeña para tarjetas estrechas */
    object-fit: cover;
    background: linear-gradient(135deg, #8B1538 0%, #6B0F28 100%);
}

.placeholder-imagen {
    width: 100%;
    height: 150px; /* Imagen más pequeña para tarjetas estrechas */
    background: linear-gradient(135deg, #8B1538 0%, #6B0F28 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

/* Contenido ajustado para tarjetas estrechas */
.contenido-curso {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: calc(100% - 150px);
}

.categoria-curso {
    display: inline-block;
    background: linear-gradient(135deg, #8B1538 0%, #6B0F28 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(139, 21, 56, 0.3);
    align-self: flex-start;
}

.objetivo-curso {
    color: #555;
    font-size: 0.95rem; /* Texto más pequeño para tarjetas estrechas */
    line-height: 1.6;
    overflow: visible;
    opacity: 1;
    flex-grow: 1;
    display: block;
    text-align: left;
    margin: 0;
    padding: 0;
}

/* Efecto de brillo al hover */
.tarjeta-curso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #8B1538 0%, #6B0F28 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tarjeta-curso:hover::before {
    transform: scaleX(1);
}

/* Estilos para el estado de no cursos */
.no-cursos {
    text-align: center;
    padding: 60px 20px;
}

.no-cursos i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-cursos h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.no-cursos p {
    color: #95a5a6;
}

/* Mejoras para botones con iconos */
.nav-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* FOOTER IDÉNTICO AL INICIO */
.seccion-footer {
    background: #F5F5F5;
    padding: 15px 0 0;
    width: 100%;
}

.footer-content .container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-content .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    width: 100%;
}

.footer-content .col-12 {
    width: 100%;
    padding: 0 15px;
}

.footer-content .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.footer-content .text-center {
    text-align: center;
}

.footer-content .mb-3 {
    margin-bottom: 1rem;
}

.footer-content .py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-page-footer {
    max-width: 250px;
    height: auto;
    background: transparent; /* Fondo transparente */
    mix-blend-mode: multiply; /* Mezcla con el fondo */
}

.footer-content .text-primary {
    color: #8B1538;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-content p {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: #8B1538;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #6B0F28;
    text-decoration: underline;
}

.big-font-w {
    font-size: 1.2rem;
    font-weight: 700;
}

.redes-sociales {
    width: 35px;
    height: 35px;
    transition: all 0.3s;
    cursor: pointer;
}

.redes-sociales:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.m-2 {
    margin: 0.5rem;
}

.copyright {
    background: #8B1538;
    padding: 15px 0;
    margin-top: 20px;
    width: 100%;
}

.copyright p {
    color: white;
    margin: 0;
    font-size: 12px;
}

.copyright a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.copyright a:hover {
    color: #FFD700;
}

/* Responsive para 4 tarjetas por fila */
@media (max-width: 1200px) {
    .grid-cursos {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas grandes */
        gap: 25px;
    }
}

@media (max-width: 992px) {
    header {
        gap: 80px;
        padding: 20px 30px;
    }
    
    .grid-cursos {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
        gap: 25px;
    }
    
    .tarjeta-curso {
        height: 510px; /* Un poco más altas en tablet */
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .tlalnepantla-logo {
        transform: scale(1);
        width: 100px;
        height: 120px;
    }

    .educaet-logo {
        transform: scale(1);
        max-width: 150px;
    }

    nav {
        flex-direction: column;
        width: 100%;
        order: 3;
    }

    .nav-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-content-cursos h1 {
        font-size: 2.5rem;
    }

    .titulo-catalogo h1 {
        font-size: 2.2rem;
    }

    .grid-cursos {
        grid-template-columns: 1fr; /* 1 columna en móviles */
        gap: 20px;
    }
    
    .tarjeta-curso {
        height: 480px; /* Un poco más altas en móvil */
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contenido-curso {
        padding: 20px;
    }
    
    .imagen-curso,
    .placeholder-imagen {
        height: 140px;
    }

    .footer-content .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-content .container-fluid {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .catalogo-simple {
        padding: 40px 15px;
    }
    
    .hero-content-cursos h1 {
        font-size: 2rem;
    }
    
    .titulo-catalogo h1 {
        font-size: 1.8rem;
    }
    
    .contador-cursos {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .tarjeta-curso {
        height: 450px; /* Un poco más altas en móvil pequeño */
    }
    
    .contenido-curso {
        padding: 18px;
    }
    
    .objetivo-curso {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .imagen-curso,
    .placeholder-imagen {
        height: 130px;
    }
}