﻿#cuerpo {
    background-color: white;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#heroCarousel,
.imagen-item,
.carousel-item {
    z-index: 1 !important;
    position: relative;
}
/* ==== CONTROLES DEL CARRUSEL ==== */
.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 {
        opacity: 1;
        background-color: rgba(32, 110, 74, 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;
}

#CI {
    border: 3px solid #bb4b26 !important;
    height: auto;
}

/* ==== CARRUSEL E IMAGENES ==== */
#heroCarousel,
.carousel-item {
    z-index: 1; /* Debajo del menú */
    position: relative;
}

.carousel-item {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    height: 100%;
}

/* ==== CONTENEDOR DE LA IMAGEN ==== */
.imagen-item {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 10px;
    z-index: 1; /* Debajo del menú */
}

    .imagen-item img {
        height: 100%;
        display: block;
    }

/* ==== TEXTO SOBRE LA IMAGEN ==== */
.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(24, 125, 81, 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ú */
}

/* ==== CLASES DE VISIBILIDAD ==== */
.oculta {
    overflow: hidden;
    display: none;
}

.seleccionada {
    display: block;
    overflow: hidden;
}

/* ==== TEXTO CENTRADO ==== */
.center {
    text-align: center;
}



#tab1 {
    z-index: 2;
    height: 440px;
    background-color: #fff;
    border-style: solid;
    border-width: 4px;
    border-color: #bb4b26;
}

#twitter, #facebook, #instagram, #youtube {
    position: inherit;
    z-index: 1;
    padding: 3px;
    height: 420px;
}

#navigation {
    margin-top: 9px;
}

#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: #bb4b26;
    color: #fff;
    list-style: none;
    cursor:pointer;
}


@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 */
    }
}


/* Imagen del carrusel centrada */
.imagen-item img {
    display: block;
    margin: 0 auto;
    object-fit: cover;
    width: 100%;
    max-height: 450px;
}



/* Evitar que el carrusel tenga z-index alto innecesario */
#heroCarousel {
    position: relative;
    z-index: 0 !important; /* << CORRECCIÓN CLAVE */
}

.imagen-item {
    position: relative;
}

.centered-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #559C52;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}


    .centered-button:hover,
    .centered-button:focus {
        background-color: #4D8C4A;
        transform: translate(-50%, -50%) scale(1.05);
        color: #fff;
        text-decoration: none;
        outline: none;
    }

    .centered-button:visited {
        color: white;
    }

.datos{
    width:200px;
    margin-left:-10px;
}

#calen {
    width: 70px;
    margin-left: -10px;
}

#enlaces {
    margin-top: 50px;
}