/* ===== AJUSTE PARA STICKY FOOTER ===== */
html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    margin-top: 10px; /* Igual a la altura del header */
    padding: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== HEADER ===== */
.header {
    background-color: #B21807;
    width: 100%;
    position: relative; /* Mantenemos fixed */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: auto; /* Altura fija para el header */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    position: relative;
    box-sizing: border-box;
}
/* Logo */
.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Menú Hamburguesa */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Menú Principal */
.main-nav {
    display: flex;
    transition: all 0.4s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 5px;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    background-color: #7D1C11;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #B21807;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0 0 4px 4px;
}
/* Elimina puntos de todos los menús desplegables */
.dropdown-menu, .submenu-items {
    list-style: none !important;
    padding-left: 0 !important;
}


.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu a {
    padding: 8px 16px;
}

/* Submenu */
.submenu-items {
    display: none;
    padding-left: 15px;
}

.submenu:hover .submenu-items {
    display: block;
}

/* ===== REDES SOCIALES ORIGINALES ===== */
.redes-sociales {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.redes-sociales a {
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.redes-sociales a:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
}
  /* Redes móvil (ocultas en desktop) */
        .mobile-social {
            display: none;
            justify-content: center;
            gap: 25px;
            margin: 20px 0;
            padding: 15px 0;
            border-top: 1px solid rgba(255,255,255,0.2);
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        
        .mobile-social a {
            color: white;
            font-size: 1.4rem;
            transition: all 0.3s;
        }
        
        .mobile-social a:hover {
            transform: translateY(-3px);
            opacity: 0.8;
        }
        
        /* Botón admin móvil */
        .mobile-admin {
            display: none;
            text-align: center;
            margin-top: 15px;
        }
        
        /* Mostrar solo en móvil */
        @media (max-width: 992px) {
            .mobile-social,
            .mobile-admin {
                display: flex;
                justify-content: center;
            }
            
            .desktop-redes {
                display: none;
            }
        }
/* Estilos específicos para desktop */
.desktop-redes {
    display: flex; /* Siempre visible en desktop */
}

/* Ocultar en móvil */
@media (max-width: 992px) {
    .desktop-redes {
        display: none;
    }
    
    /* Opcional: Mostrar redes en menú móvil */
    .mobile-redes {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        gap: 15px;
    }
}
/* ===== MENÚ MÓVIL ===== */
@media (max-width: 992px) {
    .hamburger-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #B21807;
        flex-direction: column;
        padding: 80px 30px 30px;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        margin-top: 10px;
    }
    
    .dropdown-menu.active {
        display: block;
    }
    
    .submenu-items {
        padding-left: 20px;
    }
    
    /* Animación del botón hamburguesa a X */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Bloquear scroll cuando el menú está abierto */
    .menu-open {
        overflow: hidden;
    }
    
    /* Ocultar redes sociales en móvil */
    .social-icons {
        display: none;
    }
}
/* ===== BOTÓN ADMIN ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login, .btn-logout .mobile-admin-btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.mobile-admin-item {
            display: none;
            width: 100%;
            text-align: center;
            margin: 15px 0;
        }
        
.mobile-admin-btn{
    background-color: #B21807;
    color: white;
    border: 2px solid white;
    padding: 8px 15px;
    justify-content: center;
}
.mobile-admin-btn:hover{
    background: transparent;
    color: white;
}

.btn-login {
    background: white;
    color: #B21807;
    border: 2px solid white;
}

.btn-login:hover {
    background: transparent;
    color: white;
}

.btn-logout {
    background: white;
     padding: 8px 15px;
    color: #B21807;
    border-radius: 4px;
    border: 2px solid white;
    text-decoration: none;
    
}

.btn-logout:hover {
     padding: 8px 15px;
    background: transparent;
    border-radius: 4px;
    color: white;
}

/* Ajustes para móvil */
@media (max-width: 992px) {
    .header-right {
        display: none; /* Ocultamos en móvil */
    }
    
    /* Opcional: Mostrar botón admin dentro del menú móvil */
    .mobile-admin-btn {
        display: block;
        margin-top: 20px;
        text-align: center;
    }
}
/* ===== CONTENIDO PRINCIPAL ===== */
.post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s;
}

.post:hover {
    transform: translateY(-5px);
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/* ===== FOOTER  ===== */
.site-footer {
    background-color: #B21807;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    color: #ecf0f1;
    padding: 40px 0 0;
    margin-top: auto; /* Para el sticky footer */
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3, 
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #f39c12;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #bdc3c7;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f39c12;
}

.footer-bottom {
    background-color: #7D1C11;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-section {
        flex: 100%;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}
  /* Estilos para el carrusel con altura fija */
#infoCarousel {
    height: 500px; /* Altura fija que prefieras */
    margin-bottom: 2rem;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow-y: auto; /* Permite scroll si el contenido es muy largo */
}

/* Asegurar que el contenido se centre verticalmente */
.carousel-item > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    #infoCarousel {
        height: 600px; /* Más alto en móviles para mejor lectura */
    }
    
    .carousel-item {
        padding: 1rem;
    }
}
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -20px; /* Fuera del contenedor */
}

.carousel-control-next {
    right: -20px; /* Fuera del contenedor */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0,0,0,0.8);
    opacity: 1;
}