#cuerpo {
    background-color: white;
    margin-top:5px;
    margin-bottom:5px;
}

/* ==== CONTROLES DE LOS CARRUSELES ==== */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.1s ease;
    z-index: 2; /* Para estar sobre las imágenes */
    position: absolute;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover, 
    .carousel-control-prev:focus,
    .carousel-control-next:focus {
        opacity: 1;
        background-color: rgba(85, 156, 82, 0.5); /* 0.5 = 50% opacidad */
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Icono oscuro sobre fondo blanco */
    width: 20px;
    height: 20px;
}


/* ==== CARRUSEL PRINCIPAL ==== */
.texto-overlay {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(85, 156, 82, 0.70);
    padding: 10px;
    border-radius: 5px;
    max-width: 90%;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    z-index: 2; /* Encima de la imagen, pero debajo del menú */
}


/* Carrusel con borde y margen */
.carrusel-con-borde {
    z-index: 1; /* Debajo del menú */
    position: relative;
    border: 3px solid var(--naranja-1);
}
.enfocar-arriba {
    object-position: center top !important;
}
/* Carrusel sin borde ni margen */
.carrusel-sin-borde {
    border: none;
    margin: 0;
    padding: 0;
}


#heroCarousel {
    position: relative;
    z-index: 0 !important; /* << CORRECCIÓN CLAVE */
}

.carrusel-img {
    width: 100%; /* ocupa todo el ancho del carrusel */
    height: 470px; /* alto fijo en desktop */
    object-fit: cover; /* recorta proporcionalmente */
}

@media (max-width: 758px) {
    .carrusel-img {
        width: 100%; /* ocupa todo el ancho del carrusel */
        height: 195px !important; /* más bajo en móviles */
        object-fit: cover; /* recorta proporcionalmente */
    }
}

@media (max-width: 850px) {
    .carrusel-img {
        width: 100%; /* ocupa todo el ancho del carrusel */
        height:300px !important; /* menos alto en móviles */
        object-fit: cover; /* recorta proporcionalmente */
    }
}

@media (max-width: 1250px) {
    .carrusel-img {
        width: 100%; /* ocupa todo el ancho del carrusel */
        height: 350px !important; /* menos alto en móviles */
        object-fit: cover; /* recorta proporcionalmente */
    }
}

    /*ENLACES*/
.bloques-iconos {
    width: 200px; /* ancho fijo más pequeño */
    aspect-ratio: 1 / 1; /* mantiene forma cuadrada */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto; /* centra el cuadro dentro de la columna */
    border: 1px solid #CACCCA; /* grosor 2px, línea sólida, color rojo */
    border-radius: 8px; /* opcional: esquinas redondeadas */
}

.img-100 {
    max-width: 80%; /* Que no ocupe todo el cuadro */
    max-height: 80%; /* Mantiene proporción */
    object-fit: contain; /* Ajusta sin deformar */
}

.btn.img {
    display: block;
    background-color: #fff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    text-align: center;
}


/* NOTICIAS*/
#home-noticias{
    height:510px;
}
#noticias {
    margin-top: 20px;
}
.noticia {
    display: block; /* Que ocupe todo el ancho posible */
    color: inherit; /* Color texto por defecto */
    text-decoration: none; /* Sin subrayado */
    background-color: transparent;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    transition: all 0.3s ease;
    height: 52px; /* Fija la altura deseada */
    width: 100%;
    overflow: hidden; /* Oculta el contenido que excede */
    text-overflow: ellipsis; /* Agrega "..." al final si se corta */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Número máximo de líneas */
    -webkit-box-orient: vertical;
}

    .noticia:hover {
        background-color: rgba(85, 156, 82, 0.2) !important; /* Fondo verde */
        color: var(--azul-1) !important; /* Texto verde claro (ajusta como quieras) */
        border-left-color: var(--azul-1) !important; /* Franja verde oscura izquierda */
        border-right-color: var(--azul-1) !important; /* Franja verde oscura derecha */
    }

        .noticia:hover h5 {
            color: var(--azul-1) !important;
        }


/*REDES*/
#tab1 {
    background-color: #fff;
    border-style: solid;
    border-width: 4px;
    border-color: var(--naranja-1);
    cursor: pointer;
}

#twitter, #facebook, #instagram, #youtube {
    position: inherit;
    z-index: 1;
    padding: 3px;
    cursor: pointer;
    height:401px !important;
}

#navigation {
    margin-top: 9px;
    cursor: pointer;
}

#Afacebook, #Atwitter, #Ainsta, #Ayoutube {
    border-radius: 9px 9px 0 0;
    -moz-border-radius: 9px 9px 0 0;
    -webkit-border-radius: 9px 9px 0 0;
    font-size: 15px;
}

.seleccion {
    height: 27px;
    background-color: var(--naranja-1);
    color: #fff;
    list-style: none;
    cursor: pointer;
}

.center {
    text-align: center;
}

.oculta {
    overflow: hidden;
    display: none;
}

.seleccionada {
    display: block;
    overflow: hidden;
}


/* AVISOS*/
#home-avisos {
    height: 510px;
}

#heroCarousel2 {
    position: relative;
    z-index: 0 !important; /* << CORRECCIÓN CLAVE */
}

.imagen-item2,
.carousel-item2 {
    z-index: 1 !important;
    position: relative;
    border:none !important;
}

.carousel-item2 {
    height: auto !important; /* Altura fija del carrusel */
}

    .carousel-item2 img {
        height: 100%;
        object-fit: cover; /* Recorta para que no se deforme */
    }

#hero2 {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    height: auto; /* Ocupa toda la pantalla */
}

#ProAdmi {
    width: 298px;
}

#Servicio {
    width: 295px;
}

.imgavi {
    width: auto;
    margin-top: 3rem;
}

.texto-sobre {
    position: absolute;
    top: 20px; /* distancia desde arriba */
    left: 20px; /* distancia desde la izquierda */
    color: white; /* color del texto */
    font-size: 7px;
    background: rgba(210, 75, 26); /* fondo semitransparente opcional */
    padding: 5px 10px;
    border-radius: 8px;
    margin-top: 15rem;
    margin-left: 90px;
    white-space: pre-line;
    font-weight: bold;
}

#home-eve {
    height: 510px;
}
/*Responsivo*/
@media (prefers-reduced-motion) {
    ul .cloud * {
        transition: none !important;
    }
}

@media only screen and (max-width: 500px) {
    .btn-lg {
        font-size: 10px;
    }

    .texto-overlay {
        font-size: 8px; /* Tamaño de fuente aún más pequeño para móviles pequeños */
        padding: 5px; /* Padding más reducido */
    }
}

@media screen and (max-width: 768px) {
    h3 {
        font-size: 20px !important;
    }

    .texto-overlay {
        font-size: 9px; /* Tamaño de fuente más pequeño para tablets y móviles */
        padding: 5px; /* Padding reducido */
    }
}

@media screen and (max-width: 991px) {
    .texto-overlay {
        font-size: 10px; /* Tamaño de fuente más pequeño para tablets y móviles */
        padding: 5px; /* Padding reducido */
    }
}


@media (min-width: 200px) and (max-width: 1500px) {
    .carousel-item {
        height: auto !important; /* Altura fija del carrusel */
    }
}

#banner{
    width:318px;
}

.d-block {
    text-decoration: var(--naranja-1) !important; /* quita subrayado */
}


.card-oferta {
    display: inline-block;
}

.OA {
    display: block;
    width: 200px;
    height: auto;
}
.OA {
    transition: all 0.3s ease; /* suaviza el efecto */
}

    .OA:hover {
        filter: brightness(1.1); /* 1 = normal, 1.3 = más brillo */
    }


.titulo-card {
    background-color: var(--naranja-1);
    color: white;
    font-weight: bold;
    text-align: center; /* centra horizontalmente */
    display: flex; /* activa flexbox */
    justify-content: center; /* centra horizontalmente */
    align-items: center; /* centra verticalmente */
    padding: 0; /* opcional, el padding puede interferir */
    width: 100%;
    height: 50px;
}





@media (min-width: 1000px) and (max-width: 1050px) {
    .OA {
        width: 203px;
    }
}




#home-galeria {
    height: 525px;
}



.tamaño{
    width:31rem;
}

@media (min-width: 350px) and (max-width: 412px) {
    .box {
        height: 9%;
    }
}

@media (min-width: 413px) and (max-width: 450px) {
    .box {
        height: 8%;
    }
}

@media (min-width: 451px) and (max-width: 490px) {
    .box {
        height: 7%;
    }
}

@media (min-width: 491px) and (max-width: 575px) {
    .box {
        height: 6%;
    }
}

@media (min-width: 575px) and (max-width: 769px) {
    .box {
        height: 50px;
    }
}

@media (min-width:770px) and (max-width: 985px) {
    .box {
        height: 30%;
    }
}
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 250px 120px;
    gap: 10px;
}
.home-gallery-item {
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
    width: 100%;
    height: 100%;
}
.home-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
.hgi-large-1 { grid-column: 1 / 4; grid-row: 1 / 2; }
.hgi-large-2 { grid-column: 4 / 7; grid-row: 1 / 2; }
.hgi-small-1 { grid-column: 1 / 2; grid-row: 2 / 3; }
.hgi-small-2 { grid-column: 2 / 3; grid-row: 2 / 3; }
.hgi-small-3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.hgi-small-4 { grid-column: 4 / 5; grid-row: 2 / 3; }
.hgi-small-5 { grid-column: 5 / 6; grid-row: 2 / 3; }
.hgi-small-6 { grid-column: 6 / 7; grid-row: 2 / 3; }

@media (max-width: 768px) {
    .home-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .hgi-large-1, .hgi-large-2 {
        grid-column: 1 / -1;
        height: 200px;
    }
    .hgi-small-1, .hgi-small-2, .hgi-small-3, .hgi-small-4, .hgi-small-5, .hgi-small-6 {
        grid-column: auto;
        height: 120px;
    }
}

