/* ========================
   F1 MANAGER - STYLES.CSS
   ======================== */

/* ========================
   1. ESTILOS GENERALES Y PREVENCIÓN DE ZOOM
   ======================== */
html, body {
    touch-action: manipulation;
    overscroll-behavior: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* ========================
   2. ESTILOS DE LOGIN
   ======================== */
.login-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #15151e 0%, #1a1a2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: rgba(42, 42, 56, 0.9);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 2px solid #e10600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.login-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    background: linear-gradient(90deg, #e10600, #00d2be);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.login-header p {
    color: #888;
    font-size: 0.9rem;
}

.login-form {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00d2be;
}

.password-input-container {
    position: relative;
}

.password-input-container input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #00d2be;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-login, .btn-register {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login {
    background: linear-gradient(135deg, #e10600, #ff4444);
    color: white;
}

.btn-register {
    background: transparent;
    border: 2px solid #00d2be;
    color: #00d2be;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.4);
}

.btn-register:hover {
    background: rgba(0, 210, 190, 0.1);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.9rem;
}

.error-message {
    background: rgba(255, 56, 96, 0.2);
    color: #ff3860;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
    border: 1px solid #ff3860;
}

.error-message.show {
    display: block;
}

.success-message {
    background: rgba(0, 163, 92, 0.2);
    color: #00a35c;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
    border: 1px solid #00a35c;
}

.success-message.show {
    display: block;
}
/* Clasificación Selector */
.clasificacion-selector {
    margin: 20px 0;
    padding: 15px;
    background: rgba(20, 25, 35, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(100, 100, 120, 0.3);
}

.selector-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-selector-tipo {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(40, 45, 60, 0.9), rgba(30, 35, 50, 0.9));
    color: #aaa;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    min-width: 160px;
    justify-content: center;
}

.btn-selector-tipo:hover {
    background: linear-gradient(135deg, rgba(50, 55, 70, 0.9), rgba(40, 45, 60, 0.9));
    color: #fff;
    transform: translateY(-2px);
}

.btn-selector-tipo.active {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}
/* Estilos para los nuevos tipos de clasificación */
.celda-aciertos,
.celda-carreras {
    font-weight: 600;
    text-align: right;
    padding: 12px 20px;
    color: #00d2be;
    font-size: 1.1rem;
}

.celda-aciertos .valor-aciertos,
.celda-carreras .valor-carreras {
    background: rgba(0, 210, 190, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Ajustes para los botones del selector */
.selector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-selector-tipo {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-selector-tipo i {
    font-size: 0.9rem;
}

.btn-selector-tipo:hover {
    background: rgba(0, 210, 190, 0.1);
    border-color: #00d2be;
    color: #00d2be;
}

.btn-selector-tipo.active {
    background: #00d2be;
    border-color: #00d2be;
    color: #0a0a14;
    font-weight: 600;
}
/* Columna de vuelta */
.celda-vuelta {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #00BCD4;
    font-size: 1.1em;
}

.valor-vuelta {
    font-family: 'Courier New', monospace;
}

.tab-btn-salir {
    background: rgba(225, 6, 0, 0.15) !important;
    border: 1px solid rgba(225, 6, 0, 0.4) !important;
    color: #e10600 !important;
}

.tab-btn-salir:hover {
    background: rgba(225, 6, 0, 0.25) !important;
    border-color: #e10600 !important;
}

.tab-btn-salir.active {
    background: rgba(225, 6, 0, 0.3) !important;
    border-color: #e10600 !important;
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.3);
}

/* === BOTONES SECUNDARIOS (Mercado, Pronósticos, etc) === */
.tabs-secundarias {
    display: flex;
    background: #0f3460;
    border-bottom: 2px solid rgba(0, 210, 190, 0.3);
    padding: 8px 5px;
    z-index: 998;
    gap: 6px;
}

.tab-btn-secundario {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 190, 0.1);
    border: 1px solid rgba(0, 210, 190, 0.3);
    border-radius: 8px;
    color: #00d2be;
    padding: 6px 4px;
    font-size: 0.7rem;
    cursor: pointer;
    min-height: 45px;
    width: 100%;
    transition: all 0.2s ease;
}

.tab-btn-secundario:hover {
    background: rgba(0, 210, 190, 0.2);
}

.tab-btn-secundario.active {
    background: rgba(0, 210, 190, 0.3);
    color: white;
}

/* ESTILO ESPECIAL PARA BOTÓN SALIR */
.tab-btn-secundario.tab-btn-salir {
    background: rgba(225, 6, 0, 0.1);
    border-color: rgba(225, 6, 0, 0.3);
    color: #ff4444;
}

.tab-btn-secundario.tab-btn-salir:hover {
    background: rgba(225, 6, 0, 0.2);
}

.tab-btn-secundario.tab-btn-salir.active {
    background: rgba(225, 6, 0, 0.3);
    color: white;
}
.btn-pieza-50.bloqueado {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 0, 0, 0.1) !important;
    border-color: #e10600 !important;
}

.btn-pieza-50.bloqueado i.fa-spinner {
    animation: fa-spin 1s infinite linear;
}
/* ========================
   3. ESTILOS DE REGISTRO
   ======================== */
.register-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #15151e 0%, #1a1a2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.register-container {
    background: rgba(42, 42, 56, 0.9);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 2px solid #00d2be;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.register-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    background: linear-gradient(90deg, #00d2be, #e10600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.register-header p {
    color: #888;
    font-size: 0.9rem;
}

.back-button {
    background: transparent;
    border: none;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-button:hover {
    color: #00d2be;
}

.register-form {
    margin-bottom: 25px;
}

.register-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-validate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.register-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d2be, #00a35c);
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.register-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 190, 0.4);
}

.register-button:disabled {
    background: linear-gradient(135deg, #666, #888);
    cursor: not-allowed;
    opacity: 0.6;
}

.register-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.9rem;
}

/* ========================
   4. ESTILOS DE PRODUCCIÓN/TALLER
   ======================== */
/* Grid de producción como estrategas */
/* Grid de producción como estrategas */
.produccion-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto auto !important; /* CAMBIADO: auto en lugar de 80px */
    row-gap: 8px !important;
    align-content: start !important;
    padding: 4px;
    gap: 4px !important;
    height: auto !important; /* CAMBIADO: auto en lugar de 170px */
    min-height: unset !important;
    min-width: unset !important;
}

.produccion-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px !important; /* REDUCIDO: de 8px a 6px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 70px !important; /* REDUCIDO: de 80px a 70px */
    min-height: 70px !important;
    margin-bottom: 0 !important;
}

.produccion-slot:hover {
    border-color: rgba(0, 210, 190, 0.4);
    background: rgba(0, 210, 190, 0.05);
    transform: translateY(-1px);
}

.slot-content {
    text-align: center;
    width: 100%;
}

.slot-content i {
    font-size: 1.1rem;
    color: #00d2be;
    margin-bottom: 5px;
}

.slot-content span {
    display: block;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.1;
}

/* Estilo cuando hay producción activa */
.produccion-activa {
    border-color: rgba(0, 210, 190, 0.25);
    background: rgba(0, 210, 190, 0.04);
}

.produccion-lista {
    border-color: #4CAF50 !important;
    background: rgba(76, 175, 80, 0.15) !important;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.produccion-info {
    width: 100%;
    text-align: center;
}

.produccion-nombre {
    display: block;
    font-weight: bold;
    font-size: 0.75rem;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.produccion-tiempo {
    display: block;
    font-size: 0.65rem;
    color: #00d2be;
    margin-bottom: 1px;
    line-height: 1;
}

.produccion-lista-text {
    color: #4CAF50;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.produccion-icon {
    font-size: 1.1rem;
    margin-bottom: 5px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================
   5. ESTILOS PARA PESTAÑA FABRICACIÓN (TALLER)
   ======================== */
/* Grid de fabricación con 8 áreas */
.grid-8-fabricacion {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.area-fabricacion {
    background: rgba(42, 42, 56, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.area-fabricacion:hover {
    border-color: #00d2be;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 190, 0.2);
}

.area-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.area-icon {
    font-size: 2rem;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 210, 190, 0.1);
}

.area-info {
    flex: 1;
}

.area-nombre {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 5px;
}

.area-nivel {
    color: #00d2be;
    font-size: 0.9rem;
}

/* Grid de calidad 1x5 */
.calidad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas en móviles pequeños */
    gap: 6px !important;
    margin: 15px 0;
    flex: 1;
}

.calidad-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 4px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 65px !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calidad-slot.vacio:hover {
    border-color: rgba(0, 210, 190, 0.4);
    background: rgba(0, 210, 190, 0.05);
}

.calidad-slot.ocupado {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.1);
}

.calidad-slot.ocupado:hover {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.15);
}

.calidad-numero {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.calidad-vacia {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.calidad-pieza {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pieza-icon {
    font-size: 1.1rem !important;
    margin-bottom: 5px;
    color: #4CAF50;
}

.pieza-nivel {
    font-size: 0.85rem !important;
    color: white;
    font-weight: bold;
    margin-bottom: 2px;
}

.pieza-puntos {
    font-size: 0.75rem !important;
    color: #FFD700;
}

.pieza-fabricando {
    border-color: #FF9800 !important;
    background: rgba(255, 152, 0, 0.1) !important;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

.btn-fabricar-area {
    margin-top: auto;
    padding: 10px 15px;
    background: linear-gradient(135deg, #00d2be, #009688);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-fabricar-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 190, 0.4);
}

.btn-fabricar-area:disabled {
    background: linear-gradient(135deg, #666, #888);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-fabricar-area.fabricando {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 1200px) {
    .grid-8-fabricacion {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-8-fabricacion {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-8-fabricacion {
        grid-template-columns: 1fr;
    }
    
    .area-fabricacion {
        height: auto;
        min-height: 220px;
    }
}

/* ========================
   6. ESTILOS DEL TUTORIAL
   ======================== */
.tutorial-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.tutorial-container {
    background: rgba(21, 21, 30, 0.98);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    height: 85vh;
    border: 3px solid #00d2be;
    box-shadow: 0 25px 60px rgba(0, 210, 190, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Contenido sin scroll */
.tutorial-content-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 5px 2px;
    margin: 2px 0;
    max-height: calc(85vh - 140px);
}

.tutorial-content-grid {
    max-height: 100%;
    overflow: visible;
}

/* Botones siempre en mismo sitio */
.tutorial-actions-bottom {
    flex-shrink: 0;
    padding: 10px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background: rgba(21, 21, 30, 0.98);
    position: relative;
}

.tutorial-progress-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 5px;
    flex-shrink: 0;
}

.progress-step-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number-horizontal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.progress-step-horizontal.active .step-number-horizontal {
    background: linear-gradient(135deg, #00d2be, #009688);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 210, 190, 0.7);
    border: 2px solid white;
}

.progress-step-horizontal.completed .step-number-horizontal {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.grid-6-columns, .grid-4-columns, .grid-3-columns {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.grid-6-columns { grid-template-columns: repeat(2, 1fr); }
.grid-4-columns { grid-template-columns: repeat(2, 1fr); }
.grid-3-columns { grid-template-columns: repeat(3, 1fr); }

.grid-11-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columnas para PC */
    gap: 8px !important;
    margin-top: 10px !important;
    height: 100px;
    align-items: stretch;
}

/* Para móviles (≤768px): 4 columnas */
@media (max-width: 768px) {
    .grid-11-columns {
        grid-template-columns: repeat(4, 1fr) !important; /* 4 columnas en móvil */
        height: auto !important;
        min-height: 120px; /* Ajusta según necesites */
    }
}

/* Botones pasos 2, 3, 4 - sin animaciones, sin clic */
.grid-btn-big {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 8px;
    text-align: left;
    cursor: default !important;
    min-height: 60px;
    display: flex;
    align-items: center;
    pointer-events: none !important;
    gap: 12px;
}
.estrellas-display-compacto {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 4px 10px;
    color: #FFD700;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    user-select: none;
}

.estrellas-display-compacto:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

.estrellas-display-compacto:active {
    transform: translateY(0);
    background: rgba(255, 215, 0, 0.3);
}

.estrellas-display-compacto i {
    font-size: 0.9rem;
}
/* Quitar hover y transiciones */
.grid-btn-big:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
}

.grid-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 25px;
    text-align: center;
}

.grid-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
}

.grid-desc {
    color: #aaa;
    font-size: 0.7rem;
    line-height: 1.1;
    display: block;
}

.area-grid-card {
    background: rgba(42, 42, 56, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px !important;
    text-align: left;
    min-height: 70px !important;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Quitar hover */
.area-grid-card:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.area-grid-icon {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 25px;
}

.area-grid-content {
    flex: 1;
}

.area-grid-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: white;
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;
    line-height: 1.1;
}

.area-grid-desc {
    color: #aaa;
    font-size: 0.65rem !important;
    margin-bottom: 4px !important;
    line-height: 1.1;
}

.area-grid-stats {
    display: none !important;
}

.area-grid-sub {
    color: #aaa;
    font-size: 0.6rem;
    margin-top: 2px;
    font-style: italic;
    display: block;
}

/* Paso 5 - Día 1 destacado */
.dia-numero-simulacion {
    background: #e10600;
    color: white;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.dia-titulo-simulacion {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: white;
    margin: 5px 0;
}

.dia-descripcion {
    color: #ccc;
    font-size: 0.85rem;
}

/* Botones de estratega - más pequeños y cuadrados */
.estratega-tutorial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    text-align: left;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.estratega-icon-tut {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: center;
}

.estratega-nombre-tut {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    margin-bottom: 3px;
    line-height: 1.1;
}

.estratega-especialidad {
    color: #aaa;
    font-size: 0.65rem;
    margin-bottom: 6px;
    flex: 1;
    line-height: 1.1;
}

.estratega-bono, .estratega-sueldo {
    font-size: 0.65rem;
    margin: 2px 0;
}

.estratega-ejemplo {
    font-size: 0.6rem;
    color: #888;
    font-style: italic;
    margin-top: 4px;
}

/* Botón de acción en posición fija */
.tutorial-accion-practica {
    display: none;
    position: absolute;
    bottom: 70px;
    left: 20px;
    right: 20px;
    z-index: 10;
    margin: 0;
}

.tutorial-accion-practica.show {
    display: block;
}

.btn-tutorial-accion-grande {
    background: linear-gradient(135deg, #00d2be, #009688);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

/* Paso 6 - Botones de fabricación pequeños */
.fabricacion-tutorial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    text-align: left;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.fab-icon-tut {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: center;
}

.fab-nombre-tut {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    margin-bottom: 3px;
    line-height: 1.1;
}

.fab-desc-tut {
    color: #aaa;
    font-size: 0.65rem;
    margin-bottom: 6px;
    flex: 1;
    line-height: 1.1;
}

.fab-puntos-tut, .fab-calidad-tut {
    font-size: 0.65rem;
    margin: 2px 0;
}

.fab-accion-tut {
    background: rgba(0, 210, 190, 0.2);
    color: #00d2be;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 0.65rem;
    margin-top: 6px;
    border: 1px solid rgba(0, 210, 190, 0.5);
}

/* Paso 7 - Botones de pronóstico pequeños */
.pronostico-tutorial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    text-align: left;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pronostico-icon-tut {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: center;
}

.pronostico-nombre-tut {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    margin-bottom: 3px;
    line-height: 1.1;
}

.pronostico-pregunta {
    color: #aaa;
    font-size: 0.65rem;
    margin-bottom: 8px;
    flex: 1;
    line-height: 1.1;
}

.pronostico-opciones {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 6px 0;
}

.opcion-tut {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.65rem;
    min-width: 35px;
    text-align: center;
}

.pronostico-puntos {
    font-size: 0.65rem;
    margin-top: 5px;
}

.opcion-tut.seleccionado {
    background: #00d2be;
    color: white;
    font-weight: bold;
}

/* Paso 8 - Botón siguiente condicional */
.btn-simular-carrera {
    background: linear-gradient(135deg, #e10600, #ff4444);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin: 10px 0;
    font-size: 0.9rem;
}

/* Ocultar botón siguiente inicialmente en paso 8 */
.btn-tutorial-next-large.hidden {
    display: none;
}

/* ===== ESTILOS BASE PARA AMBOS ===== */
.boton-area-montada, .boton-area-vacia {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    padding: 8px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    height: 85px !important;
    min-height: 85px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* ===== SOLO PARA PIEZAS MONTADAS (EQUIPADAS) ===== */
.boton-area-montada {
    border: 2px solid white !important;  /* ← LÍNEA LLENA BLANCA 2px */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.25) 100%) !important;
    color: white !important;
}

.boton-area-montada:hover {
    border-color: white !important;  /* ← MANTENER BLANCO EN HOVER */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.35) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

/* ===== SOLO PARA HUECOS VACÍOS ===== */
.boton-area-vacia {
    border: 2px dashed rgba(255, 255, 255, 0.2) !important;  /* ← PUNTEADO GRIS */
    background: rgba(100, 100, 100, 0.1) !important;
    color: #888 !important;
}

.boton-area-vacia:hover {
    border-color: rgba(0, 210, 190, 0.4) !important;  /* ← AZUL EN HOVER */
    background: rgba(0, 210, 190, 0.05) !important;
    transform: translateY(-1px) !important;
}

/* ===== CLASE EXTRA PARA PIEZAS DESTRUIDAS ===== */
.boton-area-vacia.pieza-destruida {
    border: 2px dashed #e10600 !important;  /* ← ROJO PUNTEADO */
    background: rgba(225, 6, 0, 0.1) !important;
    color: #e10600 !important;
}

.boton-area-vacia.pieza-destruida:hover {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.15) !important;
}

.icono-area {
    font-size: 1.1rem !important;
    margin-bottom: 5px !important;
    color: #00d2be;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boton-area-vacia .icono-area {
    color: #666;
    font-size: 1rem !important;
}

.nombre-area {
    display: block;
    font-weight: bold;
    font-size: 0.75rem !important;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    text-align: center;
    width: 100%;
}

.nivel-pieza {
    display: block;
    font-size: 0.65rem !important;
    color: #4CAF50;
    margin-bottom: 1px;
    line-height: 1;
    font-weight: bold;
}

.puntos-pieza {
    display: block;
    font-size: 0.6rem !important;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
}

.total-puntos-montadas {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    border-radius: 20px;
    padding: 5px 15px;
    color: #FFD700;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fabricacion-card {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), rgba(0, 210, 190, 0.1));
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.fabricacion-card:hover {
    border-color: #00d2be;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 190, 0.2);
}

.fab-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.fab-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.fab-details {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
}

.fab-time, .fab-cost, .fab-points {
    font-size: 0.9rem;
    color: #aaa;
}

.fab-action {
    background: rgba(0, 210, 190, 0.2);
    color: #00d2be;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 15px;
    border: 1px solid #00d2be;
}

.dia-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 10px;
    border-left: 5px solid #00d2be;
}

.seleccionable {
    cursor: pointer;
    transition: all 0.3s;
}

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

.seleccionable.seleccionado {
    border-color: #00d2be !important;
    background: rgba(0, 210, 190, 0.15) !important;
    box-shadow: 0 0 20px rgba(0, 210, 190, 0.3);
}

.tutorial-header {
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
}

.tutorial-header h1 {
    font-size: 1.5rem;
    margin: 0;
    padding: 0 10px;
    word-wrap: break-word;
    line-height: 1.3;
}

.simulacion-carrera {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.carrera-paso {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid #00d2be;
}

.paso-icon {
    font-size: 1.8rem;
}

.resultados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.resultado-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.resultado-card.ganancia { border-top: 4px solid #4CAF50; }
.resultado-card.bono { border-top: 4px solid #00d2be; }
.resultado-card.pieza { border-top: 4px solid #ff9800; }

.resultado-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.resultado-titulo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.resultado-detalle {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.resultado-puntos {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a2e;
    border-left: 4px solid #00d2be;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #4CAF50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification.info {
    border-left-color: #2196F3;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification i {
    font-size: 1.2rem;
}

.total-ganancias {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 210, 190, 0.1));
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid #ffd700;
}

.total-titulo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 10px;
}

.total-puntos {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    margin: 10px 0;
    font-family: 'Orbitron', sans-serif;
}

.total-dinero {
    font-size: 1.3rem;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 5px;
}

.total-conversion {
    color: #aaa;
    font-size: 0.9rem;
}

.nuevo-presupuesto {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.presupuesto-inicial, .presupuesto-ganancia, .presupuesto-gastos {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    color: #aaa;
    font-size: 0.9rem;
}

.presupuesto-final {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    color: white;
    font-weight: bold;
}

.completado-celebracion {
    text-align: center;
    margin: 20px 0;
}

.celebracion-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

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

.celebracion-sub {
    color: #00d2be;
    font-size: 1.1rem;
    margin-top: 10px;
}

.resumen-final {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.resumen-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
}

.escuderia-destacada {
    color: #00d2be;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 210, 190, 0.7);
    display: inline-block;
    margin: 0 5px;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(0, 210, 190, 0.7); }
    to { text-shadow: 0 0 20px rgba(0, 210, 190, 1), 0 0 30px rgba(0, 210, 190, 0.5); }
}

.resumen-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(0, 210, 190, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primeros-pasos-reales {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.pasos-reales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.paso-real {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #00d2be;
    font-size: 0.9rem;
}

.despedida-final {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), rgba(0, 210, 190, 0.1));
    border-radius: 15px;
    margin-top: 20px;
}

.equipo-nombre-final {
    font-size: 1.1rem;
    color: #00d2be;
    margin-top: 12px;
    font-family: 'Orbitron', sans-serif;
}

.btn-tutorial-prev {
    background: transparent;
    border: 2px solid #888;
    color: #888;
    padding: 12px 25px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
}

.btn-tutorial-prev:hover {
    border-color: #00d2be;
    color: #00d2be;
    transform: translateY(-3px);
}

.btn-tutorial-next-large {
    background: linear-gradient(135deg, #00d2be, #009688);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    box-shadow: 0 10px 25px rgba(0, 210, 190, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-tutorial-next-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 210, 190, 0.6);
    background: linear-gradient(135deg, #00e6cc, #00a895);
}

.spacer {
    width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .tutorial-container {
        height: 80vh;
        padding: 15px;
        margin: 10px;
    }
    
    .tutorial-content-wrapper {
        max-height: calc(80vh - 130px);
    }
    
    .grid-4-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .area-grid-card {
        min-height: 60px !important;
        padding: 4px !important;
    }
    
    .area-grid-icon {
        font-size: 1rem !important;
        width: 20px !important;
    }
    
    .area-grid-name {
        font-size: 0.7rem !important;
    }
    
    .area-grid-desc {
        font-size: 0.6rem !important;
        display: inline !important;
    }
    
    .area-grid-stats {
        font-size: 0.6rem !important;
        padding: 1px 4px !important;
    }
    
    .grid-btn-big, .area-grid-card, .estratega-tutorial-card, 
    .fabricacion-tutorial-card, .pronostico-tutorial-card {
        min-height: auto;
        padding: 6px;
    }
    
    .tutorial-header h1 {
        font-size: 1.2rem;
        padding: 0 5px;
    }
    
    .btn-tutorial-next-large, .btn-tutorial-prev {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .step-number-horizontal {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .pronostico-opciones {
        flex-wrap: wrap;
    }
    
    .opcion-tut {
        flex: 1;
        min-width: auto;
    }
    
    .tutorial-accion-practica {
        bottom: 60px;
        left: 15px;
        right: 15px;
    }
    .three-columns-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        height: auto !important;
    }
    
    .col-estrategas, .col-countdown, .col-fabrica {
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
    }
    
    html, body {
        position: relative !important;
        overflow-y: auto !important;
    }
    
    #app {
        height: auto !important;
        min-height: 100vh !important;
    }
}

/* ======================== */
/* ======================== */
/* COMPONENTE ÚLTIMO TIEMPO F1 - VERSIÓN MEJORADA */
/* ======================== */
.ultimo-tiempo-f1 {
    background: linear-gradient(135deg, #8B0000 0%, #A00000 50%, #8B0000 100%);
    border: 2px solid #FFD700;
    border-radius: 8px;
    margin: 6px 8px 8px 8px;
    padding: 8px 10px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 
        0 4px 12px rgba(139, 0, 0, 0.4),
        inset 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 65px;
    display: flex;
    align-items: center;
}

.ultimo-tiempo-f1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, #FFFFFF, #FFD700, transparent);
    animation: scan-line 2.5s infinite linear;
}

.tiempo-f1-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.tiempo-f1-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.tiempo-f1-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
}

.tiempo-f1-valor {
    font-size: 1.7rem;
    font-weight: bold;
    color: white;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    line-height: 1;
}

.tiempo-f1-pista {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.tiempo-f1-boton {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    color: #FFD700;
    border: 1px solid #FFD700;
    border-radius: 5px;
    padding: 6px 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    height: 36px; /* Mitad del alto aproximado */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 110px; /* Ancho mínimo para "NUEVA PRUEBA" */   
    text-transform: uppercase;
}

.tiempo-f1-boton:hover {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    border-color: #FFED4E;
}

.tiempo-f1-boton:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tiempo-f1-boton i {
    font-size: 0.9rem;
    color: #FFD700;
}

.tiempo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    color: white;
    font-size: 0.9rem;
    width: 100%;
}

.tiempo-sin-datos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    gap: 8px;
    width: 100%;
}

.tiempo-sin-datos-icon {
    font-size: 1.8rem;
    margin-bottom: 3px;
}

.tiempo-sin-datos-text {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.tiempo-sin-datos-text small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 2px;
}

.tiempo-f1-detalles {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
}

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

/* Animación para nuevo récord */
@keyframes new-record-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(255, 215, 0, 0); }
}

.nuevo-record {
    animation: new-record-pulse 2s infinite;
}

.record-badge {
    background: #FFD700;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    margin-left: 6px;
    text-transform: uppercase;
}

/* Responsive para móviles - VERSIÓN CORREGIDA */
@media (max-width: 768px) {
    .ultimo-tiempo-f1 {
        margin: 6px 8px;
        padding: 10px;
    }
    
    .tiempo-f1-content {
        gap: 8px;
    }
    
    .tiempo-f1-valor {
        font-size: 1.4rem;
    }
    
    .tiempo-f1-boton {
        padding: 5px 10px;
        font-size: 0.7rem;
        height: 36px;
    }
    
    .tiempo-f1-label {
        font-size: 0.65rem;
    }
}


/* ======================== */

@media (max-width: 480px) {
    .tutorial-container {
        height: 75vh;
        padding: 10px;
    }
    
    .tutorial-content-wrapper {
        max-height: calc(75vh - 120px);
    }
    
    .tutorial-header h1 {
        font-size: 1rem;
    }
    
    .btn-tutorial-next-large, .btn-tutorial-prev {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-height: 35px;
    }
    
    .step-number-horizontal {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .grid-title, .area-grid-name, .estratega-nombre-tut, 
    .fab-nombre-tut, .pronostico-nombre-tut {
        font-size: 0.7rem;
    }
    
    .grid-desc, .area-grid-desc, .estratega-especialidad, 
    .fab-desc-tut, .pronostico-pregunta {
        font-size: 0.65rem;
    }
    
    .resultados-grid {
        grid-template-columns: 1fr;
    }
    
    .resumen-final {
        grid-template-columns: 1fr;
    }
    
    .pasos-reales-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-accion-practica {
        bottom: 55px;
        left: 10px;
        right: 10px;
    }
    
    .grid-4-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
    }
    
    .area-grid-card {
        min-height: 50px !important;
        padding: 3px !important;
    }
    
    .area-grid-name {
        font-size: 0.65rem !important;
    }
    
    .area-grid-desc {
        font-size: 0.55rem !important;
    }
    
    .area-grid-stats {
        font-size: 0.55rem !important;
        padding: 1px 3px !important;
    }
}

.tutorial-content-wrapper {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.logout-btn-visible {
    background: rgba(225, 6, 0, 0.2);
    border: 1px solid rgba(225, 6, 0, 0.4);
    color: #e10600;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn-visible:hover {
    background: rgba(225, 6, 0, 0.3);
    transform: translateY(-2px);
}

/* ========================
   7. ESTILOS COMPACTOS DEL DASHBOARD
   ======================== */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
}

.dashboard-header-compacto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(21, 21, 30, 0.95);
    border-bottom: 2px solid rgba(0, 210, 190, 0.3);
    padding: 8px 15px;
    height: 50px;
    flex-shrink: 0;
}

/* Contenedor izquierdo: Logo y dinero */
.header-left-compacto {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo-compacto {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: #00d2be;
    font-size: 1rem;
    white-space: nowrap;
}

.money-display-compacto {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 5px 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: #FFD700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Contenedor central: Tabs */
.tabs-compactas {
    display: flex;
    gap: 4px !important;
    flex: 2;
    justify-content: center;
    min-width: 0;
    padding-bottom: 8px !important;
}

.tab-btn-compacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 190, 0.1);  /* Mismo fondo */
    border: 1px solid rgba(0, 210, 190, 0.3);  /* Mismo borde */
    border-radius: 8px;  /* Mismo radio */
    color: #00d2be;  /* Mismo color de texto */
    padding: 6px 4px;  /* Mismo padding */
    font-size: 0.7rem;  /* Mismo tamaño de fuente */
    cursor: pointer;
    min-height: 45px;  /* Misma altura mínima */
    width: 100%;  /* Mismo ancho */
    transition: all 0.2s ease;  /* Misma transición */
    border: none;  /* IMPORTANTE: elimina cualquier borde por defecto */
    outline: none;  /* Elimina outline por defecto */
}

.tab-btn-compacto.active {
    background: rgba(0, 210, 190, 0.2);
    border-color: #00d2be;
    color: white;
    font-weight: bold;
}

.tab-btn-compacto:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.tab-btn-compacto#logout-tab-btn:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: #e10600;
    transform: translateY(-2px);
}
/* Contenedor derecho: Botón salir */
.header-right-compacto {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.logout-btn-compacto {
    background: rgba(225, 6, 0, 0.1);
    border: 1px solid rgba(225, 6, 0, 0.3);
    color: #e10600;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.logout-btn-compacto:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: #e10600;
}

/* ========================
   8. ESTILOS F1 PARA COUNTDOWN
   ======================== */
.countdown-f1-container {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border: 3px solid #e10600;
    border-radius: 15px;
    padding: 10px !important;
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.3);
    height: 250px !important;
    display: flex;
    flex-direction: column;
    min-height: 240px !important;
    max-height: 280px !important;
}

/* Encabezado */
.countdown-header-f1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.countdown-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-title h2 {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 1px;
}

.countdown-title i {
    color: #e10600;
    font-size: 1.2rem;
}

.badge-gp {
    background: linear-gradient(135deg, #e10600, #ff4444);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Botón Calendario */
.btn-calendario-mini {
    background: rgba(0, 210, 190, 0.1);
    border: 2px solid #00d2be;
    color: #00d2be;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-calendario-mini:hover {
    background: rgba(0, 210, 190, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 190, 0.3);
}

/* Información de la carrera */
.carrera-info-f1 {
    margin-bottom: 5px;
}

.carrera-nombre-f1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.carrera-nombre-f1 i {
    color: #FFD700;
    font-size: 1rem;
}

.carrera-nombre-f1 span {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
}

.carrera-detalles-f1 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detalle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.75rem;
}

.detalle-item i {
    width: 16px;
    text-align: center;
    color: #00d2be;
}

/* Countdown principal */
.countdown-main-f1 {
    text-align: center;
    margin: 5px 0;
    min-height: 100px !important;
}

.countdown-label {
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.timer-container-f1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 8px 0;
}

.time-unit-f1 {
    text-align: center;
    min-width: 45px !important;
}

.time-value-f1 {
    background: linear-gradient(135deg, #e10600, #ff4444);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem !important;
    font-weight: bold;
    padding: 4px 2px !important;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.4);
    margin-bottom: 3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.time-label-f1 {
    color: #aaa;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-separator-f1 {
    color: #e10600;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 -2px;
    text-shadow: 0 0 10px rgba(225, 6, 0, 0.7);
}

/* Estado apuestas */
.estado-apuestas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px;
    border-radius: 10px;
    margin: 5px 0;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

.estado-apuestas.abierto {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.estado-apuestas.cerrado {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
    color: #f44336;
}

.estado-apuestas i {
    font-size: 0.9rem;
}

/* Botón Pronóstico */
.btn-pronostico-f1 {
    background: linear-gradient(135deg, #00d2be, #009688);
    border: none;
    color: white;
    padding: 7px !important;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem !important;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 !important;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: auto !important;
}

.btn-pronostico-f1:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 210, 190, 0.4);
    background: linear-gradient(135deg, #00e6cc, #00a895);
}

.btn-pronostico-f1:disabled {
    background: linear-gradient(135deg, #666, #888);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Nota informativa */
.countdown-nota {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #888;
    font-size: 0.65rem;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

.countdown-nota i {
    color: #00d2be;
    font-size: 0.8rem;
}

/* Animación para el countdown */
@keyframes pulse-f1 {
    0% { text-shadow: 0 0 5px rgba(225, 6, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(225, 6, 0, 0.9); }
    100% { text-shadow: 0 0 5px rgba(225, 6, 0, 0.5); }
}

.time-value-f1 {
    animation: pulse-f1 2s infinite;
}

/* Responsive countdown */
@media (max-width: 768px) {
    .timer-container-f1 {
        gap: 5px;
    }
    
    .time-unit-f1 {
        min-width: 45px;
    }
    
    .time-value-f1 {
        font-size: 1.5rem;
        padding: 6px 4px;
    }
    
    .time-separator-f1 {
        font-size: 1.5rem;
    }
    
    .countdown-title h2 {
        font-size: 1rem;
    }
    
    .btn-calendario-mini {
        padding: 5px 10px;
        font-size: 0.6rem;
    }
}

/* ========================
   9. ESTILOS DEL TALLER MINIMALISTA
   ======================== */
.taller-minimalista {
    padding: 20px;
}

.taller-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 210, 190, 0.3);
}

.taller-header-mini h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-fabricacion {
    background: rgba(0, 210, 190, 0.2);
    color: #00d2be;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 210, 190, 0.4);
}

.area-fila-mini {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.area-titulo-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.area-icono-mini {
    font-size: 1.5rem;
}

.area-nombre-mini {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: white;
    font-weight: bold;
    flex: 1;
}

.area-nivel-mini {
    background: rgba(0, 210, 190, 0.15);
    color: #00d2be;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.botones-calidad-mini {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-pieza-mini {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.btn-pieza-mini.vacio {
    border-color: rgba(255, 255, 255, 0.2);
    color: #aaa;
}

.btn-pieza-mini.vacio:not(:disabled):hover {
    border-color: #00d2be;
    color: #00d2be;
    background: rgba(0, 210, 190, 0.1);
    transform: translateY(-3px);
}

.btn-pieza-mini.vacio:disabled {
    border-color: rgba(255, 255, 255, 0.1);
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-pieza-mini.lleno {
    border-color: rgba(76, 175, 80, 0.4);
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.btn-pieza-mini.fabricando {
    border-color: rgba(255, 152, 0, 0.4);
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
    animation: pulse-naranja 2s infinite;
}

@keyframes pulse-naranja {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

.pieza-num {
    font-size: 0.7rem;
    margin-top: 5px;
    font-weight: bold;
}

.btn-subir-nivel {
    margin-left: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-subir-nivel:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.taller-info-mini {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid #00d2be;
}

.taller-info-mini p {
    color: #ccc;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error {
    color: #ff4444;
    text-align: center;
    padding: 40px;
}

/* Responsive taller minimalista */
@media (max-width: 1200px) {
    .botones-calidad-mini {
        flex-wrap: wrap;
    }
    
    .btn-pieza-mini {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .area-fila-mini {
        padding: 10px;
    }
    
    .botones-calidad-mini {
        gap: 8px;
    }
    
    .btn-pieza-mini {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .btn-subir-nivel {
        margin-left: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* ========================
   10. ESTILOS DE ERROR Y MODALES
   ======================== */
/* Error crítico */
#escuderia-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* ========================
   11. ESTILOS DE ANIMACIONES Y EFECTOS
   ======================== */
@keyframes pulse-naranja {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}
/* Grid de 3 columnas */
.three-columns-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
    height: 280px;
}

/* Columnas del dashboard */

.col-estrategas, .col-countdown, .col-fabrica {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(0, 210, 190, 0.3);
    border-radius: 8px;
    padding: 8px;
    height: auto !important;  /* CAMBIADO: auto en lugar de 270px */
    display: flex;
    flex-direction: column;
    min-height: unset !important;  /* CAMBIADO: unset en lugar de 270px */
    overflow: hidden !important;
}
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px !important;
}
/* ========================
   SOLUCIÓN SCROLL VERTICAL
   ======================== */
.tab-content {
    max-height: calc(100vh - 180px);
    overflow-y: auto !important;
    padding: 15px;
}

.tab-content.active {
    display: block !important;
}

#tab-taller, #tab-almacen, #tab-mercado, #tab-presupuesto, #tab-clasificacion {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    padding: 15px;
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* ======================= */
/* ESTILOS CLASIFICACIÓN   */
/* ======================= */

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

.clasificacion-subtitle {
    color: #666;
    margin-top: 5px;
    font-size: 0.95rem;
}

.clasificacion-info-bar {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item i {
    font-size: 1.5rem;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.info-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}

.tabla-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ordenamiento-buttons {
    display: flex;
    gap: 10px;
}

.btn-ordenar {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-ordenar:hover {
    background: #f0f0f0;
}

.btn-ordenar.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-box .fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.tabla-contenedor-scroll {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
}

.tabla-clasificacion-simple {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tabla-clasificacion-simple thead {
    position: sticky;
    top: 0;
    background: #2c3e50;
    color: white;
    z-index: 10;
}

.tabla-clasificacion-simple th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.tabla-clasificacion-simple th:hover {
    background: #34495e;
}

.sort-icon {
    margin-left: 8px;
    font-size: 0.8rem;
}

.col-posicion {
    width: 80px;
}

.col-nombre {
    width: 50%;
}

.col-dinero {
    width: 30%;
}

.tabla-clasificacion-simple td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tabla-clasificacion-simple tbody tr:hover {
    background: #f9f9f9;
}

.mi-escuderia {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 30, 0.9)) !important;
    border-left: 4px solid #FFD700 !important; /* Borde dorado */
    font-weight: 600 !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8) !important;
}

.mi-escuderia:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 45, 0.95)) !important;
    box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.2) !important;
}
.mi-escuderia td {
    color: #f0f0f0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.mi-escuderia .celda-nombre {
    color: #FFD700 !important; /* Dorado */
    font-weight: 700 !important;
}

.mi-escuderia .celda-posicion {
    color: #FFD700 !important;
}

.mi-escuderia .celda-dinero .valor-dinero {
    color: #4CAF50 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}
.celda-posicion {
    text-align: center;
}

.numero-posicion {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
}

.top-1 .numero-posicion {
    background: #FFD700;
    color: #333;
}

.top-2 .numero-posicion {
    background: #C0C0C0;
    color: #333;
}

.top-3 .numero-posicion {
    background: #CD7F32;
    color: white;
}

.valor-dinero {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2E7D32;
}

.tabla-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.actualizar-buttons {
    text-align: center;
    margin-top: 25px;
}

.btn-actualizar {
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-actualizar:hover {
    background: #45a049;
}

.cargando-clasificacion {
    text-align: center;
    color: #666;
}

.cargando-clasificacion i {
    margin-bottom: 10px;
}

.loading-row {
    opacity: 0.7;
}

/* ========================
   RESPONSIVE PARA MÓVIL - HEADER
   ======================== */

@media screen and (max-width: 768px) {
  /* Header principal del dashboard - Reestructuración completa */
  .dashboard-header-compacto {
    flex-direction: column !important;
    padding: 10px 15px !important;
    height: auto !important;
    gap: 10px !important;
  }

  /* Fila superior: nombre de escudería y dinero */
  .header-left-compacto {
    width: 100% !important;
    justify-content: center !important; /* CAMBIADO: de space-between a center */
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(0, 210, 190, 0.2) !important;
    position: relative !important;
    padding-right: 45px !important; /* AÑADIDO: espacio para el botón de salir */
  }

  .logo-compacto {
    font-size: 1.1rem !important;
  }

  .money-display-compacto {
    font-size: 1.1rem !important;
    padding: 6px 14px !important;
  }

  /* Fila inferior: tabs con scroll horizontal */
  .tabs-compactas {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 5px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #00d2be rgba(255, 255, 255, 0.05) !important;
  }

  /* Estilo de scrollbar para móvil */
  .tabs-compactas::-webkit-scrollbar {
    height: 4px !important;
  }

  .tabs-compactas::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
  }

  .tabs-compactas::-webkit-scrollbar-thumb {
    background: #00d2be !important;
    border-radius: 10px !important;
  }

  .tab-btn-compacto {
    padding: 8px 15px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-width: fit-content !important;
  }

  /* Eliminar el contenedor derecho del header */
  .header-right-compacto {
    display: none !important;
  }

  /* Mover botón de logout al footer (o mantenerlo en header pero simplificado) */
  .logout-btn-compacto {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    padding: 5px 10px !important;
    font-size: 0.7rem !important;
    z-index: 10 !important;
  }

  /* Ajustar el dashboard content para el nuevo header */
  .dashboard-content {
    padding-top: 10px !important;
    padding: 10px !important;
  }

  /* Ajustar altura del contenido principal */
  .tab-content {
    max-height: calc(100vh - 170px) !important;
    padding: 10px !important;
  }
  .col-estrategas {
      height: auto !important;
      min-height: unset !important;
      padding: 2px !important;
      margin: 0 !important;
      max-height: fit-content !important;
      overflow: visible !important; /* Permite ver todo */
  }
  .col-estrategas .section-header {
      height: 30px !important;
      min-height: 30px !important;
      padding: 2px 8px !important;
      margin-bottom: 4px !important;
  }
  
  .col-estrategas .section-header h2 {
      font-size: 1.2rem !important;
      margin: 0 !important;
  }
  .produccion-slots {
      height: auto !important;
      min-height: auto !important;
      grid-template-rows: 65px 65px !important; /* Cambia auto auto por alturas fijas */
      gap: 3px !important;
      padding: 4px !important;
      margin: 0 !important;
  }

  .produccion-slot {
      height: 60px !important;
      min-height: 60px !important;
      padding: 3px !important;
      margin: 0 !important;
  }  
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media screen and (max-width: 480px) {
  .dashboard-header-compacto {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .logo-compacto {
    font-size: 1rem !important;
  }

  .money-display-compacto {
    font-size: 1.1rem !important;
    padding: 4px 10px !important;
  }

  .tab-btn-compacto {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    gap: 3px !important;
  }

  .logout-btn-compacto {
    top: 8px !important;
    right: 8px !important;
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
  }
}
