:root {
    --brand-gold: #dfaf67;
    --bg-black: #050505;
    --card-bg: rgba(25, 25, 25, 0.6);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: rgba(223, 175, 103, 0.2);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    margin: 0;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efecto de luz espacial de fondo */
.glow-background {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(223, 175, 103, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.container {
    max-width: 650px;
    width: 100%;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

/* NUEVO LOGO EN TEXTO */
.logo-texto {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--brand-gold);
    letter-spacing: 6px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(223, 175, 103, 0.4);
}

.app-title { 
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 5px 0; 
    color: var(--text-white);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(223, 175, 103, 0.3);
}

.subtitle { 
    color: var(--brand-gold); 
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Diseño de tarjetas futuristas (Glassmorphism) */
.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h2 { 
    font-size: 0.9rem; 
    margin-top: 0; 
    margin-bottom: 15px; 
    color: var(--text-gray); 
    letter-spacing: 2px;
}

.botones-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Botones de selección */
.btn-opcion {
    flex: 1 1 calc(33% - 12px);
    padding: 15px 10px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-opcion:hover { 
    border-color: var(--brand-gold); 
    color: var(--text-white); 
    box-shadow: 0 0 15px rgba(223, 175, 103, 0.2);
}

.btn-opcion.seleccionado {
    background-color: var(--brand-gold);
    color: var(--bg-black);
    border-color: var(--brand-gold);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(223, 175, 103, 0.4);
}

/* Grid para Nivel e Instrumento */
.grid-2-columnas {
    display: flex;
    gap: 20px;
}
.grid-2-columnas .card {
    flex: 1;
}

/* Selectores desplegables */
.selector-moderno {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.5);
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}
.selector-moderno:focus {
    border-color: var(--brand-gold);
}
.selector-moderno option {
    background-color: var(--bg-black);
    color: var(--text-white);
}

/* Botón Principal (Generar) */
.btn-principal {
    position: relative;
    width: 100%;
    padding: 20px;
    background: transparent;
    color: var(--brand-gold);
    border: 2px solid var(--brand-gold);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 2px;
    cursor: pointer;
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-principal:hover { 
    background-color: var(--brand-gold); 
    color: var(--bg-black);
    box-shadow: 0 0 30px rgba(223, 175, 103, 0.5);
}

.oculto { display: none; }

/* Estilos de la rutina generada */
.titulo-resultado {
    color: var(--brand-gold);
    text-align: center;
    margin-bottom: 20px;
}

.paso-rutina {
    background: rgba(223, 175, 103, 0.05);
    padding: 20px;
    border-left: 4px solid var(--brand-gold);
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
}
.paso-rutina h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--brand-gold);
    font-weight: 700;
}
.paso-rutina p {
    margin: 0;
    color: var(--text-white);
    line-height: 1.6;
}

/* Adaptación para celulares */
@media (max-width: 600px) {
    .grid-2-columnas { flex-direction: column; gap: 0; }
    .btn-opcion { flex: 1 1 100%; }
}
/* Botón de YouTube automático */
.btn-youtube {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ffaaaa;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-youtube:hover {
    background-color: rgba(255, 0, 0, 0.3);
    color: white;
}
