/* Área de entrada de datos */
.datos-area {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-color);
    transition: border-color var(--transition);
    line-height: 1.6;
}

.datos-area:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.datos-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
    min-height: 28px;
}

.dato-chip {
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dato-chip.moda-chip {
    background: #059669;
}

.dato-chip.media-chip {
    background: #d97706;
}

/* Ejemplos rápidos */
.ejemplos-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.ejemplo-btn {
    padding: 0.3rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-soft);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.ejemplo-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Tabla de frecuencias */
.tabla-freq {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-family: var(--font-primary);
}

.tabla-freq 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: right;
    border-bottom: 2px solid var(--border-color);
}

.tabla-freq th:first-child {
    text-align: left;
}

.tabla-freq td {
    padding: 0.45rem 0.8rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
}

.tabla-freq td:first-child {
    text-align: left;
    font-weight: 600;
}

.tabla-freq tr.moda-row td {
    background: #d1fae5;
    color: #059669;
    font-weight: 700;
}

.tabla-freq tr.media-row td {
    background: #fef3c7;
    color: #d97706;
    font-weight: 700;
}

.tabla-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Tabla de medidas */
.tabla-medidas {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    font-family: var(--font-primary);
}

.tabla-medidas 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.9rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.tabla-medidas td {
    padding: 0.5rem 0.9rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.tabla-medidas td:last-child {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
    text-align: right;
}

.tabla-medidas td:nth-child(2) {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Barra proporcional */
.proportion-bar-wrap {
    margin-top: 0.4rem;
}

.proportion-bar-track {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--border-color);
    margin-bottom: 0.3rem;
}

.proportion-bar-seg {
    height: 100%;
    transition: width 0.5s ease;
}

/* Box plot simple */
.boxplot-wrap {
    overflow-x: auto;
}

/* Indicador asimetría */
.asim-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;
}

.asim-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.asim-icon.positiva {
    background: #dbeafe;
    color: #2563eb;
}

.asim-icon.negativa {
    background: #fef3c7;
    color: #d97706;
}

.asim-icon.simetrica {
    background: #d1fae5;
    color: #059669;
}

.asim-texto {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

.asim-texto span {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}