.slide_carrusel{
    background-color: #000;
}
.slide  .overlay {
    position: absolute;
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    width: 100%;
    height: 100%;
    z-index: 1;
}
.slide_carrusel .carousel-caption {
    color: #fff;
    position: absolute;
    bottom: 30%;
    left: 0%;
    transform: translate(-0%, -50%);
    z-index: 4;
    text-align: left;
    max-width: 60%;

}

.slide_carrusel .carousel-caption h1 {
    color: #fff;
    font-size: clamp(1.5em, 1rem + 2vw, 5em);
    font-weight: 400;
    text-transform: uppercase;
     /* Fondo solo debajo del texto */
     background: rgba(0, 0, 0, 0.65);
     padding: 0.2em 0.4em;
     padding-left: 2rem;
      /* Lo importante → divide el fondo por cada línea */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;    

    /* Para que el fondo no ocupe todo el ancho */
    display: inline;
}
.slide .carousel-caption h1 b{color:#fff;font-weight: 700;}

.slide  .carousel-caption .texto {
    font-weight: 400;
    font-size: clamp(0.9em, 1rem + 1vw, 1.2em);
    /* Fondo solo debajo del texto */
    background: rgba(0, 0, 0, 0.65);
    padding: 0.2em 0.4em;
    padding-left: 2rem;
    text-transform: uppercase;
    /* Lo importante → divide el fondo por cada línea */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;    

    /* Para que el fondo no ocupe todo el ancho */
    display: inline;
    
}

.slide .carousel-item img {
    min-height: calc(100vh - 87px);
    object-fit: cover;
}




/* Extra small devices (portrait phones, less than 576px)*/
@media (width = 390px) {    
    .slide .carousel-item img { min-height:32vh!important; }
}


/* Extra small devices (portrait phones, less than 576px)*/
@media (width <= 575.98px) {
    
    .slide .carousel-item img { min-height:50vh; }
    .slide  .carousel-caption { bottom: auto; transform: translate(-0%, -120%); max-width: 100%; right: 2%;}
    .slide  .carousel-caption .texto{font-size: 0.9rem;}
}

/* Small devices (landscape phones, 576px and up)*/
@media (576px <= width <= 767.98px) {

    .slide .carousel-item img { min-height:30vh; }
    .slide  .carousel-caption { bottom: auto; transform: translate(-0%, -120%); max-width: 100%; right: 2%;}
    .slide  .carousel-caption .texto{font-size: 0.9rem;}
   

}

/* Medium devices (tablets, 768px and up)*/
@media (768px <= width <= 991.98px) {

    .slide .carousel-item img { height: auto !important; }
    .slide  .carousel-caption { bottom: auto; transform: translate(-0%, -120%); max-width: 70%;}
    

}

/* Medium devices (tablets, 768px and up)*/
@media (768px <= width <= 991.98px) and (orientation: portrait) {

    .slide .carousel-item img { height: auto !important; }

}


/* Large devices l (desktops, 992px and up)*/
@media (992px <= width <= 1199.98px) {
    .slide .carousel-item img { height: auto !important; }
    .slide .carousel-caption { bottom: auto; transform: translate(-0%, -100%);}

   
}
/* Large devices l (desktops, 992px and up)*/
@media (992px <= width <= 1199.98px)  and (orientation: portrait)  {
    .slide .carousel-item img { height: auto !important; }
    .slide  .carousel-caption { bottom: auto; transform: translate(-0%, -100%);}
   
}


/* Extra large devices xl(large desktops, 1200px and up)*/
@media (1200px <= width <= 1399px) {
    

}

/* Extra large devices xl(large desktops, 1400px and up)*/
@media (width >= 1400px) {
  


}





/*----------------slick-slide productos--------------------*/

.slide_slick_bloque{background-color: #efefef;}

.slide_slick_bloque  h2{font-size: clamp(1.2em, 1em + 2vw, 2em); color:#000; text-transform: uppercase; z-index: -50;}

.slide_slick .slick-dotted.slick-slider {
    margin-bottom: 0px !important;
}
.slide_slick {
    margin: 0 10px;
}
.slick-slide { margin: 0 10px;}

 .slide_slick img {
    object-fit: cover;
    background-color: #000;
    transition:all 500ms linear;
    opacity: 0.9;

   
}
.slide_slick  a:hover img{opacity: 1; box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);     transform: translateY(-5px); /* Levanta ligeramente la caja */}


.slide_slick  a h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem)!important;
    text-align: center;
    padding: 5px;
    font-weight: 600;
    line-height: 110%;
    color: #000; 
    min-height:60px;

}





.slide_slick .elemento_slick .overlay {    width: 99.2%;}

.slide_slick .elemento_slick {
    width: 100%;
    height: 100%;
    margin: 0 5px;
    position: relative !important;
    display: block;

   
}




.slide_slick img.slick-loading {
    border: 0;
}


.slide_slick .slick-list {
    cursor: grab;
}

.slide_slick .slick-list::before {
    left: -1px;
    background: linear-gradient(90deg, #f2f2f2 0%, rgba(242, 242, 242, 0.3) 100%);
}

.slide_slick .slick-list::after {
    right: -1px;
    background: linear-gradient(90deg, rgba(242, 242, 242, 0.3) 0%, #f2f2f2 100%);
}

.slide_slick .slick-dots {
    display: none !important;
}


.slide_slick .slick-dots li:focus {
    border: 1px solid #000 !important;
}



/*------poner imagen a pantalla entera

.carousel-inner{ height: 100vh !important;}
.carousel-item{ height: 100vh !important;}
.carousel-item img{ height: 100vh !important; object-fit: cover; }
-----*/

.slide_slick .carousel-item {
    transition: transform 0.5s ease, opacity .5s ease-out !important;
}
/*---------------------------*/


/*--------------presentacion texto teaser dcha ---------------------*/

  
 
.texto_teaser_dcha img{ overflow: hidden; /*transform: rotateX(20deg) rotateY(15deg);  transform-style: preserve-3d;*/ box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;}
.texto_teaser_dcha figure{background: linear-gradient(#efefef, #fff); }
.presentacion.texto_teaser_dcha  h2 {
    font-size:clamp(1.4rem, 1.4rem + 2.25vw, 2rem);
    line-height: 100%;
    text-transform: uppercase;
    margin-top: -15px;
    
}

.presentacion.texto_teaser_dcha .tit_destacado{  line-height: 100%;}
.presentacion.texto_teaser_dcha  .texto_presentacion{  padding-right: 10%;}
.presentacion  h2 {
    font-size:clamp(2rem, 1.461rem + 2.7vw, 5rem);
    line-height: 100%;
    text-transform: uppercase;
    margin-top: -15px;
}

.presentacion .tit_destacado{  line-height: 100%;}
/*.presentacion .texto_presentacion{  padding-right: 10%;}*/

.presentacion .bajo_raya{font-size: 0.85em; font-weight: 600;}
.presentacion .bajo_raya:hover span{color:#fff;}


/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    .presentacion.texto_teaser_dcha .tit_destacado{ margin-top: -20px; margin-bottom: 15px;}
    .presentacion.texto_teaser_dcha .texto_presentacion { padding-right: 0; }
    .presentacion  h2 { margin-top: 0px;    }
}


/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {
    .presentacion.texto_teaser_dcha .tit_destacado{ margin-top: -20px; margin-bottom: 26px;}
    .presentacion.texto_teaser_dcha .texto_presentacion { padding-right: 0; }
    .presentacion  h2 { margin-top: 0px;    }
}
/*------------------banner_publi-----------------------*/
.banner_publi {
    background-color: #000;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    position: relative;
    border-radius: 5px;


}
.banner_publi .overlay{ position: absolute;
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
    width: 100%;
    height: 100%;
    z-index: 0;
}


.banner_publi .zona_texto {
    z-index: 5;
   
    line-height: 100%;
    text-align: center;
}

.banner_publi .zona_texto .subtitulo {
    font-size: clamp(1em, 2vw, 1.4em);
    font-weight: 400;
    line-height: 100%;
    color: #FFF;
}

.banner_publi .zona_texto h2 {
    font-size: clamp(1.7em, 2vw , 2.2em);
    font-weight: 500;
    line-height: 100%;
    color: #FFF;
    text-transform: uppercase;
}


/*------------------servicios imagenes-----------------------*/
.servicios_imagenes h2 span {
    color: #1F8754 !important;
}

.servicios_imagenes {
    position: relative;
    background-color: #1F875420;
}

.servicios_imagenes .adornos {
    position: absolute;
}

.servicios_imagenes h2 {
    color: #333;
    font-size: clamp(1.75rem, 1.503rem + 1.24vw, 3.125rem);
    font-weight: 500;
    text-align: center;
    line-height: 100%;
}

.servicios_imagenes .sobretitular {
    margin-top: 10px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(0.8125rem, 0.7083rem + 0.3333vw, 1.125rem);
    letter-spacing: 1px;
}

.servicios_imagenes .caja_areas {
    border-radius: 30px;
    text-align: center;
    z-index: 2;
    margin-bottom: 25px;
    transition: all 0.5s linear;
    color: #666;
    line-height: 128%;
    padding: 5px 35px;
}

.servicios_imagenes .caja_areas .servicios_imagenes .caja_areas .titular_areas {
    transition: all 0.5s linear;
}

.servicios_imagenes .caja_areas .titular_areas {
    font-size: clamp(1.063rem, 1.027rem + 0.18vw, 1.25rem);
}

.servicios_imagenes .caja_repite:hover {
    color: #fff !important;
}

.servicios_imagenes figure {
    display: inline-block;
    transition: transform 1s linear, filter 200ms linear;
}

.servicios_imagenes figure img {
    transition: filter 200ms linear;
}

.servicios_imagenes .caja_repite:hover figure {
    transform: scale(1.2, 1.2);
    filter: invert(100%) sepia(0%) saturate(0%) brightness(200%) contrast(100%);
}

.caja_repite a .caja_areas {
    background-color: #fff;
    transition: background-color 500ms linear, color 500ms linear;

    .titular_areas {
        color: #333;
    }
}

.caja_repite a:hover .caja_areas {
    background-color: #1F8754 !important;
    color: #fff;
    .titular_areas {
        color: #fff;
    }
}

/*.estrella{top: 25%;   right: 8%;   -webkit-animation: rotar 5s normal linear infinite;    animation: rotar 5s normal linear infinite;}
.lapiz{top: 20%;    left: 7%;  animation: scale 5s normal linear infinite; -webkit-animation: scale 5s normal linear infinite;}
.globo{bottom: 20%; right: 8%;  animation: scale 5s normal linear infinite; -webkit-animation: scale 5s normal linear infinite;}
.cubo{bottom: 21%;  left: 5%;     -webkit-animation: rotar 5s normal linear infinite;    animation: rotar 5s normal linear infinite;}
*/

@keyframes rotar {
    0% {
        -webkit-transform: rotate3d(0, 0, 1, 0deg);
        transform: rotate3d(0, 0, 1, 0deg);
    }
    25% {
        -webkit-transform: rotate3d(0, 0, 1, 90deg);
        transform: rotate3d(0, 0, 1, 90deg);
    }
    50% {
        -webkit-transform: rotate3d(0, 0, 1, 180deg);
        transform: rotate3d(0, 0, 1, 180deg);
    }
    75% {
        -webkit-transform: rotate3d(0, 0, 1, 270deg);
        transform: rotate3d(0, 0, 1, 270deg);
    }
    100% {
        -webkit-transform: rotate3d(0, 0, 1, 360deg);
        transform: rotate3d(0, 0, 1, 360deg);
    }
}


@keyframes scale {
    0% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
    50% {
        transform: scale(1.3);
        -webkit-transform: scale(1.3);
    }
    100% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}




/*------------------principales servicios-----------------------*/
.servicios_principales h2 span {
    color: #1F8754 !important;
}

.servicios_principales {
    position: relative;
    background-color: #1F875420;
}

.servicios_principales .adornos {
    position: absolute;
}

.servicios_principales h2 {
    color: #333;
    font-size: clamp(1.75rem, 1.503rem + 1.24vw, 3.125rem);
    font-weight: 500;
    text-align: center;
    line-height: 100%;
}

.servicios_principales .sobretitular {
    margin-top: 10px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(0.8125rem, 0.7083rem + 0.3333vw, 1.125rem);
    letter-spacing: 1px;
}

.servicios_principales .caja_areas {
    border-radius: 30px;
    text-align: center;
    z-index: 2;
    margin-bottom: 25px;
    transition: all 0.5s linear;
    color: #666;
    line-height: 128%;
    padding: 5px 35px;
}

.servicios_principales .caja_areas i, .servicios_principales .caja_areas .titular_areas {
    transition: all 0.5s linear;
}

.servicios_principales .caja_areas .titular_areas {
    font-size: clamp(1.063rem, 1.027rem + 0.18vw, 1.25rem);
}


.servicios_principales .caja_repite:hover i {
    color: #fff !important;
}

.servicios_principales .circle-bg i {
    font-size: 4em;
    margin-top: 0.5em;
}

.servicios_principales .dot-circle {
    display: inline-block;
    transition: 2s linear;
}

.servicios_principales .caja_repite:hover .dot-circle {
    transform: scale(1.2, 1.2);
}


/*.estrella{top: 25%;   right: 8%;   -webkit-animation: rotar 5s normal linear infinite;    animation: rotar 5s normal linear infinite;}
.lapiz{top: 20%;    left: 7%;  animation: scale 5s normal linear infinite; -webkit-animation: scale 5s normal linear infinite;}
.globo{bottom: 20%; right: 8%;  animation: scale 5s normal linear infinite; -webkit-animation: scale 5s normal linear infinite;}
.cubo{bottom: 21%;  left: 5%;     -webkit-animation: rotar 5s normal linear infinite;    animation: rotar 5s normal linear infinite;}
*/

@keyframes rotar {
    0% {
        -webkit-transform: rotate3d(0, 0, 1, 0deg);
        transform: rotate3d(0, 0, 1, 0deg);
    }
    25% {
        -webkit-transform: rotate3d(0, 0, 1, 90deg);
        transform: rotate3d(0, 0, 1, 90deg);
    }
    50% {
        -webkit-transform: rotate3d(0, 0, 1, 180deg);
        transform: rotate3d(0, 0, 1, 180deg);
    }
    75% {
        -webkit-transform: rotate3d(0, 0, 1, 270deg);
        transform: rotate3d(0, 0, 1, 270deg);
    }
    100% {
        -webkit-transform: rotate3d(0, 0, 1, 360deg);
        transform: rotate3d(0, 0, 1, 360deg);
    }
}


@keyframes scale {
    0% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
    50% {
        transform: scale(1.3);
        -webkit-transform: scale(1.3);
    }
    100% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}


/* Extra small devices (portrait phones, less than 576px)*/
@media (width <= 575.98px) {
    .servicios_principales .sobretitular {
        margin-bottom: 20px;
    }
}

/* Small devices (landscape phones, 576px and up)*/
@media (576px <= width <= 767.98px) {
}

/* Medium devices (tablets, 768px and up)*/
@media (768px <= width <= 991.98px) {
}

/*------------------noticias-----------------------*/

.noticias a h3:hover {
    color: #e51130
}

.contenedor_noticias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/*.noticias .card img {
      /* width: 358px;
    height: 228px;
    object-fit: contain;

    display: flex;
    align-self: center;


}*/

.noticias_portada h2 {
    font-size: 2.4em;
    margin-bottom: 20px;
}

.noticias h4 {
    color: #0e0b0b;
    letter-spacing: 2px;
}

.noticias .card figure {
    background-color: #F7F7F7;
    margin: 0px;
}

.noticias .card-title {
    margin-bottom: .75rem;
    font-size: 1.3em;
    font-weight: 300;
    text-transform: uppercase
}

.noticias .card-body .categoria {
    font-size: 1em;
    font-weight: 500;
}

.noticias .card-body {
    display: grid !important;
    grid-template-rows: 30px 1fr !important;
}

.noticias .card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    background-color: #fff;
    border-top: 1px solid #efefef;
}

.noticias .card-footer .fecha {
    text-transform: uppercase;
}

.noticias .card-footer .ver {
    font-size: 1.1em;
    font-weight: 600;
}


.noticias .card figure.effect-moses {
    background: linear-gradient(-45deg, #333 0%, #000 100%);
}

.noticias .card figure.effect-moses:hover img {
    opacity: 0.6;
}

.noticias .card figure.effect-moses img {
    opacity: 0.85;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
}


/* Circle */
.hover15 figure {
    position: relative;
}

.hover15 figure::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: block;
    content: '';
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, .2);
    border-radius: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.hover15 figure:hover::before {
    -webkit-animation: circle .75s;
    animation: circle .75s;
}


/*------------------servicios-----------------------*/
.servicios {
    text-align: center;
    padding-right: 10%;
    padding-left: 10%;
    background-image: url(../img/adorno_fondo.jpg);
    background-position: bottom;
    background-repeat: no-repeat;
}

.servicios h2 {
    letter-spacing: -.3px;
    line-height: 1.22;
    font-size: 2.4em;
    font-weight: 600;

}

.servicios .subtitulo {
    font-size: 0.9em;
    font-weight: 800;

    text-transform: uppercase;
    margin: 21px 0 0;
    letter-spacing: .15em;
}

.servicios .subtitulo:after {
    background-image: url('../img/ornamentacion.png');
    content: "";
    width: 245px;
    height: 37px;
}

.servicios h3 {
    text-align: center;
    margin: 0px;
    padding-top: 20px;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.4em;
    font-weight: 800;

}

.servicios .caja .datos .desc {
    padding: 5px 10%;
    font-size: 0.9em;
}


.servicios .fila_cajas {
    justify-content: center;
}

.servicios a .desc {
    color: #666;
    font-size: 0.9em;
}


.servicios .fila_cajas a:hover .datos {
    background-color: #efefef;
}

.servicios .fila_cajas a .datos {
    padding: 5px 10px 20px 10px;
}


.servicios a figure {
    padding: 20px;
    margin: 0px;
    overflow: hidden;

}

.servicios a figure img {

    -webkit-transition: .3s linear;
    transition: all .3s linear;
    border-radius: 50%;

}

.servicios a:hover figure img {
    filter: grayscale(100%);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 10px;

}

.servicios a:hover figure {
    overflow: hidden;
}




.titular_bloque {
    font-size: 2.8em;
    font-weight: 600;
    margin-bottom: 35px;
    text-transform: uppercase;
}


/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {

    .bloque_logos {
        -ms-flex-wrap: wrap !important;
        flex-wrap: wrap !important;
    }

    .bloque_logos .marca {
        width: 50%;
    }

    #cajas_enlaces_dato_contacto {
        margin-top: -5px;
    }


}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {


    .bloque_logos .marca {
        width: 50%;
    }

    .imagen_pres {
        margin: 0 15px 30px 15px;
    }

    #cajas_enlaces_dato_contacto {
        margin-top: -30px;
    }


}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {

    #presentacion .texto_presentacion {
        padding-left: 10px;
    }


}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {
    .bloque_logos {
        -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
    }

    #presentacion .texto_presentacion {
        padding-left: 10px;
    }

}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) and (max-width: 1399px) {


}

/* Extra large devices (large desktops, 1400px and up)*/
@media (min-width: 1400px) {


}
