* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Header */
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; /* Aumentado el espacio entre elementos */
    position: relative;
    z-index: 1000;
}

/*Estilos para el logo tlalnepantla*/ 
.tlalnepantla-logo {
    width: 120px; /* Reducido para mejor ajuste */
    height: 150px; /* Reducido para mejor ajuste */
    object-fit: contain;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
    transform: scale(1.8); /* Reducido significativamente */
    transform-origin: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: visible;
}

.educaet-logo {
    max-width: 200px; /* Reducido para mejor ajuste */
    height: auto;
    border: none;
    outline: none;
    background-color: transparent;
    object-fit: contain;
    transform: scale(1.5); /* Reducido significativamente */
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 1001; /* Asegura que los botones estén por encima */
    position: relative;
}

/* BOTONES DEL NAVBAR ACTUALIZADOS A COLOR VINO */
.nav-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: #8B1538; /* COLOR VINO */
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    z-index: 1002;
}

.nav-btn:hover {
    background: #6B0F28; /* COLOR VINO MÁS OSCURO AL HOVER */
    transform: translateY(-2px);
}

/* ENLACES DEL NAVBAR ACTUALIZADOS A COLOR VINO */
.nav-link {
    display: inline-block;
    padding: 10px 20px;
    background: #8B1538; /* COLOR VINO */
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
}

.nav-link:hover {
    background: #6B0F28; /* COLOR VINO MÁS OSCURO AL HOVER */
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #8B1538 0%, #6B0F28 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-image {
    width: 100%;
    margin: 0 auto 30px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 600px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content {
    text-align: center;
    color: white;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-content .free {
    color: #FFD700;
    font-weight: bold;
}

/* Info Section */
.info-section {
    background: #DEB887;
    padding: 80px 50px;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.info-left h2 {
    font-size: 42px;
    color: #8B1538;
    margin-bottom: 20px;
}

.info-right {
    flex: 1;
    background: #8B1538;
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.caet-btn {
    background: white;
    color: #8B1538;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.caet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Courses Section */
.courses {
    padding: 80px 50px;
    background: white;
}

.courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.course-card {
    background: #8B1538;
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.course-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.course-card p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.ver-mas-btn {
    background: white;
    color: #8B1538;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.ver-mas-btn:hover {
    background: #F5F5F5;
}

.center-logo {
    text-align: center;
    padding: 30px 0;
}

.center-logo h2 {
    font-size: 48px;
    color: #8B1538;
}

.center-logo span {
    color: #E67E22;
}

.more-section {
    text-align: center;
    padding: 60px 0;
}

.more-section h2 {
    font-size: 42px;
    color: #8B1538;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Footer - IDÉNTICO AL CATÁLOGO */
.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;
    mix-blend-mode: multiply;
}

.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 footer */
@media (max-width: 768px) {
    .footer-content .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-content .container-fluid {
        padding: 0 20px;
    }
    
    .logo-page-footer {
        max-width: 200px;
    }
}

@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; /* Los botones van al final en móvil */
    }

    .nav-btn {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        margin: 5px 0;
    }

    .hero-image {
        width: 100%;
        padding: 0;
    }

    .hero-image img {
        min-height: 300px;
        max-height: 400px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .info-container {
        flex-direction: column;
    }

    .footer-content .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }
}

/* Imagen banner */
.imagen-banner {
    width: 150%;
    max-width: 500px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}

.banner-mujeres {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .imagen-banner {
        max-width: 300px;
    }
}