/* ============================================================
   Evaluación - Escuelas de Golf — estilos públicos
   Scopeados a .eeg-app para evitar choques con Astra y otros temas.
   ============================================================ */

.eeg-app {
    --eeg-bg: #ffffff;
    --eeg-fg: #1f2937;
    --eeg-muted: #6b7280;
    --eeg-border: #e5e7eb;
    --eeg-border-strong: #cbd5e1;
    --eeg-radius: 8px;
    --eeg-radius-sm: 6px;
    --eeg-bg-soft: #f8fafc;
    --eeg-bg-softer: #f1f5f9;
    --eeg-a1: #0f766e; /* teal - Estructura */
    --eeg-a2: #d97706; /* ámbar - Práctica */
    --eeg-a3: #1d4ed8; /* azul - Torneos */
    --eeg-a4: #7c2d12; /* bordó - Cancha */
    --eeg-shadow: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: var(--eeg-fg) !important;
    line-height: 1.5;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.eeg-app *, .eeg-app *::before, .eeg-app *::after { box-sizing: border-box; }
.eeg-app a { text-decoration: none !important; color: var(--eeg-a3); }
.eeg-app a:hover { text-decoration: underline !important; }

.eeg-h2 { font-size: 22px !important; margin: 0 0 12px !important; color: #0f172a !important; font-weight: 600 !important; }
.eeg-h3 { font-size: 16px !important; margin: 24px 0 8px !important; color: #334155 !important; font-weight: 600 !important; }
.eeg-h4 { font-size: 14px !important; margin: 14px 0 6px !important; color: #475569 !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .4px; }
.eeg-help { color: var(--eeg-muted); font-size: 14px; margin: 8px 0; }

/* Cards */
.eeg-card {
    background: var(--eeg-bg) !important;
    border: 1px solid var(--eeg-border) !important;
    border-radius: var(--eeg-radius) !important;
    padding: 22px !important;
    margin: 18px 0 !important;
    box-shadow: var(--eeg-shadow) !important;
}

/* Botones */
.eeg-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--eeg-border-strong);
    background: #fff;
    color: var(--eeg-fg);
    transition: background .12s, border-color .12s;
    text-decoration: none !important;
    line-height: 1.3;
}
.eeg-btn:hover { background: var(--eeg-bg-softer); text-decoration: none !important; }
.eeg-btn-primary { background: #0f172a; color: #fff !important; border-color: #0f172a; }
.eeg-btn-primary:hover { background: #1e293b; border-color: #1e293b; }
.eeg-btn-ghost { background: #fff; }
.eeg-btn-link { background: transparent; border-color: transparent; color: var(--eeg-a3); }
.eeg-btn-link:hover { background: var(--eeg-bg-softer); }
.eeg-btn-small { padding: 5px 12px; font-size: 12px; }

/* Forms */
.eeg-form p { margin: 0 0 12px; }
.eeg-form label { display: block; font-size: 13px; color: #475569; margin-bottom: 4px; font-weight: 500; }
.eeg-app input[type="text"], .eeg-app input[type="password"], .eeg-app select, .eeg-app textarea {
    width: 100%;
    padding: 9px 12px !important;
    border: 1px solid var(--eeg-border-strong) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: var(--eeg-fg) !important;
    font-family: inherit !important;
}
.eeg-app textarea { min-height: 60px; resize: vertical; }
.eeg-app input:focus, .eeg-app select:focus, .eeg-app textarea:focus { outline: 2px solid var(--eeg-a1); outline-offset: -1px; border-color: var(--eeg-a1) !important; }

/* Alerts */
.eeg-alert { padding: 10px 14px; border-radius: 6px; margin: 12px 0; font-size: 14px; }
.eeg-alert-ok { background: #ecfdf5; border-left: 3px solid #10b981; color: #065f46; }
.eeg-alert-err { background: #fef2f2; border-left: 3px solid #ef4444; color: #991b1b; }

/* ====================== EVALUACIÓN ====================== */

.eeg-eval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid var(--eeg-border);
    border-radius: var(--eeg-radius);
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: var(--eeg-shadow);
}
.eeg-eval-club { font-size: 18px; font-weight: 600; color: #0f172a; }
.eeg-eval-user { font-size: 13px; color: var(--eeg-muted); margin-top: 2px; }
.eeg-eval-stat { text-align: right; }
.eeg-stat-pct { font-size: 28px; font-weight: 700; color: #0f172a; line-height: 1; }
.eeg-stat-label { font-size: 12px; color: var(--eeg-muted); margin-top: 4px; }

/* Tabs */
.eeg-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}
.eeg-tab {
    background: #fff !important;
    border: 1px solid var(--eeg-border) !important;
    border-radius: var(--eeg-radius);
    padding: 12px 10px;
    text-decoration: none !important;
    color: var(--eeg-fg) !important;
    text-align: center;
    transition: border-color .12s, background .12s;
    position: relative;
}
.eeg-tab:hover { background: var(--eeg-bg-soft) !important; text-decoration: none !important; }
.eeg-tab.is-active { background: #0f172a !important; color: #fff !important; border-color: #0f172a !important; }
.eeg-tab-num { display: block; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; opacity: .75; }
.eeg-tab-name { display: block; font-size: 13px; font-weight: 500; margin-top: 2px; }
.eeg-tab-pct { display: block; font-size: 12px; margin-top: 4px; opacity: .8; }

.eeg-tab-area-1::before, .eeg-tab-area-2::before, .eeg-tab-area-3::before, .eeg-tab-area-4::before, .eeg-tab-area-5::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    border-top-left-radius: var(--eeg-radius); border-bottom-left-radius: var(--eeg-radius);
}
.eeg-tab-area-1::before { background: var(--eeg-a1); }
.eeg-tab-area-2::before { background: var(--eeg-a2); }
.eeg-tab-area-3::before { background: var(--eeg-a3); }
.eeg-tab-area-4::before { background: var(--eeg-a4); }
.eeg-tab-area-5::before { background: #475569; }

/* Área */
.eeg-area {
    background: #fff;
    border: 1px solid var(--eeg-border);
    border-radius: var(--eeg-radius);
    padding: 22px;
    box-shadow: var(--eeg-shadow);
}
.eeg-area-header { border-bottom: 1px solid var(--eeg-border); padding-bottom: 14px; margin-bottom: 16px; }
.eeg-area-title { font-size: 20px !important; margin: 0 !important; color: #0f172a !important; font-weight: 600 !important; }
.eeg-area-subtitle { font-size: 13px; color: var(--eeg-muted); margin-top: 4px; }
.eeg-area-intro { font-size: 14px; color: #475569; margin: 12px 0 0; line-height: 1.55; }
.eeg-area-1 .eeg-area-header { border-bottom-color: var(--eeg-a1); border-bottom-width: 2px; }
.eeg-area-2 .eeg-area-header { border-bottom-color: var(--eeg-a2); border-bottom-width: 2px; }
.eeg-area-3 .eeg-area-header { border-bottom-color: var(--eeg-a3); border-bottom-width: 2px; }
.eeg-area-4 .eeg-area-header { border-bottom-color: var(--eeg-a4); border-bottom-width: 2px; }

/* Sección — cada sección con su color: indispensables=rojo, importantes=amarillo, recomendados=verde */
.eeg-section { margin: 22px 0; border-radius: var(--eeg-radius-sm); overflow: hidden; }
.eeg-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 14px;
    margin: 0;
}
.eeg-section-title { font-size: 14px !important; margin: 0 !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .5px; }
.eeg-section-pts { font-size: 12px; opacity: .9; }
.eeg-section-body { padding: 12px; border-left: 1px solid var(--eeg-border); border-right: 1px solid var(--eeg-border); }
.eeg-section-foot { padding: 8px 14px; font-size: 13px; text-align: right; border: 1px solid var(--eeg-border); border-top: none; border-radius: 0 0 var(--eeg-radius-sm) var(--eeg-radius-sm); }

/* Indispensables = ROJO */
.eeg-sec-indispensables .eeg-section-header { background: #dc2626; color: #fff !important; }
.eeg-sec-indispensables .eeg-section-header .eeg-section-title { color: #fff !important; }
.eeg-sec-indispensables .eeg-section-body { background: #fef5f5; border-color: #fecaca; }
.eeg-sec-indispensables .eeg-section-foot { background: #fef5f5; border-color: #fecaca; color: #7f1d1d; }
.eeg-sec-indispensables .eeg-item { border-color: #fecaca; background: #fff; }

/* Importantes = AMARILLO */
.eeg-sec-importantes .eeg-section-header { background: #facc15; color: #422006 !important; }
.eeg-sec-importantes .eeg-section-header .eeg-section-title { color: #422006 !important; }
.eeg-sec-importantes .eeg-section-body { background: #fefce8; border-color: #fde68a; }
.eeg-sec-importantes .eeg-section-foot { background: #fefce8; border-color: #fde68a; color: #713f12; }
.eeg-sec-importantes .eeg-item { border-color: #fde68a; background: #fff; }

/* Recomendados = VERDE */
.eeg-sec-recomendados .eeg-section-header { background: #16a34a; color: #fff !important; }
.eeg-sec-recomendados .eeg-section-header .eeg-section-title { color: #fff !important; }
.eeg-sec-recomendados .eeg-section-body { background: #f0fdf4; border-color: #bbf7d0; }
.eeg-sec-recomendados .eeg-section-foot { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.eeg-sec-recomendados .eeg-item { border-color: #bbf7d0; background: #fff; }

/* Ítem */
.eeg-item { border: 1px solid var(--eeg-border); border-radius: var(--eeg-radius-sm); padding: 14px; margin-bottom: 10px; background: #fff; }
.eeg-item:last-child { margin-bottom: 0; }
.eeg-item-criterio { font-weight: 600; font-size: 16px; color: #0f172a; margin-bottom: 12px; line-height: 1.4; }
.eeg-item-niveles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.eeg-nivel {
    display: block;
    border: 1px solid var(--eeg-border);
    border-radius: var(--eeg-radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    transition: all .12s;
    background: #fff;
}
.eeg-nivel input { display: none; }
.eeg-nivel-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.eeg-nivel-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #94a3b8;
    padding: 0 6px;
    border-radius: 3px;
    letter-spacing: .3px;
    line-height: 1;
}
.eeg-nivel-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #475569; }
.eeg-nivel-pts { font-size: 11px; color: var(--eeg-muted); margin-left: auto; }
.eeg-nivel-txt { font-size: 14.5px; color: #334155; line-height: 1.5; }
.eeg-nivel:hover { border-color: var(--eeg-border-strong); background: var(--eeg-bg-soft); }

/* Pills coloreados con el puntaje adentro */
.eeg-nivel-1 .eeg-nivel-num { background: #dc2626; }
.eeg-nivel-2 .eeg-nivel-num { background: #f59e0b; }
.eeg-nivel-3 .eeg-nivel-num { background: #16a34a; }

/* Chips en el header de sección (en la barra roja) */
.eeg-section-pts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}
.eeg-section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    border-radius: 3px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.eeg-section-chip-1 { background: #dc2626; }
.eeg-section-chip-2 { background: #f59e0b; }
.eeg-section-chip-3 { background: #16a34a; }

/* Estado seleccionado: fondo pastel + borde fuerte */
.eeg-nivel-1.is-selected { border-color: #dc2626; background: #fef2f2; }
.eeg-nivel-2.is-selected { border-color: #f59e0b; background: #fefce8; }
.eeg-nivel-3.is-selected { border-color: #16a34a; background: #f0fdf4; }
.eeg-nivel.is-selected .eeg-nivel-txt { color: #1f2937; }
.eeg-nivel.is-selected .eeg-nivel-lbl { color: #1f2937; }

.eeg-item-extras { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--eeg-border); }
.eeg-compromiso { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; cursor: pointer; }
.eeg-coms { font-size: 13px; flex: 1; min-width: 220px; }
.eeg-coms summary { cursor: pointer; color: var(--eeg-muted); font-size: 12px; padding: 2px 0; }
.eeg-coms[open] summary { color: #475569; margin-bottom: 4px; }
.eeg-com-admin { width: 100%; font-size: 13px; padding: 8px 12px; background: #f0fdfa; border-left: 3px solid var(--eeg-a1); border-radius: 4px; color: #134e4a; }

/* Foot del área */
.eeg-area-foot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 14px 18px;
    background: var(--eeg-bg-soft);
    border: 1px solid var(--eeg-border);
    border-radius: var(--eeg-radius-sm);
    margin-top: 16px;
    font-size: 13px;
    color: #475569;
}
.eeg-area-foot strong { color: #0f172a; font-size: 15px; }

/* Bottom de la evaluación */
.eeg-eval-bottom { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 16px 0; }

/* Resultado pane */
.eeg-result-big {
    background: var(--col);
    color: #fff;
    border-radius: var(--eeg-radius);
    padding: 32px;
    text-align: center;
    margin: 20px 0;
}
.eeg-result-pct { font-size: 56px; font-weight: 700; line-height: 1; }
.eeg-result-label { font-size: 18px; margin-top: 8px; opacity: .95; }
.eeg-area-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.eeg-area-card {
    border: 1px solid var(--eeg-border);
    border-radius: var(--eeg-radius-sm);
    padding: 14px;
    text-align: center;
    background: #fff;
    border-top: 4px solid;
}
.eeg-area-card-1 { border-top-color: var(--eeg-a1); }
.eeg-area-card-2 { border-top-color: var(--eeg-a2); }
.eeg-area-card-3 { border-top-color: var(--eeg-a3); }
.eeg-area-card-4 { border-top-color: var(--eeg-a4); }
.eeg-area-card-num { font-size: 11px; font-weight: 700; color: #475569; letter-spacing: .5px; }
.eeg-area-card-name { font-size: 13px; color: var(--eeg-muted); margin: 4px 0 10px; min-height: 32px; }
.eeg-area-card-pct { font-size: 28px; font-weight: 700; color: #0f172a; }
.eeg-area-card-meta { font-size: 11px; color: var(--eeg-muted); margin-top: 4px; }

.eeg-niveles-leyenda { background: var(--eeg-bg-soft); border-radius: var(--eeg-radius-sm); padding: 16px 20px; margin-top: 20px; }
.eeg-niveles-leyenda h3 { font-size: 14px !important; margin: 0 0 8px !important; text-transform: uppercase; letter-spacing: .4px; color: #475569 !important; }
.eeg-niveles-leyenda ul { list-style: none; padding: 0; margin: 0; }
.eeg-niveles-leyenda li { padding: 4px 0; font-size: 13px; color: #475569; display: flex; align-items: center; gap: 8px; }
.eeg-nivel-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.eeg-dot-0 { background: #dc2626; }
.eeg-dot-1 { background: #d97706; }
.eeg-dot-2 { background: #0f766e; }
.eeg-dot-3 { background: #7c2d12; }

/* Históricos */
.eeg-hist-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    background: #fff;
    border: 1px solid var(--eeg-border);
    border-radius: var(--eeg-radius-sm);
    overflow: hidden;
}
.eeg-hist-table th { padding: 10px 14px !important; background: var(--eeg-bg-soft) !important; text-align: left; font-size: 12px; color: #475569; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid var(--eeg-border-strong); }
.eeg-hist-table td { padding: 10px 14px !important; border-bottom: 1px solid var(--eeg-border); font-size: 14px; vertical-align: middle; }
.eeg-hist-table tr:last-child td { border-bottom: none; }
.eeg-table-dist .eeg-sec-row td { background: var(--eeg-bg-softer); padding: 6px 14px !important; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: #475569; }
.eeg-table-dist .eeg-dist-n1 { color: #dc2626; }
.eeg-table-dist .eeg-dist-n2 { color: #d97706; }
.eeg-table-dist .eeg-dist-n3 { color: #0f766e; }

/* Reportes */
.eeg-reportes-header { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; gap: 12px; flex-wrap: wrap; }
.eeg-kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.eeg-kpi { background: #fff; border: 1px solid var(--eeg-border); border-radius: var(--eeg-radius-sm); padding: 14px; text-align: center; box-shadow: var(--eeg-shadow); }
.eeg-kpi-num { font-size: 24px; font-weight: 700; color: #0f172a; }
.eeg-kpi-lbl { font-size: 11px; color: var(--eeg-muted); text-transform: uppercase; letter-spacing: .3px; margin-top: 4px; }
.eeg-kpi-3 .eeg-kpi-num { color: var(--eeg-a4); }
.eeg-kpi-2 .eeg-kpi-num { color: var(--eeg-a1); }
.eeg-kpi-1 .eeg-kpi-num { color: var(--eeg-a2); }
.eeg-kpi-0 .eeg-kpi-num { color: #dc2626; }
.eeg-rep-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 18px; }
.eeg-area-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.eeg-tab-mini { padding: 6px 10px; border: 1px solid var(--eeg-border); border-radius: 5px; background: #fff; font-size: 12px; color: var(--eeg-fg) !important; text-decoration: none !important; }
.eeg-tab-mini:hover { background: var(--eeg-bg-soft); }
.eeg-tab-mini.is-active { background: #0f172a; color: #fff !important; border-color: #0f172a; }

/* Admin evaluaciones */
.eeg-admin-eval-table .eeg-cell-nivel { text-align: center; font-weight: 600; }
.eeg-admin-eval-table .eeg-cell-nivel-1 { color: #dc2626; }
.eeg-admin-eval-table .eeg-cell-nivel-2 { color: #d97706; }
.eeg-admin-eval-table .eeg-cell-nivel-3 { color: #0f766e; }
.eeg-admin-eval-table .eeg-cell-comc { font-size: 13px; color: #475569; max-width: 200px; }
.eeg-admin-eval-table textarea { font-size: 13px !important; }

/* Editor */
.eeg-editor h2 { font-size: 22px !important; margin: 0 0 12px !important; }
.eeg-editor-help { color: var(--eeg-muted); font-size: 14px; margin: 0 0 16px; }
.eeg-editor-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--eeg-border); padding-bottom: 0; }
.eeg-editor-tab { padding: 8px 12px; font-size: 13px; color: #475569 !important; text-decoration: none !important; border: 1px solid transparent; border-bottom: none; border-radius: 5px 5px 0 0; }
.eeg-editor-tab:hover { background: var(--eeg-bg-soft); }
.eeg-editor-tab.is-active { background: #fff; border-color: var(--eeg-border); color: #0f172a !important; font-weight: 600; position: relative; top: 1px; }
.eeg-editor-form { background: #fff; padding: 18px; border: 1px solid var(--eeg-border); border-radius: var(--eeg-radius-sm); }
.eeg-editor-h3 { font-size: 14px !important; margin: 20px 0 10px !important; padding-bottom: 6px; border-bottom: 1px solid var(--eeg-border); color: #334155 !important; }
.eeg-editor-row { margin-bottom: 10px; }
.eeg-editor-row label { display: block; font-size: 12px; color: #475569; margin-bottom: 3px; font-weight: 500; }
.eeg-editor-block { border-left: 3px solid var(--eeg-bg-softer); padding: 8px 12px; margin-bottom: 10px; background: var(--eeg-bg-soft); border-radius: 0 4px 4px 0; }
.eeg-editor-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--eeg-border); }

/* Responsive */
@media (max-width: 768px) {
    .eeg-tabs { grid-template-columns: repeat(2, 1fr); }
    .eeg-area-grid { grid-template-columns: repeat(2, 1fr); }
    .eeg-kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .eeg-item-niveles { grid-template-columns: 1fr; }
    .eeg-area-foot { grid-template-columns: 1fr 1fr; }
    .eeg-eval-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .eeg-eval-stat { text-align: left; }
}

/* ====================== EVALUACIÓN OFICIAL ====================== */
.eeg-oficial-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15,23,42,.15);
}
.eeg-oficial-banner strong { font-weight: 700; }

/* Tinte en el header de la evaluación cuando es oficial */
.eeg-eval-oficial .eeg-eval-header { border-left: 4px solid #1e40af; padding-left: 14px; }

/* Badges en históricos */
.eeg-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}
.eeg-badge-oficial {
    background: #1e40af;
    color: #fff;
}
.eeg-badge-usuario {
    background: #e2e8f0;
    color: #475569;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
}

/* Fila de histórico oficial: tinte sutil */
.eeg-hist-table tr.eeg-hist-oficial {
    background: rgba(30, 64, 175, 0.04);
}
.eeg-hist-table tr.eeg-hist-oficial td:first-child {
    border-left: 3px solid #1e40af;
}

/* Link de descarga del PDF explicativo en el header de la evaluación */
.eeg-pdf-explicativo {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 6px 14px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--eeg-accent);
    border: 1px solid rgba(15, 118, 110, 0.25);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.eeg-pdf-explicativo:hover {
    background: rgba(15, 118, 110, 0.15);
    border-color: var(--eeg-accent);
    color: var(--eeg-accent);
}

/* ============ COMPROMISOS DE MEJORA INMEDIATA (en el Resultado) ============ */
.eeg-app .eeg-niveles-leyenda + .eeg-compromisos-resumen,
.eeg-app .eeg-compromisos-resumen {
    margin-top: 60px !important;
    padding: 24px 22px !important;
    background: rgba(22, 163, 74, 0.04) !important;
    border: 1px solid var(--eeg-border) !important;
    border-left: 4px solid #16a34a !important;
    border-radius: 6px !important;
}
.eeg-app .eeg-compromisos-resumen h3 {
    font-size: 20px !important;
    color: var(--eeg-fg) !important;
    margin: 0 0 14px !important;
}
.eeg-app .eeg-niveles-leyenda { margin-bottom: 0 !important; }
.eeg-compromiso-area {
    background: rgba(15, 118, 110, 0.04);
    border-left: 4px solid var(--eeg-accent);
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin-top: 14px;
}
.eeg-compromiso-area-1 { border-left-color: #0f766e; }
.eeg-compromiso-area-2 { border-left-color: #1d4ed8; }
.eeg-compromiso-area-3 { border-left-color: #9333ea; }
.eeg-compromiso-area-4 { border-left-color: #ea580c; }
.eeg-compromiso-area-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--eeg-fg);
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 10px;
}
.eeg-compromiso-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.eeg-compromiso-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(15,23,42,.08);
}
.eeg-compromiso-list li:last-child { border-bottom: none; }
.eeg-compromiso-check {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1.5;
}
.eeg-compromiso-criterio {
    font-size: 14px;
    color: var(--eeg-fg);
    line-height: 1.5;
}
.eeg-compromiso-coment {
    margin-top: 4px;
    font-size: 13px;
    color: var(--eeg-muted);
    font-style: italic;
    line-height: 1.5;
}


/* ===================== UNIFORMIDAD VISUAL (titulos + ancho) ===================== */
.eeg-app {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
/* TODOS los títulos principales H2 de cualquier shortcode quedan iguales: mayúsculas + 18px */
.eeg-app h2,
.eeg-app .eeg-h2,
.eeg-app .eeg-page-title,
.eeg-app .eeg-area-title,
body .eeg-app h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.eeg-app h3,
.eeg-app .eeg-h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    margin-top: 22px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}
.eeg-app h4,
.eeg-app .eeg-h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    margin-top: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}
/* Excepción: los nombres de club o textos dinámicos en headers admin se quedan como están */
.eeg-app .eeg-admin-eval-header h2 {
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ===================== EMERGENCIA: pisa a Astra/Elementor con máxima especificidad ===================== */
html body .entry-content .eeg-app h2.eeg-page-title,
.eeg-app h2.eeg-page-title.eeg-page-title {
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    padding: 0 !important;
}
html body .entry-content .eeg-app h2.eeg-area-title,
.eeg-app h2.eeg-area-title.eeg-area-title {
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
}
html body .entry-content .eeg-app h2.eeg-h2,
.eeg-app h2.eeg-h2.eeg-h2 {
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    margin: 0 0 14px !important;
}

/* Logo de club en listados */
.eeg-app .eeg-club-tag { line-height:1.3; }
.eeg-app .eeg-club-name-strong { font-weight:700; color:#0f172a; }
