/* --- CONFIGURACIÓN MAESTRA BELLEZA --- */

#main-content {
    background: #fff;
}

section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* PÁGINA 1: HERO */
#eb-hero {
    background: #000;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
}
.eb-image-full {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.eb-overlay-text {
    position: absolute;
    z-index: 10;
    
    /* CAMBIO CLAVE: Anclamos al centro horizontal */
    left: 50%; 
    /* Lo movemos un 28% del ancho de la pantalla hacia la derecha del centro */
    /* y mantenemos el centrado propio del bloque de texto */
    transform: translateX(20%); 
    
    bottom: 36%; /* Mantén la altura que ya te gustó */
    
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff !important; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    
    /* Evita que el texto se rompa en pantallas pequeñas */
    width: auto;
    white-space: nowrap; 
}

.eb-small-text {
    /* TAMAÑO MÁS PEQUEÑO */
    font-size: 0.75rem !important; 
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 5px; /* Espacio entre las dos líneas */
    opacity: 0.9;
}

.eb-big-text {
    /* TAMAÑO MÁS GRANDE */
    font-size: 2.0rem !important; 
    font-weight: 200;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

.eb-overlay-text h1 {
    color: #ffffff !important;
    font-size: 1.2rem;   /* Tamaño equilibrado para no tapar caras */
    font-weight: 200;
    line-height: 1;
    margin: 0;
    letter-spacing: 3px;
    white-space: nowrap;
}

.eb-label {
    color: #ffffff !important;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
    margin-bottom: 2px;
}

/* Añadimos este ajuste para laptops pequeñas */
@media (max-width: 1366px) {
    .eb-overlay-text {
        bottom: 25%;
        right: 18.5%;
    
    }
    .eb-big-text {
        font-size: 1.7rem !important; /* Achicamos la letra si la pantalla es pequeña */
    }
}

@media (min-width: 1920px) {
    .eb-overlay-text {
        right: 19%;
        bottom: 38%;
    }
}

.eb-image-full img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }

/* PÁGINA 2: VERTICAL (GRIS) */
#eb-philosophy {
    background-color: #f2f2f2 !important; /* Mantenemos el gris elegante */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ajustamos el padding para ganar espacio vertical */
    padding: 100px 0 40px 0; 
    height: 100vh;
}
.eb-vertical-stack {
    max-width: 950px;
    width: 92%;
    text-align: center;
    display: flex;
    flex-direction: column; /* TODO UNO ENCIMA DE OTRO */
    align-items: center;
}
.eb-text-group { margin-bottom: 25px; }
.eb-text-group h2 {
    /* TIPOGRAFÍA LIGHT MÁS PEQUEÑA */
    font-family: 'Mulish', 'Avenir Next Light', sans-serif !important;
    font-weight: 200 !important;
    font-size: 1.6rem; /* Bajamos de 2rem a 1.6rem */
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #1a1a1a;
    text-transform: uppercase;
}
.eb-text-group p {
    /* TIPOGRAFÍA REGULAR MÁS PEQUEÑA */
    font-family: 'Mulish', 'Avenir Next Regular', sans-serif !important;
    font-weight: 400;
    font-size: 0.9rem; /* Bajamos de 1.1rem a 0.9rem */
    line-height: 1.6;
    color: #333;
    max-width: 850px;
    margin: 0 auto 10px;
}
/* Ajuste para el texto en negrita interno */
.eb-text-group p strong {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}
.eb-divider {
    width: 50px;
    height: 1px;
    background: #000;
    margin-bottom: 30px;
    opacity: 0.3; /* La hacemos más discreta */
}

/* PÁGINA 3: 50/50 (NEGRO) */
#eb-science {
    background-color: #000 !important;
    padding: 0 !important;
}
.eb-split-container {
    display: flex;
    width: 100%;
    height: 100vh;
}
.eb-text-side {
    flex: 0 0 50% !important; 
    width: 50% !important;
    background-color: #000000 !important;
    display: flex !important;
    align-items: center !important; 
    justify-content: center !important;
    
    /* CAMBIO: Aumentamos el espacio superior de 83px a 130px 
       para que el texto baje y se aleje de la barra superior */
    padding-top: 130px !important; 
    padding-bottom: 50px !important; /* Añadimos espacio abajo para equilibrio */
}

.eb-content { max-width: 450px; color: #ffffff !important; } /* FORZAMOS BLANCO */

.eb-content h2 {
    color: #ffffff !important; 
    font-size: 2.2rem; 
    font-weight: 200; 
    margin-bottom: 15px;
}

.eb-content h3 {
    color: #ffffff !important; /* BLANCO PURO */
    font-size: 1rem; 
    margin-bottom: 25px; 
    letter-spacing: 2px;
    font-weight: 400; /* Un poco más de cuerpo para diferenciar del título */
}

/* CAMBIO: Párrafos en blanco sólido (sin transparencia) */
.eb-content p { 
    color: #ffffff !important; /* BLANCO PURO */
    line-height: 1.7; 
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 1 !important; /* Aseguramos que no se vea grisáceo */
}

.eb-image-side {
    flex: 0 0 50%;
    height: 100%;
}
.eb-image-side img {
    width: 100%;
    height: 95%;
    object-fit: cover;
    object-position: right center; /* VEMOS EL BRILLO AZUL */
}

.eb-label-dark { color: #888; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 3px; display: block; margin-bottom: 10px; }

/* ============================================================
   SOLUCIÓN MAESTRA MÓVIL COMPLETA - BELLEZA.CSS (CASAPIEL)
   ============================================================ */
@media (max-width: 768px) {

    /* --- 1. HEADER MÓVIL LIMPIO Y CENTRADO --- */
    #main-header {
        height: 65px !important;
    }
    .shop-dropdown {
        display: none !important; /* Oculta "Comprar productos" en celular */
    }
    .nav-left { 
        flex: 1 !important; 
        justify-content: flex-start !important; 
    }
    .nav-center { 
        flex: 3 !important; 
        display: flex !important;
        justify-content: center !important; 
    }
    .nav-right { 
        flex: 1 !important; 
        justify-content: flex-end !important; 
    }
    .main-logo { 
        height: 32px !important; 
    }

    /* --- 2. PÁGINA 1: HERO - LAS 4 MODELOS COMPLETAS (SIN RECORTES) --- */
    #eb-hero {
        height: auto !important;
        min-height: auto !important;
        padding: 75px 0 35px 0 !important; /* Espacio para el header arriba */
        background-color: #000000 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: relative !important;
    }

    .eb-image-full {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        left: auto !important;
    }

    /* Muestra la foto entera de punta a punta: SE VEN LAS 4 MODELOS */
    .eb-image-full img {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* El texto centrado colocado elegantemente debajo de la foto */
    .eb-overlay-text {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 25px !important;
        text-align: center !important;
        width: 90% !important;
    }

    .eb-small-text {
        font-size: 0.7rem !important;
        letter-spacing: 4px !important;
        color: #ffffff !important;
        margin-bottom: 6px !important;
        display: block !important;
    }

    .eb-big-text {
        font-size: 1.5rem !important;
        letter-spacing: 2.5px !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
        white-space: normal !important;
    }

    /* --- 3. PÁGINA 2: SECCIÓN FILOSOFÍA GRIS (ALTURA LIBRE) --- */
    #eb-philosophy {
        height: auto !important;
        min-height: 100vh !important;
        padding: 90px 20px 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .eb-vertical-stack {
        width: 100% !important;
        max-width: 100% !important;
    }

    .eb-text-group h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    .eb-text-group p {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
        margin-bottom: 12px !important;
    }

    .eb-divider {
        margin: 20px auto 25px !important;
    }

    /* --- 4. PÁGINA 3: EL FRASCO AZUL GRANDE E IMPONENTE --- */
    #eb-science {
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        background-color: #000000 !important;
        overflow: visible !important;
    }

    .eb-split-container {
        flex-direction: column !important; /* Texto arriba, foto grande abajo */
        height: auto !important;
        width: 100% !important;
    }

    /* El texto de "¿Y qué papel juega CASAPIEL?" completo */
    .eb-text-side {
        width: 100% !important;
        flex: none !important;
        padding: 40px 25px 0 !important;
        display: block !important;
    }

    .eb-content {
        max-width: 100% !important;
        text-align: left !important;
    }

    .eb-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        color: #ffffff !important;
    }

    .eb-content h3 {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
        color: #ffffff !important;
    }

    .eb-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        color: #ffffff !important;
    }

    .eb-content p:last-child {
        margin-bottom: 30px !important;     /* Quitamos el margen del último párrafo */
    }

    /* Contenedor de la foto del frasco azul */
    .eb-image-side {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        background-color: #000000 !important;
        margin-top: 20px !important;    /* Espacio perfecto entre el texto y la mano */
        padding-bottom: 50px !important;
    }

    /* VITAL: AGRANDAMOS EL FRASCO AL DOBLE CON SCALE */
    .eb-image-side img {
        width: 85% !important;          /* Ocupa el 85% del ancho del teléfono */
        max-width: 350px !important;    /* Tamaño grande y nítido */
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        transform: none !important;
    }
}
