body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2D2A4A 20%, #002D62 40%, #FFFFFF 60%, #A51931 80%, #CE1126 100%);
    background-size: 200% 200%;
    animation: gradientBG 12s ease infinite;
    min-height: 100vh;
    color: #000;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Estilos del Splash (compatibles con Splash.php y splash.css) */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #002D62;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-out;
}

.splash-screen.hide {
    animation: fadeOut 0.5s ease-out forwards;
}

.splash-logo { height: 100px; }

.splash-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top: 4px solid #CE1126;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    margin: 20px 0;
}

.splash-text {
    color: #fff;
    font-size: 1rem;
}

.navbar {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 5px 10px;
    height: 50px;
}

.navbar-brand {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.navbar-brand img { height: 30px; }

.content {
    padding: 60px 10px 70px; /* Ajustado para bottom-nav */
    width: 100%;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content h2 {
    color: #fff;
}

.calendar {
    width: 100%;
    max-width: 400px;
}

.month {
    margin-bottom: 20px;
}

.month h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.event-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    padding: 15px;
}

.event-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.event-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.countdown {
    font-size: 1rem;
    font-weight: bold;
    color: #CE1126;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.countdown i { animation: rotate 2s linear infinite; }

.event-status.finished {
    font-size: 1rem;
    font-weight: bold;
    color: #28a745; /* Verde */
    margin-top: 10px;
    text-align: center;
}

.no-events {
    color: #000;
    font-size: 0.9rem;
    text-align: center;
}

/* Estilos para bottom-nav.php */
.bottom-nav {
    background: #1e3c72;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 5px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    height: 60px;
}

.bottom-nav-item {
    color: #fff;
    font-size: 0.9rem;
    padding: 5px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    text-align: center;
    transition: color 0.3s;
}

.bottom-nav-item.active {
    color: #CE1126;
}

.bottom-nav-item i {
    font-size: 1.8rem;
    margin-bottom: 3px;
}

.bottom-nav-item span {
    font-size: 0.7rem;
}