/* Variables de Marca */
:root {
    --gold: #c5a059;
    --dark: #121212;
    --dark-grey: #2a2a2a;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --transition: all 0.3s ease;
}

/* Reset General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* --- NAVEGACION --- */
header {
    background: #000000;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
    width: auto;
    max-height: 60px; /* Ajustado para mejor estética */
    transition: var(--transition);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--gold);
}

.btn-nav {
    background: var(--gold);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Menu Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://webchetumal.com/iconic/bg2.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-main {
    background: var(--gold);
    color: #ffffff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: #ffffff;
    padding: 13px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-left: 15px;
}

/* --- CURSOS --- */
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #777777;
    margin-bottom: 50px;
}

.grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.curso-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.img-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.curso-info { padding: 20px; }
.curso-info h3 { color: var(--gold); margin-bottom: 10px; }

/* --- BENEFICIOS --- */
.bg-light { background: var(--light-bg); }
.grid-beneficios { display: flex; justify-content: space-around; gap: 30px; text-align: center; }
.beneficio-item .icon { font-size: 3rem; margin-bottom: 15px; display: block; }

/* --- TESTIMONIOS --- */
.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonio-card { background: var(--white); padding: 30px; border-radius: 10px; border-left: 5px solid var(--gold); }

/* --- CONTACTO --- */
.bg-dark { background: var(--dark); color: var(--white); }
.contact-flex { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.contact-text, .contact-form { flex: 1; min-width: 300px; }
.contact-form { background: var(--dark-grey); padding: 30px; border-radius: 10px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 15px; background: #444; border: 1px solid #555; color: white; border-radius: 5px;
}
.full-width { width: 100%; }

/* --- FOOTER --- */
footer { background: #000; color: #888; padding: 20px 0; text-align: center; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px 0;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; }
    .nav-links li a { margin-left: 0; font-size: 1.1rem; }
    .hero h1 { font-size: 2.2rem; }
    .grid-beneficios { flex-direction: column; }
    .btn-secondary { margin-left: 0; margin-top: 10px; }
}

.logo img {
    display: block;
    /* Respetar el tamaño real del archivo original */
    width: auto; 
    height: auto;
    /* Eliminamos las restricciones de tamaño previas */
    max-width: 100%; /* Evita que el logo se salga de la pantalla en móviles muy pequeños */
    transition: var(--transition);
}