/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Barras de navegación */
.navbar {
    position: fixed;
    width: 100%;
    color: white;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar.top-nav {
    top: 0;
}

.navbar.bottom-nav {
    bottom: 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: opacity 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    opacity: 0.8;
}

.register {
    font-weight: 600;
}

/* Carrusel */
.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    position: relative;
    min-width: 100%;
    position: relative;
    background-color: #1a1a1a; /* Fondo de respaldo */
}

/* Estilos para el elemento picture */
.carousel-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    z-index: 5;
}

.event-info {
    display:flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.event-tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 15px;
}

.event-date {
    font-size: 2rem;
    font-weight: 700;
}

.carousel-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.detail-label {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 200px;
}

.know-more-btn {
    background-color: rgba(70, 192, 117, 0.815);
    color: white;
    border: 2px solid white;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    z-index: 10;
    margin-top: 20px;
    position: relative; /* en PC no es absoluto */
}

.know-more-btn a {
    color: white;
    text-decoration: none;
}


.know-more-btn:hover {
    background-color: rgba(209, 50, 50, 0.938);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.transparent {
    background-color: transparent !important;
}

.not-transparent {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Mostrar solo contenido del item activo */
.carousel-item:not(.active) .carousel-content,
.carousel-item:not(.active) .know-more-btn {
    display: none;
}

/* Sección Nosotros */
.custom-image-section {
    position: relative !important; /* Forzar contenedor relativo */
    isolation: isolate; /* Crear nuevo contexto de apilamiento */
}

.custom-image-content {
    z-index: 9999 !important;
}

.custom-image-section img {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 1 !important;
    width: 100%;
    object-fit: cover;
}

.custom-image-content {
    position: relative !important; /* Cambiado a relative */
    z-index: 2 !important;
    transform: translateY(60%);
    top: 50%;
    color: white;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    border-radius: 10px;
    max-width: 80%;
    margin: 0 auto;
}

.custom-image-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.custom-image-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.custom-btn {
    background-color: rgba(70, 192, 117, 0.815);
    color: white;
    border: 2px solid white;
    padding: 12px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-btn:hover {
    background-color: rgba(209, 50, 50, 0.938);
}

/* Estilos BASE (compartidos) */
.custom-image-content {
    position: absolute;
    width: 90%;
    max-width: 300px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Versión HORIZONTAL (desktop) */
@media (min-width: 769px) {
    .custom-image-content {
        top: 50%;
        left: 29%; /* Alineación izquierda */
        transform: translateY(150); /* Centrado vertical */
        text-align: center; /* Texto alineado a la izquierda */
    }
}

/* Versión VERTICAL (móvil) */
@media (max-width: 768px) {
    .custom-image-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, 200%); /* Centrado completo */
        text-align: center; /* Texto centrado */
    }
}

/* Estilos para el menú móvil */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    z-index: 1100;
    cursor: pointer;
    display: none;
    background-color: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 70px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-container {
    padding: 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-section h3 {
    color: #46c075;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 8px 0;
}

.mobile-nav-links a:hover {
    color: #46c075;
}

.mobile-nav-links .register {
    color: #46c075;
    font-weight: 600;
}

/* Overlay para el fondo cuando el menú está abierto */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.menu-overlay.active {
    display: block;
}
.dropdown-user {
    position: relative;
    display: inline-block;
}

.user-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 999;
    min-width: 180px;
}

.user-dropdown a {
    display: block;
    padding: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
}

.user-dropdown a:hover {
    background-color: #f1f1f1;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.logout-btn:hover {
    background-color: #c0392b;
}
.admin-btn {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 5px;
}

.admin-btn:hover {
    background-color: #2980b9;
}


/* ========== ESTILOS BASE (TODOS LOS DISPOSITIVOS) ========== */
.carousel-item {
    position: relative;
}

.know-more-btn {
    background-color: rgba(70, 192, 117, 0.815);
    color: white;
    border: 2px solid white;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    z-index: 10;
    margin-top: 20px;
}

.know-more-btn a {
    color: white;
    text-decoration: none;
}

/* ========== ESCRITORIO Y TABLETS GRANDES ========== */
@media screen and (min-width: 769px) {
    .menu-toggle,
    .mobile-nav {
        display: none;
    }

    .navbar.top-nav,
    .navbar.bottom-nav {
        display: flex !important;
    }

    .carousel-content {
        position: absolute;
        top: 50%;
        left: 10%;
        transform: translateY(-50%);
        color: white;
        text-align: left;
        z-index: 5;
    }

    .know-more-btn {
        position: relative; /* en PC/tablet no es absolute */
    }

    .about-content {
        padding-right: 10%;
    }

    .mission-vision-right {
        width: 45%;
    }

    .carousel-item img {
        object-fit: cover;
        height: 100vh;
        width: 100%;
    }
}

/* ========== MÓVILES EN VERTICAL Y TABLETS PEQUEÑAS ========== */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar.top-nav,
    .navbar.bottom-nav {
        display: none !important;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .carousel-content {
        top: unset;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        padding-bottom: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

    .know-more-btn {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }

    .carousel-item img {
        object-fit: contain;
        height: 100vh;
        width: 100%;
        background-color: #000;
    }

    .about-content {
        justify-content: center;
        padding-right: 0;
    }

    .mission-vision-right {
        width: 90%;
        align-items: center;
    }

    .mission-item,
    .vision-item {
        text-align: center;
    }

    .mission-item h3,
    .vision-item h3 {
        font-size: 1.8rem;
    }

    .brand-tagline {
        text-align: center;
    }

    .brand-tagline h2 {
        font-size: 2.5rem;
    }

    .brand-tagline p {
        font-size: 1.2rem;
    }
}

/* ========== MÓVILES EN HORIZONTAL (LANDSCAPE) ========== */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .carousel-content {
        top: unset;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        padding-bottom: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

    .carousel-item img {
        object-fit: cover;
        height: 100vh;
        width: 100%;
    }

    .know-more-btn {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
    }
}
