/* ===== ESTILOS GAME AWARDS ===== */
:root {
    --gold: #FFD700;
    --gold-dark: #D4AF37;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    --dark-bg: #0a0a12;
    --darker-bg: #050508;
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --dark-purple: #1a1a2e;
    --darker-purple: #16213e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== PANTALLA DE LOGIN ===== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-purple) 0%, var(--dark-purple) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.login-container {
    background: rgba(20, 20, 35, 0.95);
    border-radius: 25px;
    padding: 50px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    border: 2px solid var(--gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3),
                inset 0 0 30px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo-login {
    margin-bottom: 40px;
}

.trophy-login {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: shine 2s infinite alternate;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

@keyframes shine {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)) brightness(1);
    }
    100% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9)) brightness(1.2);
    }
}

.logo-login h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--gold), var(--silver), var(--bronze), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin: 20px 0;
    letter-spacing: 3px;
    font-weight: 800;
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
}

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

.subtitle-login {
    color: var(--silver);
    font-size: 1.3rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.login-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    margin: 30px 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.login-form h2 {
    color: var(--gold);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem;
}

.login-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.2rem;
    border: 2px solid var(--gold);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    outline: none;
}

.login-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    transform: scale(1.02);
}

.login-btn {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: black;
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
}

.login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.login-note {
    color: var(--silver);
    font-size: 0.9rem;
    margin-top: 20px;
    font-style: italic;
    opacity: 0.8;
}

.current-voters {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.current-voters h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.voters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
}

.voter-tag {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.1));
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.voter-tag:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

/* ===== CONTENIDO PRINCIPAL ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== HEADER GAME AWARDS STYLE ===== */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.9) 0%, rgba(26, 26, 46, 0.7) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold), 
        var(--silver), 
        var(--gold), 
        transparent);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.trophy-icon {
    font-size: 4rem;
    color: var(--gold);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(-10px) rotate(-5deg); }
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, 
        var(--gold) 0%, 
        var(--silver) 25%, 
        white 50%, 
        var(--silver) 75%, 
        var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    letter-spacing: 3px;
    margin: 10px 0;
    font-weight: 800;
    background-size: 200% 200%;
    animation: title-shine 4s ease infinite;
}

@keyframes title-shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    color: var(--silver);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: 300;
}

/* ===== BANNER DE FASE ===== */
.phase-banner {
    background: linear-gradient(90deg, #FF416C, #FF4B2B);
    padding: 18px;
    text-align: center;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 800px;
    font-weight: bold;
    font-size: 1.3rem;
    animation: pulse 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.phase-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: slide 3s infinite;
}

@keyframes slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 65, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0); }
}

/* ===== CATEGORÍAS CON FOTOS ===== */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.8), rgba(15, 15, 25, 0.9));
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--gold), 
        var(--silver), 
        var(--bronze), 
        var(--gold));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card:hover::before {
    opacity: 0.3;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2),
                inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.category-card h3 {
    color: var(--gold);
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 600;
}

.category-description {
    color: var(--silver);
    font-size: 0.9rem;
    text-align: center;
    margin: 10px 0 15px;
    font-style: italic;
    min-height: 40px;
}

.nominees-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.nominee-tag {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.1));
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.nominee-preview-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold);
}

.vote-count {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: black;
    padding: 8px 15px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.user-vote-indicator {
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    border-radius: 10px;
    color: #4CAF50;
    font-size: 0.9rem;
    text-align: center;
}

/* ===== INSTRUCCIONES ===== */
.instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 800px;
    border-left: 5px solid var(--gold);
    backdrop-filter: blur(10px);
}

.instructions h3 {
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
}

.instructions p {
    margin: 12px 0;
    color: var(--silver);
    line-height: 1.6;
    font-size: 1.1rem;
}

.instructions .highlight {
    color: var(--gold);
    font-weight: bold;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: 20px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.btn-admin {
    background: linear-gradient(45deg, var(--dark-purple), var(--darker-purple));
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 25px;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-admin:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: black;
}

.footer-text {
    color: var(--silver);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== MODAL CON FOTOS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(15, 15, 25, 0.98));
    margin: 50px auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    border: 2px solid var(--gold);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.modal-content h2 small {
    display: block;
    font-size: 1rem;
    color: var(--silver);
    margin-top: 10px;
    font-style: italic;
}

.nominees-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.nominee-item {
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.8), rgba(20, 20, 40, 0.9));
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.nominee-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

.nominee-item.voted {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(212, 175, 55, 0.1));
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.nominee-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--dark-purple), var(--darker-purple));
    padding: 5px;
    transition: all 0.3s ease;
}

.nominee-item:hover .nominee-photo {
    transform: scale(1.05);
    border-width: 4px;
}

.nominee-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    margin: 15px 0 10px;
    letter-spacing: 0.5px;
}

.vote-count-small {
    color: var(--silver);
    font-size: 1rem;
    margin: 8px 0;
    font-weight: 500;
}

.voters-count {
    color: #aaa;
    font-size: 0.9rem;
    margin: 5px 0;
    font-style: italic;
}

.voted-check {
    color: #4CAF50;
    font-weight: bold;
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    display: inline-block;
    border: 1px solid #4CAF50;
}

/* ===== UPLOAD DE FOTOS ===== */
.add-nominee-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.upload-section {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px dashed var(--gold);
}

.upload-label {
    display: block;
    margin-bottom: 20px;
    color: var(--silver);
    font-size: 1.1rem;
    text-align: center;
}

.upload-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.nominee-input {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.nominee-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(192, 192, 192, 0.2));
    border: 1px solid var(--gold);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gold);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-label:hover {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(192, 192, 192, 0.3));
    transform: translateY(-2px);
}

.photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-add {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: black;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* ===== USER INFO ===== */
.user-info {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.1));
    padding: 15px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-name {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.logout-btn {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: scale(1.05);
}

/* ===== PANEL ADMIN ===== */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1001;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.admin-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 18, 0.98));
    margin: 50px auto;
    padding: 50px;
    border-radius: 30px;
    width: 90%;
    max-width: 900px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.4);
    animation: adminAppear 0.4s ease-out;
}

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

.admin-content h2 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    letter-spacing: 1px;
}

.admin-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin: 25px 0;
    border: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.admin-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.phase-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.btn-phase {
    padding: 20px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-phase:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border-color: var(--gold);
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(192, 192, 192, 0.3));
}

.add-category {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

#newCategory {
    flex: 1;
    min-width: 300px;
    padding: 18px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

#newCategory:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* ===== GESTIÓN DE FOTOS ===== */
.photo-management {
    margin-top: 20px;
}

.photo-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.photo-select {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

.photo-url-input {
    flex: 2;
    min-width: 200px;
    padding: 12px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

.current-photos {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.current-photos h4 {
    color: var(--gold);
    margin-bottom: 10px;
}

.photos-list {
    max-height: 200px;
    overflow-y: auto;
}

.photo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

.photo-info {
    flex: 1;
}

.photo-info a {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.photo-info a:hover {
    text-decoration: underline;
}

.photo-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    margin-left: 10px;
}

/* ===== BOTONES ADMIN ===== */
.admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.btn-results, .btn-export, .btn-import, .btn-reset {
    padding: 18px 35px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    min-width: 180px;
    justify-content: center;
}

.btn-results {
    background: linear-gradient(45deg, rgba(240, 147, 251, 0.2), rgba(245, 87, 108, 0.2));
    color: white;
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.btn-export {
    background: linear-gradient(45deg, rgba(0, 243, 255, 0.2), rgba(0, 184, 212, 0.2));
    color: white;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.btn-import {
    background: linear-gradient(45deg, rgba(76, 201, 240, 0.2), rgba(29, 209, 161, 0.2));
    color: white;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

.btn-reset {
    background: linear-gradient(45deg, rgba(254, 140, 0, 0.2), rgba(248, 54, 0, 0.2));
    color: white;
    border: 1px solid rgba(254, 140, 0, 0.3);
}

.btn-results:hover, .btn-export:hover, .btn-import:hover, .btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stats p {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 1.2rem;
}

.stats span {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.4rem;
    display: block;
    margin-top: 8px;
}

.btn-close-admin {
    background: linear-gradient(45deg, rgba(255, 71, 87, 0.2), rgba(255, 0, 0, 0.2));
    color: #ff4757;
    border: 1px solid #ff4757;
    padding: 18px 40px;
    border-radius: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-close-admin:hover {
    background: linear-gradient(45deg, rgba(255, 71, 87, 0.3), rgba(255, 0, 0, 0.3));
    transform: scale(1.02);
}

/* ===== MODAL DE CONTRASEÑA ===== */
.password-modal {
    max-width: 400px;
    text-align: center;
}

.password-form {
    padding: 20px 0;
}

.password-input-group {
    position: relative;
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--gold);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.password-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.show-password-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--silver);
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
}

.show-password-btn:hover {
    color: var(--gold);
}

.password-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.password-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.password-hint {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.error-message {
    color: #ff4757;
    margin-bottom: 10px;
    min-height: 20px;
    font-weight: bold;
}

.hint-text {
    color: var(--silver);
    font-size: 0.9rem;
    margin-top: 10px;
}

.hint-text strong {
    color: var(--gold);
    font-family: monospace;
    letter-spacing: 1px;
}

/* Animación de shake para error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-container {
        padding: 30px;
    }
    
    .logo-login h1 {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .categories-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .modal-content {
        padding: 25px;
        width: 95%;
    }
    
    .nominees-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .admin-content {
        padding: 30px;
        width: 95%;
    }
    
    .phase-controls {
        grid-template-columns: 1fr;
    }
    
    #newCategory {
        min-width: 100%;
    }
    
    .user-info {
        top: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .photo-input-group {
        flex-direction: column;
    }
    
    .photo-select, .photo-url-input {
        width: 100%;
    }
    
    .btn-phase, .btn-results, .btn-export, .btn-import, .btn-reset {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-login h1 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .trophy-login {
        font-size: 3.5rem;
    }
    
    .nominee-photo {
        width: 100px;
        height: 100px;
    }
    
    .admin-section {
        padding: 20px;
    }
}

/* Estilos para la votación con frases */
.frase-section {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.frase-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary);
}

.frase-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.frase-example {
    font-size: 12px;
    color: var(--silver);
    font-style: italic;
    margin-top: 5px;
}

/* Estilos para mostrar frases en resultados */
.frases-container {
    margin-top: 20px;
}

.frase-item {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--gold);
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 5px;
}

.frase-text {
    font-style: italic;
    color: white;
    margin-bottom: 5px;
}

.frase-meta {
    font-size: 12px;
    color: var(--silver);
}

/* Badge para categoría con frases */
.has-frases-badge {
    background: var(--gold);
    color: black;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
    font-weight: bold;
}
/* ===== ESTILOS PARA OCULTAR VOTOS ===== */
.vote-count-small {
    display: none !important;
}

.voters-count {
    display: none !important;
}

.nominee-tag {
    /* Quitar el número de votos del preview */
    padding: 8px 15px !important;
}

.nominee-tag::after {
    /* No mostrar "(X)" después del nombre */
    content: "" !important;
}

/* En los resultados, ocultar números de votos */
.podium-stats {
    display: none !important;
}

/* En el modal de votación, ocultar contadores */
.vote-counter {
    display: none !important;
}

/* Ajustar estilos para que se vea bien sin números */
.category-card .nominees-preview .nominee-tag {
    min-width: 80px;
    justify-content: center;
}

/* Ocultar "X votos" en las tarjetas de categoría */
.vote-count {
    /* Cambiar texto para que sea más genérico */
    font-size: 0.9rem !important;
    padding: 5px 10px !important;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(212, 175, 55, 0.2)) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

/* En el modal de resultados, ajustar texto */
.results-total {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
}
/* ===== ESTILOS PARA OCULTAR VOTOS EN MODAL DE VOTACIÓN ===== */

/* Ocultar contadores de votos individuales en el modal */
.modal .vote-count-small,
.modal .voters-count {
    display: none !important;
}

/* Estilo para los nombres en el modal (sin números) */
.modal .nominee-name {
    margin: 15px 0 10px !important;
}

/* Ajustar espaciado en modal sin números */
.modal .nominee-item {
    padding-bottom: 15px !important;
    min-height: 220px !important;
}

/* Mantener visibles los votos en las tarjetas principales */
.category-card .nominee-tag::after {
    content: " (" attr(data-votes) ")" !important;
}

.category-card .nominee-tag {
    position: relative;
}

.category-card .nominee-tag[data-votes]::after {
    content: " (" attr(data-votes) ")" !important;
    font-size: 0.8em;
    opacity: 0.8;
}

/* ===== ESTILOS PARA VOTOS DEBAJO DEL TÍTULO ===== */
.vote-count-title {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    margin: 5px 0 15px 0;
    padding: 8px 15px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Ajustar el título */
.category-card h3 {
    margin-bottom: 5px !important;
}

/* Ajustar la descripción */
.category-description {
    margin-top: 10px !important;
    margin-bottom: 15px !important;
}

/* Quitar el antiguo vote-count de la esquina */
.vote-count {
    display: none !important;
}

/* Estilo minimalista como la imagen */
.vote-count-simple {
    color: var(--silver);
    font-size: 1rem;
    text-align: center;
    margin: 5px auto 15px auto;
    display: block;
}

.user-vote-simple {
    color: #4CAF50;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}
/* ===== BOTÓN DE RESULTADOS VISIBLE ===== */
.btn-results {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark)) !important;
    color: black !important;
    border: 2px solid var(--gold) !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 auto 25px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3) !important;
}

.btn-results:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5) !important;
    background: linear-gradient(45deg, #FFD700, #FFED4E) !important;
}

/* Animación para el botón de resultados */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.phase-results .btn-results {
    animation: pulse-gold 2s infinite;
}
/* Indicar que en fase resultados las tarjetas son para ver resultados */
.phase-results .category-card {
    cursor: pointer;
    border: 2px solid var(--gold) !important;
}

.phase-results .category-card:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4) !important;
}

/* ===== ANIMACIONES PARA REVELACIÓN ===== */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes goldGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9));
    }
}

@keyframes rotateBronze {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

@keyframes rotateSilver {
    0%, 100% {
        transform: rotate(0deg);
    }
    33% {
        transform: rotate(-8deg);
    }
    66% {
        transform: rotate(8deg);
    }
}

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

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

/* Botón de revelación */
.btn-reveal {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.9), rgba(255, 142, 83, 0.9)) !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3) !important;
    animation: pulse 1.5s infinite !important;
}

.btn-reveal:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5) !important;
    animation: none !important;
}

/* Cursor indicador para siguiente paso */
.results-reveal-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Efecto de brillo para medallas */
.medal-glow {
    animation: medalGlow 2s ease-in-out infinite;
}

@keyframes medalGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* Contenedor de 3 columnas para resultados */
.results-three-columns {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* Responsive para móviles */
@media (max-width: 1024px) {
    .results-three-columns {
        grid-template-columns: 1fr;
    }
}

/* Animación para las tarjetas de clasificación */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.participant-card {
    animation: cardAppear 0.5s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

/* Mejor manejo de texto largo */
.word-wrap {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: auto;
}

/* Scrollbars personalizados */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Añade esto si no existe */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes goldGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
    }
}

@keyframes rotateBronze {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@keyframes rotateSilver {
    0%, 100% { transform: rotate(0deg); }
    33% { transform: rotate(-10deg); }
    66% { transform: rotate(10deg); }
}

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

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

.btn-reveal {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.9), rgba(255, 142, 83, 0.9)) !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3) !important;
    animation: pulse 1.5s infinite !important;
}

.btn-reveal:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5) !important;
    animation: none !important;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes goldGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
    }
}

@keyframes rotateBronze {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

@keyframes rotateSilver {
    0%, 100% {
        transform: rotate(0deg);
    }
    33% {
        transform: rotate(-8deg);
    }
    66% {
        transform: rotate(8deg);
    }
}

/* Estilos para modal de resultados centrados */
#voteModal .modal-content {
    max-width: 1000px;
    margin: 30px auto;
}

#voteModal .nominees-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* ===== CONTENEDORES PARA VOTACIÓN Y RESULTADOS ===== */
.nominees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* Asegurar que el contenedor de resultados ocupe todo el espacio */
#resultsList {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ajustar el modal para resultados */
#voteModal.results-mode .modal-content {
    max-width: 1000px;
}

#voteModal.results-mode .add-nominee-section {
    display: none !important;
}

/* Clase especial para cuando estamos en modo resultados */
.results-mode .modal-content {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.results-mode #resultsContainer {
    flex: 1;
    display: flex !important;
}

/* Ocultar contenedores según el modo */
#votingContainer:not(.active),
#resultsContainer:not(.active) {
    display: none !important;
}

#votingContainer.active,
#resultsContainer.active {
    display: block;
}

/* ===== ANIMACIONES ESPECTACULARES PARA RESULTADOS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseGold {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

@keyframes confettiRain {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes trophySpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                     0 0 20px rgba(255, 215, 0, 0.3),
                     0 0 30px rgba(255, 215, 0, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                     0 0 40px rgba(255, 215, 0, 0.5),
                     0 0 60px rgba(255, 215, 0, 0.3);
    }
}

/* ===== CLASES PARA ANIMACIONES ===== */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scaleUp {
    animation: scaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-pulseGold {
    animation: pulseGold 2s infinite ease-in-out;
}

.animate-trophySpin {
    animation: trophySpin 3s linear infinite;
}

.animate-textGlow {
    animation: textGlow 2s infinite alternate;
}

/* ===== CONTENEDOR DE CONFETI ===== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    opacity: 0.8;
    top: -10px;
    animation: confettiRain 3s linear forwards;
}

/* ===== BOTÓN DE REVELACIÓN ===== */
.btn-reveal {
    background: linear-gradient(90deg, 
        rgba(255, 107, 107, 0.9),
        rgba(255, 142, 83, 0.9),
        rgba(255, 203, 107, 0.9)) !important;
    color: white !important;
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    padding: 18px 40px !important;
    border-radius: 15px !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
    margin: 30px auto !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: 0.5s;
}

.btn-reveal:hover::before {
    left: 100%;
}

.btn-reveal:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.7) !important;
    border-color: var(--gold) !important;
}

.btn-reveal:active {
    transform: scale(0.98) !important;
}

/* ===== CONTENEDOR DE DETALLES ===== */
.details-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.5s both;
    display: none;
}

.details-container.active {
    display: block;
}

/* ===== FRASES ESTILO CITA ===== */
.frase-item {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(212, 175, 55, 0.05));
    border-left: 5px solid var(--gold);
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    animation: fadeInUp 0.6s ease-out forwards;
}

.frase-text {
    font-style: italic;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.frase-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--gold);
    font-family: Georgia, serif;
}

.frase-meta {
    display: flex;
    justify-content: space-between;
    color: var(--silver);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== ESTADÍSTICAS DETALLADAS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    margin: 10px 0;
}

.stat-card .label {
    color: var(--silver);
    font-size: 0.9rem;
}

/* ===== PANTALLA DE REVELACIÓN ===== */
.reveal-screen {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.reveal-trophy {
    font-size: 8rem;
    color: var(--gold);
    margin-bottom: 30px;
    animation: trophySpin 4s linear infinite, 
               pulseGold 2s infinite ease-in-out;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.7));
}

.reveal-title {
    font-size: 3rem;
    background: linear-gradient(45deg, 
        var(--gold), 
        var(--silver), 
        var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    animation: textGlow 2s infinite alternate;
}

.reveal-subtitle {
    color: var(--silver);
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 600px;
}

/* ===== PROGRESS BAR PARA REVELACIÓN ===== */
.reveal-progress {
    width: 100%;
    max-width: 500px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.reveal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--gold), 
        #FF8E53, 
        var(--gold));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reveal-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: spotlight 2s infinite linear;
}
/* ===== ANIMACIONES PARA REVELACIÓN ESCALONADA ===== */
@keyframes curtainOpen {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes spotlightFocus {
    0% {
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 80px 40px rgba(255, 215, 0, 0.5);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 120px 60px rgba(255, 215, 0, 0.3);
    }
}

@keyframes winnerReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(100px);
        filter: blur(10px);
    }
    70% {
        transform: scale(1.1) translateY(-10px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes trophyDrop {
    0% {
        transform: translateY(-100px) rotate(-30deg);
        opacity: 0;
    }
    60% {
        transform: translateY(20px) rotate(10deg);
    }
    80% {
        transform: translateY(-10px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

@keyframes nameReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
        letter-spacing: 20px;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        letter-spacing: normal;
    }
}

@keyframes stageLights {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

@keyframes firework {
    0% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(1);
        opacity: 0;
    }
}

@keyframes drumRoll {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes suspensePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ===== CLASES PARA ANIMACIONES ESCALONADAS ===== */
.curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(139, 0, 0, 0.95) 0%,
        rgba(178, 34, 34, 0.95) 50%,
        rgba(139, 0, 0, 0.95) 100%);
    z-index: 10;
    transform-origin: left;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.curtain::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 215, 0, 0.8) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.curtain.open {
    animation: curtainOpen 1.5s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

.spotlight {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 215, 0, 0.1) 40%,
        transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.spotlight.active {
    animation: spotlightFocus 2s ease-out forwards;
}

.winner-card {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.winner-card.revealed {
    opacity: 1;
    transform: scale(1);
    animation: winnerReveal 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.trophy-icon-large {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-50px);
}

.trophy-icon-large.revealed {
    animation: trophyDrop 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.winner-name {
    opacity: 0;
    transform: scale(0.5);
}

.winner-name.revealed {
    animation: nameReveal 1s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ===== BOTÓN DE SIGUIENTE ===== */
.btn-next-reveal {
    background: linear-gradient(90deg, 
        rgba(255, 107, 107, 0.9),
        rgba(255, 142, 83, 0.9)) !important;
    color: white !important;
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
    margin: 20px auto !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
    animation: suspensePulse 2s infinite !important;
}

.btn-next-reveal:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.7) !important;
    border-color: var(--gold) !important;
    animation: none !important;
}

.btn-next-reveal:active {
    transform: scale(0.98) !important;
}

.btn-next-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transform: translateX(-100%);
}

.btn-next-reveal:hover::after {
    animation: slideShine 0.8s ease;
}

@keyframes slideShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== CONTADOR DRAMÁTICO ===== */
.reveal-counter {
    font-size: 5rem;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    margin: 30px 0;
    animation: drumRoll 0.3s infinite;
}

/* ===== ESCENARIO ===== */
.stage {
    position: relative;
    width: 100%;
    max-width: 1000px;
    min-height: 500px;
    background: linear-gradient(180deg, 
        rgba(20, 20, 40, 0.9) 0%,
        rgba(10, 10, 20, 0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, 
        rgba(255, 215, 0, 0.1) 0%,
        transparent 100%);
    z-index: 1;
}

.stage-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-around;
    z-index: 2;
}

.stage-light {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        var(--gold) 0%,
        rgba(255, 215, 0, 0.3) 70%,
        transparent 100%);
    animation: stageLights 2s infinite;
    opacity: 0.3;
}

.stage-light:nth-child(2n) {
    animation-delay: 0.5s;
    background: radial-gradient(circle, 
        var(--silver) 0%,
        rgba(192, 192, 192, 0.3) 70%,
        transparent 100%);
}

.stage-light:nth-child(3n) {
    animation-delay: 1s;
    background: radial-gradient(circle, 
        var(--bronze) 0%,
        rgba(205, 127, 50, 0.3) 70%,
        transparent 100%);
}

/* ===== REVELACIÓN INDIVIDUAL ===== */
.reveal-step {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 400px;
    position: relative;
    z-index: 3;
}

.reveal-step.active {
    display: flex;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== FUEGOS ARTIFICIALES ===== */
.firework {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    pointer-events: none;
    z-index: 100;
}

.firework::before,
.firework::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
}

.firework::before {
    transform: translateX(-15px);
}

.firework::after {
    transform: translateX(15px);
}

/* ===== MENSAJES DRAMÁTICOS ===== */
.reveal-message {
    color: var(--silver);
    font-size: 1.5rem;
    text-align: center;
    margin: 20px 0;
    font-style: italic;
    min-height: 60px;
    opacity: 0.9;
}

.dramatic-text {
    font-size: 3rem;
    background: linear-gradient(45deg, 
        #FFD700, #FF8E53, #FF6B6B, #FF8E53, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    margin: 20px 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* ===== TELÓN DOBLE MEJORADO ===== */
.curtain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    pointer-events: none;
}

.curtain-left, .curtain-right {
    position: relative;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(139, 0, 0, 0.95) 0%,
        rgba(178, 34, 34, 0.95) 50%,
        rgba(139, 0, 0, 0.95) 100%);
    transition: transform 1.5s cubic-bezier(0.86, 0, 0.07, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.curtain-left {
    transform-origin: left center;
    border-right: 5px solid rgba(255, 215, 0, 0.3);
}

.curtain-right {
    transform-origin: right center;
    border-left: 5px solid rgba(255, 215, 0, 0.3);
}

.curtain-left::before, .curtain-right::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 215, 0, 0.8) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.curtain-left::after, .curtain-right::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.8) 0%,
        rgba(255, 215, 0, 0.4) 50%,
        transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: curtainKnobGlow 2s infinite alternate;
}

.curtain-left::after {
    right: 10px;
}

.curtain-right::after {
    left: 10px;
}

@keyframes curtainKnobGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        transform: translateY(-50%) scale(1);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
        transform: translateY(-50%) scale(1.1);
    }
}

.curtain-container.open .curtain-left {
    transform: translateX(-100%) rotateY(-15deg);
}

.curtain-container.open .curtain-right {
    transform: translateX(100%) rotateY(15deg);
}

/* ===== AJUSTES DE GRID Y LAYOUT ===== */
#nomineesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
    width: 100%;
}

/* Asegurar que el contenedor de resultados ocupe espacio completo */
#resultsList {
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ajustar el stage para que no se sobrepongan elementos */
.stage {
    position: relative;
    width: 100%;
    max-width: 1000px;
    min-height: 600px; /* Aumentado */
    background: linear-gradient(180deg, 
        rgba(20, 20, 40, 0.95) 0%,
        rgba(10, 10, 20, 0.98) 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Contenedor para lista de todos los votos */
.all-votes-container {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.votes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.votes-table th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--gold);
    font-weight: bold;
}

.votes-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--silver);
}

.votes-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.votes-table .position-1 {
    color: var(--gold);
    font-weight: bold;
}

.votes-table .position-2 {
    color: var(--silver);
    font-weight: bold;
}

.votes-table .position-3 {
    color: var(--bronze);
    font-weight: bold;
}

.medal-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.vote-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.vote-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.vote-fill.position-1 {
    background: linear-gradient(90deg, var(--gold), #FFED4E);
}

.vote-fill.position-2 {
    background: linear-gradient(90deg, var(--silver), #E0E0E0);
}

.vote-fill.position-3 {
    background: linear-gradient(90deg, var(--bronze), #E6A65C);
}

.vote-fill.position-other {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Botón para ver todos los votos */
.btn-show-all-votes {
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.8),
        rgba(118, 75, 162, 0.8)) !important;
    color: white !important;
    border: 2px solid rgba(102, 126, 234, 0.5) !important;
    padding: 12px 25px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 15px 0 !important;
}

.btn-show-all-votes:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
    border-color: var(--gold) !important;
}

/* ===== ANIMACIÓN PARA POMO DE TELÓN ===== */
@keyframes curtainKnobGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                    inset 0 0 10px rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(1);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9),
                    inset 0 0 20px rgba(255, 255, 255, 0.6);
        transform: translateY(-50%) scale(1.1);
    }
}

/* ===== ESTILOS PARA EL PODIO COMPLETO ===== */
.participant-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out forwards;
}

.participant-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.position-badge {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin: 0 auto 10px auto;
    font-weight: bold;
}

.position-4 .position-badge { background: #4CAF50; }
.position-5 .position-badge { background: #2196F3; }
.position-6 .position-badge { background: #9C27B0; }
.position-7 .position-badge { background: #FF9800; }
.position-8 .position-badge { background: #795548; }
.position-9 .position-badge { background: #607D8B; }
.position-10 .position-badge { background: #E91E63; }
.position-11 .position-badge { background: #00BCD4; }
.position-12 .position-badge { background: #8BC34A; }
.position-13 .position-badge { background: #FF5722; }

/* Grid responsivo */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Estilos para distribución de votos */
.distribution-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.distribution-label {
    color: var(--silver);
    font-weight: bold;
    min-width: 100px;
}

.distribution-value {
    color: var(--silver);
    min-width: 80px;
    text-align: right;
}

/* ===== ANIMACIONES PARA MODAL DE FRASES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== ESTILOS PARA FRASES EN RESULTADOS ===== */
.duo-item {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1), 
        rgba(118, 75, 162, 0.05));
    border-left: 5px solid #667eea;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    animation: fadeInUp 0.6s ease-out forwards;
}

.frase-item {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(212, 175, 55, 0.05));
    border-left: 5px solid var(--gold);
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    animation: fadeInUp 0.6s ease-out forwards;
}

.duo-text, .frase-text {
    font-style: italic;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.duo-text::before {
    content: '👯‍♂️';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.5rem;
}

.frase-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--gold);
    font-family: Georgia, serif;
}

.duo-meta, .frase-meta {
    display: flex;
    justify-content: space-between;
    color: var(--silver);
    font-size: 0.9rem;
    font-style: italic;
}

/* Añade al final de style.css */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    pointer-events: none;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Estilo para botones del admin */
.btn-diagnostic, .btn-results, .btn-export, .btn-import, .btn-reset {
    position: relative;
}

/* Solo mostrar cuando tenga display: block explícito */
#adminPanel[style*="display: block"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* Modal de contraseña - OCULTO POR DEFECTO */
#passwordModal {
    display: none !important;
}

/* Estilo para el modal de contraseña cuando se muestra */
#passwordModal[style*="display: flex"] {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Botón de admin en footer - siempre visible */
.btn-admin {
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Animación para shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Botones de fase */
.btn-phase {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.btn-phase:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ESTILOS ESPECÍFICOS PARA PANEL ADMIN VISIBLE */
.admin-panel-visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98), rgba(15, 15, 25, 0.99)) !important;
    padding: 30px !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 800px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    border: 3px solid var(--gold) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8) !important;
}

/* Remover cualquier regla que pueda estar ocultando el panel */
#adminPanel:not(.admin-panel-visible) {
    display: none !important;
}