﻿/* --------------------------------------------------
   1. RESETEO GLOBAL Y BOX-SIZING
----------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------
   2. VARIABLES GLOBALES
   - Ajusta según tu paleta corporativa o preferencias
----------------------------------------------------- */
:root {
    --color-primario: #3B5998; /* Azul profesional */
    --color-secundario: #9C27B0; /* Morado con personalidad */
    --color-acento: #FFCA28; /* Amarillo para destacar */
    --color-fondo: #F4F7FA; /* Fondo claro */
    --color-texto: #2C2C2C; /* Texto oscuro */
    --color-link-hover: #3F51B5; /* Hover para links */
    --sombra-card: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transicion: all 0.3s ease-in-out;
    --fuente-base: 'Open Sans', sans-serif;
    --fuente-titulos: 'Poppins', sans-serif;
}

/* --------------------------------------------------
   3. ESTILOS GLOBALES
----------------------------------------------------- */
html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-base);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-secundario);
    text-decoration: none;
    transition: var(--transicion);
}

    a:hover {
        color: var(--color-link-hover);
    }

/* --------------------------------------------------
   4. NAVBAR
----------------------------------------------------- */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primario);
    transition: var(--transicion);
    gap: 0.8rem; /* Espacio entre logo y texto */
}

    .navbar-brand:hover {
        color: var(--color-secundario);
    }

.navbar-nav {
    display: flex; /* Alinea los enlaces de navegación en una fila */
    align-items: center; /* Alinea verticalmente los enlaces */
}

    .navbar-nav .nav-link {
        color: #333;
        font-weight: 500;
        margin-left: 1rem;
        transition: var(--transicion);
    }

        .navbar-nav .nav-link:hover {
            color: var(--color-secundario);
        }

.navbar-toggler {
    border: none;
    background-color: transparent;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(0.5);
}

/* Botón de cerrar sesión, ejemplo */
.btn-outline-danger {
    font-weight: 500;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 6px;
    transition: var(--transicion);
    padding: 0.4rem 0.9rem;
    white-space: nowrap;
}

    .btn-outline-danger:hover {
        background-color: #dc3545;
        color: #fff;
    }

/* --------------------------------------------------
   5. HERO SECTION
----------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transicion);
}

    .hero-section::after {
        /* Efecto de destello suave */
        content: "";
        position: absolute;
        top: 0;
        left: -50%;
        width: 50%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
        transform: translateX(0) scale(1.5);
        animation: haloEffect 5s infinite;
        pointer-events: none;
    }

    .hero-section h1 {
        font-size: 3rem;
        font-family: var(--fuente-titulos);
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
        animation: fadeInDown 1s ease-in-out;
    }

    .hero-section p {
        font-size: 1.2rem;
        font-weight: 400;
        margin-bottom: 2rem;
        color: #eaeaea;
        animation: fadeInUp 1s ease-in-out;
    }

    .hero-section .btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 6px;
        margin: 0 0.5rem;
        transition: var(--transicion);
    }

    .hero-section .btn-success {
        background-color: var(--color-acento);
        border-color: var(--color-acento);
        color: #333;
    }

        .hero-section .btn-success:hover {
            background-color: #ffc107;
            border-color: #ffc107;
            transform: translateY(-3px);
        }

    .hero-section .btn-outline-primary {
        color: #fff;
        border: 2px solid #fff;
    }

        .hero-section .btn-outline-primary:hover {
            background-color: #fff;
            color: var(--color-primario);
            transform: translateY(-3px);
        }

    .hero-section:hover {
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    }

/* --------------------------------------------------
   6. CARDS
----------------------------------------------------- */
.card {
    border: none;
    box-shadow: var(--sombra-card);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

.card-title {
    font-family: var(--fuente-titulos);
    font-weight: 600;
    color: var(--color-primario);
}

.card-text {
    color: var(--color-texto);
    font-size: 1rem;
}

/* --------------------------------------------------
   7. BOTONES
----------------------------------------------------- */
.btn-primary {
    background-color: var(--color-secundario);
    border-color: var(--color-secundario);
    font-weight: 600;
    transition: var(--transicion);
}

    .btn-primary:hover {
        background-color: #7b1fa2;
        border-color: #7b1fa2;
        transform: translateY(-2px);
    }

/* --------------------------------------------------
   8. FOOTER
----------------------------------------------------- */
.footer {
    background-color: #fff;
    color: var(--color-primario);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

    .footer a {
        color: var(--color-secundario);
        transition: var(--transicion);
    }

        .footer a:hover {
            color: var(--color-link-hover);
        }

/* --------------------------------------------------
   9. RESPONSIVE DESIGN
----------------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        text-align: center;
        padding: 0.6rem 0;
    }

    .hero-section {
        padding: 2.5rem 1rem;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

        .hero-section p {
            font-size: 1rem;
        }

        .hero-section .btn {
            width: 100%;
            margin-bottom: 1rem;
        }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }
}

/* --------------------------------------------------
   10. UTILIDADES ADICIONALES
----------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------
   11. CHECKBOX PERSONALIZADO
----------------------------------------------------- */
.form-check {
    position: relative;
    margin-bottom: 0.5rem;
    padding: 0;
    display: flex;
    align-items: center;
}

.form-check-input {
    appearance: none;
    position: relative;
    z-index: 1;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    background-color: #fff;
    border: 1.5px solid #ccc;
    border-radius: 0.15rem;
    cursor: pointer;
    outline: none;
    transition: var(--transicion);
}

    .form-check-input:checked {
        background-color: var(--color-secundario);
        border-color: var(--color-secundario);
        box-shadow: 0 0 3px rgba(156, 39, 176, 0.5);
    }

.form-check-label {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    color: var(--color-texto);
    line-height: 1.5;
    margin-left: 0;
}

/* --------------------------------------------------
   12. ANIMACIONES PERSONALIZADAS
----------------------------------------------------- */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes haloEffect {
    0% {
        transform: translateX(-30%) scale(1.1);
        opacity: 0.6;
    }

    50% {
        transform: translateX(80%) scale(1.3);
        opacity: 0.9;
    }

    100% {
        transform: translateX(-30%) scale(1.1);
        opacity: 0.6;
    }
}

/* --------------------------------------------------
   13. ESTILOS ESPECIALES PARA EVENTOS
----------------------------------------------------- */
.border-warning {
    border: 3px solid var(--color-acento);
}

.badge-destacado {
    display: inline-block;
    background-color: var(--color-acento);
    color: #333;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: var(--sombra-card);
}

/* Botón búsqueda de eventos */
.btn-custom {
    background-color: var(--color-acento);
    color: #333;
    border: 2px solid var(--color-acento);
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 6px;
    transition: var(--transicion);
    margin-bottom: 10px;
}

    .btn-custom:hover {
        background-color: var(--color-primario);
        border-color: var(--color-primario);
        color: #fff;
    }

/* Eventos Especiales */
.card.evento-especial {
    background-color: #F1F8FF;
    border: 2px solid rgba(49, 119, 226, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(49, 119, 226, 0.2);
    position: relative;
    animation: float 3s ease-in-out infinite;
    transition: var(--transicion);
}

    .card.evento-especial:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 20px rgba(49, 119, 226, 0.3);
    }

/* Eventos Destacados */
.card.evento-destacado {
    border: 3px solid var(--color-acento);
    background: linear-gradient(135deg, #fff7e6, #fff3cc);
    box-shadow: 0 4px 8px rgba(255, 202, 40, 0.2);
    border-radius: 12px;
    transition: var(--transicion);
}

    .card.evento-destacado:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 10px 20px rgba(255, 202, 40, 0.3);
        animation: pulse 0.8s infinite;
    }

/* Animaciones de flotación y pulso */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}
