/* =========================================
   PAGE: CAMBIO CLIMÁTICO (Infracorp Style)
   ========================================= */

/* Import Google Fonts - Cinzel (Serif, Elegant) */
:root {
    --climate-bg: #02070e;
    --climate-globe-glow: #4facfe;
    --climate-text: #ffffff;
    --climate-muted: #8aaeca;
    --climate-accent: #00f2ff;
    --font-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--climate-bg);
    color: var(--climate-text);
    font-family: system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* ===== HERO SECTION ===== */
.climate-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    overflow: hidden;
    /* Deep Space Background */
    background:
        radial-gradient(circle at 50% 0%, #0d2b4a 0%, transparent 60%),
        radial-gradient(circle at 0% 50%, rgba(79, 172, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 50%, rgba(0, 242, 255, 0.08) 0%, transparent 40%),
        #02070e;
}

/* Typography */
.climate-title-sm {
    font-family: 'Inter', sans-serif;
    /* or system-ui */
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--climate-accent);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s ease 0.2s forwards;
}

.climate-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(180deg, #fff 20%, #a4c8e0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeUp 1s ease 0.4s forwards;
}

.climate-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    color: var(--climate-muted);
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
}

.climate-desc {
    max-width: 680px;
    margin: 32px auto 48px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #a7bcc8;
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
}

/* Explore Button */
.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    animation: fadeUp 1s ease 1s forwards;
}

.btn-explore:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.btn-icon {
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.btn-explore:hover .btn-icon {
    transform: rotate(45deg) translate(2px, -2px);
}

/* Water Canvas */
#water-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    /* Occupy bottom half */
    z-index: 1;
    pointer-events: auto;
    /* Allow mouse interaction */
    mask-image: linear-gradient(to bottom, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 30px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    opacity: 0;
    animation: fadeUp 1s ease 1.5s forwards;
    z-index: 10;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* CONTENT SECTIONS (Below Fold) */
.climate-content {
    position: relative;
    z-index: 5;
    background: #02070e;
    /* Match body bg */
    padding: 80px 0;
}

.climate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.climate-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.climate-card h3 {
    font-family: var(--font-serif);
    color: #fff;
    margin-bottom: 16px;
}

.climate-card p {
    color: #a7bcc8;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Bento Grid Layout */
.climate-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Specific Spans */
.span-12 {
    grid-column: span 12;
}

.span-8 {
    grid-column: span 8;
}

.span-6 {
    grid-column: span 6;
}

.span-4 {
    grid-column: span 4;
}

.row-2 {
    grid-row: span 2;
}

@media (max-width: 991px) {

    .span-8,
    .span-6,
    .span-4 {
        grid-column: span 12;
    }

    .row-2 {
        grid-row: span 1;
    }
}

/* ODS Logos */
.ods-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.ods-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}

.ods-img:hover {
    transform: scale(1.05);
}