/*=== SLIDE PRINCIPAL — index_slide.html.twig ==================================
   Prefijo: .slide
=============================================================================*/

.slide {
    position: relative;
    overflow: visible;
}

.slide .carousel-item {
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease, opacity .5s ease-out !important;
    background-color: #000;
}

.slide .carousel-item img {
    height: 100vh !important;
    object-fit: cover;
}

.slide .carousel-item .overlay {
    position: absolute;
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.3) 100%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide .carousel-caption {
    bottom: 80px !important;
    z-index: 10;
    position: absolute;
}

.slide .carousel-caption h1 {
    font-family: "Instrument Serif", serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 100%;
    text-shadow: 0 0 4px #666, 0 0 8px #666;
    display: block;
    text-transform: uppercase;
}

.slide .carousel-caption .tit_destacado {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #fff;
    font-weight: 400;
    display: inline-block;
    border-radius: 50px;
    text-transform: uppercase;
}

/*
    wave.png: 1349×234px → ratio 17.34%
    En pantallas < 1349px usamos background-size: cover para que
    la onda siempre llene el ancho sin cortarse ni deformarse.
    La altura se calcula como viewport_width × 0.1734.
*/
.slide::after {
    content: '';
    background-image: url(../img/wave.png);
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 17.34vw;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 100%;
    z-index: 20;
    pointer-events: none;
}

/* ---- responsive slide ---- */

/* Extra small (< 576px) */
@media (width <= 575.98px) {

    .slide .carousel-item {
        height: 40vh !important;
    }
    .slide .carousel-item img {
        height: 40vh !important;
        object-fit: cover;
    }
    /* 360px × 0.1734 = 62px — redondeado a 65px para no cortar picos */
    .slide::after {
        height: 65px;
        bottom: -1px;
        background-size: 100% 100%;
    }
    .slide .carousel-caption {
        bottom: 65px !important;
    }
    .slide .carousel-caption p {
        line-height: 100%;
        font-size: 0.875em;
    }
    .slide .carousel-caption .tit_destacado {
        font-size: 0.875em !important;
        font-weight: 400;
    }

    /* overrides del menú específicos del index */
    .menu_oculto_redes_reserva_sobre_logo .btn_reserva {
        font-size: 0.8em !important;
        padding: 5px 8px !important;
    }
    .menu_oculto_redes_reserva_sobre_logo .navbar-brand img {
        height: 100px;
    }
}

/* Small (576px–767px) */
@media (576px <= width <= 767.98px) {

    .slide .carousel-item {
        height: 80vh !important;
    }
    .slide .carousel-item img {
        height: 80vh !important;
        object-fit: cover;
    }
    /* 576px × 0.1734 = 99px */
    .slide::after {
        height: 99px;
        background-size: 100% 100%;
    }
    .slide .carousel-caption {
        right: 10%;
        left: 10%;
        bottom: 110px !important;
    }

    /* overrides del menú específicos del index */
    .menu_oculto_redes_reserva_sobre_logo .btn_reserva {
        font-size: 0.8em !important;
        padding: 5px 8px !important;
    }
    .menu_oculto_redes_reserva_sobre_logo .navbar-brand img {
        height: 70px;
    }
}

/* Medium (768px–991px) */
@media (768px <= width <= 991.98px) {

    .slide .carousel-item {
        height: 90vh !important;
    }
    .slide .carousel-item img {
        height: 90vh !important;
        object-fit: cover;
    }
    /* 768px × 0.1734 = 133px */
    .slide::after {
        height: 133px;
        background-size: 100% 100%;
    }
    .slide .carousel-caption {
        right: 10%;
        left: 10%;
        bottom: 160px !important;
    }

    /* overrides del menú específicos del index */
    .menu_oculto_redes_reserva_sobre_logo .btn_reserva {
        font-size: 0.8em !important;
        padding: 5px 8px !important;
    }
    .menu_oculto_redes_reserva_sobre_logo .navbar-brand img {
        height: 75px;
    }
}

/* Medium portrait (768px–991px) */
@media (768px <= width <= 991.98px) and (orientation: portrait) {
    .slide .carousel-item {
        height: 50vh !important;
    }
    .slide .carousel-item img {
        height: 50vh !important;
        object-fit: cover;
    }
}

/* Large (992px–1199px) */
@media (992px <= width <= 1199.98px) {

    .slide.slide_top {
        top: -122px;
        margin-bottom: -190px;
    }
    /* 992px × 0.1734 = 172px */
    .slide::after {
        height: 172px;
        background-size: 100% 100%;
    }
    .slide .carousel-caption {
        bottom: clamp(100px, 18%, 200px) !important;
    }
}

/* Extra large (1200px–1399px) */
@media (1200px <= width <= 1399px) {

    .slide.slide_top {
        top: -122px;
        margin-bottom: -100px;
    }
    .slide .carousel-item {
        height: 45vh !important;
    }
    .slide .carousel-item img {
        height: 45vh !important;
        object-fit: cover;
    }
    /* 1200px × 0.1734 = 208px */
    .slide::after {
        height: 208px;
        background-size: 100% 100%;
    }
    .slide .carousel-caption {
        bottom: clamp(90px, 16%, 120px) !important;
    }
}

/* XXL (≥ 1400px) */
@media (width >= 1400px) {

    .slide.slide_top {
        top: -182px;
        margin-bottom: -182px;
    }
    /* A partir de 1349px el PNG ya es más estrecho que la pantalla.
       Dejamos que 17.34vw siga escalando, con techo en 234px (altura real del PNG) */
    .slide::after {
        height: 17.34vw;
        max-height: 234px;
        background-size: 100% 100%;
    }
    .slide .carousel-caption {
        bottom: clamp(120px, 20%, 220px) !important;
    }
}


/*=== TITULAR JUMBO — index_titular_jumbo.html.twig ============================
   Prefijo: .titular_jumbo
=============================================================================*/

.titular_jumbo {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
}

.titular_jumbo .overlay {
    position: absolute;
    top: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.7) 10%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.9) 70%, rgba(255,255,255,0.7) 75%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.titular_jumbo .zona_titulares {
    z-index: 44;
    position: relative;
    color: #000;
}

.titular_jumbo .sobretitular {
    font-family: "Rouge Script", serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 0.666rem + 2.92vw, 2rem);
    line-height: 100%;
}

.titular_jumbo h2 {
    font-size: clamp(1.75rem, 1.669rem + 0.4vw, 2.2rem);
    line-height: 100%;
    text-transform: uppercase;
    color: #000;
}

.titular_jumbo p {
    font-size: 0.9em;
    line-height: 120%;
}


/*=== TEXTO TEASER / PRESENTACIÓN — index_texto_teaser.html.twig ===============
   Prefijo principal: .texto_teaser
   Nota: .texto_pres se comparte con banda_texto_teaser_img_slide_*.html.twig
=============================================================================*/

.texto_teaser {
    background-image: url("../img/fondo_presentacion.jpg");
    background-size: cover;
    background-position: center center;
}

.texto_teaser .sobre_titular {
    font-family: mendl-sans-variable, sans-serif;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
}

.texto_teaser .imagen_pres {
    display: flex;
    align-self: center;
}

.texto_teaser .imagen_pres img {
    align-self: center;
}

.texto_teaser .texto_presentacion {
    padding-left: 7%;
    display: flex;
    align-self: center;
}

/* .texto_pres: compartido con banda_texto_teaser_img_slide_*.html.twig */
.texto_pres {
    margin-bottom: 30px;
    align-self: center;
}

.texto_pres h2 {
    font-size: clamp(1.75rem, 1.503rem + 1.24vw, 3.125rem);
    font-weight: 500;
    text-align: left;
    line-height: 100%;
}

.texto_pres h2 span {
    font-weight: 800;
}


/*=== SERVICIOS IMÁGENES — index_servicios_imagenes.html.twig ==================
   Prefijo: .servicios_imagenes
=============================================================================*/

.servicios_imagenes {
    background-image: url('../img/fondo_cartas_inicio.png');
    background-position: left top;
    background-repeat: no-repeat;
}

.servicios_imagenes .fila_cajas {
    justify-content: center;
}

.servicios_imagenes .fila_cajas figure {
    overflow: hidden;
}

.servicios_imagenes .subtitular {
    display: inline-block;
    text-transform: uppercase;
    font-size: clamp(0.6rem, 1.5vw + 0.3rem, 0.9em);
    letter-spacing: 2px;
    padding: 8px 20px 0px 20px;
    border-radius: 50px;
}

.servicios_imagenes h2 {
    font-size: clamp(1.6rem, 4vw + 1rem, 3rem);
    font-weight: 500;
    text-transform: uppercase;
}

.servicios_imagenes h2::after {
    content: '';
    display: block;
    width: 150px;
    height: 24px;
    margin: 0 auto 8px;
    background-color: #9ac9d5;
    -webkit-mask-image: url("../img/onda_adorno.svg");
    mask-image: url("../img/onda_adorno.svg");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.servicios_imagenes figure {
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* Honey effect: enlace de overlay sobre la figura */
.servicios_imagenes figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.servicios_imagenes .caja_servicio figure {
    border-radius: 50%;
    border: 3px solid #374960;
    transition: transform 0.6s ease;
    padding: 10px;
}

.servicios_imagenes .caja_servicio figure img { border-radius: 50%; }

.servicios_imagenes .caja_servicio a {
    transition: all 1s;
}

.servicios_imagenes .caja_servicio a:hover figure {
    transform: scale(1.05) translateY(-20px);
}

.servicios_imagenes a:hover h3 { letter-spacing: 3px; font-weight: bolder; }

.servicios_imagenes h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(1.7rem, 2vw, 2.5rem);
    text-align: center;
    color: #333;
    transition: all 0.5s linear;
    display: block;
}

.servicios_imagenes h3::after {
    content: '';
    display: block;
    width: 90px;
    height: 15px;
    margin: 0 auto 8px;
    background-color: #9ac9d5;
    -webkit-mask-image: url("../img/onda_adorno.svg");
    mask-image: url("../img/onda_adorno.svg");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.servicios_imagenes a:hover h3::after {
    animation: ola 0.6s ease infinite;
}

@keyframes ola {
    0%   { transform: translateX(0) scaleY(1); }
    25%  { transform: translateX(4px) scaleY(1.2); }
    50%  { transform: translateX(0) scaleY(1); }
    75%  { transform: translateX(-4px) scaleY(1.2); }
    100% { transform: translateX(0) scaleY(1); }
}

/* ---- responsive servicios_imagenes ---- */

@media (992px <= width <= 1199.98px) {
    .servicios_imagenes { margin-top: -180px; }
}

@media (width >= 1400px) {
    .servicios_imagenes { margin-top: -199px; }
}
