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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 2.5em;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

.resultado {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideIn 0.5s ease-out;
}

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

.resultado-header {
    text-align: center;
    margin-bottom: 30px;
}

.resultado-header h2 {
    color: #333;
    font-size: 2em;
}

.resultado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.resultado-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.resultado-card:hover {
    transform: translateY(-5px);
}

.resultado-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.imc-card {
    border-left: 5px solid #4CAF50;
}

.generacion-card {
    border-left: 5px solid #2196F3;
}

.meme-card {
    border-left: 5px solid #FF9800;
}

.cancion-card {
    border-left: 5px solid #E91E63;
}

.imc-valor {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.imc-categoria {
    font-size: 1.1em;
    color: #666;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-block;
}

.generacion-valor {
    font-size: 1.5em;
    font-weight: bold;
    color: #2196F3;
}

.meme-contenido {
    font-size: 1.1em;
    color: #333;
    line-height: 1.5;
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.meme-imagen-container {
    text-align: center;
}

.meme-imagen {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.meme-imagen:hover {
    transform: scale(1.05);
}

.meme-error {
    color: #666;
    font-style: italic;
    padding: 20px;
}

.cancion-contenido {
    font-size: 1.1em;
    font-weight: 600;
    color: #E91E63;
    background: #fce4ec;
    padding: 15px;
    border-radius: 10px;
}

.cancion-info h4 {
    margin-bottom: 15px;
    color: #E91E63;
    font-size: 1.1em;
}

.youtube-player {
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.youtube-player iframe {
    border-radius: 10px;
}

.youtube-link {
    display: inline-block;
    color: #E91E63;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.youtube-link:hover {
    color: #ad1457;
    text-decoration: underline;
}

.mensaje-motivacional {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.mensaje-motivacional h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.mensaje-motivacional p {
    font-size: 1.1em;
    line-height: 1.6;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    margin-top: 10px;
}

.btn-secondary:hover {
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
}

.error {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #dc3545;
    animation: slideIn 0.5s ease-out;
}

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

.error-content h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.error-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

footer p {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .resultado-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container, .resultado {
        padding: 20px;
    }
}