/* ============================================================
   HERITAGE SECTION
   ============================================================ */

.heritage {
    width: 100%;
    height: auto;
    background-color: #2D4754;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heritageTitle {
    width: 100%;
    height: auto;
    text-align: center;
    font-family: 'campSemiBl';
    font-size: clamp(1.3rem, 2.5vw, 2.6rem);
    padding: clamp(3rem, 6vw, 7.5rem) 1rem;
    color: aliceblue;
    line-height: 1.3;
}

.heritageContent {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    font-family: 'campLight';
    padding-top: clamp(1.5rem, 3vw, 4rem);
    color: aliceblue;
}

.heritageContent h2 {
    font-size: clamp(1.4rem, 3vw, 3.5rem);
    padding: clamp(1rem, 2vw, 3rem);
    line-height: 1.3;
}

.heritageContent h3 {
    font-size: clamp(5rem, 25vw, 25rem); /* ← fluido, nunca se desborda */
    font-family: 'bebasNBold';
    color: #99CCCC;
    line-height: 0.85;
    margin: 0;
    opacity: 0;
    will-change: opacity, transform;
    /* Evita que el 0 de opacidad deje espacio muerto */
    min-height: 0;
}

.heritageBtn {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 5vw, 5rem);
}

.heritageBtn a {
    display: block;
    width: clamp(160px, 35vw, 450px);
}

.heritageBtn img {
    width: 100%;
    height: auto;
    display: block;
    padding: 0.5rem;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */

.process {
    width: 100%;
    height: auto;
    background-color: #99CCCC;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.processTitle {
    width: 100%;
    height: auto;
    text-align: center;
    font-family: 'campSemiBl';
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    padding: clamp(3rem, 6vw, 8rem) 1rem;
    color: #2D4754;
    line-height: 1.3;
}

.processContent {
    width: 100%;
    padding: 0 clamp(1rem, 4vw, 5rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.processContent img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.processFooter {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 6vw, 8rem) 0;
}

.processFooter a {
    width: clamp(160px, 35vw, 450px);
    display: block;
}

.processFooter a img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* --- TABLET (≤ 1024px) --- */
@media (max-width: 1024px) {
    .heritageContent h3 {
        font-size: clamp(5rem, 20vw, 18rem);
    }

    .heritageTitle {
        font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    }
}

/* --- MÓVIL (≤ 768px) --- */
@media (max-width: 768px) {
    .heritageTitle {
        padding: 2.5rem 1.5rem;
        font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    }

    .heritageContent {
        padding-top: 1.5rem;
    }

    .heritageContent h2 {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        padding: 1rem 1.5rem;
    }

    .heritageContent h3 {
        font-size: clamp(4rem, 22vw, 10rem);
    }

    .heritageBtn a,
    .processFooter a {
        width: clamp(160px, 55vw, 260px);
    }

    .processTitle {
        padding: 3rem 1.5rem;
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    }

    .processContent {
        padding: 0 1.5rem;
    }
}

/* --- MÓVIL PEQUEÑO (≤ 480px) --- */
@media (max-width: 480px) {
    .heritageContent h3 {
        font-size: clamp(3.5rem, 20vw, 6rem);
    }

    .heritageContent h2 {
        font-size: 1.2rem;
    }

    .heritageTitle {
        font-size: 1.1rem;
        padding: 2rem 1rem;
    }

    .processContent {
        padding: 0 0.75rem;
    }

    .processTitle {
        font-size: 1.1rem;
        padding: 2.5rem 1rem;
    }

    .heritageBtn {
        padding: 2rem 0 3rem;
    }
}

/* --- MÓVIL MUY PEQUEÑO (≤ 360px) --- */
@media (max-width: 360px) {
    .heritageContent h3 {
        font-size: 3rem;
    }

    .heritageTitle,
    .processTitle {
        font-size: 1rem;
    }
}

/* --- LANDSCAPE MÓVIL --- */
@media (max-height: 500px) and (orientation: landscape) {
    .heritageContent h3 {
        font-size: clamp(4rem, 15vw, 10rem);
    }

    .heritageTitle,
    .processTitle {
        padding: 2rem 1rem;
    }
}

/* --- PANTALLAS GRANDES (≥ 1600px) --- */
@media (min-width: 1600px) {
    .heritageContent h3 {
        font-size: 28rem;
    }

    .heritageTitle {
        font-size: 3rem;
    }

    .processTitle {
        font-size: 2.5rem;
    }
}