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

:root {
    --rojo-navidad: #c41e3a;
    --verde-navidad: #0f6341;
    --dorado: #ffd700;
    --dorado-claro: #ffe55c;
    --blanco-nieve: #f8f9fa;
    --gris-oscuro: #2c3e50;
    --verde-oscuro: #0a3d2a;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a3d2a 0%, #0f6341 50%, #1a472a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Efecto de luces navideñas en el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: luces 10s ease-in-out infinite;
}

@keyframes luces {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Nieve animada mejorada */
.snow {
    position: fixed;
    top: -10px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.snow::before,
.snow::after {
    content: "❄";
    position: absolute;
    top: -100px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
}

.snow::before {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.snow::after {
    left: 50%;
    animation-duration: 15s;
    animation-delay: 5s;
    font-size: 30px;
}

.snow:nth-child(2)::before {
    left: 30%;
    animation-duration: 12s;
    animation-delay: 2s;
    font-size: 25px;
}

.snow:nth-child(2)::after {
    left: 70%;
    animation-duration: 18s;
    animation-delay: 8s;
    font-size: 15px;
}

.snow:nth-child(3)::before {
    left: 80%;
    animation-duration: 14s;
    animation-delay: 4s;
    font-size: 28px;
}

.snow:nth-child(3)::after {
    left: 20%;
    animation-duration: 16s;
    animation-delay: 6s;
    font-size: 22px;
}

@keyframes snowfall {
    0% {
        top: -10%;
        opacity: 1;
        transform: translateX(0) rotateZ(0deg);
    }
    50% {
        transform: translateX(100px) rotateZ(180deg);
    }
    100% {
        top: 110%;
        opacity: 0.3;
        transform: translateX(-50px) rotateZ(360deg);
    }
}

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

/* Header con efecto glassmorphism */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--dorado) 0%, var(--dorado-claro) 50%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
    animation: brillo 3s ease-in-out infinite;
}

@keyframes brillo {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.subtitle {
    color: var(--blanco-nieve);
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Cards con glassmorphism */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: fadeInUp 1s ease;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.3) inset;
}

.card-especial {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.95) 0%, rgba(139, 21, 40, 0.95) 100%);
    backdrop-filter: blur(20px);
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 8px 32px rgba(196, 30, 58, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3);
}

.card-especial:hover {
    box-shadow: 
        0 15px 50px rgba(196, 30, 58, 0.6),
        0 0 50px rgba(255, 215, 0, 0.5);
}

.card-header {
    background: linear-gradient(135deg, var(--rojo-navidad) 0%, #8b1528 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotar 10s linear infinite;
}

@keyframes rotar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-especial .card-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.card-header h2 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.8rem;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 30px;
}

/* Formularios mejorados */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--gris-oscuro);
    transition: color 0.3s;
}

.card-especial .form-group label {
    color: white;
}

.form-control {
    padding: 14px;
    border: 2px solid rgba(196, 30, 58, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--rojo-navidad);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
    background: white;
    transform: translateY(-2px);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Botones con efecto especial */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rojo-navidad) 0%, #8b1528 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.6);
    border-color: var(--dorado);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--verde-navidad) 0%, var(--verde-oscuro) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(15, 99, 65, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(15, 99, 65, 0.6);
}

.btn-large {
    font-size: 1.3rem;
    padding: 20px 40px;
    animation: pulso 2s ease-in-out infinite;
}

@keyframes pulso {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 215, 0, 0.6);
    }
}

.btn-link {
    color: var(--dorado);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.btn-link:hover {
    color: var(--dorado-claro);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

/* Alertas con glassmorphism */
.alert {
    padding: 18px 24px;
    border-radius: 15px;
    margin-bottom: 20px;
    animation: slideInDown 0.5s ease;
    backdrop-filter: blur(10px);
    border: 2px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: rgba(212, 237, 218, 0.95);
    color: #155724;
    border-color: rgba(195, 230, 203, 0.5);
}

.alert-error {
    background: rgba(248, 215, 218, 0.95);
    color: #721c24;
    border-color: rgba(245, 198, 203, 0.5);
}

.alert-info {
    background: rgba(209, 236, 241, 0.95);
    color: #0c5460;
    border-color: rgba(190, 229, 235, 0.5);
}

/* Participantes */
.participante-info {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.foto-perfil {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--dorado);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s;
}

.foto-perfil:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.6);
}

.info-detalle {
    flex: 1;
    min-width: 250px;
}

.info-detalle p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.asignacion-info {
    text-align: center;
    padding: 30px;
}

.nombre-asignado {
    font-size: 2.5rem;
    font-family: 'Mountains of Christmas', cursive;
    background: linear-gradient(135deg, var(--dorado) 0%, var(--dorado-claro) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    animation: brillo 2s ease-in-out infinite;
}

.deseo-asignado {
    font-size: 1.1rem;
    margin-top: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Tabla Admin con glassmorphism */
.tabla-responsive {
    overflow-x: auto;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.tabla-participantes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla-participantes th,
.tabla-participantes td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.tabla-participantes th {
    background: linear-gradient(135deg, var(--rojo-navidad) 0%, #8b1528 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.tabla-participantes tbody tr {
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.tabla-participantes tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.01);
}

.foto-tabla {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--dorado);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.foto-tabla:hover {
    transform: scale(1.2);
    border-color: var(--dorado-claro);
}

.sin-foto {
    font-size: 2rem;
}

.btn-eliminar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    filter: grayscale(0.3);
}

.btn-eliminar:hover {
    transform: scale(1.3) rotate(15deg);
    filter: grayscale(0);
}

.estado-info {
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(196, 30, 58, 0.1) 100%);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.estado-info p {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    box-shadow: 0 2px 10px rgba(21, 87, 36, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    box-shadow: 0 2px 10px rgba(133, 100, 4, 0.2);
}

/* Admin Link */
.admin-link {
    text-align: center;
    margin: 40px 0;
}

/* Footer con glassmorphism */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 25px;
    color: white;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

/* Animaciones mejoradas */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .tabla-participantes {
        font-size: 0.85rem;
    }
    
    .tabla-participantes th,
    .tabla-participantes td {
        padding: 12px;
    }
    
    .participante-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}