/* === TMF: Test de Mentalidad Futbolista === */
:root {
    --tmf-bg:        #0d1126;
    --tmf-bg2:       #1a1f3a;
    --tmf-gold:      #FFD700;
    --tmf-gold-dim:  #c9a800;
    --tmf-white:     #f0f4ff;
    --tmf-gray:      #8892b0;
    --tmf-radius:    12px;
    --tmf-transition: 0.3s ease;
}

.tmf-container {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--tmf-bg);
    color: var(--tmf-white);
    border-radius: 16px;
    max-width: 720px;
    margin: 30px auto;
    min-height: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
}

.tmf-screen { display: none; }
.tmf-screen.active { display: block; }

/* ---- INTRO ---- */
.tmf-intro-inner {
    padding: 50px 40px;
    text-align: center;
}

.tmf-logo-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.4));
}

.tmf-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
    color: var(--tmf-white);
}

.tmf-title span {
    color: var(--tmf-gold);
}

.tmf-subtitle {
    color: var(--tmf-gray);
    font-size: 1rem;
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.tmf-name-group {
    margin-bottom: 28px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tmf-name-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--tmf-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.tmf-name-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--tmf-bg2);
    border: 2px solid #2a3060;
    border-radius: var(--tmf-radius);
    color: var(--tmf-white);
    font-size: 1rem;
    transition: border-color var(--tmf-transition);
    box-sizing: border-box;
}

.tmf-name-group input:focus {
    outline: none;
    border-color: var(--tmf-gold);
}

.tmf-name-error {
    display: none;
    color: #e63946;
    font-size: 0.82rem;
    margin-top: 6px;
}

.tmf-disclaimer {
    color: var(--tmf-gray);
    font-size: 0.82rem;
    margin-top: 16px;
}

/* ---- BOTONES ---- */
.tmf-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--tmf-transition);
    text-decoration: none;
}

.tmf-btn-primary {
    background: var(--tmf-gold);
    color: var(--tmf-bg);
}

.tmf-btn-primary:hover:not(:disabled) {
    background: #ffe84d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.35);
}

.tmf-btn-primary:disabled {
    background: #3a3f60;
    color: #6a7090;
    cursor: not-allowed;
}

.tmf-btn-ghost {
    background: transparent;
    color: var(--tmf-gray);
    border: 2px solid #2a3060;
}

.tmf-btn-ghost:hover {
    border-color: var(--tmf-gold);
    color: var(--tmf-gold);
}

/* ---- PROGRESO ---- */
.tmf-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 32px 0;
}

.tmf-progress-bar {
    flex: 1;
    height: 6px;
    background: #2a3060;
    border-radius: 3px;
    overflow: hidden;
}

.tmf-progress-fill {
    height: 100%;
    background: var(--tmf-gold);
    border-radius: 3px;
    width: 3.3%;
    transition: width 0.4s ease;
}

.tmf-progress-label {
    font-size: 0.82rem;
    color: var(--tmf-gray);
    white-space: nowrap;
}

/* ---- BLOQUE LABEL ---- */
.tmf-bloque-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--tmf-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px 32px 0;
}

/* ---- PREGUNTA ---- */
.tmf-question-wrap {
    padding: 24px 32px;
    min-height: 320px;
}

.tmf-question {
    animation: tmfFadeIn 0.25s ease;
}

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

.tmf-question-num {
    font-size: 0.75rem;
    color: var(--tmf-gray);
    margin-bottom: 8px;
}

.tmf-question-text {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--tmf-white);
}

.tmf-opciones {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tmf-opcion {
    background: var(--tmf-bg2);
    border: 2px solid #2a3060;
    border-radius: var(--tmf-radius);
    padding: 14px 18px;
    cursor: pointer;
    transition: all var(--tmf-transition);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.tmf-opcion:hover {
    border-color: var(--tmf-gold);
    background: #1f2545;
}

.tmf-opcion.selected {
    border-color: var(--tmf-gold);
    background: #252b50;
    color: var(--tmf-gold);
}

.tmf-opcion-letra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: #2a3060;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tmf-gray);
    transition: all var(--tmf-transition);
}

.tmf-opcion.selected .tmf-opcion-letra {
    background: var(--tmf-gold);
    color: var(--tmf-bg);
}

/* ---- NAV ---- */
.tmf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px 28px;
}

/* ---- LOADING ---- */
.tmf-loading-inner {
    padding: 80px 40px;
    text-align: center;
    color: var(--tmf-gray);
}

.tmf-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #2a3060;
    border-top-color: var(--tmf-gold);
    border-radius: 50%;
    animation: tmfSpin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes tmfSpin {
    to { transform: rotate(360deg); }
}

/* ---- RESULTADO ---- */
.tmf-resultado-inner {
    padding: 36px 40px 40px;
}

.tmf-resultado-saludo {
    text-align: center;
    color: var(--tmf-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tmf-arquetipo-card {
    background: var(--tmf-bg2);
    border: 2px solid var(--tmf-gold);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 28px;
}

.tmf-arquetipo-icono {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tmf-arquetipo-nombre {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--tmf-gold);
    margin: 0 0 12px;
}

.tmf-arquetipo-desc {
    color: var(--tmf-gray);
    line-height: 1.6;
    font-size: 0.97rem;
    margin: 0;
}

/* ---- RADAR ---- */
.tmf-radar-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 28px;
    max-width: 380px;
}

/* ---- FORTALEZAS ---- */
.tmf-fortalezas-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.tmf-fortalezas, .tmf-debilidad {
    background: var(--tmf-bg2);
    border-radius: var(--tmf-radius);
    padding: 18px;
}

.tmf-fortalezas h4, .tmf-debilidad h4 {
    color: var(--tmf-gold);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
}

.tmf-fortalezas ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tmf-fortalezas ul li {
    font-size: 0.9rem;
    color: var(--tmf-white);
    padding: 4px 0;
}

.tmf-fortalezas ul li::before {
    content: "✓ ";
    color: var(--tmf-gold);
    font-weight: 700;
}

.tmf-debilidad p {
    font-size: 0.9rem;
    color: var(--tmf-white);
    margin: 0 0 8px;
}

.tmf-recomendacion {
    font-size: 0.82rem !important;
    color: var(--tmf-gray) !important;
    line-height: 1.5;
    font-style: italic;
}

/* ---- SECCIÓN PRO ---- */
.tmf-pro-section {
    border: 1px solid #2a3060;
    border-radius: var(--tmf-radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.tmf-pro-section summary {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--tmf-gray);
    background: var(--tmf-bg2);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tmf-pro-section summary::after {
    content: "▼";
    font-size: 0.7rem;
}

.tmf-pro-section[open] summary::after {
    content: "▲";
}

.tmf-pro-content {
    padding: 18px;
    font-size: 0.88rem;
    color: var(--tmf-gray);
    line-height: 1.6;
}

.tmf-scores-detalle {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.tmf-score-item {
    text-align: center;
    background: var(--tmf-bg);
    border-radius: 8px;
    padding: 8px 4px;
}

.tmf-score-item .val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tmf-gold);
}

.tmf-score-item .dim {
    font-size: 0.7rem;
    color: var(--tmf-gray);
    margin-top: 2px;
}

/* ---- SHARE ---- */
.tmf-share-section {
    text-align: center;
    margin-bottom: 24px;
}

.tmf-share-title {
    font-size: 0.88rem;
    color: var(--tmf-gray);
    margin-bottom: 12px;
}

.tmf-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tmf-share-btn {
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--tmf-transition);
}

.tmf-share-wa  { background: #25D366; color: #fff; }
.tmf-share-fb  { background: #1877F2; color: #fff; }
.tmf-share-ig  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }

.tmf-share-btn:hover { opacity: 0.88; transform: translateY(-2px); }

.tmf-share-hint {
    font-size: 0.82rem;
    color: var(--tmf-gold);
    margin-top: 10px;
}

.tmf-reiniciar {
    display: block;
    margin: 0 auto;
    font-size: 0.88rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .tmf-intro-inner,
    .tmf-question-wrap,
    .tmf-resultado-inner { padding: 28px 20px; }
    .tmf-nav { padding: 0 20px 20px; }
    .tmf-progress-wrap { padding: 18px 20px 0; }
    .tmf-bloque-label { padding: 12px 20px 0; }
    .tmf-title { font-size: 1.5rem; }
    .tmf-fortalezas-wrap { grid-template-columns: 1fr; }
    .tmf-scores-detalle { grid-template-columns: repeat(4, 1fr); }
    .tmf-share-buttons { flex-direction: column; align-items: center; }
}
