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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

:root {
    --gradient-1: #f0f9ff;
    --gradient-2: #e0f2fe;
    --gradient-3: #bae6fd;
    --text-color: #0c4a6e;
    --card-bg: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    background: linear-gradient(-45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: 2rem;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    animation: float 6s ease-in-out infinite;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.days-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    perspective: 1000px;
}

.day-button {
    position: relative;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.day-button:hover {
    transform: translateZ(20px) rotateX(10deg) rotateY(10deg);
    background: rgba(255, 255, 255, 0.9);
}

.day-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.date-text {
    font-size: 1rem;
    opacity: 0.8;
}

.active-day {
    animation: pulse 2s infinite;
    background: rgba(14, 165, 233, 0.2);
    border: 3px solid #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    transform: scale(1.05);
}

.day-button.active-day:hover {
    background: rgba(14, 165, 233, 0.3);
    transform: scale(1.08);
}

/* Estilos para el formulario admin */
.admin-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-select, .form-file {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.form-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #0284c7, #0ea5e9);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.form-button:hover {
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

a.form-button {
    display: inline-block;
    text-decoration: none;
}

.message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    animation: float 4s ease-in-out infinite;
}

@media (max-width: 768px) {
    body { padding: 1rem; }
    h1 { font-size: 2rem; }
    .days-container { gap: 1rem; }
    .day-button { padding: 1.5rem; }
}