/* ================= ANIMACIONES INICIALES ================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= CLASES PARA EL JS (SCROLL REVEAL) ================= */
.oculto-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.oculto-reveal.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HERO SECTION ================= */
.hero-container {
    padding: 30px 20px; 
    max-width: 1350px;
    margin: 0 auto;
}

.hero-section {
    height: 75vh; 
    min-height: 500px;
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    position: relative;
    border-radius: 24px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
    overflow: hidden; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.15); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center; /* Asegura que la píldora se centre */
}

.hero-content h1 {
    font-size: 4.5rem;
    color: #2e4d25; 
    letter-spacing: 5px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.7);
}

/* Diseño de "Píldora" elegante para el subtítulo */
.hero-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2e4d25;
    letter-spacing: 3px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.85); /* Fondo blanco semi-transparente */
    padding: 10px 30px;
    border-radius: 30px; /* Bordes totalmente redondeados */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Sombra suave para que resalte */
    display: inline-block;
}

/* ================= TÍTULOS DE SECCIÓN ================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2e4d25;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ================= SECCIÓN DE CARACTERÍSTICAS (3 Tarjetas) ================= */
.features-section {
    padding: 60px 20px 100px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background-color: #ffffff;
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); 
    border: 1px solid #f5f5f5; 
}

.feature-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); 
}

.feature-card img {
    width: 100%;
    height: 260px; 
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px; 
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2e4d25;
}

.feature-card p {
    font-size: 0.95rem;
}

/* ================= SECCIÓN SOBRE NOSOTROS ================= */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    
    background-color: #ffffff;
    padding: 60px;
    margin-bottom: 100px; 
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f5f5f5;
}

.about-text h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #2e4d25;
}

.about-text .line {
    margin: 15px 0 25px 0; 
}

.about-text p {
    font-size: 1.05rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
}

/* ================= LLAMADO A LA ACCIÓN ================= */
.cta-section {
    padding: 120px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    background-attachment: fixed; 
}

.cta-overlay {
    background: rgba(255, 255, 255, 0.75);
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #2e4d25;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #444;
}

/* ================= DISEÑO RESPONSIVO ================= */
@media (max-width: 900px) {
    .hero-container {
        padding: 15px 10px;
    }

    .hero-content h1 { 
        font-size: 2.5rem; 
        letter-spacing: 2px;
    }
    
    .hero-content h2 { 
        font-size: 1rem; 
        letter-spacing: 1px;
        padding: 8px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 20px; 
    }

    .about-text .line {
        margin: 15px auto 25px auto; 
    }
    
    .cta-overlay {
        padding: 40px 20px;
    }
}