/* ======== VARIABLES & GLOBAL ======== */
:root {
    --palm-dark: #004d2b;
    --palm-primary: #006837;
    --palm-accent: #b88317; /* Dorado */
    --palm-light: #e8f5e9;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.06);
}

body { font-family: var(--font-body); color: var(--text-dark); background-color: #fff; overflow-x: hidden; line-height: 1.7; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; }

/* ======== HERO ======== */
.hero-env {
    position: relative;
    /* Asegúrate de que esta imagen exista o usa una de campo */
    background: url('../../assets/images/ambiental-500x500.jpg') center/cover no-repeat fixed;
    height: 50vh; min-height: 400px;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
    border-radius: 0 0 50% 50% / 0 0 30px 30px; margin-bottom: 60px;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 50, 20, 0.85); }
.hero-env h1 { font-size: 3.5rem; text-shadow: 0 4px 15px rgba(0,0,0,0.3); margin-bottom: 15px; }
.badge-env { border: 1px solid rgba(255,255,255,0.6); padding: 5px 15px; border-radius: 20px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; display: inline-block; margin-bottom: 15px; }
.lead-env { font-size: 1.1rem; opacity: 0.95; font-weight: 300; max-width: 700px; margin: 0 auto; }

/* ======== PILARES ======== */
.compromiso-pilares { padding: 40px 0 80px; }
.section-subtitle { display: block; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; color: var(--palm-accent); font-weight: 700; margin-bottom: 5px; }
.section-title { color: var(--palm-dark); font-size: 2.5rem; margin-bottom: 10px; }
.line-gold { width: 60px; height: 4px; background: var(--palm-accent); border-radius: 2px; }

.compromiso-card {
    background: #fff; padding: 40px 30px; border-radius: 20px; text-align: center;
    box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.03);
    transition: 0.3s; height: 100%; position: relative; overflow: hidden;
    border-bottom: 4px solid transparent;
}
.compromiso-card:hover {
    transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 104, 55, 0.15);
    border-bottom-color: var(--palm-accent);
}

.icon-wrap {
    width: 80px; height: 80px; background: var(--palm-light); color: var(--palm-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 25px; transition: 0.3s;
}
.compromiso-card:hover .icon-wrap { background: var(--palm-primary); color: #fff; transform: rotateY(180deg); }
.compromiso-card:hover .icon-wrap i { transform: rotateY(-180deg); }

.compromiso-card h4 { font-size: 1.4rem; color: var(--palm-dark); margin-bottom: 15px; }
.compromiso-card p { font-size: 0.95rem; color: #666; margin: 0; }

/* ======== SECCIONES PROYECTOS ======== */
.proyecto-section { padding: 80px 0; }
.bg-light-env { background-color: #f8fcf9; }

.badge-project {
    background: var(--palm-light); color: var(--palm-primary); padding: 5px 12px;
    border-radius: 6px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; margin-bottom: 15px;
}
.project-title { font-size: 2.2rem; color: var(--palm-dark); margin-bottom: 20px; }
.project-desc { color: #555; margin-bottom: 20px; font-size: 1rem; }

.highlight-box {
    background: #fff; padding: 20px; border-left: 4px solid var(--palm-accent);
    border-radius: 0 10px 10px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    font-size: 0.95rem; color: var(--palm-dark);
}
.text-gold { color: var(--palm-accent); }

/* Imagen con Marco Premium */
.img-frame-premium { position: relative; padding: 15px; }
.img-frame-premium img { border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); width: 100%; position: relative; z-index: 2; }
.frame-decoration {
    position: absolute; top: 0; left: 0; width: 60%; height: 60%;
    border-top: 3px solid var(--palm-accent); border-left: 3px solid var(--palm-accent);
    border-radius: 20px 0 0 0; z-index: 1;
}

/* Botón línea */
.btn-line-gold {
    color: var(--palm-primary); font-weight: 700; text-decoration: none;
    border-bottom: 2px solid var(--palm-accent); padding-bottom: 2px; transition: 0.3s;
}
.btn-line-gold:hover { color: var(--palm-accent); padding-left: 5px; }

/* ======== SLIDER PROYECTOS (CSS PURO + JS) ======== */
.project-slider-wrapper {
    position: relative; width: 100%; height: 500px;
    border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background-color: #ddd;
}

.project-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    opacity: 0; transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1.1); z-index: 1;
}
.project-slide.active { opacity: 1; transform: scale(1); z-index: 2; }

.slider-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff; z-index: 3; text-align: right; font-size: 0.9rem; font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-env h1 { font-size: 2.5rem; }
    .project-slider-wrapper { height: 350px; }
}