/* ============================================================
   Tabla de especificaciones
   ------------------------------------------------------------
   El formato de tabla del panel (líneas que empiezan con |) se
   pinta aquí. Va en CSS propio y no en clases de Tailwind porque
   son muchas reglas finas —encabezado de dos pisos, primera
   columna fija al desplazar en móvil— y así se ajustan sin
   recompilar nada.

   Colores: la banda usa el azul de marca #005596 y la fila de
   subcolumnas el #0A6EBD, los mismos del tema.
   ============================================================ */
.tabla-especificaciones { margin-top: .25rem; }

.tabla-especificaciones .te-scroll {
    overflow-x: auto;
    border-radius: .75rem;
    border: 1px solid rgba(0, 85, 150, .18);
    -webkit-overflow-scrolling: touch;
}

.tabla-especificaciones table {
    width: 100%;
    min-width: 620px;              /* por debajo de esto se desplaza */
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-size: .875rem;
    line-height: 1.25rem;
}

/* --- encabezado --- */
.tabla-especificaciones thead th {
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: .6rem .75rem;
    white-space: nowrap;
    letter-spacing: .01em;
}
.tabla-especificaciones .te-grupos th   { background: #005596; font-size: .78rem; text-transform: uppercase; }
.tabla-especificaciones .te-columnas th { background: #0a6ebd; font-size: .8rem; }
.tabla-especificaciones thead th.te-suelta { background: #0a6ebd; font-size: .8rem; vertical-align: middle; }
.tabla-especificaciones thead th.te-suelta:first-child { text-align: left; }
.tabla-especificaciones thead th + th   { border-left: 1px solid rgba(255,255,255,.22); }
.tabla-especificaciones .te-columnas th:first-child { text-align: left; }

/* --- cuerpo --- */
.tabla-especificaciones tbody td {
    padding: .6rem .75rem;
    text-align: center;
    border-top: 1px solid rgba(0, 85, 150, .12);
    color: #334155;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tabla-especificaciones tbody tr:nth-child(even) td { background: #f3faff; }
.tabla-especificaciones tbody tr:hover td           { background: #e8f6ff; }
.tabla-especificaciones .te-codigo {
    text-align: left;
    font-weight: 700;
    color: #0f172a;
}

/* La primera columna se queda quieta al desplazar de lado: sin esto,
   en móvil se pierde de vista el código y los números no dicen nada. */
.tabla-especificaciones .te-fija {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
}
.tabla-especificaciones thead th.te-fija { background: #0a6ebd; z-index: 2; }
.tabla-especificaciones tbody tr:nth-child(even) td.te-fija { background: #f3faff; }
.tabla-especificaciones tbody tr:hover td.te-fija           { background: #e8f6ff; }
.tabla-especificaciones .te-fija::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1px;
    background: rgba(0, 85, 150, .18);
}

/* --- cotizar por fila --- */
.tabla-especificaciones .te-accion a {
    color: #005596;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}
.tabla-especificaciones .te-accion a:hover { text-decoration: underline; }

/* --- notas al pie --- */
.tabla-especificaciones .te-notas {
    margin-top: .6rem;
    font-size: .8rem;
    color: #64748b;
}
.tabla-especificaciones .te-notas p { margin: 0 0 .15rem; }

@media (max-width: 640px) {
    .tabla-especificaciones table   { font-size: .8rem; }
    .tabla-especificaciones thead th,
    .tabla-especificaciones tbody td { padding: .5rem .55rem; }
}
