/* =========================
   VARIABLES DE COLOR
========================= */
:root {
    /* Colors principals (inspiració senyera suau) */
    --color-primary: #c2410c;        /* vermell suau */
    --color-primary-light: #ef4444;  /* vermell clar */
    --color-secondary: #facc15;      /* groc */
    --color-secondary-light: #fef08a;/* groc clar */

    /* Colors neutres */
    --color-bg: #fffdf7;
    --color-text: #1f2937;
    --color-white: #ffffff;

    /* Ombres */
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 10px 10px 25px rgba(0, 0, 0, 0.12);
}


/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
   GLOBAL
========================= */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: var(--color-bg);
    color: var(--color-text);
}


/* =========================
   HERO
========================= */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    text-align: center;
    padding: 20px;

    animation: fadeIn 1.5s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero #bt-form {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--color-primary);
    background: var(--color-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: box-shadow 0.3s, color 0.3s;
    text-decoration: none;
}

.hero #bt-form:hover {
    box-shadow: var(--shadow-hover);
    transition: box-shadow 0.3s, color 0.3s;
}

#form {
    text-align: center;
}

#form iframe {
    display: block;
    margin: 0 auto;
}
/* =========================
   SECCIONS
========================= */
.section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.bt{
    margin-top: 20px;
    padding: 15px 20px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: box-shadow 0.3s, color 0.3s;
    text-decoration: none;
}
.bt:hover {
    box-shadow: var(--shadow-hover);
    transition: box-shadow 0.3s, color 0.3s;
}
/* =========================
   GRÀFICS
========================= */
.charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}


/* =========================
   TARGETES DE GRÀFIC
========================= */
.chart-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--color-secondary-light);
}

.chart-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}


/* HOVER */
.chart-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}


/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 20px;
    background: var(--color-primary);
    color: var(--color-white);
    a {
    text-decoration: none;
    color: inherit;
}
}


/* =========================
   ANIMACIONS
========================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .charts {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}