/* ==========================================================================
   CANADIAN ECOLOGY GLOBAL MP INC. - Official Stylesheet (High Contrast Before/After Text)
   ========================================================================== */

:root {
    /* Color Palette */
    --clr-navy: #0e1e38;
    --clr-navy-dark: #061626;
    --clr-navy-mid: #072538;
    --clr-teal-dark: #074643;
    --clr-teal-bright: #14b8a6;
    --clr-cyan: #06b6d4;
    --clr-cyan-glow: rgba(6, 182, 212, 0.5);
    --clr-gold: #d4af37;
    
    /* Neutrals */
    --clr-white: #ffffff;
    --clr-offwhite: #f8fafc;
    --clr-light-gray: #f1f5f9;
    --clr-border: #e2e8f0;
    --clr-text-dark: #1e293b;
    --clr-text-muted: #64748b;
    --clr-text-light: #94a3b8;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Effects & Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.25);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-dark);
    background-color: var(--clr-navy-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: min(1200px, 92%);
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 90px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #14b8a6, #0284c7);
    color: var(--clr-white);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.5);
}

/* Eyebrows & Section Headers */
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-teal-bright);
    margin-bottom: 0.75rem;
}

.eyebrow-dark {
    color: var(--clr-navy-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--clr-navy);
    margin-bottom: 1rem;
}

.section-title-light {
    color: var(--clr-white);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    max-width: 720px;
    margin: 0 auto;
}

.section-subtitle-light {
    color: var(--clr-text-light);
}

/* Header & Navigation (White Bar, Single-line Bold Navy Brand - Exact IMG2 Match) */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    height: 52px;
    width: auto;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0c1a30;
    line-height: 1.1;
    white-space: nowrap;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.25;
    margin-top: 3px;
    white-space: nowrap;
}

/* Nav Menu with Max 4 Items & Dropdowns */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    color: var(--clr-teal-bright);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    background: #ffffff;
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--clr-text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--clr-offwhite);
    color: var(--clr-teal-bright);
    padding-left: 24px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--clr-navy);
    margin: 5px 0;
    transition: var(--transition);
}

/* SECTION 2: HERO (CAROUSEL SLIDER - MEDIUM OPTIMIZED FORMAT) */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, #061626 0%, #072538 40%, #074643 85%, #084e49 100%);
    color: var(--clr-white);
    padding: 10px 0 35px;
    overflow: hidden;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(circle, rgba(20, 184, 166, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(6, 182, 212, 0.25) 1px, transparent 1px);
    background-size: 60px 60px, 100px 100px;
    background-position: 0 0, 40px 40px;
    opacity: 0.85;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Carousel Styles */
.hero-carousel-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-areas: "slide";
    align-items: center;
    justify-content: center;
}

.hero-slide {
    grid-area: slide;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.97);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.hero-illustration-box {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.hero-illustration-box img {
    max-width: 100%;
    max-height: 370px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.35));
    transition: transform 0.4s ease;
}

.hero-slide-info {
    text-align: center;
    margin-top: 10px;
    max-width: 980px;
    width: 100%;
}

.slide-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.5);
    color: var(--clr-teal-bright);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.hero-headline {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    white-space: nowrap;
    text-align: center;
    color: var(--clr-white);
    margin: 6px 0 8px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.hero-slide-desc {
    font-size: 1.05rem;
    color: var(--clr-text-light);
    max-width: 760px;
    margin: 0 auto 10px;
    line-height: 1.45;
}


/* Controls: Buttons (Prev / Next) */
.carousel-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 30;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(6, 22, 38, 0.75);
    border: 1px solid rgba(64, 224, 208, 0.5);
    color: #40E0D0;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.carousel-btn:hover {
    background: #084e49;
    border-color: #40E0D0;
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 25px rgba(64, 224, 208, 0.7);
}

.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }


@media (max-width: 992px) {
    .hero-headline {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .hero-headline {
        white-space: normal;
        font-size: 1.7rem;
    }
    .carousel-prev { left: 5px; }
    .carousel-next { right: 5px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* Controls: Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot:hover {
    background: rgba(64, 224, 208, 0.6);
}

.carousel-dots .dot.active {
    width: 32px;
    border-radius: 10px;
    background: var(--clr-teal-bright);
    border-color: var(--clr-teal-bright);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.6);
}


/* 4-Step Horizontal Process Timeline (Exact Neon Circular Icons like IMG1) */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin-top: 0.5rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, #14b8a6, #06b6d4);
    z-index: 1;
    opacity: 0.8;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #062432;
    border: 2px solid var(--clr-teal-bright);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--clr-teal-bright);
    transition: var(--transition);
}

.timeline-step:hover .step-icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.7);
    border-color: var(--clr-cyan);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-white);
}

.step-desc {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    margin-top: 0.2rem;
}

/* Metrics row in Hero */
.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 900px;
    margin-top: 3rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
}

.metric-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--clr-teal-bright);
    font-family: var(--font-heading);
}

.metric-card span {
    font-size: 0.78rem;
    color: var(--clr-text-light);
}

/* WRAPPER FOR ALL CONTENT BELOW HERO */
.white-content-wrapper {
    background-color: var(--clr-white);
    border-radius: 32px 32px 0 0;
    margin-top: -24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}

/* LIGHTBOX MODAL STYLES */
.lightbox-trigger {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.lightbox-trigger::after {
    content: '🔍 Ampliar';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(14, 30, 56, 0.75);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
}

.lightbox-trigger:hover::after {
    opacity: 1;
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 15, 30, 0.94);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-modal-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    object-fit: contain;
    border: 2px solid rgba(255,255,255,0.2);
}

.lightbox-caption {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 16px;
    text-align: center;
    max-width: 700px;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--clr-teal-bright);
    transform: scale(1.15);
}

/* SECTION: ANTES Y DESPUÉS (High Contrast Legible Text) */
.before-after-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--clr-offwhite);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 24px;
    margin-top: 2.5rem;
}

.ba-column {
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.ba-column.before {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.ba-column.after {
    background: #f0fdf4;
    border: 1px solid #6ee7b7;
}

.ba-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.ba-tag.before { background: #fee2e2; color: #991b1b; }
.ba-tag.after { background: #dcfce7; color: #166534; }

.ba-img-wrap {
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ba-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ba-list li {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.ba-column.before .ba-list li { color: #991b1b; }
.ba-column.after .ba-list li { color: #044e46; }

/* SECTION: CARTA DEL PRESIDENTE (Manuel Pallares) */
.president-section {
    background: var(--clr-offwhite);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

/* SECTION 5: CARTA DEL GERENTE CORPORATIVO (Executive Editorial Layout) */
.president-section {
    background: var(--clr-offwhite);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 80px 0;
}

.president-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .president-grid {
        grid-template-columns: 1fr;
    }
}

.president-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.president-portrait-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--clr-white);
    background: var(--clr-navy);
}

.president-portrait-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.president-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 22, 38, 0.95) 100%);
    padding: 35px 20px 18px;
    color: var(--clr-white);
}

.president-badge strong {
    font-size: 1.25rem;
    display: block;
}

.president-badge span {
    font-size: 0.85rem;
    color: var(--clr-teal-bright);
    font-weight: 600;
}

/* Executive Quote Card under portrait */
.president-quote-card {
    background: linear-gradient(135deg, #061626 0%, #084e49 100%);
    border-radius: 18px;
    padding: 22px 20px;
    color: var(--clr-white);
    border: 1px solid rgba(64, 224, 208, 0.3);
    box-shadow: var(--shadow-md);
}

.president-quote-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.president-quote-card strong {
    color: var(--clr-teal-bright);
}

.president-quote-author {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: right;
}

/* Commitment Pills Box under quote */
.president-commitments-box {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.president-commitments-box h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clr-navy);
    margin-bottom: 10px;
    font-weight: 800;
}

.president-commitments-box ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.president-commitments-box li {
    font-size: 0.86rem;
    color: var(--clr-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.president-letter {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 42px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.president-letter h3 {
    font-size: 1.85rem;
    color: var(--clr-navy);
    margin-bottom: 0.75rem;
}

.president-letter-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--clr-navy);
    font-weight: 600;
    background: rgba(20, 184, 166, 0.06);
    border-left: 4px solid var(--clr-teal-bright);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1.5rem;
}

.president-letter-body {
    column-count: 2;
    column-gap: 32px;
    column-rule: 1px solid var(--clr-border);
}

@media (max-width: 992px) {
    .president-letter-body {
        column-count: 1;
    }
}

.president-letter-body p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.15rem;
    break-inside: avoid;
}

.president-letter-body p strong {
    color: var(--clr-navy);
    font-weight: 700;
}

.president-values-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 1.25rem 0 1.75rem;
}

.president-value-badge {
    background: var(--clr-navy);
    color: var(--clr-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
}

.signature-block {
    margin-top: 2rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    break-inside: avoid;
}

.signature-title strong {
    color: var(--clr-navy);
    font-size: 1.1rem;
    display: block;
}

.signature-title span {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* SECTION 3: SOLUCIONES (Rich Design System & Expandable Cards) */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
    align-items: stretch; /* Garantiza exactamente la misma altura para todas las tarjetas */
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

.solution-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--clr-teal-bright);
}

/* Contenedor de Vídeo HTML5 */
.solution-video-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin: 1.25rem 0;
    box-shadow: 0 8px 20px rgba(6, 22, 38, 0.2);
    border: 1px solid var(--clr-border);
    background: #061626;
}

.solution-video-wrap video {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.solution-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.solution-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0284c7, #14b8a6);
    color: var(--clr-white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.solution-highlight-badge {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: var(--clr-teal-bright);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Solution Illustration Box */
.solution-img-box {
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, #061626 0%, #072538 100%);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.solution-img-box img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
    transition: transform 0.4s ease;
}

.solution-card:hover .solution-img-box img {
    transform: scale(1.05);
}

.solution-card h3 {
    color: var(--clr-navy);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.solution-preview-text {
    color: var(--clr-text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.solution-preview-text strong {
    color: var(--clr-navy);
    font-weight: 700;
}

/* Expandable Drawer Content */
.solution-expandable-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-in-out, padding 0.4s ease;
    border-top: 1px dashed transparent;
}

.solution-card.expanded .solution-expandable-content {
    max-height: 1400px;
    opacity: 1;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top-color: var(--clr-border);
}

.solution-expandable-content p {
    color: var(--clr-text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.solution-expandable-content p strong {
    color: var(--clr-navy);
    font-weight: 700;
}

.solution-quote-block {
    background: var(--clr-offwhite);
    border-left: 3px solid var(--clr-teal-bright);
    padding: 12px 16px;
    border-radius: 0 12px 12px 0;
    margin: 1rem 0;
    font-style: italic;
    color: var(--clr-navy);
    font-size: 0.92rem;
}

/* Expand Button */
.solution-expand-btn {
    align-self: center;
    background: var(--clr-offwhite);
    border: 1px solid var(--clr-border);
    color: var(--clr-teal-bright);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.solution-expand-btn:hover {
    background: var(--clr-teal-bright);
    color: var(--clr-white);
    border-color: var(--clr-teal-bright);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

/* SECTION 4: NOSOTROS (White Background) */
.bg-white { background-color: var(--clr-white); }
.bg-offwhite { background-color: var(--clr-offwhite); }

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-vision-card {
    background: var(--clr-offwhite);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 36px;
}

.mission-vision-card h3 {
    color: var(--clr-navy);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.mission-vision-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.quote-box {
    background: var(--clr-navy);
    color: var(--clr-white);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    border-left: 5px solid var(--clr-teal-bright);
    box-shadow: var(--shadow-md);
}

.quote-box p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
}

.values-flex {
    display: flex;
    gap: 16px;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.value-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ccfbf1;
    color: #0f766e;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* SECTION 5: EL PROBLEMA (Dark Gradient & Real Landfill Photos) */
.section-dark {
    background: linear-gradient(135deg, var(--clr-navy-dark) 0%, var(--clr-navy) 100%);
    color: var(--clr-white);
    border-radius: 24px;
    margin: 40px 0;
}

.problem-intro {
    max-width: 800px;
    margin-bottom: 3rem;
}

.landfill-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 3rem;
}

.landfill-photo-card {
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
}

.landfill-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.landfill-photo-card:hover img {
    transform: scale(1.08);
}

.transformation-banner {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.transition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 1.5rem;
}

.transition-item {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-weight: 600;
}

.transition-item .from { color: #ef4444; text-decoration: line-through; display: block; font-size: 0.9rem;}
.transition-item .arrow { color: var(--clr-teal-bright); margin: 4px 0; display: block; }
.transition-item .to { color: #34d399; display: block; font-size: 1.05rem; }

/* SECTION 6: CÓMO FUNCIONA (CIEC Process) */
.ciec-steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 3rem;
}

.ciec-step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: 16px;
}

.ciec-step-badge {
    min-width: 44px;
    height: 44px;
    background: var(--clr-teal-bright);
    color: var(--clr-navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.ciec-step-content h4 {
    color: var(--clr-white);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.ciec-step-content p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* SECTION 7: EMISIONES Y MEDIO AMBIENTE (White Section with Table) */
.emissions-table-wrap {
    overflow-x: auto;
    margin-top: 2.5rem;
}

.emissions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--clr-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-border);
}

.emissions-table th {
    background: var(--clr-navy);
    color: var(--clr-white);
    padding: 16px 24px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.emissions-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--clr-border);
    font-size: 0.95rem;
}

.emissions-table tr:last-child td {
    border-bottom: none;
}

.badge-reduction {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* SECTION 8: PROYECTOS (White Section with Renders & 4 Projects) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.project-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.project-card-header {
    background: var(--clr-navy);
    color: var(--clr-white);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-card-header h3 {
    font-size: 1.25rem;
    color: var(--clr-white);
}

.project-country {
    font-size: 0.85rem;
    color: var(--clr-teal-bright);
    font-weight: 600;
}

.project-card-body {
    padding: 24px;
}

.project-specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.project-spec-item {
    background: var(--clr-offwhite);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.project-spec-item strong {
    display: block;
    color: var(--clr-navy);
}

.renders-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-top: 3rem;
}

.render-img-card {
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-md);
}

.render-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECTION 9: IMPACTO (Dark Metrics) */
.impact-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.impact-metric-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
}

.impact-metric-box strong {
    display: block;
    font-size: 2.2rem;
    color: var(--clr-teal-bright);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.impact-metric-box span {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

/* SECTION 10: COMPROMISO SOCIAL "UN MEJOR MAÑANA" */
.social-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.social-pillar-card {
    background: var(--clr-offwhite);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--clr-border);
}

.social-pillar-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.social-pillar-card h4 {
    color: var(--clr-navy);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.social-pillar-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* SECTION 11: PRESENCIA GLOBAL & SOCIOS */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.partner-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.partner-card strong {
    display: block;
    color: var(--clr-navy);
    margin-bottom: 4px;
}

.partner-card span {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.team-box {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--clr-offwhite);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 24px;
    margin-top: 3rem;
}

.team-photo {
    width: 220px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--clr-white);
    box-shadow: var(--shadow-md);
}

/* SECTION 12: CONTACTO */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: 2rem;
}

.contact-info-list {
    margin-top: 2rem;
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item strong {
    color: var(--clr-teal-bright);
    display: block;
    margin-bottom: 4px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 36px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--clr-text-light);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-teal-bright);
}

.form-status {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* SECTION 13: FOOTER */
.site-footer {
    background: var(--clr-navy-dark);
    color: var(--clr-text-light);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 44px;
    margin-bottom: 12px;
}

.footer-links h4 {
    color: var(--clr-white);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--clr-teal-bright);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-metrics-grid, .impact-metrics-grid, .partners-grid, .landfill-photos-grid, .transition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .grid-2-col, .projects-grid, .solutions-grid, .social-pillars-grid, .contact-grid, .president-grid, .before-after-card {
        grid-template-columns: 1fr;
    }
    
    .renders-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .renders-gallery .render-img-card {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-metrics-grid, .impact-metrics-grid, .landfill-photos-grid, .transition-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .team-box {
        flex-direction: column;
        text-align: center;
    }
}
