/* ========================================
   ESTILOS PARA PÁGINA AMBIENTAL
   ======================================== */

/* Hero Section */
.hero-ambiental {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #1e8449 100%);
    background-image: url('img_ambiental/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 132, 73, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.main-content section {
    margin-bottom: 5rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #27ae60, #2ecc71);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Intro Section */
.intro-section {
    padding: 3rem 0;
}

.intro-section img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Programas Section */
.programas-section {
    padding: 3rem 0;
    background: white;
    border-radius: 15px;
    padding: 4rem 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.programa-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.programa-card:hover {
    transform: translateY(-10px);
    border-color: #27ae60;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.2);
}

.programa-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.programa-card:hover .programa-icon {
    transform: rotate(360deg);
}

.programa-icon i {
    font-size: 2rem;
    color: white;
}

.programa-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.programa-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Galería Section */
.galeria-section {
    padding: 3rem 0;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.galeria-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(39, 174, 96, 0.95), transparent);
    color: white;
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.galeria-item:hover .galeria-overlay {
    transform: translateY(0);
}

.galeria-overlay h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.galeria-overlay p {
    font-size: 0.95rem;
    margin: 0;
}

/* Consejos Section */
.consejos-section {
    padding: 3rem 0;
}

.consejos-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.consejos-list li {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.consejos-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

.consejos-list i {
    color: #27ae60;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.consejos-list span {
    font-size: 1.05rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 3rem 0;
    color: white;
    box-shadow: 0 10px 40px rgba(39, 174, 96, 0.3);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-buttons .btn-primary {
    background: white;
    color: #27ae60;
    border-color: white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline-light:hover {
    background: white;
    color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-ambiental {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 2rem 0;
    }

    .main-content section {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .programas-section {
        padding: 2rem 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .galeria-item img {
        height: 200px;
    }
}

