/* Estilos personalizados para la página de números en inglés */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-fluid {
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    backdrop-filter: blur(10px);
}

header {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

header h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    color: rgba(255, 255, 255, 0.9);
}

/* Estilos para las tarjetas de números */
.number-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.number-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.number-card:hover::before {
    left: 100%;
}

.number-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
}

.number-card:active {
    transform: translateY(-5px) scale(1.02);
}

.number-card.playing {
    background: linear-gradient(145deg, #28a745, #20c997);
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Estilos para el número en inglés */
.english-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.number-card:hover .english-number {
    color: #3498db;
    transform: scale(1.1);
}

.number-card.playing .english-number {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Estilos para la traducción en español */
.spanish-number {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.number-card:hover .spanish-number {
    color: #2c3e50;
    transform: scale(1.05);
}

.number-card.playing .spanish-number {
    color: rgba(255, 255, 255, 0.9);
}

/* Icono de audio */
.audio-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
    color: #3498db;
}

.number-card:hover .audio-icon {
    opacity: 1;
}

.number-card.playing .audio-icon {
    opacity: 1;
    color: white;
    animation: bounce 0.6s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive design */
@media (max-width: 768px) {
    .number-card {
        min-height: 120px;
        padding: 15px;
    }
    
    .english-number {
        font-size: 2rem;
    }
    
    .spanish-number {
        font-size: 1rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .number-card {
        min-height: 100px;
        padding: 10px;
    }
    
    .english-number {
        font-size: 1.8rem;
    }
    
    .spanish-number {
        font-size: 0.9rem;
    }
    
    header {
        margin: 10px;
        padding: 20px 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* Animación de carga para las tarjetas */
.number-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.number-card:nth-child(1) { animation-delay: 0.1s; }
.number-card:nth-child(2) { animation-delay: 0.2s; }
.number-card:nth-child(3) { animation-delay: 0.3s; }
.number-card:nth-child(4) { animation-delay: 0.4s; }
.number-card:nth-child(5) { animation-delay: 0.5s; }
.number-card:nth-child(6) { animation-delay: 0.6s; }
.number-card:nth-child(7) { animation-delay: 0.7s; }
.number-card:nth-child(8) { animation-delay: 0.8s; }
.number-card:nth-child(9) { animation-delay: 0.9s; }
.number-card:nth-child(10) { animation-delay: 1.0s; }
.number-card:nth-child(11) { animation-delay: 1.1s; }
.number-card:nth-child(12) { animation-delay: 1.2s; }
.number-card:nth-child(13) { animation-delay: 1.3s; }
.number-card:nth-child(14) { animation-delay: 1.4s; }
.number-card:nth-child(15) { animation-delay: 1.5s; }
.number-card:nth-child(16) { animation-delay: 1.6s; }
.number-card:nth-child(17) { animation-delay: 1.7s; }
.number-card:nth-child(18) { animation-delay: 1.8s; }
.number-card:nth-child(19) { animation-delay: 1.9s; }
.number-card:nth-child(20) { animation-delay: 2.0s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el footer */
footer { 
    background: rgba(52, 73, 94, 0.1); 
    border-radius: 15px; 
    margin: 20px; 
    backdrop-filter: blur(10px); 
}
