/* ==========================================================================
   DECLARACIÓN DE LA FUENTE MANUSCRITA
   ========================================================================== */
@font-face {
    font-family: 'Biro Script';
    src: url('../fonts/Biro_Script_reduced.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   ESTILOS DE LA SECCIÓN SLOGAN / MANIFIESTO
   ========================================================================== */

.section-slogan {
    width: 100%;
    min-height: auto; /* Dejamos que el contenido y los paddings definan la altura de forma orgánica */
    background-color: #ffffff;
    
    /* La silueta queda fija sutilmente a la izquierda */
    background-image: url('../images/silueta-casa.png');
    background-repeat: no-repeat;
    background-position: calc(50% - 420px) center; 
    background-size: 130px auto;                  
    background-attachment: fixed;                 
    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
    /* CAMBIO CLAVE: Quitamos el padding inferior para pegar las secciones */
    padding-top: 100px;
    padding-bottom: 0; 
    
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1; 
}

.parallax-red-arrow {
    position: absolute;
    width: 320px;                     
    height: 320px;                    
    background-image: url('../images/flecha-roja-difuminada.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    /* Posicionamiento inicial */
    right: 5%; 
    bottom: -100px; /* Un poco más abajo para que tenga margen de subida */
    
    pointer-events: none;
    z-index: 0;
    
    /* Optimización para que el navegador anime de forma suave */
    will-change: transform;
    transition: transform 0.1s linear;
}

@media screen and (max-width: 992px) {
    .parallax-red-arrow {
        display: none; /* Se oculta en móviles para evitar problemas de rendimiento */
    }
}

/* Contenedor relativo limitado */
.slogan-container {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Núcleo Central */
.slogan-core {
    z-index: 10;
    text-align: center; 
}

.slogan-main-text h2 {
    font-family: 'Exo', sans-serif;
    font-weight: 300;
    font-size: 3.2rem;
    color: #2C2825;
    line-height: 1.15;
    margin: 0;
}

.slogan-main-text .highlight-guinda {
    font-weight: 700;
    color: #8C1527;
}

/* Estilo base para las frases manuscritas flotantes */
.phrase {
    position: absolute;
    font-family: 'Biro Script', cursive; 
    font-size: 1.6rem;                   
    color: #666666;
    white-space: nowrap;
    pointer-events: none; 
    text-transform: lowercase;           
    letter-spacing: 1px;
}

.phrase-1::first-letter,
.phrase-4::first-letter,
.phrase-5::first-letter {
    text-transform: uppercase;
}

/* ==========================================================================
   COORDENADAS DE DISTRIBUCIÓN
   ========================================================================== */
.phrase-1 { top: 15%; left: 10%; }
.phrase-2 { top: 5%; left: 50%; }
.phrase-3 { top: 35%; right: 5%; }
.phrase-4 { bottom: 15%; right: 12%; }
.phrase-5 { bottom: 10%; left: 20%; }

/* ==========================================================================
   RESPONSIVE MÓVIL
   ========================================================================== */
@media screen and (max-width: 992px) {
    .section-slogan {
        background-attachment: scroll;
        background-position: center 60px; 
        background-size: 100px auto;
    }

    .slogan-main-text h2 {
        font-size: 2.3rem;
    }

    .slogan-container {
        height: auto;
        flex-direction: column;
        padding: 0 20px;
    }

    .slogan-core {
        margin-top: 100px; 
    }

    .floating-phrases {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 40px;
    }

    .phrase {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        font-size: 1.4rem;
        text-align: center;
    }
}