/* Tipografía Global */
body {
    font-family: 'Poppins', sans-serif;
    /* Fondo con gradiente animado suave */
    background: linear-gradient(-45deg, #fdfbfb, #ebedee, #f0f4f8, #e0f7fa);
    /* Opcional: Si prefieres el fondo colorido anterior, descomenta la siguiente línea y comenta la de arriba */
    /* background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); */
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    -webkit-font-smoothing: antialiased;
}

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

/* Efecto Glassmorphism (Panel Principal) */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Tarjetas de Lista */
.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.glass-card:active {
    transform: scale(0.98);
}

/* Checkbox Personalizado (Animado) */
.bubble-checkbox input:checked ~ .bubble-bg {
    background-color: #10b981;
    border-color: #10b981;
    transform: scale(1);
}
.bubble-checkbox input:checked ~ .bubble-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.bubble-icon {
    transform: scale(0.5) rotate(-45deg);
}

/* Barra de progreso */
.progress-bar-fill {
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efecto rebote suave */
    background-image: linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Scrollbar Personalizado (Fino y Elegante) */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.4);
}

/* Elementos de fondo borrosos */
.bg-blob {
    position: absolute;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 380px) {
    body { padding: 10px; }
    .glass-panel { border-radius: 1rem; }
    h1 { font-size: 1.1rem; }
}