body {
    background: linear-gradient(135deg, #0a0e27 0%, #151b3d 50%, #1a1f4d 100%);
    color: #e0f7ff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 102, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
header {
    background: linear-gradient(135deg, #0066ff 0%, #0099ff 100%);
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 153, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.2);
    border-bottom: 2px solid #00d9ff;
    position: relative;
    z-index: 1;
}
header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 217, 255, 0.6),
        0 0 30px rgba(0, 153, 255, 0.4);
}
header p {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    color: #a0e7ff;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}
main {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

#btn-nueva-actividad{
  float: right;
}

.btn-cerrar {
    background: transparent;
    color: #00d9ff;
    border: 2px solid #00d9ff;
    border-radius: 6px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}
.btn-cerrar:hover {
    background: #00d9ff;
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6), 0 0 30px rgba(0, 217, 255, 0.4);
    transform: translateY(-2px);
}
#form-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 153, 255, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 4px 20px rgba(0, 153, 255, 0.2),
        inset 0 0 40px rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: box-shadow 0.3s, opacity 0.3s;
    opacity: 1;
    backdrop-filter: blur(10px);
}
#form-section[style*="display:none"] {
    opacity: 0;
    box-shadow: none;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: #00d9ff;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}
input[type="text"],
input[type="datetime-local"] {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    background: rgba(10, 14, 39, 0.8);
    color: #e0f7ff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 102, 255, 0.1);
}
input[type="text"]:focus,
input[type="datetime-local"]:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 
        0 0 15px rgba(0, 217, 255, 0.4),
        inset 0 0 10px rgba(0, 153, 255, 0.2);
}
input[type="checkbox"] {
    accent-color: #00d9ff;
}
.dias-recurrencia {
    display: none;
    gap: 0.5rem;
    margin-top: 0.5rem;
    
}
.btn-accent {
    background: linear-gradient(135deg, #0099ff 0%, #00d9ff 100%);
    color: #0a0e27;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 217, 255, 0.4),
        0 0 20px rgba(0, 153, 255, 0.3);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #00d9ff 0%, #00ffff 100%);
    box-shadow: 
        0 6px 25px rgba(0, 217, 255, 0.6),
        0 0 40px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}
#timeline-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.actividad-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 153, 255, 0.15) 100%);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 
        0 4px 15px rgba(0, 102, 255, 0.2),
        inset 0 0 30px rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.25);
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.actividad-item:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 
        0 6px 20px rgba(0, 153, 255, 0.3),
        inset 0 0 30px rgba(0, 217, 255, 0.08);
}
.actividad-item.actual {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4) 0%, rgba(0, 153, 255, 0.3) 100%);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.6),
        0 0 50px rgba(0, 153, 255, 0.4),
        inset 0 0 40px rgba(0, 217, 255, 0.1);
    border: 2px solid #00d9ff;
    animation: neonPulse 2s ease-in-out infinite;
}
@keyframes neonPulse {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(0, 217, 255, 0.6),
            0 0 50px rgba(0, 153, 255, 0.4),
            inset 0 0 40px rgba(0, 217, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(0, 217, 255, 0.8),
            0 0 70px rgba(0, 153, 255, 0.6),
            inset 0 0 50px rgba(0, 217, 255, 0.15);
    }
}

.icono {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4) 0%, rgba(0, 153, 255, 0.3) 100%);
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #00d9ff;
    padding-left: 5px;
    padding-right: 5px;
    border: 2px solid rgba(0, 217, 255, 0.4);
    box-shadow: 
        0 0 15px rgba(0, 217, 255, 0.4),
        inset 0 0 10px rgba(0, 153, 255, 0.2);
}
.info {
  flex: 1;
  padding: 3px;
  border-radius: 3px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  background: rgba(0, 102, 255, 0.1);
  backdrop-filter: blur(5px);
}
.nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0f7ff;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}
.horario {
    font-size: 0.95rem;
    color: #7ec8ff;
}
.recurrente {
    font-size: 0.85rem;
    color: #00d9ff;
    margin-top: 0.2rem;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}
.acciones {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-left: 1rem;
}
.acciones button {
    background: none;
    border: none;
    color: #00d9ff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 3px rgba(0, 217, 255, 0.4));
}
.acciones button:hover {
    color: #00ffff;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
    transform: scale(1.1);
}
.temporizador {
    min-width: 90px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ffff;
    margin: 1.1rem;
    padding: 3px;
    animation: parpadeo 1s infinite alternate;
    opacity: 0.85;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.3) 0%, rgba(0, 153, 255, 0.2) 100%);
    border-radius: 3px;
    border: 1px solid rgba(0, 217, 255, 0.4);
    box-shadow: 
        0 0 15px rgba(0, 217, 255, 0.4),
        inset 0 0 10px rgba(0, 153, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}
@keyframes parpadeo {
    0% { 
        opacity: 0.85;
        box-shadow: 
            0 0 15px rgba(0, 217, 255, 0.4),
            inset 0 0 10px rgba(0, 153, 255, 0.2);
    }
    100% { 
        opacity: 1;
        box-shadow: 
            0 0 25px rgba(0, 217, 255, 0.6),
            inset 0 0 15px rgba(0, 153, 255, 0.3);
    }
}
.barra-progreso-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: 4px;
    margin-top: 0.7rem;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 102, 255, 0.3);
}
.barra-progreso {
    height: 100%;
    background: linear-gradient(90deg, #0099ff 0%, #00d9ff 50%, #00ffff 100%);
    width: 100%;
    transition: width 0.5s cubic-bezier(.4,2,.6,1);
    box-shadow: 
        0 0 10px rgba(0, 217, 255, 0.6),
        0 0 20px rgba(0, 153, 255, 0.4);
    animation: barraGlow 2s ease-in-out infinite;
}
@keyframes barraGlow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(0, 217, 255, 0.6),
            0 0 20px rgba(0, 153, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(0, 217, 255, 0.8),
            0 0 30px rgba(0, 153, 255, 0.6);
    }
}
.carrusel-semana {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.carrusel-arrow {
    background: transparent;
    border: 2px solid rgba(0, 217, 255, 0.4);
    color: #00d9ff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.2rem 0.7rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}
.carrusel-arrow:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4) 0%, rgba(0, 153, 255, 0.3) 100%);
    color: #00ffff;
    border-color: #00d9ff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    transform: scale(1.1);
}
.dias-semana {
    display: flex;
    gap: 0.5rem;
}
.dia-btn {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 153, 255, 0.15) 100%);
    color: #7ec8ff;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.2);
}
.dia-btn.selected {
    background: linear-gradient(135deg, #0099ff 0%, #00d9ff 100%);
    color: #0a0e27;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.6),
        0 0 30px rgba(0, 153, 255, 0.4);
    border: 1px solid #00d9ff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.dia-btn.hoy {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 153, 255, 0.15) 100%);
    color: #00d9ff;
    border: 2px solid #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}
.dia-btn.selected.hoy {
    background: linear-gradient(90deg, #0099ff 0%, #00d9ff 70%, #00ffff 100%);
    color: #0a0e27;
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 25px rgba(0, 217, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.6);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.dia-btn:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4) 0%, rgba(0, 153, 255, 0.3) 100%);
    color: #e0f7ff;
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}
.rango-semana {
    text-align: center;
    color: #7ec8ff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    padding: 0.4rem 1.2rem;
    border-radius: 8px;
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 153, 255, 0.1) 100%);
    border: 2px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.2);
}
.rango-semana.actual {
    color: #e0f7ff;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4) 0%, rgba(0, 153, 255, 0.3) 100%);
    border: 2px solid #00d9ff;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.5),
        0 0 30px rgba(0, 153, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}
.btn-hoy-semana {
    padding: 0.4rem 1.1rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    vertical-align: middle;
}
@media (max-width: 600px) {
    main {
        padding: 0.5rem;
    }
    .actividad-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .acciones {
        flex-direction: row;
        gap: 1rem;
        margin-left: 0;
    }
    .temporizador {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}