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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #002D62;
}

/*
-----------------------------------------------------------------
SECCION 1
-----------------------------------------------------------------
*/

.hero-section {
    display: flex;
    width: 100%;
    height: 100vh;
    max-height: 700px;
    background-color: #ffffff;
    overflow: hidden;
    background-image: url('imagen-principal.jpg');
    background-size: cover;
    background-position: center; /* Centramos para que se vea bien en todo el ancho */
    overflow: hidden;
}

/* Columna Izquierda */
.hero-left {
    flex: 1;
    position: relative;
    background-image: none; /* Quitamos la imagen de aquí */
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

/* Columna Derecha */
.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    text-align: center;
    /* Quitamos el fondo blanco sólido */
    background-color: transparent; 
}

.ally-badge { 
    position: absolute;
    bottom: 30px;
    left: 30px;
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align:center;
}

.ally-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.logo-fundacion {
    /*max-height: 45px;*/
    width: auto;
}


.brands-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    width:80%;
    justify-content:space-between;
}

.brand-logo {
    /*max-height: 50px;*/
    width: auto;
}

.hero-title {
    font-size: 45px;
    font-weight: 800;
    color: #0033a1;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.hero-badge {
    background-color: #d32f2f;
    color: #ffffff;
    font-size: 22px;
    padding: 16px 35px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
    border: 4px solid #ef4354;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
    width:80%;
} 

.hero-footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width:100%;
}

.text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small-label {
    font-size: 14px;
    font-weight: 600;
    color: #d32f2f;
    margin-bottom: 2px;
}

.big-value {
    font-size: 24px;
    color: #d32f2f;
}

.equals {
    font-size: 24px;
    font-weight: 800;
    color: #d32f2f;
    margin-top: 10px;
}

/*
-----------------------------------------------------------------
SECCION 2
-----------------------------------------------------------------
*/

.info-section {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0d349a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #0d349a;
    margin-bottom: 30px;
}

.section-text {
    font-size: 14px;
    color: #0d349a;
    line-height: 1.6;
    max-width: 850px;
    margin-bottom: 15px;
}

.main-intro {
    font-size: 15px;
}

.info-block {
    margin-top: 25px;
}

.block-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d349a;
    margin-bottom: 8px;
}

.description-text {
    max-width: 900px;
}

.products-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width:90%;
    margin-top: 40px;
    flex-wrap: wrap;
}

/*
-----------------------------------------------------------------
SECCION 3
-----------------------------------------------------------------
*/

.partners-section {
    width: 100%;
    background-color: #f0f0f2; /* Fondo gris claro característico de esta sección */
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.partner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
    width: 100%;
}

.partner-row.reverse {
    flex-direction: row-reverse;
}

.partner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.partner-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-section-title {
    font-size: 26px;
    font-weight: 800;
    color: #0033a1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.partner-category {
    font-size: 22px;
    font-weight: 800;
    color: #0033a1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.partner-name {
    font-size: 16px;
    font-weight: 700;
    color: #0033a1;
    margin-bottom: 12px;
}

.partner-text {
    font-size: 14px;
    color: #0033a1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.partner-link {
    font-size: 12px;
    font-weight: 800;
    color: #002D62;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 2px;
}

.partner-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #002D62;
}

.partner-logo {
    max-width: 250px;
    height: auto;
}

.partner-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/*
-----------------------------------------------------------------
SECCION 4
-----------------------------------------------------------------
*/

.footer-section {
    width: 100%;
    background-color: #ffffff;
    padding: 60px 40px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-main-title {
    font-size: 26px;
    font-weight: 800;
    color: #002D62;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.terms-link {
    font-size: 14px;
    font-weight: 700;
    color: #0056b3;
    text-decoration: underline;
    margin-bottom: 50px;
    cursor: pointer;
}

.footer-bottom-bar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #002D62;
    padding: 25px 0;
}

.beiersdorf-logo {
    max-height: 25px;
    width: auto;
}

.copyright {
    font-size: 12px;
    font-weight: 700;
    color: #002D62;
}

/* --- Estilos del PopUp / Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 90%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    text-align: left;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 700;
    color: #002D62;
    cursor: pointer;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #002D62;
    margin-bottom: 15px;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
    font-size: 13px;
    color: #444444;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px;
}

/* 
-----------------------------------------------------------------
ESTILOS RESPONSIVE PARA MOBILE (Ancho menor a 768px)
-----------------------------------------------------------------
*/


@media screen and (max-width: 1400px) {
{
    .big-value {
        font-size: 20px;
    }
}

@media screen and (max-width: 1000px) {
{
    .big-value {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {

    /* --- SECCIÓN 1: HERO (Ajuste definitivo mobile) --- */
    .hero-section {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 500px;
        max-height: none;
        background-image: url('imagen-principal-mobile.jpg');
        background-size: cover;
        background-position: 70% center ;
        background-repeat: no-repeat;
        position: relative;
        padding: 30px 20px;
        justify-content: space-between;
        align-items: center;
        overflow: hidden;
    }

    /* Anulamos los anchos de columna de escritorio para que no recorten la pantalla */
    .hero-left, 
    .hero-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        flex: none;
        background: transparent;
        padding: 0;
        align-items: center;
        text-align: center;
    }

    /* Ocultamos el espacio sobrante de hero-left para manejar todo en hero-right o directo */
    .hero-left {
        position: absolute;
        bottom: 20px;
        left: 20px;
        width: auto;
        padding: 0;
        align-items: flex-start;
    }

    .ally-badge {
        position: static;
        background: transparent;
        padding: 0;
        text-align: left;
    }

    .ally-text {
        font-size: 11px;
        font-weight: 700;
        color: #002D62;
        text-shadow: none;
        margin-bottom: 4px;
    }

    .logo-fundacion {
        max-height: 70px;
        width: auto;
    }

    /* Reorganizamos la parte derecha para que contenga todo el contenido central */
    .hero-right {
        position: relative;
        z-index: 2;
        gap: 15px;
        padding-bottom: 50px; /* Espacio para que no tape el logo de la fundación */
    }

    .brands-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        margin-bottom: 10px;
    }

    .brand-logo {
        max-height: 52px;
        width: auto;
    }

    .hero-title {
        font-size: 30px;
        font-weight: 800;
        color: #0033a1;
        line-height: 1.15;
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }

    .hero-badge {
        width: 100%;
        max-width: 320px;
        font-size: 13px;
        padding: 12px 15px;
        border-radius: 16px;
        margin-bottom: 15px;
        box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    }

    .hero-footer-text {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .text-block {
        align-items: center;
        text-align: center;
    }

    .small-label {
        font-size: 10px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .big-value {
        font-size: 12px;
        font-weight: 700;
    }

    .equals {
        font-size: 16px;
        font-weight: 800;
        margin-top: 0;
    }

    /* --- RESTO DE LAS SECCIONES (Se mantienen igual) --- */
    .info-section {
        padding: 40px 20px;
        min-height: auto;
    }

    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 16px; }
    .section-text { font-size: 13px; }

    .products-container img {
        width: 100%;
        height: auto;
    }

    .partners-section {
        padding: 40px 20px;
        gap: 40px;
    }

    .partner-row, 
    .partner-row.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 25px;
    }

    .partner-content {
        align-items: center;
        text-align: center;
    }

    .partner-text { text-align: center; }

    .partner-photo {
        width: 100%;
        max-width: 260px;
        height: 260px;
    }

    .footer-section { padding: 40px 20px 0 20px; }
    .footer-main-title { font-size: 20px; }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 0;
    }

    .modal-content {
        max-width: 98% !important;
        height: 85vh; /* Ocupa el 85% de la altura de la pantalla */
        padding: 15px;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1;
        width: 100%;
        height: 100% !important;
        max-height: none !important;
        padding: 0 !important;
    }

    .modal-body iframe {
        width: 100% !important;
        height: 100% !important;
        border: none;
        width: 1px !important;
        min-width: 100% !important;
        height: 100% !important;
        border: none;
    }

    .modal-body object {
        display: block;
        min-height: 1200px; /* Esto asegura que el iPhone detecte contenido suficiente para scrollear */
    }
}