/* Base font size */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* Focus styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Navbar branding */
.navbar-brand {
    font-weight: bold;
    font-size: 1.4rem;
    color: #258cfb !important;
}

/* Navbar links */
.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0056b3 !important;
}

.nav-item.active .nav-link {
    color: #258cfb !important;
}

/* Main content container */
main,
.main-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    flex: 1;
}

/* Footer styles */
footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Calendar container (for agenda page) */
#calendar {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

/* Card header gradient */
.card-header {
    background: linear-gradient(90deg, #258cfb, #0056b3);
}

/* Primary button */
.btn-primary {
    background-color: #258cfb;
    border-color: #258cfb;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Sidebar styles */
.sidebar {
    min-width: 220px;
    background-color: #f8f9fa;
    border-right: 1px solid #e5e5e5;
}

.sidebar .nav-link {
    color: #333;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .main-content {
        margin: 0;
        padding: 1rem;
    }
}

/* Responsive MENU */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

.sidebar .nav-link.active {
    background-color: #258cfb;
    color: #fff !important;
}

.sidebar .nav-item.text-uppercase {
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Animaciones personalizadas para Index */
.animate-fadein {
    animation: fadeIn 1s;
}

.animate-fadein2 {
    animation: fadeIn 1.2s;
}

.animate-fadein3 {
    animation: fadeIn 1.4s;
}

.animate-img {
    animation: fadeInUp 1.2s;
}

.animate-cta {
    animation: pulse 1.5s infinite alternate;
}

.animate-cta2 {
    animation: pulse2 2s infinite alternate;
}

.sticky-cta {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #0d6efd44;
    }

    100% {
        box-shadow: 0 0 0 12px #0d6efd00;
    }
}

@keyframes pulse2 {
    0% {
        box-shadow: 0 0 0 0 #6c757d44;
    }

    100% {
        box-shadow: 0 0 0 12px #6c757d00;
    }
}