/* Tabs de método */
.modo-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.modo-tab {
    flex: 1;
    min-width: 110px;
    padding: 0.6rem 0.7rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-soft);
    font-family: var(--font-primary);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.3;
}

.modo-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.modo-tab i {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

/* Selector sexo */
.sexo-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.sexo-btn {
    flex: 1;
    padding: 0.55rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-soft);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.sexo-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Medidor visual de grasa */
.medidor-wrap {
    margin: 1.2rem 0 0.5rem;
}

.medidor-track {
    position: relative;
    height: 22px;
    border-radius: 11px;
    overflow: hidden;
    background: linear-gradient(to right,
            #2563eb 0%,
            /* atleta */
            #2563eb 8%,
            #059669 8%,
            /* fitness */
            #059669 20%,
            #16a34a 20%,
            /* saludable */
            #16a34a 32%,
            #d97706 32%,
            /* aceptable */
            #d97706 42%,
            #dc2626 42%,
            /* obesidad */
            #dc2626 100%);
}

.medidor-needle {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 30px;
    background: #1e293b;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 0.6s ease;
}

.medidor-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.medidor-pct {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.6rem 0 0.2rem;
}

.medidor-cat {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* Tabla de clasificación */
.tabla-clasificacion {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-family: var(--font-primary);
}

.tabla-clasificacion th {
    background: var(--bg-soft);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.tabla-clasificacion td {
    padding: 0.45rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.tabla-clasificacion td:last-child {
    font-weight: 700;
}

.tabla-clasificacion tr.fila-actual td {
    background: #eff6ff;
    font-weight: 700;
    color: var(--primary-color);
}

.cat-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.tabla-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Comparativa de métodos */
.metodos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.metodo-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    text-align: center;
}

.metodo-card.activo {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.metodo-nombre {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.metodo-valor {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
}

.metodo-card.activo .metodo-valor {
    color: var(--primary-color);
}

.metodo-cat {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Calculadora de peso objetivo */
.objetivo-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.4rem;
}

.objetivo-card h3 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.objetivo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-primary);
    font-size: 0.85rem;
}

.objetivo-row:last-child {
    border-bottom: none;
}

.objetivo-row.total {
    font-weight: 700;
    font-size: 0.95rem;
    border-top: 2px solid var(--border-color);
    border-bottom: none;
    padding-top: 0.7rem;
    margin-top: 0.2rem;
}

.objetivo-label {
    color: var(--text-muted);
}

.objetivo-val {
    font-weight: 600;
    color: var(--text-color);
}

.objetivo-val.positivo {
    color: #059669;
}

.objetivo-val.negativo {
    color: #dc2626;
}

/* Indicador de resultado */
.grasa-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-soft);
    margin-top: 1rem;
    grid-column: 1 / -1;
}

.grasa-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.grasa-icon.atleta {
    background: #dbeafe;
    color: #2563eb;
}

.grasa-icon.fitness {
    background: #d1fae5;
    color: #059669;
}

.grasa-icon.saludable {
    background: #d1fae5;
    color: #16a34a;
}

.grasa-icon.aceptable {
    background: #fef3c7;
    color: #d97706;
}

.grasa-icon.obesidad {
    background: #fee2e2;
    color: #dc2626;
}

.grasa-verdict {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

.grasa-verdict span {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Nota de disclaimer */
.disclaimer {
    background: #fef9ec;
    border-left: 3px solid #d97706;
    border-radius: 0 6px 6px 0;
    padding: 0.7rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}