/* Estilos generales */
:root {
    --primary-color: #8e1f2f;
    --secondary-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 0;
    --font-family: 'Arial', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    position: relative;
}

:root {
    --bg-opacity: 0.6;
}

.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Clase para ocultar el fondo gris en páginas específicas */
.bg-wrapper.hidden {
    display: none;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fondoscroll.png');
    background-size: 50% auto;
    background-position: 50% 30%;  /* Centrado horizontalmente, un poco más arriba verticalmente */
    background-repeat: no-repeat;
    opacity: var(--bg-opacity);
    transform: scale(1);
    will-change: transform;
    transition: transform 0.05s linear;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #6a1722;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Menú principal con logo */
.main-nav {
    background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco con transparencia */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo {
    display: inline-block;
    text-align: center;
}

.logo-img {
    max-height: 140px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-img-footer {
    max-height: 50px;
    width: auto;
}

.somos-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.somos-title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin: 0;
}

.main-menu {
    justify-content: center !important;
}

.main-menu .nav-link {
    color: #8e1f2f; /* Color rojo */
    font-size: 1.2rem;
    padding: 10px 25px;
    text-transform: capitalize;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.main-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #8e1f2f; /* Color rojo */
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.main-menu .nav-link:hover::after,
.main-menu .nav-link.active::after {
    width: 70%;
    opacity: 1;
}

.main-menu .nav-link:hover,
.main-menu .nav-link.active {
    background-color: rgba(142, 31, 47, 0.1); /* Fondo rojo con transparencia */
    color: #8e1f2f; /* Color rojo */
}

/* Estilos para el botón del menú móvil */
.navbar-toggler {
    border: 2px solid #8e1f2f;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%238e1f2f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Carrusel de imágenes */
.carousel-section {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Sección con efecto parallax */
.parallax-section {
    height: 50vh;
    background-image: url('../img/parallax-section.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.parallax-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.parallax-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.parallax-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.carousel-item {
    height: 60vh;
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    max-height: 60vh;
}

.carousel-caption {
    bottom: 5%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    border-radius: 5px;
    max-width: 80%;
    margin: 0 auto;
    display: inline-block;
}

.carousel-caption h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    line-height: 1.2;
}

.carousel-caption p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 10px;
}

/* Filtros de eventos */
.event-filters {
    margin-bottom: 2rem;
}

.filter-menu {
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.filter-menu .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-bottom: 3px solid transparent;
}

.filter-menu .nav-link.active,
.filter-menu .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.btn-calendar {
    background-color: var(--dark-color);
    color: #fff !important;
    border-radius: 20px;
    padding: 0.5rem 2rem;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    margin: 1rem 0;
}

/* Tarjetas de eventos */
.events-grid {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.event-card {
    padding: 1.5rem;
    height: 100%;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.8s ease;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-card.large {
    min-height: 300px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-date, .event-time {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Sección de noticias */
.news-section {
    margin-bottom: 4rem;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.news-section.full-page {
    min-height: 100vh;
    padding: 4rem 0;
    margin-bottom: 0;
}

.news-section.full-page .news-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.news-section.full-page .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-section.full-page .video-thumbnail {
    height: 220px;
    overflow: hidden;
}

.news-section.full-page .news-content {
    padding: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.section-header h2 {
    margin-bottom: 0;
}

.btn-more {
    color: var(--primary-color);
    font-weight: 600;
}

.news-card {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.news-image img {
    transition: all 0.5s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Estilos para los thumbnails de video */
.video-thumbnail {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 1rem;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    background-color: rgba(0,0,0,0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(142, 31, 47, 0.7);
}

.video-thumbnail:hover img,
.video-thumbnail:hover video {
    transform: scale(1.05);
}

.news-content {
    padding: 1rem 0;
}

.news-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-source {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.news-source span {
    font-weight: 600;
}

/* Footer */
.site-footer {
    background-color: #1e2124;
    color: #ffffff;
    padding: 30px 0;
}

.footer-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-middle {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    padding: 20px 0;
}

.site-footer h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 15px;
}

/* Estilos para los enlaces del footer */
.footer-links {
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: #f8c301;
    text-decoration: none;
    padding-left: 5px;
}

@media (max-width: 768px) {
    .somos-title h1 {
        font-size: 2rem;
    }
    
    .logo-img {
        max-height: 60px;
    }
    
    .logo-img-footer {
        max-height: 50px;
    }
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.footer-bottom .social-icon:nth-child(1) {
    background-color: rgba(59, 89, 152, 0.8); /* Facebook */
}

.footer-bottom .social-icon:nth-child(2) {
    background-color: rgba(225, 48, 108, 0.8); /* Instagram */
}

.footer-bottom .social-icon:nth-child(3) {
    background-color: rgba(255, 0, 0, 0.8); /* YouTube */
}

.footer-bottom .social-icon:nth-child(4) {
    background-color: rgba(0, 0, 0, 0.8); /* TikTok */
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* Página Somos */
.page-banner {
    height: 60vh;
    background-image: url('../img/portadaprincipal.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Fallback para navegadores que no soportan background-attachment: fixed */
    background-color: #6c757d;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.about-section {
    padding: 3rem 0;
}

.section-intro {
    margin-bottom: 3rem;
}

.team-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.team-info {
    padding: 1.5rem;
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Página de contacto */
.contact-section {
    padding: 3rem 0;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0;
    padding: 0.5rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #6a1722;
    border-color: #6a1722;
}

.map-container {
    height: 400px;
    position: relative;
}

.placeholder-map {
    background-color: #ccc;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/placeholder-map.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.placeholder-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.map-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.map-overlay h3 {
    margin-bottom: 1rem;
}

.btn-outline-light {
    border-radius: 0;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 1rem;
}

/* Estilos para los iconos sociales en la sección "Síguenos" */
.social-contact .social-icons {
    justify-content: flex-start;
}

.social-contact .social-icon {
    margin-left: 0;
    margin-right: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-contact .social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.social-contact .social-icon:nth-child(1) {
    background-color: #3b5998; /* Facebook */
}

.social-contact .social-icon:nth-child(2) {
    background-color: #e1306c; /* Instagram */
}

.social-contact .social-icon:nth-child(3) {
    background-color: #ff0000; /* YouTube */
}

.social-contact .social-icon:nth-child(4) {
    background-color: #000000; /* TikTok */
}

/* Página de Apóyanos */
.support-section {
    padding: 3rem 0;
}

.support-card {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-support {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.social-support-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-support-link i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.social-support-link.facebook {
    background-color: #3b5998;
}

.social-support-link.instagram {
    background-color: #e1306c;
}

.social-support-link.youtube {
    background-color: #ff0000;
}

.social-support-link.tiktok {
    background-color: #000000;
}

.social-support-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.testimonial-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-content {
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Página de Galería */
.gallery-banner {
    background-image: url('../img/portadaprincipal.jpeg');
}

/* Página de Noticias */
.news-banner {
    background-image: url('../img/portadaprincipal.jpeg');
}

/* Visor de imágenes modal - Estilos básicos */
#imageModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

.image-viewer-container {
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imageModal img,
#imageModal video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

/* Estilos específicos para videos */
#imageModal video {
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Indicador de carga para videos */
#imageModal video:not([src]) {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.1rem;
}

.image-viewer-container {
    position: relative;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image,
.modal-video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#imageModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#imageModal .btn-close:hover {
    opacity: 1;
}

/* Estilos responsivos para el modal en móviles */
@media (max-width: 768px) {
    #imageModal .modal-dialog {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px auto;
    }
    
    .image-viewer-container {
        max-height: 60vh;
        padding: 10px;
    }
    
    #imageModal img,
    #imageModal video {
        max-width: 100%;
        max-height: 60vh;
        border-radius: 4px;
    }
    
    #imageModal .btn-close {
        position: absolute;
        top: 10px;
        right: 15px;
        z-index: 1060;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        padding: 8px;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #imageModal .btn-close::before {
        content: "×";
        font-size: 20px;
        color: white;
        font-weight: bold;
    }
    
    #imageModal .btn {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 20px;
        background-color: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        min-width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #imageModal .btn:hover {
        background-color: rgba(0, 0, 0, 0.9);
        color: white;
    }
    
    #imageCounter {
        font-size: 14px;
        color: white;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 5px 10px;
        border-radius: 15px;
        margin: 0 10px;
    }
    
    #imageModal .modal-header,
    #imageModal .modal-footer {
        padding: 10px 15px;
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    #imageModal .modal-content {
        border-radius: 8px;
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    #imageModal .modal-body {
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50vh;
    }
}

/* Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
    #imageModal .modal-dialog {
        max-width: 98vw;
        max-height: 98vh;
        margin: 5px auto;
    }
    
    .image-viewer-container {
        max-height: 50vh;
        padding: 5px;
    }
    
    #imageModal img,
    #imageModal video {
        max-height: 50vh;
    }
    
    #imageModal .btn-close {
        top: 5px;
        right: 10px;
        width: 30px;
        height: 30px;
        padding: 5px;
    }
    
    #imageModal .btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
        height: 35px;
    }
    
    #imageCounter {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    /* Mejorar la experiencia táctil */
    #imageModal .btn,
    #imageModal .btn-close {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Asegurar que los botones sean lo suficientemente grandes para tocar */
    #imageModal .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    #imageModal .btn-close {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Estilos específicos para pantallas muy pequeñas */
@media (max-width: 480px) {
    .page-banner {
        height: 30vh;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        /* Asegurar que la imagen se cargue en móviles */
        background-image: url('../img/portadaprincipal.jpeg');
        background-color: #6c757d;
    }
}

/* Regla específica para dispositivos móviles con problemas de carga */
@media (max-width: 768px) and (orientation: portrait) {
    .page-banner {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        /* Forzar la carga de la imagen */
        background-image: url('../img/portadaprincipal.jpeg') !important;
    }
}

/* Regla adicional para asegurar que la imagen se cargue en todos los dispositivos móviles */
@media (max-width: 768px) {
    .page-banner {
        background-image: url('../img/portadaprincipal.jpeg') !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}



/* Mejorar la interactividad de las imágenes de la galería */
.gallery-img-container {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img-container:active {
    transform: scale(1.02);
}

.gallery-section {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.gallery-filter {
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 80%;
}

.filter-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-container {
    margin-top: 2rem;
}

.gallery-item {
    margin-bottom: 2rem;
    transition: all 0.5s ease;
}

.gallery-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-info {
    text-align: center;
    color: #fff;
    padding: 1rem;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.gallery-img-container:hover img {
    transform: scale(1.1);
}

.gallery-img-container:hover .gallery-overlay {
    opacity: 1;
}

.gallery-img-container:hover .gallery-info {
    transform: translateY(0);
}

/* Estilos para videos en la galería */
.video-container {
    position: relative;
}

.gallery-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.video-container:hover .gallery-video-thumbnail {
    transform: scale(1.1);
}

.gallery-info .play-icon {
    font-size: 2rem;
    color: #fff;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.gallery-info .play-icon i {
    background-color: rgba(142, 31, 47, 0.8);
    border-radius: 50%;
    padding: 0.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Estilos para el filtro de galería */
.gallery-filter {
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: #ddd;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-banner, .page-banner {
        height: 40vh;
    }
    
    .page-banner {
        background-attachment: scroll;
        background-size: cover;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .main-menu .nav-link {
        padding: 10px 15px;
        font-size: 1rem;
        color: #8e1f2f; /* Color rojo */
    }
    
    .gallery-img-container {
        height: 200px;
    }
    
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-item img {
        max-height: 50vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 30vh;
    }
    
    .page-banner {
        height: 35vh;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .event-card.large {
        min-height: auto;
    }
    
    .footer-logo {
        flex-direction: column;
    }
    
    .footer-address {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .main-nav .row {
        flex-direction: column;
    }
    
    .main-nav .col-md-3 {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .main-menu {
        justify-content: center;
    }
    
    .main-menu .nav-link {
        padding: 10px 15px;
        font-size: 1rem;
        color: #8e1f2f; /* Color rojo */
    }
    
    .carousel-item {
        height: 45vh;
    }
    
    .carousel-item img {
        max-height: 45vh;
    }
    
    .carousel-caption {
        bottom: 3%;
        padding: 8px 15px;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
} 

/* Estilos para el menú móvil */
@media (max-width: 767px) {
    .mobile-nav-header {
        width: 100%;
        padding: 10px 15px;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-toggler {
        display: block !important;
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
        line-height: 1;
        background-color: rgba(142, 31, 47, 0.1);
        border: 2px solid #8e1f2f;
        border-radius: 0.25rem;
        color: #8e1f2f;
        margin-left: 10px;
        position: relative;
        z-index: 1050;
    }

    .navbar-toggler-icon {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%238e1f2f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
    }

    .main-nav {
        padding: 0;
    }

    .main-nav .container-fluid {
        padding: 0;
    }

    .mobile-nav-header .logo-img {
        max-height: 80px;
    }

    #mainNavCollapse {
        width: 100%;
        display: none;
    }

    #mainNavCollapse.show {
        display: block;
    }

    #mainNavCollapse .main-menu {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        background-color: rgba(255, 255, 255, 0.95);
    }

    #mainNavCollapse .nav-item {
        width: 100%;
        text-align: center;
    }

    #mainNavCollapse .nav-link {
        padding: 12px 15px;
        margin: 5px 0;
        width: 100%;
        border-bottom: 1px solid rgba(142, 31, 47, 0.1);
    }

    #mainNavCollapse .nav-link::after {
        display: none;
    }
} 

/* Mejoras adicionales para dispositivos móviles */
@media (max-width: 767px) {
    .video-thumbnail img,
    .video-thumbnail video {
        width: 100%;
        height: auto;
        min-height: 180px;
        object-fit: cover;
        display: block;
    }
    
    .news-card {
        margin-bottom: 1.5rem;
    }
    
    .news-content {
        padding: 0.75rem 0;
    }
    
    .news-card h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .btn-outline-primary {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Estilos específicos para el menú móvil */
    .logo-img {
        max-height: 80px;
    }
    
    .main-menu {
        margin-top: 1rem;
        text-align: center;
    }
    
    .main-menu .nav-link {
        margin: 5px 0;
        padding: 10px;
        border-bottom: 1px solid rgba(142, 31, 47, 0.1);
    }
    
    .main-menu .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .main-menu .nav-link::after {
        display: none;
    }
} 

/* Ajustes adicionales para la barra de navegación en móviles */
@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1050;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 5px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        display: flex !important;
    }
    
    .navbar-brand {
        margin-left: 10px;
    }
    
    .navbar-toggler {
        margin-right: 10px;
        display: block !important;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border: 2px solid #8e1f2f;
        border-radius: 4px;
        padding: 8px 12px;
        position: absolute;
        right: 15px;
        top: 20px;
    }
    
    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Ajustar el espacio para el contenido debajo de la barra de navegación fija */
    body {
        padding-top: 90px;
    }
    
    /* Ajustar la posición del fondo con efecto parallax */
    .bg-wrapper {
        top: 90px;
    }
    
    /* Ajustar el carrusel para que no quede debajo de la barra de navegación */
    .carousel-section {
        margin-top: 10px;
    }
}

/* Estilos para la tienda */
.store-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.product-info p {
    color: var(--gray-color);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.product-info .btn {
    margin-top: auto;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-info .btn:hover {
    background-color: #6a1722;
    border-color: #6a1722;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 31, 47, 0.3);
}

/* Responsive para la tienda */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 30px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h4 {
        font-size: 1.1rem;
    }
} 