/* =========================================
   1. FONTS (Càrrega de tipografies)
   ========================================= */
@font-face {
    font-family: 'Nohemi-Black';
    src: url('../fonts/Nohemi-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Nohemi-SemiBold';
    src: url('../fonts/Nohemi-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Nohemi-Regular';
    src: url('../fonts/Nohemi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Nohemi-ExtraLight';
    src: url('../fonts/Nohemi-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Chaney-UltraExtended';
    src: url('../fonts/chaney-ultraextended-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* =========================================
   2. RESET & GLOBALS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(171, 18, 18);
    overflow-x: hidden;
    width: 100%;
}

.container-limit {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Utilitats de Color */
.text-white { color: white !important; }
.text-black { color: black !important; }
.card-text-black { color: black !important; }
.text-bold { font-weight: bold; }

/* =========================================
   3. SISTEMA TIPOGRÀFIC
   ========================================= */
h1 {
    font-family: 'Nohemi-Black', sans-serif;
    color: white;
    text-transform: uppercase;
    text-align: center;
    font-size: 170px;
    line-height: 140px;
}
h2 {
    font-family: 'Nohemi-SemiBold', sans-serif;
    color: white;
    text-align: center;
    font-size: 38px;
    line-height: 40px;
}
h3 {
    font-family: 'Nohemi-SemiBold', sans-serif;
    color: black;
    text-align: center;
    font-size: 50px;
    line-height: 50px;
}
h4 {
    font-family: 'Chaney-UltraExtended', sans-serif;
    color: black;
    text-align: center;
    font-size: 28px;
    line-height: 30px;
}
h5 {
    font-family: 'Nohemi-Black', sans-serif;
    color: rgb(171, 18, 18);
    text-transform: uppercase;
    text-align: center;
    font-size: 100px;
    line-height: 100px;
}
h6 {
    font-family: 'Nohemi-Regular', sans-serif;
    color: white;
    text-align: center;
    font-size: 20px;
    line-height: 22px;
}
p {
    font-family: 'Nohemi-ExtraLight', sans-serif;
    color: white;
    text-align: center;
    font-size: 16px;
    line-height: 18px;
}

/* =========================================
   4. HEADER
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: transparent; 
    z-index: 1000;
    display: flex;
    justify-content: center;
}
.nav-container {
    width: 100%;
    max-width: 1280px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}
.nav-home { text-decoration: none; cursor: pointer; }
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}
.hamburger-menu .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
}

/* =========================================
   5. SECCIÓ 1
   ========================================= */
.section-1 {
    margin-top: 60px;
    margin-left: 10px;
    margin-right: 10px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    max-width: 1280px;
    margin-left: auto; margin-right: auto;
    width: calc(100% - 20px);
}
.s1-top { display: flex; justify-content: space-between; width: 100%; }
.s1-center { display: flex; justify-content: center; align-items: center; flex-grow: 1; }
.s1-center h1 { display: flex; flex-direction: column; }
.s1-bottom { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* =========================================
   6. SECCIÓ 2
   ========================================= */
.section-2 {
    height: 600px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px; 
}
.info-card {
    background-color: #000000;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    min-height: 380px; 
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 30px;
}
.hidden-element {
    opacity: 0;
    transform: translateY(300px);
    transition: transform 300ms ease-in, opacity 300ms ease-in;
}
.reveal-active { opacity: 1; transform: translateY(0); }

/* =========================================
   7. SECCIÓ 3
   ========================================= */
.section-3 {
    width: 100%;
    padding-top: 80px; 
    padding-bottom: 80px;
}
.s3-intro {
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; 
    margin-bottom: 50px; 
}
.s3-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px; 
    padding: 0 10px;
}
.legend-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    width: 340px;
    height: 428px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    gap: 10px;
    overflow: hidden; 
    
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.legend-card.reveal-active { opacity: 1; transform: translateY(0); }
.legend-card:nth-child(2) { transition-delay: 200ms; }
.legend-card:nth-child(3) { transition-delay: 400ms; }
.legend-card.reveal-active:hover { transform: rotate(5deg); cursor: default; }

/* =========================================
   8. SECCIÓ 4 (LUNAR CALENDAR)
   ========================================= */
.section-4 {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
    gap: 50px; 
    position: relative;
    overflow: hidden; 
}
.lunar-strip {
    width: 100%;
    display: flex;
    justify-content: center; 
}
.strip-content {
    width: 2364px;
    height: 50px; 
    display: flex;
    gap: 30px; 
    flex-shrink: 0;
    will-change: transform;
}
.strip-content img { width: 569px; height: 44px; object-fit: contain; }
.top-strip { align-self: center; }
.bottom-strip { align-self: center; }
.s4-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 176px;
    padding-right: 176px;
    gap: 40px;
    z-index: 10;
}
.s4-content h1 { display: flex; flex-direction: column; }
.s4-text-wrapper { display: flex; flex-direction: column; gap: 20px; width: 100%; }

/* ... (TIPOGRAFIES I GLOBAL ES MANTENEN IGUAL) ... */
/* ... (SECCIONS 1-4 ES MANTENEN IGUAL) ... */

/* =========================================
   9. SECCIÓ 5 (FANALETS) - 
   ========================================= */
.section-5 {
    height: 650px;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #ffffff;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.lanterns-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Per assegurar que el text estigui per sobre si es solapen */
    position: relative; 
}

/* --- ESTRUCTURA DESKTOP (DEFAULT) --- */

/* Contenidor de fila (en desktop només serveix de marc) */
.lanterns-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Per no bloquejar selecció de text si calgués */
}

/* Grups de Fanalets (Position Absolute per defecte) */
.lanterns-left {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding-left: 40px;
    pointer-events: auto;
}

.lanterns-right {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding-right: 40px;
    pointer-events: auto;
}

.lantern {
    transform-origin: top center;
    will-change: transform;
    /* Transició per al Hover */
    transition: transform 300ms ease-out;
}

/* Mides Desktop */
.l-08 { width: 106px; height: 481px; }
.l-09 { width: 160px; height: 531px; }
.l-10 { width: 125px; height: 596px; }
.l-11 { width: 142px; height: 498px; }

/* Animació Hover via CSS (!important per guanyar a l'estil inline de JS si estem sobre) */
.l-08:hover, .l-10:hover { transform: rotate(5deg) !important; }
.l-09:hover, .l-11:hover { transform: rotate(-5deg) !important; }

/* Text Central */
.s5-text-content {
    width: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    z-index: 10;
}


/* =========================================
   10. MEDIA QUERIES
   ========================================= */

/* --- TABLET (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Tipografies */
    h1 { font-size: 120px; line-height: 100px; }
    h2 { font-size: 32px; line-height: 28px; }
    h3 { font-size: 40px; line-height: 40px; }
    h4 { font-size: 24px; line-height: 26px; }
    h5 { font-size: 80px; line-height: 80px; }
    h6 { font-size: 18px; line-height: 20px; }
    p  { font-size: 14px; line-height: 16px; }

    .s3-cards-container {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: 20px;
    }
    .legend-card { width: 273px; height: 348px; }
    .legend-card:nth-child(3) { grid-column: 1 / -1; justify-self: center; }
    
    .s4-content { padding-left: 60px; padding-right: 60px; }

    /* SECCIÓ 5 TABLET */
    /* Mides Fanalets */
    .l-08 { width: 69px; height: 315px; }
    .l-09 { width: 104px; height: 348px; }
    .l-10 { width: 83px; height: 390px; }
    .l-11 { width: 92px; height: 326px; }

    .lanterns-wrapper {
        align-items: flex-end;
        padding-bottom: 0; /* Treiem padding del wrapper */
    }

    /* Padding demanat aplicat al flexbox del text */
    .s5-text-content {
        padding-bottom: 45px;
    }
}

/* --- MOBILE (fins a 767px) --- */
@media (max-width: 767px) {
    /* Tipografies */
    h1 { font-size: 70px; line-height: 60px; }
    h2 { font-size: 28px; line-height: 30px; }
    h3 { font-size: 30px; line-height: 30px; }
    h4 { font-size: 20px; line-height: 22px; }
    h5 { font-size: 45px; line-height: 45px; }
    h6 { font-size: 16px; line-height: 18px; }
    p  { font-size: 12px; line-height: 14px; }
    
    .section-1 { padding-bottom: 10px; }
    .info-card { padding: 20px; height: auto; }

    .s3-cards-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .legend-card { width: 226px; height: 288px; }
    
    .s4-content { padding-left: 20px; padding-right: 20px; }

    /* SECCIÓ 5 MOBILE */
    
    .lanterns-wrapper {
        flex-direction: column;
        justify-content: flex-start; 
        align-items: center; 
        padding-bottom: 0; 
    }

    .lanterns-row {
        position: static;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding-left: 20px;
        padding-right: 20px;
    }

    .lanterns-left, .lanterns-right {
        display: contents;
    }

    /* MIDES IGUALS A TABLET (Com demanat) */
    .l-08 { width: 69px; height: 315px; } /* Mida Tablet */
    .l-09 { display: none; } /* Ocult */
    .l-10 { width: 83px; height: 390px; } /* Mida Tablet */
    .l-11 { width: 92px; height: 326px; } /* Mida Tablet */
    
    .lanterns-left, .lanterns-right {
        gap: 15px;
    }

    /* Text Central - Padding 45px */
    .s5-text-content {
        margin-top: auto;
        margin-bottom: 0;
        padding-bottom: 45px; /* Padding demanat aplicat al flexbox del text */
    }
}
/* ... (Tot el codi CSS previ es manté igual fins a la Secció 6) ... */

/* =========================================
   11. SECCIÓ 6 (TYPICAL FOOD) 
   ========================================= */
.section-6 {
    height: 100vh;
    width: 100%;
    
    /* Flexbox Vertical Centrat */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el bloc (Títol + Cards) verticalment */
    align-items: center;     /* Centra horitzontalment */
    
    /* Gap demanat entre Títol i Scroll */
    gap: 50px; 
    
    /* Padding superior per compensar el Header fix si cal. */
    padding-top: 60px; 
}

.s6-title {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --- Scroll Container --- */
.food-scroll-container {
    width: 100%;
    display: flex;
    /* Els elements comencen a l'esquerra per fer scroll */
    justify-content: flex-start; 
    align-items: center; 
    
    overflow-x: auto; 
    
    /* Paddings laterals i verticals */
    padding: 10px 20px; 
    
    /* Gap entre targetes */
    gap: 40px;
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.food-scroll-container::-webkit-scrollbar {
    display: none; 
}

/* --- Food Card Component --- */
.food-card {
    /* MIDA FIXA: 280x300 (Igual per a imatge i targeta) */
    width: 280px;
    height: 300px;
    
    position: relative;
    flex-shrink: 0; 
    border-radius: 20px;
    
    /* Ja no hi ha transició de width/height perquè no canvien */
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    overflow: hidden; 
}

/* Imatge (Visible per defecte) */
.food-img {
    width: 100%;
    height: 100%;
    
    object-fit: contain; 
    padding: 10px;       
    
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 1;
}

/* Text Info (Visible al Hover) */
.food-info {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; 
    gap: 10px;
    padding: 20px;
    
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* --- HOVER EFFECTS --- */
.food-card:hover {
    cursor: pointer;
    /* Mida es manté 280x300, no cal redefinir-la */
}

.food-card:hover .food-img {
    opacity: 0; 
}

.food-card:hover .food-info {
    opacity: 1; 
}

/* Adaptació mínima per pantalles petites si el vertical centering talla contingut */
@media (max-height: 600px) {
    .section-6 {
        justify-content: flex-start;
        padding-top: 100px;
    }
}
/* =========================================
   12. SECCIÓ 7 (RED ENVELOPES) - FINAL FIX
   ========================================= */
.section-7 {
    /* ALÇADA FIXA PER A TOTS ELS DISPOSITIUS */
    height: 650px; 
    margin: 20px 10px; 
    
    background-color: #ffffff;
    border-radius: 20px;
    
    /* FLEXBOX: Per defecte fila (2 columnes) */
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    
    /* Gap entre targeta i text */
    gap: 100px; 
    
    overflow: hidden; 
}

/* --- Columna Esquerra (Targeta) --- */
.s7-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hongbao-card {
    /* MIDES DESKTOP (Default) */
    width: 240px;
    height: 460px;
    
    background-color: rgb(171, 18, 18); 
    border-radius: 20px;
    
    /* Rotació -15º */
    transform: rotate(-15deg);
    
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    
    /* PADDING ESQUERRA DEMANAT (A tots els dispositius) */
    padding-left: 10px;

    /* Padding inferior (Desktop) */
    padding-bottom: 280px;
}

.hongbao-card h5 {
    color: black !important; 
}

/* --- Columna Dreta (Text) --- */
.s7-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
    
    max-width: 500px;
    padding: 0 20px;
}

/* =========================================
   MEDIA QUERIES (ADAPTACIONS S7)
   ========================================= */

/* --- TABLET (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* MANTENIM 2 COLUMNES (Fila) */
    .section-7 {
        flex-direction: row; 
        gap: 50px; 
        padding-left: 20px;
        padding-right: 20px;
        /* Alçada es manté 650px (heretada) */
    }
    
    /* MIDES TABLET */
    .hongbao-card {
        width: 197px;
        height: 378px;
        padding-bottom: 230px; 
    }
}

/* --- MOBILE (fins a 767px) --- */
@media (max-width: 767px) {
    /* 1 COLUMNA (Vertical) */
    .section-7 {
        flex-direction: column; 
        
        /* Ajustem gaps i paddings per encabir-ho tot en 650px fixos */
        gap: 30px; 
        padding-top: 20px; 
        padding-bottom: 20px;
        
        /* Important: Height continua sent 650px fix, 
           així que vigilem que el contingut no es talli */
    }
    
    /* MIDES MOBILE */
    .hongbao-card {
        width: 145px;
        height: 277px;
        padding-bottom: 165px; 
    }
}
/* =========================================
   13. SECCIÓ 8 (HOROSCOPE) - MIDES RECUPERADES
   ========================================= */
.section-8 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* --- GRID 4x3 (Desktop) --- */
.horoscope-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 20px;
    justify-content: center;
}

/* --- ZODIAC CARD (Desktop Base) --- */
.zodiac-card {
    /* Mida Desktop */
    width: 240px;
    height: 300px;
    
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    
    /* Desktop: Alineat a baix */
    justify-content: flex-end; 
    gap: 0px; 
    padding: 10px;
    padding-bottom: 10px;
    
    transition: transform 0.3s ease;
    overflow: hidden;
}

.zodiac-card:hover {
    transform: rotate(5deg);
}

/* --- IMATGE BOX (Desktop Base) --- */
.zodiac-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 1;
    min-height: 0; 
    
    /* Desktop: Empeny el text avall */
    margin-bottom: auto; 
    
    /* Mida Imatge Desktop */
    width: 172px;
    height: 208px;
}

.zodiac-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

/* --- TEXTOS --- */
.zodiac-card h4 {
    margin: 0;
    line-height: 1.2;
}

.zodiac-card h2 {
    margin: 0;
    line-height: 1.2;
    color: black !important;
}

/* =========================================
   MEDIA QUERIES SECCIÓ 8 (RESPONSIVE)
   ========================================= */

/* --- TABLET (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .horoscope-grid {
        grid-template-columns: repeat(3, auto);
    }

    /* Targeta Tablet: 188x238 */
    .zodiac-card {
        width: 188px;
        height: 238px;
        /* Manté alineació bottom (justify-content: flex-end) */
    }
    
    /* Imatge Tablet: 126x152 */
    .zodiac-img-box {
        width: 126px;
        height: 152px;
    }
}

/* --- MOBILE (fins a 767px) --- */
@media (max-width: 767px) {
    .horoscope-grid {
        grid-template-columns: repeat(2, auto);
        gap: 15px;
    }

    /* Targeta Mobile: 137x163 */
    .zodiac-card {
        width: 137px;
        height: 163px;
        
        /* Mobile: Centrat al mig */
        justify-content: center;
        
        /* Mobile: Gap 5px */
        gap: 5px;
        
        /* Reset padding extra de desktop */
        padding-bottom: 10px; 
    }

    /* Imatge Mobile: 93x112 */
    .zodiac-img-box {
        width: 93px;
        height: 112px;
        
        /* Treiem el margin-bottom: auto per permetre el centratge real */
        margin-bottom: 0; 
    }
    
    .zodiac-card h4 {
        font-size: 0.85rem; 
    }
    .zodiac-card h2 {
        font-size: 1rem;
    }
}
/* =========================================
   12. SECCIÓ 7 (RED ENVELOPES) 
   ========================================= */
.section-7 {
    /* ALÇADA FIXA: 650px */
    height: 650px; 
    margin: 20px 10px; 
    
    background-color: #ffffff;
    border-radius: 20px;
    
    /* FLEXBOX: Per defecte fila (Desktop/Tablet) */
    display: flex;
    flex-direction: row; 
    justify-content: center; /* Centrat horitzontal global */
    align-items: center;     /* Centrat vertical global */
    
    gap: 100px; 
    
    overflow: hidden; 
}

/* --- Columna Esquerra (Contenidor Targeta) --- */
.s7-left {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Important: Assegurem que no tingui amplada fixa que desplaci */
    width: auto;
}

/* --- Targeta Vermella --- */
.hongbao-card {
    /* MIDES DESKTOP */
    width: 240px;
    height: 460px;
    
    background-color: rgb(171, 18, 18); 
    border-radius: 20px;
    
    /* Rotació -15º */
    transform: rotate(-15deg);
    
    /* Ombra */
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    
    /* Padding interior */
    padding-left: 10px;
    padding-bottom: 280px;

    transition: transform 0.3s ease;
    cursor: pointer;
}

.hongbao-card h5 {
    color: black !important; 
}

.hongbao-card:hover {
    transform: rotate(5deg);
}

/* --- Columna Dreta (Contenidor Text) --- */
.s7-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra els textos horitzontalment */
    text-align: center;
    gap: 15px;
    
    max-width: 500px;
    padding: 0 20px;
    
    /* Important: Evita que el contenidor sigui més ample del compte */
    width: auto;
}

/* Reset de marges per evitar desviaments */
.s7-right h5, .s7-right h4, .s7-right h6, .s7-right p {
    margin: 0; 
}

/* =========================================
   ANIMACIONS IN VIEW (REVEAL) - SECCIÓ 7
   ========================================= */

/* Adaptades per no trencar l'estructura (moviment curt) */
.s7-anim-left.hidden-element {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: all 0.8s ease-out 0.2s;
}

.s7-anim-right.hidden-element {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out 0.2s;
}

.s7-anim-left.reveal-active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.s7-anim-right.reveal-active {
    opacity: 1;
    transform: translateX(0);
}


/* =========================================
   MEDIA QUERIES (ADAPTACIONS S7)
   ========================================= */

/* --- TABLET (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-7 {
        flex-direction: row; 
        gap: 50px; 
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hongbao-card {
        width: 197px;
        height: 378px;
        padding-bottom: 230px; 
    }
}

/* --- MOBILE (fins a 767px) --- */
@media (max-width: 767px) {
    .section-7 {
        /* Canvi a COLUMNA (Vertical) */
        flex-direction: column;
        
        /* ASSEGURAR CENTRATGE ABSOLUT */
        justify-content: center; /* Centra verticalment dins dels 650px */
        align-items: center;     /* Centra horitzontalment */
        
        /* Ajustem gaps */
        gap: 30px; 
        
        /* Eliminem paddings que puguin desplaçar el contingut */
        padding: 0;
    }
    
    /* Forcem que els contenidors fills ocupin l'amplada completa però centrats */
    .s7-left, .s7-right {
        width: 100%;             /* Ocupa tot l'ample disponible */
        justify-content: center; /* Contingut al mig */
        align-items: center;
        padding: 0 15px;         /* Petit marge de seguretat lateral */
        box-sizing: border-box;  /* Perquè el padding no sumi amplada */
    }

    /* MIDES TARGETA MOBILE (145x277) */
    .hongbao-card {
        width: 145px;
        height: 277px;
        padding-bottom: 165px; 
        border-radius: 10px;
        
        /* Assegurem que cap marge extern la desplaci */
        margin: 0 auto; 
    }
}