/* Estilos específicos de index.html */

/* =========================================================================
   Sección Hero
   ========================================================================= */
.hero {
    /* bg-main ya aplicado en body, pero podemos reforzar o poner algo especial */
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 80vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(100, 50, 200, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none; /* Para que no bloquee clicks */
}

.hero-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.hero-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.hero-content {
    width: 50%;
    padding-right: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #ffffff, #c2c2f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-image {
    max-width: 45%;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.8;
    filter: blur(20px);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.hero-image img:hover {
    transform: scale(1.03) rotate(-2deg);
}

/* =========================================================================
   Sección Unirse a la Cooperativa
   ========================================================================= */
.join-cooperative {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.join-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.join-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.join-content {
    width: 50%;
    padding-right: 40px;
}

.join-content h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 24px;
}

.join-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.join-image {
    width: 50%;
}

.join-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.join-image img:hover {
    transform: scale(1.03);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1024px) {
    .hero-box, .join-box {
        padding: 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .join-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-box, .join-box {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .hero-content, .join-content, .hero-image, .join-image {
        width: 100%;
        padding-right: 0;
    }

    .hero-content, .join-content {
        margin-bottom: 40px;
    }
    
    .hero-image::after {
        display: none; /* Mejor rendimiento en móviles */
    }
    
    .nav-links {
        display: none; /* Idealmente añadir menú hamburguesa aquí */
    }
}