/* ============================================================
   Entrenamiento Avanzado (trea) - Estilos del curso 90 dias
   Namespace: .trea-app
   ============================================================ */

.trea-app {
    --trea-gradiente: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --trea-rojo: #dc2626;
    --trea-dorado: #f59e0b;
    --trea-purpura: #8b5cf6;
    --trea-sombra: 0 8px 25px rgba(220,38,38,0.28);
    --trea-radio: 16px;
    --trea-trans: all 0.3s ease;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6; color: #e2e8f0;
    max-width: 650px; margin: 0 auto;
}
.trea-fase { animation: treaFadeIn 0.4s ease; }
@keyframes treaFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.trea-header { text-align: center; margin-bottom: 1.5rem; }
.trea-titulo { font-size: 1.5rem; font-weight: 700; background: var(--trea-gradiente); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.trea-subtitulo { opacity: 0.65; font-size: 0.9rem; }
.trea-loading { text-align: center; padding: 2rem; opacity: 0.5; }

.trea-modulos-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.trea-modulo-btn {
    background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2); border-radius: var(--trea-radio);
    padding: 1rem 1.2rem; cursor: pointer; color: #e2e8f0; text-align: left; transition: var(--trea-trans);
    display: flex; align-items: center; gap: 1rem;
}
.trea-modulo-btn:hover { border-color: var(--trea-rojo); transform: translateX(6px); background: rgba(220,38,38,0.1); }
.trea-mod-icon { font-size: 2rem; flex-shrink: 0; }
.trea-mod-info { flex: 1; }
.trea-mod-info strong { display: block; }
.trea-mod-dur { font-size: 0.75rem; opacity: 0.5; }
.trea-mod-flecha { font-size: 1.2rem; opacity: 0.3; }

.trea-btn-volver { background: none; border: 1px solid rgba(255,255,255,0.15); color: #e2e8f0; padding: 0.5rem 1.2rem; border-radius: 20px; cursor: pointer; font-size: 0.85rem; margin-bottom: 1.5rem; transition: var(--trea-trans); }
.trea-btn-volver:hover { border-color: var(--trea-rojo); }

.trea-modulo-header { text-align: center; margin-bottom: 1.5rem; }
.trea-mod-header-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.trea-modulo-contenido, .trea-modulo-ejercicio { margin-bottom: 1.5rem; }
.trea-modulo-contenido h3, .trea-modulo-ejercicio h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; opacity: 0.8; }
.trea-modulo-contenido p { opacity: 0.85; line-height: 1.7; }
.trea-ejercicio-box { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2); border-radius: 12px; padding: 1.2rem; }
.trea-ejercicio-box p { opacity: 0.85; line-height: 1.7; }

.trea-modulo-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.trea-btn-nav { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.25); color: #e2e8f0; padding: 0.6rem 1.2rem; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: var(--trea-trans); }
.trea-btn-nav:hover:not(:disabled) { background: rgba(220,38,38,0.2); border-color: var(--trea-rojo); }
.trea-btn-nav:disabled { opacity: 0.3; cursor: default; }

.trea-completado-box { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); border-radius: var(--trea-radio); padding: 1.5rem; text-align: center; margin-top: 1rem; }

@media (max-width: 480px) { .trea-modulo-btn { padding: 0.8rem; } .trea-modulo-nav { flex-direction: column; gap: 0.5rem; } }
@media (prefers-contrast: high) { .trea-modulo-btn { border: 2px solid white; } }
@media (prefers-reduced-motion: reduce) { .trea-fase { animation: none; } }
