/* Estilos personalizados */
.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.info-section {
    padding: 30px 0;
}

.info-section h3 {
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.info-section h3::before {
    content: "\f05a";
    /* Icono de info-circle de Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: #007bff;
}

.info-card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.info-card .card-body {
    padding: 20px;
}

#map {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.map-button {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.map-button a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.map-button a i {
    margin-right: 10px;
}

.map-button a:hover {
    background-color: #218838;
}

.carousel-inner img {
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .main-image {
        height: 300px;
    }

    .carousel-inner img {
        height: 300px;
    }
}

/* Estilos para el banner de empresas */
.empresa-banner {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.empresa-banner h3 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.empresa-banner h3::before {
    content: "\f0f6";
    /* Icono de building de Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: #007bff;
}

.empresa-banner .banner-message {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #343a40;
}

.empresa-slider .empresa-item {
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

.empresa-slider .empresa-item:hover {
    transform: scale(1.05);
}

.empresa-slider .empresa-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.empresa-slider .empresa-item h5 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.empresa-slider .empresa-item a.btn {
    padding: 5px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.empresa-slider .empresa-item a.btn:hover {
    background-color: #0056b3;
}

/* Estilos para los botones de Slick Carousel */
.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    z-index: 1000;
}

.slick-prev:before,
.slick-next:before {
    font-size: 20px;
    color: #007bff;
    opacity: 0.75;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    color: #0056b3;
    opacity: 1;
}

/* Hacer los botones de Slick Carousel menos gruesos */
.slick-prev,
.slick-next {
    top: 50%;
    transform: translateY(-50%);
}

.slick-prev {
    left: -50px;
}

.slick-next {
    right: -50px;
}

@media (max-width: 768px) {
    .slick-prev {
        left: -30px;
    }

    .slick-next {
        right: -30px;
    }
}

/* Ajustes adicionales para la velocidad y movimiento del slider */
.empresa-slider .slick-slide {
    transition: transform 0.5s ease-in-out;
}

/* Redes Sociales Mejoradas */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 50px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-button i {
    margin-right: 10px;
    font-size: 20px;
}

.social-button.facebook {
    background-color: #3b5998;
    color: #fff;
}

.social-button.facebook:hover {
    background-color: #2d4373;
    transform: translateY(-3px);
}

.social-button.instagram {
    background-color: #E1306C;
    color: #fff;
}

.social-button.instagram:hover {
    background-color: #C13584;
    transform: translateY(-3px);
}

.social-button.twitter {
    background-color: #1DA1F2;
    color: #fff;
}

.social-button.twitter:hover {
    background-color: #0d95e8;
    transform: translateY(-3px);
}

.social-button.tiktok {
    background-color: #000000;
    color: #fff;
}

.social-button.tiktok:hover {
    background-color: #333333;
    transform: translateY(-3px);
}

.social-button.website {
    background-color: #6c757d;
    color: #fff;
}

.social-button.website:hover {
    background-color: #5a6268;
    transform: translateY(-3px);
}

/* Información de Contacto Mejorada */
.info-contacto p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}

.info-contacto p i {
    margin-right: 10px;
    color: #007bff;
    font-size: 20px;
    min-width: 24px;
}

/* Botón Contactar Empresa */
.contactar-empresa-btn {
    position: fixed;
    bottom: 80px;
    /* Ajustado para estar por encima del botón "Back to Top" */
    right: 20px;
    background-color: #25D366;
    /* WhatsApp green */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contactar-empresa-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

.contactar-empresa-btn i {
    margin-right: 8px;
    font-size: 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

/* Mostrar el botón "Back to Top" cuando el usuario hace scroll */
.back-to-top.show {
    display: block;
    opacity: 1;
}

/* Opcional: estilos adicionales para "Back to Top" */
.back-to-top:hover {
    background-color: #0056b3;
}

/* --- INICIO: NUEVOS ESTILOS PARA GALERÍA DE ACTIVIDADES Y MODAL (ACTUALIZADO) --- */
.activities-section .description {
    display: block;
    font-size: 20px; 
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.activities-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.activity-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
}

.activity-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-gallery-item:hover img {
    transform: scale(1.1);
}

.activity-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    box-sizing: border-box;
}

.activity-gallery-item .overlay-content {
    color: #fff;
}

.overlay-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.overlay-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-gallery-item:hover .overlay-content p {
    opacity: 1;
}

/* Estilos para el Modal de Actividad */
.modal-activity {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-activity-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: fadeInScale 0.4s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-activity-close {
    color: #fff;
    background-color: #333;
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 20px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.modal-activity-close:hover {
    background-color: #ff4d4d;
    transform: rotate(90deg);
}

.modal-activity-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-activity-body {
    padding: 25px 30px;
    overflow-y: auto;
}

.modal-activity-body h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #2c3e50;
}

.modal-activity-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* --- FIN: NUEVOS ESTILOS PARA GALERÍA DE ACTIVIDADES Y MODAL --- */