/* ==========================================================================
   VARIABLES Y RESET
   ========================================================================== */
:root {
    --primary-color: #D49A1F; /* Dorado Rey Jei */
    --primary-hover: #b58218;
    --secondary-color: #111111; 
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--white);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Menú Hamburguesa - Corregido a 1 clic */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 10px;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0) 100%), url('https://images.unsplash.com/photo-1518605368461-1e1e12798f04?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center right/cover no-repeat;
    position: relative;
}

.hero-content {
    max-width: 600px;
    padding: 40px 0;
}

.hero-subtitle {
    color: var(--primary-color);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-headings);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   PROGRAMAS
   ========================================================================== */
.programas {
    padding: 80px 0 40px;
    background: var(--white);
    text-align: center;
}

.section-subtitle {
    color: var(--primary-color);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-subtitle::before, .section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--primary-color);
}

.section-subtitle::before { left: -40px; }
.section-subtitle::after { right: -40px; }

.section-title {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 50px;
}

.programas-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.programa-card {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.programa-img-wrapper {
    position: relative;
    height: 180px;
}

.programa-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programa-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
}

.programa-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 4px solid var(--white);
    z-index: 2;
}

.programa-info {
    padding: 40px 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.programa-info h3 {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.programa-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.link-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ==========================================================================
   BENEFICIOS
   ========================================================================== */
.beneficios {
    padding: 0 0 60px;
}

.beneficios-container {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    background: var(--white);
}

.beneficio-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 23%;
    border-right: 1px solid #eaeaea;
    padding-right: 15px;
}

.beneficio-item:last-child {
    border-right: none;
    padding-right: 0;
}

.beneficio-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.beneficio-text h4 {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.beneficio-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TRES BLOQUES (FUNDACIÓN, GALERÍA, BECA)
   ========================================================================== */
.tres-bloques {
    padding: 40px 0;
}

.bloques-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 20px;
}

.bloque-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 25px;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.bloque-card h4 {
    color: var(--primary-color);
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Bloque 1: Fundación */
.fundacion-content {
    display: flex;
    gap: 20px;
}

.fundacion-img {
    width: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.fundacion-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fundacion-text p {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

/* Bloque 2: Galería (SIN LUPA - Corrección aplicada) */
.galeria-minigrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.galeria-minigrid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    pointer-events: none; /* Anula completamente cualquier evento de hover/zoom/lupa */
}

/* Bloque 3: Step Up */
.stepup-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.stepup-logo {
    max-width: 180px;
    margin-bottom: 15px;
}

.stepup-content p {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   FUNDADOR (COACH)
   ========================================================================== */
.fundador {
    padding: 60px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.fundador-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.fundador-info {
    padding: 50px;
    flex: 1;
    z-index: 2;
}

.fundador-info .section-subtitle {
    margin-bottom: 5px;
}

.fundador-info h2 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.fundador-info p {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 25px;
}

.fundador-lista {
    margin-bottom: 30px;
}

.fundador-lista li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.fundador-lista i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.fundador-img {
    flex: 1;
    position: relative;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1552667466-07770ae110d0?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .programas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bloques-grid {
        grid-template-columns: 1fr;
    }
    .beneficios-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    .beneficio-item {
        width: 45%;
        border-right: none;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 30px 0;
        gap: 20px;
    }
    .nav-menu.active { left: 0; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero h1 { font-size: 2.5rem; }
    .programas-grid { grid-template-columns: repeat(2, 1fr); }
    .beneficio-item { width: 100%; }
    .fundador-container { flex-direction: column; }
    .fundador-img { width: 100%; min-height: 300px; }
}

@media (max-width: 480px) {
    .programas-grid { grid-template-columns: 1fr; }
    .fundacion-content { flex-direction: column; }
    .hero-btns { flex-direction: column; }
}