@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f172a;
    background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 100%);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ========== BACKGROUND EFFECTS ========== */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.blob {
    position: fixed;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #db2777 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    animation-delay: -10s;
    opacity: 0.4;
}

.blob-4 {
    bottom: 10%;
    left: 10%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    animation-delay: -15s;
    opacity: 0.4;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(5%, 5%) scale(1.1);
    }

    50% {
        transform: translate(0, 10%) scale(1);
    }

    75% {
        transform: translate(-5%, 5%) scale(0.9);
    }
}

/* ========== GLASSMORPHISM EFFECTS ========== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========== INPUTS ========== */
.glass-input,
.input-glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
}

.glass-input:focus,
.input-glass:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
}

.glass-input::placeholder,
.input-glass::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select.glass-input,
select.input-glass {
    cursor: pointer;
}

textarea.glass-input,
textarea.input-glass {
    resize: vertical;
    min-height: 80px;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(219, 39, 119, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(219, 39, 119, 0.4);
    background: linear-gradient(135deg, #f472b6 0%, #8b5cf6 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ========== MENU ========== */
.menu-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item.active {
    background: rgba(219, 39, 119, 0.2);
    color: #f472b6;
    border: 1px solid rgba(219, 39, 119, 0.3);
}

/* Botón Jornada Destacado */
.menu-item-jornada {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulseJornada 2s ease-in-out infinite;
}

.menu-item-jornada:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.menu-item-jornada.active {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

@keyframes pulseJornada {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
    }
}

/* ========== HEADER ========== */
.header-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    padding: 1rem 0;
    position: relative;
    z-index: 50;
}

/* ========== FOOTER ========== */
.footer-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

/* ========== UTILITIES ========== */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CUSTOM RANGE SLIDER ========== */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #db2777;
    border: 2px solid white;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(219, 39, 119, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* ========== CHECKBOX ========== */
.custom-checkbox:checked {
    background-color: #db2777;
    border-color: #db2777;
}

/* ========== TABLE ========== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

td,
th {
    padding: 1rem;
    text-align: left;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container-custom {
        padding: 0 0.5rem;
    }

    .blob {
        width: 150px !important;
        height: 150px !important;
    }
}

/* ========== LOGIN SPECIFIC ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.3);
}

/* ========== SWEETALERT2 CUSTOM STYLES ========== */
/* Fondo del modal con glassmorphism */
.swal2-popup {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    padding: 2rem !important;
}

/* Fondo oscuro del overlay */
.swal2-container {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
}

/* Título del modal */
.swal2-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
}

/* Contenido HTML del modal */
.swal2-html-container {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Inputs dentro del modal */
.swal2-input,
.swal2-textarea,
.swal2-select {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.75rem !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    outline: none !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Botones del modal */
.swal2-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4) !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Mensaje de validación de error */
.swal2-validation-message {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
    border-radius: 0.5rem !important;
}

/* Icono del modal */
.swal2-icon {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

/* Botón de cerrar */
.swal2-close {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease !important;
}

.swal2-close:hover {
    color: white !important;
}