/* ============================================
   PREMIUM SELECT STYLING - GAMING AAA
   Glassmorphism + Neon + Glow Effects
   ============================================ */

/* ========== SELECT BASE STYLING ========== */
select#asunto {
    width: 100%;
    padding: 16px 45px 16px 18px;
    background: rgba(7, 16, 35, 0.7);
    border: 2px solid #00d9ff;
    border-radius: 12px;
    color: #e6eef7;
    font-family: 'Rajdhani', 'Space Mono', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 1L7 8L13 1' stroke='%2300d9ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 50px;
    
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ========== SELECT HOVER STATE ========== */
select#asunto:hover {
    border-color: #00ffdd;
    background-color: rgba(7, 16, 35, 0.85);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.6),
        0 0 60px rgba(0, 255, 221, 0.3),
        inset 0 0 20px rgba(0, 217, 255, 0.1),
        0 12px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* ========== SELECT FOCUS STATE ========== */
select#asunto:focus {
    border-color: #00ffdd;
    background-color: rgba(7, 16, 35, 0.9);
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.8),
        0 0 80px rgba(0, 255, 221, 0.4),
        inset 0 0 25px rgba(0, 217, 255, 0.15),
        0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ========== SELECT ACTIVE STATE ========== */
select#asunto:active {
    transform: translateY(0);
    box-shadow: 
        0 0 35px rgba(0, 217, 255, 0.7),
        0 0 70px rgba(0, 255, 221, 0.35),
        inset 0 0 30px rgba(0, 217, 255, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ========== OPTION ELEMENTS ========== */
select#asunto option {
    background: #0f1a2b;
    color: #e6eef7;
    padding: 12px 15px;
    margin: 4px 0;
    border: none;
    font-family: 'Rajdhani', 'Space Mono', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Option seleccionada */
select#asunto option:checked {
    background: linear-gradient(135deg, #00d9ff 0%, #00ffdd 100%);
    color: #0f1a2b;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

/* Option hover (en navegación) */
select#asunto option:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(0, 255, 221, 0.2));
    color: #00ffdd;
}

/* ========== PLACEHOLDER OPTION ========== */
select#asunto option[value=""] {
    color: rgba(230, 238, 247, 0.5);
    font-style: italic;
}

/* ========== DARK MODE COMPATIBILITY ========== */
@media (prefers-color-scheme: dark) {
    select#asunto {
        background-color: rgba(7, 16, 35, 0.75);
        color: #e6eef7;
        border-color: #00d9ff;
    }

    select#asunto:hover {
        background-color: rgba(7, 16, 35, 0.9);
    }

    select#asunto option {
        background: #0f1a2b;
        color: #e6eef7;
    }

    select#asunto option:checked {
        background: linear-gradient(135deg, #00d9ff 0%, #00ffdd 100%);
        color: #0f1a2b;
    }
}

@media (prefers-color-scheme: light) {
    select#asunto {
        background-color: rgba(15, 26, 43, 0.95);
        color: #e6eef7;
        border-color: #00d9ff;
    }

    select#asunto option {
        background: #0f1a2b;
        color: #e6eef7;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    select#asunto {
        padding: 14px 40px 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    select#asunto option {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    select#asunto {
        padding: 12px 38px 12px 14px;
        font-size: 15px;
        border-radius: 8px;
        background-size: 12px;
    }

    select#asunto option {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* ========== ANIMACIÓN DE ENTRADA ========== */
@keyframes selectGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(0, 217, 255, 0.2),
            0 8px 24px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 217, 255, 0.5),
            0 0 60px rgba(0, 255, 221, 0.2),
            0 12px 32px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(0, 217, 255, 0.3),
            0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

select#asunto {
    animation: selectGlow 3s ease-in-out infinite;
}

select#asunto:hover,
select#asunto:focus {
    animation: none;
}

/* ========== DISABLE STATE ========== */
select#asunto:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(7, 16, 35, 0.4);
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: none;
}

/* ========== CUSTOM STYLING PARA WEBKIT ========== */
select#asunto::-webkit-scrollbar {
    width: 12px;
}

select#asunto::-webkit-scrollbar-track {
    background: rgba(7, 16, 35, 0.5);
}

select#asunto::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d9ff, #00ffdd);
    border-radius: 6px;
}

select#asunto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ffdd, #00d9ff);
}

/* ========== INVALID STATE ========== */
select#asunto:invalid {
    border-color: #ff4655;
    box-shadow: 
        0 0 20px rgba(255, 70, 85, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

select#asunto:invalid:focus {
    border-color: #ff6b7a;
    box-shadow: 
        0 0 40px rgba(255, 70, 85, 0.6),
        0 0 80px rgba(255, 107, 122, 0.3),
        inset 0 0 25px rgba(255, 70, 85, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.5);
}
