/* ===============================================
   LEY DEL ÁRBOL - REDESIGN 2024
   =============================================== */

/* ================= VARIABLES ================= */
:root {
    --color-primary: #2E7D32;
    /* Green for trees */
    --color-primary-light: #43A047;
    --color-accent: #8D6E63;
    /* Brown for wood/earth */
    --color-accent-bright: #795548;
    --color-text: #212529;
    --color-text-light: #495057;
    --color-bg-light: #f1f8e9;
    --color-bg-problem: #fff3e0;
    /* Light orange for problem section */
    --color-white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-main: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ================= UTILITIES ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* ================= HERO SECTION ================= */
.hero-ley-arbol {
    position: relative;
    min-height: 500px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
    margin-top: 80px;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 700px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-ley-arbol h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-ley-arbol p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--color-accent-bright);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(121, 85, 72, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(121, 85, 72, 0.6);
    background: #5D4037;
}

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ================= SERVICE DESCRIPTION ================= */
.service-description {
    padding: 100px 0;
    background: var(--color-white);
}

.description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.description-text h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.description-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.description-image {
    position: sticky;
    top: 100px;
}

.video-card {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
}

.video-caption {
    text-align: center;
    padding-top: 1rem;
    font-weight: 500;
    color: var(--color-primary-light);
}

/* ================= PROBLEM SECTION ================= */
.problem-section {
    padding: 80px 0;
    background: var(--color-bg-problem);
}

.problem-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #E65100;
    /* Darker orange for warning/attention */
    margin-bottom: 2rem;
}

.problem-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.problem-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* ================= SOLUTION SECTION ================= */
.solution-section {
    padding: 80px 0;
    background: var(--color-white);
}

.solution-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.solution-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.solution-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* ================= BENEFITS ================= */
.benefits {
    padding: 80px 0;
    background: var(--color-bg-light);
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: left;
    transition: all 0.3s ease;
    border-left: 5px solid var(--color-primary);
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ================= WHY CHOOSE US ================= */
.why-choose-us {
    padding: 80px 0;
    background: var(--color-white);
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reason-card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.reason-card:hover {
    box-shadow: var(--shadow-sm);
    background: #e8f5e9;
}

.reason-card h3 {
    color: var(--color-primary-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.reason-card p {
    color: var(--color-text);
    line-height: 1.6;
}

/* ================= TESTIMONIAL ================= */
.testimonial-section {
    padding: 80px 0;
    background: var(--color-bg-light);
    text-align: center;
}

.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
    padding: 2rem;
    border-left: 4px solid var(--color-accent);
    background: var(--color-white);
    border-radius: var(--radius-md);
}

.testimonial-content footer {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
}

/* ================= CTA ================= */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--color-primary);
    text-align: center;
    color: white;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(67, 160, 71, 0.95));
}

.container.relative {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.btn-white {
    background: white;
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 2rem;
    transition: 0.3s;
}

.btn-white:hover {
    background: var(--color-accent-bright);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hero-ley-arbol h1 {
        font-size: 2.5rem;
    }

    .description-content {
        grid-template-columns: 1fr;
    }

    .description-image {
        position: static;
        margin-top: 2rem;
    }

    .benefits-grid,
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-ley-arbol {
        padding: 60px 0;
    }

    .hero-ley-arbol h1 {
        font-size: 2rem;
    }

    .hero-ley-arbol p {
        font-size: 1.1rem;
    }

    .description-text h2 {
        font-size: 2rem;
    }

    .benefits-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-content blockquote {
        font-size: 1.2rem;
    }
}