/* =========================================================
   VARIABLES
========================================================= */

:root {
    --yellow: #f59e0b;
    --yellow-light: #fbbf24;
    --orange: #f97316;

    --dark: #020617;
    --dark-2: #0f172a;
    --dark-3: #1e293b;

    --text: #f8fafc;
    --muted: #94a3b8;

    --green: #10b981;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --pink: #ec4899;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    height: 70px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 7%;

    background: rgba(2, 6, 23, 0.85);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    z-index: 1000;
}

.nav-logo {
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--yellow-light);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background-image:
        url("https://images.unsplash.com/photo-1589924691995-400dc9ecc119?auto=format&fit=crop&w=2000&q=85");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(2,6,23,.7),
            rgba(2,6,23,.92)
        );
}

.hero-content {
    position: relative;

    max-width: 900px;

    padding: 30px;
}

.hero-tag {
    display: inline-block;

    padding: 8px 18px;

    border-radius: 999px;

    color: var(--yellow-light);

    background: rgba(245,158,11,.12);

    border: 1px solid rgba(245,158,11,.3);

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 2px;
}

.hero h1 {
    margin-top: 25px;

    font-size: clamp(50px, 8vw, 100px);

    line-height: .95;

    font-weight: 900;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #fbbf24,
            #f97316,
            #f59e0b
        );

    -webkit-background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 700px;

    margin: 30px auto;

    color: #cbd5e1;

    font-size: 18px;
}

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 25px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: bold;

    transition: .3s;
}

.btn-primary {
    background: var(--yellow);

    color: #111827;
}

.btn-primary:hover {
    transform: translateY(-3px);

    background: var(--yellow-light);
}

.btn-secondary {
    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.15);

    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,.15);
}


/* =========================================================
   STATS
========================================================= */

.stats-section {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    max-width: 1200px;

    margin: -70px auto 0;

    position: relative;

    padding: 0 25px 80px;
}

.stat-card {
    padding: 30px 20px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.9),
            rgba(15,23,42,.9)
        );

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 20px;

    backdrop-filter: blur(10px);

    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-8px);

    border-color: rgba(245,158,11,.5);
}

.stat-card span {
    font-size: 35px;
}

.stat-card strong {
    display: block;

    font-size: 28px;

    color: var(--yellow-light);

    margin-top: 10px;
}

.stat-card p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   SECCIONES
========================================================= */

.content-section {
    max-width: 1200px;

    margin: auto;

    padding: 100px 25px;
}

.dark-section {
    background:
        radial-gradient(
            circle at top,
            #172033,
            #020617 70%
        );

    padding: 110px 25px;
}

.section-title {
    text-align: center;

    max-width: 750px;

    margin: 0 auto 60px;
}

.section-title > span {
    color: var(--yellow);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;
}

.section-title h2 {
    font-size: clamp(35px, 5vw, 55px);

    line-height: 1.1;

    margin: 15px 0;
}

.section-title p {
    color: var(--muted);

    font-size: 17px;
}

.section-title.light p {
    color: #94a3b8;
}


/* =========================================================
   INFO CARDS
========================================================= */

.info-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.info-card {
    background: #0f172a;

    border: 1px solid #1e293b;

    padding: 30px;

    border-radius: 20px;

    transition: .3s;
}

.info-card:hover {
    transform: translateY(-7px);

    border-color: var(--yellow);
}

.info-icon {
    font-size: 40px;

    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;

    font-size: 21px;
}

.info-card p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline {
    max-width: 1000px;

    margin: auto;
}

.timeline-item {
    position: relative;

    padding-bottom: 60px;

    border-left: 2px solid #334155;

    padding-left: 45px;
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-number {
    position: absolute;

    left: -21px;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--yellow);

    color: #111827;

    font-weight: 900;
}

.timeline-content {
    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 30px;

    padding: 25px;

    background: rgba(15,23,42,.8);

    border: 1px solid #1e293b;

    border-radius: 20px;

    transition: .3s;
}

.timeline-content:hover {
    transform: translateX(5px);

    border-color: rgba(245,158,11,.5);
}

.timeline-content span {
    color: var(--yellow);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;
}

.timeline-content h3 {
    font-size: 27px;

    margin: 8px 0 15px;
}

.timeline-content p {
    color: var(--muted);
}

.timeline-image img {
    width: 100%;

    height: 190px;

    object-fit: cover;

    border-radius: 15px;
}


/* =========================================================
   SECTORES
========================================================= */

.sector-buttons {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;

    margin-bottom: 25px;
}

.sector-button {
    padding: 20px 10px;

    background: #0f172a;

    border: 1px solid #1e293b;

    border-radius: 15px;

    color: white;

    cursor: pointer;

    transition: .3s;
}

.sector-button:hover,
.sector-button.active {
    background: rgba(245,158,11,.12);

    border-color: var(--yellow);

    transform: translateY(-4px);
}

.sector-button .icon {
    font-size: 30px;

    display: block;

    margin-bottom: 5px;
}

.sector-detail {
    min-height: 300px;

    padding: 35px;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #111827,
            #0f172a
        );

    border: 1px solid #1e293b;
}

.sector-detail h3 {
    font-size: 32px;

    margin-bottom: 10px;
}

.sector-description {
    color: var(--muted);

    margin-bottom: 25px;
}

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.detail-box {
    padding: 20px;

    background: rgba(2,6,23,.6);

    border: 1px solid #1e293b;

    border-radius: 15px;
}

.detail-box h4 {
    color: var(--yellow);

    margin-bottom: 10px;
}

.detail-box p {
    color: #cbd5e1;

    font-size: 14px;
}


/* =========================================================
   GRÁFICO
========================================================= */

.chart-container {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    align-items: center;
}

.chart-box {
    height: 450px;

    padding: 25px;

    background: rgba(15,23,42,.8);

    border: 1px solid #1e293b;

    border-radius: 25px;
}

.chart-description h3 {
    font-size: 27px;

    margin-bottom: 20px;
}

.chart-description p {
    color: var(--muted);

    margin-bottom: 20px;
}

.chart-description li {
    list-style: none;

    padding: 10px 0;

    color: #cbd5e1;
}


/* =========================================================
   EMPRESAS
========================================================= */

.companies-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.company-card {
    padding: 30px;

    background: #0f172a;

    border: 1px solid #1e293b;

    border-radius: 20px;

    transition: .3s;
}

.company-card:hover {
    transform: translateY(-6px);

    border-color: var(--yellow);
}

.company-card > div {
    font-size: 40px;

    margin-bottom: 10px;
}

.company-card h3 {
    margin-bottom: 10px;
}

.company-card p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   SOSTENIBILIDAD
========================================================= */

.eco-section {
    max-width: 1200px;

    margin: 100px auto;

    padding: 25px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}

.eco-image img {
    width: 100%;

    height: 550px;

    object-fit: cover;

    border-radius: 30px;
}

.eco-content > span {
    color: #34d399;

    font-weight: 900;

    letter-spacing: 2px;
}

.eco-content h2 {
    font-size: 50px;

    line-height: 1.1;

    margin: 15px 0;
}

.eco-content > p {
    color: var(--muted);

    margin-bottom: 30px;
}

.eco-list > div {
    padding: 15px 0;

    border-bottom: 1px solid #1e293b;
}

.eco-list strong {
    color: #f8fafc;
}

.eco-list p {
    color: var(--muted);

    font-size: 14px;

    margin-top: 4px;
}


/* =========================================================
   CURIOSIDADES
========================================================= */

.facts-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.fact {
    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #172033,
            #0f172a
        );

    border: 1px solid #1e293b;
}

.fact span {
    font-size: 35px;
}

.fact p {
    color: #cbd5e1;

    margin-top: 15px;
}


/* =========================================================
   QUIZ
========================================================= */

.quiz-section {
    padding: 110px 25px;

    background:
        radial-gradient(
            circle at center,
            #1e293b,
            #020617 70%
        );
}

.quiz-container {
    max-width: 800px;

    margin: auto;

    background: rgba(15,23,42,.95);

    border: 1px solid #334155;

    border-radius: 25px;

    padding: 35px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.4);
}

.quiz-header {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

#quiz-progress {
    color: var(--yellow);

    font-size: 13px;

    font-weight: bold;
}

#quiz-question {
    font-size: 25px;

    margin-top: 10px;
}

#quiz-score {
    height: fit-content;

    padding: 8px 15px;

    background: rgba(245,158,11,.15);

    color: var(--yellow-light);

    border-radius: 999px;

    white-space: nowrap;
}

.quiz-option {
    width: 100%;

    padding: 18px;

    margin-bottom: 12px;

    text-align: left;

    border-radius: 14px;

    border: 1px solid #334155;

    background: #0b1220;

    color: #e2e8f0;

    cursor: pointer;

    transition: .25s;
}

.quiz-option:hover {
    border-color: var(--yellow);

    background: rgba(245,158,11,.08);
}

.quiz-option.correct {
    background: rgba(16,185,129,.15);

    border-color: #10b981;
}

.quiz-option.wrong {
    background: rgba(244,63,94,.15);

    border-color: #f43f5e;
}

#quiz-feedback {
    margin-top: 20px;

    padding: 15px;

    border-radius: 12px;

    display: none;
}

#quiz-feedback.show {
    display: block;
}

.feedback-correct {
    background: rgba(16,185,129,.15);

    color: #6ee7b7;
}

.feedback-wrong {
    background: rgba(244,63,94,.15);

    color: #fda4af;
}

.quiz-next {
    width: 100%;

    padding: 15px;

    margin-top: 20px;

    border: none;

    border-radius: 12px;

    background: var(--yellow);

    color: #111827;

    font-weight: 900;

    cursor: pointer;

    display: none;

    transition: .3s;
}

.quiz-next:hover {
    background: var(--yellow-light);

    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    text-align: center;

    padding: 60px 25px;

    background: #01040b;

    border-top: 1px solid #1e293b;
}

.footer-logo {
    color: var(--yellow);

    font-size: 25px;

    font-weight: 900;

    margin-bottom: 10px;
}

footer p {
    color: var(--muted);
}

.footer-line {
    max-width: 300px;

    height: 1px;

    background: #1e293b;

    margin: 25px auto;
}

footer small {
    color: #64748b;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .stats-section {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .sector-buttons {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .timeline-content {
        grid-template-columns: 1fr;
    }

    .chart-container {
        grid-template-columns: 1fr;
    }

    .companies-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .facts-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .eco-section {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .hero h1 {
        font-size: 55px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .sector-buttons {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .companies-grid {
        grid-template-columns: 1fr;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .eco-content h2 {
        font-size: 38px;
    }

    .quiz-container {
        padding: 22px;
    }

    .quiz-header {
        flex-direction: column;
    }

}