.site-header {
  position: relative;
  z-index: 9999;
}
/* ============================================================
   SOLUCIÓN RECUPERADA PARA MÓVIL (CeraVe)
   Ajusta logo, texto y baja el botón.
   ELIMINA ÓVALOS Y SUPERPOSICIONES DEL DESASTRE ANTERIOR.
   ============================================================ */

@media (max-width: 600px) {

    /* 1. AJUSTAMOS EL LOGO DE CERAVE Y LA CABECERA (Reducidos) */
    /* Para que el logo no sea gigante y deje espacio */
    .site-logo-img img, .custom-logo-link img {
        max-width: 140px !important; /* Logo pequeño y ordenado */
        height: auto !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }

    /* Reducimos la altura total de la cabecera */
    .site-header, .ast-primary-header-bar {
        padding-top: 3px !important;
        padding-bottom: 3px !important;
        min-height: auto !important;
    }

    /* 2. AJUSTAMOS EL TEXTO DEL SLIDER (TÍTULOS Y FRASES) - Recuperados */
    /* Letra pequeña para que quepan las frases y bajamos el texto */
    h1, .entry-title, .n2-ss-layer, .slide-title, .n2-ss-layer-content {
        font-size: 16px !important; /* Tamaño pequeño pero legible */
        line-height: 1.3 !important;
        color: #ffffff !important;
        text-align: center !important;
        display: block !important;
        width: 85% !important; /* Márgenes laterales para que no toque los bordes */
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 10px !important; /* Espacio para el botón */
        
        /* ESTO EVITA QUE LAS PALABRAS SE ROMPAN EN VERTICAL */
        white-space: normal !important;
        word-break: keep-all !important;
    }

    /* 3. BAJAMOS EL BOTÓN "SABER MAS" A SU SITIO - Solución Crítica */
    /* Le damos un empujón hacia abajo al contenedor del botón para que no se superponga */
    .n2-ss-layer-content.n2-ss-button-container, .n2-ss-layer.n2-ss-button, .slide-button {
        display: inline-block !important;
        margin-top: 25px !important; /* BAJAMOS EL BOTÓN */
        padding: 8px 15px !important;
        font-size: 12px !important; /* El botón un poco más pequeño */
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 4. POSICIONAMOS EL SLIDER Y AJUSTAMOS SU ALTURA - Limpiado */
    /* Empujamos el slider hacia abajo para que no choque con el logo y menú */
    .site-content, .ast-container, #content, .elementor-section {
        margin-top: 110px !important; /* Espacio para logo y menú reducidos */
    }

    /* Le damos altura al slider para que quepan texto + botón y respiren */
    .n2-ss-slider, .n2-ss-slider-2 {
        height: 320px !important; /* Ajusta según el tamaño de tu imagen */
    }

    /* ELIMINAMOS TÍTULOS DUPLICADOS Y ELEMENTOS EXTRAÑOS (EL ÓVALO) */
    .entry-header {
        display: none !important;
    }
}