/* =====================================================================
   COPITEL · Hoja de estilos (FUENTE)
   ---------------------------------------------------------------------
   Este es el fichero que se edita. css/estilo.css se genera desde aquí
   con Autoprefixer (prefijos -webkit- para navegadores embebidos antiguos):
     npx postcss css/estilo.fuente.css -u autoprefixer -o css/estilo.css
   Si no quiere regenerar, puede editar css/estilo.css directamente.

   Decisiones de compatibilidad para el navegador del panel Toshiba:
     - SIN variables CSS (custom properties) ni CSS Grid ni "gap" en flex:
       los espacios se hacen con márgenes.
     - Fuentes del sistema (no se descarga ninguna fuente).
     - Unidades px/%: nada de vh/vw, que fallan en algunos navegadores embebidos.

   Paleta (estilo plano oscuro, como el propio panel e-BRIDGE):
     fondo       #0B1220   superficie  #131C2E   superficie 2 #1B263B
     borde       #2A3650   texto       #F1F5F9   texto suave  #A9B6CA
     rojo Toshiba #E3051B  rojo oscuro #B80416   verde estado #22C55E
   ===================================================================== */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: #0B1220;
  color: #F1F5F9;
  font-family: "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;              /* cuerpo algo mayor que 16 px: el panel se lee a ~50 cm */
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(227, 5, 27, .25);
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: #FF5A6A; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
b { font-weight: 700; }
small { font-size: 13px; }
.oculto { display: none !important; }

/* Foco visible para teclado (accesibilidad) */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid #FFFFFF; outline-offset: 2px;
}

/* Iconos SVG del sprite: heredan el color del texto */
.ico {
  width: 24px; height: 24px; -webkit-flex: none; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- Cabecera (barra de estado) ---------- */
.cabecera {
  display: -webkit-flex;
  display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between;
  height: 56px; padding: 0 16px;
  background: #0B1220;
  border-bottom: 1px solid #2A3650;
  position: relative; z-index: 2;
}
/* Franja roja fina en la base de la cabecera: guiño a la marca Toshiba */
.cabecera:after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 104px; height: 3px; background: #E3051B;
}
.marca { color: #FFFFFF; text-decoration: none; display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; }
.marca-nombre { font-size: 22px; font-weight: 800; letter-spacing: 3px; }
.marca-sub { margin-left: 10px; font-size: 13px; color: #A9B6CA; letter-spacing: .5px; }

.estado {
  display: -webkit-flex;
  display: flex; -webkit-align-items: center; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: #131C2E; border: 1px solid #2A3650;
  font-size: 14px; color: #D5DEEA; white-space: nowrap;
}
.estado-punto { width: 10px; height: 10px; border-radius: 50%; background: #64748B; margin-right: 8px; }
.estado.abierto .estado-punto { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.estado.cerrado .estado-punto { background: #F59E0B; }

.distribuidor { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.distribuidor-txt { font-size: 11px; line-height: 1.15; color: #A9B6CA; text-align: right; margin-right: 10px; text-transform: uppercase; letter-spacing: .5px; }
.logo-toshiba { background: #FFFFFF; border-radius: 6px; padding: 4px 8px; }
.logo-toshiba img { width: 76px; height: 28px; }

/* ---------- Armazón: raíl + contenido ---------- */
.rail { background: #0E1626; }
.rail-btn {
  display: -webkit-flex;
  display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  color: #C7D2E1; text-decoration: none;
  font-size: 14px; font-weight: 600;
  border-left: 4px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.rail-btn .ico { width: 28px; height: 28px; margin-bottom: 4px; }
.rail-btn:active { background: #1B263B; }
.rail-btn.activo { color: #FFFFFF; background: #1B263B; border-left-color: #E3051B; }
.rail-btn--rojo .ico { color: #FF4D5E; }

.contenido { padding: 20px 24px; }
.panel { margin-bottom: 40px; }

/* Títulos de cada panel */
.titulo-panel { font-size: 26px; margin-bottom: 16px; }
.titulo-panel span { font-size: 17px; font-weight: 400; color: #A9B6CA; }
.antetitulo { color: #FF5A6A; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.etiqueta {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  background: #E3051B; color: #FFFFFF;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.nota { color: #A9B6CA; font-size: 14px; }

/* ===================== INICIO ===================== */
.inicio { display: -webkit-flex; display: flex; -webkit-align-items: stretch; align-items: stretch; }
.inicio-principal { -webkit-flex: 1 1 60%; flex: 1 1 60%; padding-right: 24px; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: center; justify-content: center; }
.inicio h1 { font-size: 40px; letter-spacing: -.5px; margin-bottom: 12px; }
.entradilla { font-size: 18px; color: #C7D2E1; max-width: 520px; margin-bottom: 18px; }

.ficha-equipo {
  display: -webkit-flex;
  display: flex; -webkit-align-items: center; align-items: center;
  background: #131C2E; border: 1px dashed #3B4A68; border-radius: 10px;
  padding: 8px 12px; margin-bottom: 18px; font-size: 15px; color: #D5DEEA;
}
.ficha-equipo .ico { margin-right: 10px; color: #FF5A6A; }

/* Botones de acción grandes (objetivo táctil ≥ 72 px de alto) */
.acciones { display: -webkit-flex; display: flex; }
.accion {
  -webkit-flex: 1 1 0;
          flex: 1 1 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  min-height: 76px; padding: 12px 14px; margin-right: 12px;
  background: #1B263B; border: 1px solid #2A3650; border-radius: 12px;
  color: #FFFFFF; text-decoration: none;
  transition: background-color .15s ease, -webkit-transform .1s ease;
  transition: background-color .15s ease, transform .1s ease;
  transition: background-color .15s ease, transform .1s ease, -webkit-transform .1s ease;
}
.accion:last-child { margin-right: 0; }
.accion:active { -webkit-transform: scale(.98); transform: scale(.98); background: #22304A; }
.accion .ico { width: 30px; height: 30px; margin-right: 12px; }
.accion-txt small { display: block; color: #A9B6CA; font-size: 13px; }
.accion-txt b { display: block; font-size: 20px; white-space: nowrap; }
.accion--rojo { background: #E3051B; border-color: #E3051B; }
.accion--rojo small { color: #FFE4E7; }
.accion--rojo:active { background: #B80416; }

/* Tarjeta de novedad destacada */
.destacada {
  -webkit-flex: 0 0 300px;
          flex: 0 0 300px; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  background: #131C2E; border: 1px solid #2A3650; border-radius: 14px; overflow: hidden;
  color: #F1F5F9; text-decoration: none;
}
.destacada-img img { width: 100%; height: auto; }
.destacada-txt { padding: 14px 16px; }
.destacada-txt b { display: block; font-size: 20px; margin: 8px 0 4px; }
.destacada-txt span { color: #C7D2E1; font-size: 15px; }
.destacada-txt .etiqueta { color: #FFFFFF; font-size: 12px; }

/* ===================== SOPORTE ===================== */
.canales { display: -webkit-flex; display: flex; margin-bottom: 14px; }
.canal {
  -webkit-flex: 1 1 0;
          flex: 1 1 0; margin-right: 14px; padding: 14px 16px;
  background: #131C2E; border: 1px solid #2A3650; border-radius: 14px;
  display: -webkit-flex;
  display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: flex-start; align-items: flex-start;
}
.canal:last-child { margin-right: 0; }
.canal h3 { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 15px; color: #A9B6CA; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.canal h3 .ico { margin-right: 8px; color: #FF5A6A; width: 20px; height: 20px; }
.canal--destacado { border-color: #E3051B; box-shadow: inset 0 3px 0 #E3051B; }

.numero {
  font-size: 38px; font-weight: 800; letter-spacing: 1px; color: #FFFFFF;
  text-decoration: none; white-space: nowrap; margin-bottom: 10px;
}
.horario { border-collapse: collapse; width: 100%; margin-bottom: 10px; font-size: 16px; }
.horario th { text-align: left; font-weight: 400; color: #C7D2E1; padding: 6px 0; border-top: 1px solid #2A3650; }
.horario td { text-align: right; font-weight: 700; padding: 6px 0; border-top: 1px solid #2A3650; white-space: nowrap; }

.dato {
  display: inline-block; min-height: 44px; line-height: 44px;   /* objetivo táctil */
  font-size: 18px; font-weight: 700; color: #FFFFFF; text-decoration: none; margin-bottom: 8px;
}
/* Caja blanca del QR: los QR necesitan fondo claro y margen ("zona de silencio") */
.qr {
  background: #FFFFFF; border-radius: 10px; padding: 8px;
  width: 136px; height: 136px; margin-bottom: 8px;
}
.qr img { width: 120px; height: 120px; image-rendering: pixelated; }
.qr-sin { color: #0B1220; font-size: 12px; text-align: center; padding-top: 40px; }

.tenga-a-mano {
  display: -webkit-flex;
  display: flex; -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  background: #1B263B; border-radius: 12px; padding: 10px 16px; font-size: 15px;
}
.tenga-a-mano ol { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.tenga-a-mano li { counter-increment: paso; margin-left: 18px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.tenga-a-mano li:before {
  content: counter(paso); display: inline-block; width: 22px; height: 22px; line-height: 22px;
  margin-right: 6px; border-radius: 50%; background: #E3051B; color: #FFFFFF;
  text-align: center; font-size: 13px; font-weight: 700;
}
.tenga-a-mano small { color: #A9B6CA; margin-left: 4px; }
.direccion { margin-top: 10px; color: #A9B6CA; font-size: 14px; }
.direccion .ico { margin-right: 6px; }

/* ===================== NOVEDADES ===================== */
.noticias { display: -webkit-flex; display: flex; }
.noticia {
  -webkit-flex: 1 1 0;
          flex: 1 1 0; margin-right: 14px;
  background: #131C2E; border: 1px solid #2A3650; border-radius: 14px; overflow: hidden;
}
.noticia:last-child { margin-right: 0; }
.noticia img { width: 100%; height: 140px; object-fit: cover; }
.noticia-txt { padding: 12px 14px 14px; }
.noticia h3 { font-size: 18px; margin: 8px 0 6px; }
.noticia p { color: #C7D2E1; font-size: 14px; }
.pie-panel { margin-top: 14px; color: #A9B6CA; font-size: 15px; }
.pie-panel a { color: #FFFFFF; font-weight: 700; text-decoration: none; }

/* ===================== EQUIPOS ===================== */
.cabeza-equipos { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; margin-bottom: 14px; }
.cabeza-equipos .titulo-panel { margin-bottom: 0; }
.filtros { display: none; }                         /* sin JS no se muestran: se ve toda la gama */
.con-js .filtros { display: -webkit-flex; display: flex; }
.chip {
  min-height: 44px; padding: 0 18px; margin-left: 8px;
  background: #131C2E; color: #D5DEEA; border: 1px solid #2A3650; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.chip.activo { background: #FFFFFF; color: #0B1220; border-color: #FFFFFF; }

.rejilla-equipos { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-right: -12px; }
.equipo {
  width: 25%; padding: 0 12px 12px 0;   /* 4 columnas en panel de 10,1" */
  position: relative;
}
.equipo-inner, .equipo { color: #F1F5F9; }
.equipo-img {
  display: -webkit-flex;
  display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  background: #FFFFFF; border-radius: 12px; height: 130px; padding: 8px; margin-bottom: 8px;
}
.equipo-img img { max-height: 114px; width: auto; }
.velocidad {
  position: absolute; top: 8px; left: 8px;
  background: #0B1220; color: #FFFFFF; border-radius: 6px;
  padding: 2px 8px; font-size: 12px; font-weight: 700;
}
.equipo h3 { font-size: 15px; margin-bottom: 2px; }
.equipo p { color: #A9B6CA; font-size: 13px; line-height: 1.35; }

/* ===================== VENTAJAS ===================== */
.ventajas { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; }
.ventaja-hero { -webkit-flex: 1 1 50%; flex: 1 1 50%; margin: 0 20px 0 0; }
.ventaja-hero img { border-radius: 14px; width: 100%; }
.ventaja-hero figcaption { margin-top: 10px; color: #C7D2E1; font-size: 15px; }
.ventaja-hero figcaption b { color: #FFFFFF; }
.ventajas-lista { -webkit-flex: 1 1 50%; flex: 1 1 50%; list-style: none; margin: 0; padding: 0; }
.ventajas-lista li {
  display: -webkit-flex;
  display: flex; -webkit-align-items: flex-start; align-items: flex-start;
  background: #131C2E; border: 1px solid #2A3650; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
}
.ventajas-lista .ico { width: 28px; height: 28px; color: #FF5A6A; margin-right: 12px; margin-top: 2px; }
.ventajas-lista b { display: block; font-size: 17px; }
.ventajas-lista span { color: #A9B6CA; font-size: 14px; }

/* =====================================================================
   MODO APP (paneles y pantallas horizontales ≥ 700 px)
   Cabecera fija + raíl a la izquierda + una sola sección visible.
   Solo se activa si hay JS (clase .con-js en <html>).
   ===================================================================== */
@media (min-width: 700px) {
  .con-js body { overflow: hidden; }
  .con-js .armazon { position: absolute; top: 56px; left: 0; right: 0; bottom: 0; }
  .con-js .rail {
    position: absolute; top: 0; left: 0; bottom: 0; width: 104px;
    display: -webkit-flex;
    display: flex; -webkit-flex-direction: column; flex-direction: column;
    border-right: 1px solid #2A3650;
  }
  .con-js .rail-btn { -webkit-flex: 1 1 0; flex: 1 1 0; max-height: 96px; }
  .con-js .contenido {
    position: absolute; top: 0; left: 104px; right: 0; bottom: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .con-js .panel { display: none; margin: 0 auto; max-width: 1180px; }
  .con-js .panel.visible { display: block; }
  /* Inicio ocupa todo el alto disponible y centra su contenido en vertical */
  .con-js #inicio.visible { height: 100%; }
  .con-js .inicio { height: 100%; -webkit-align-items: center; align-items: center; }
  /* entrada suave de la sección (sin movimiento si el usuario lo pide) */
  .con-js .panel.visible { -webkit-animation: aparecer .18s ease-out; animation: aparecer .18s ease-out; }
}
@-webkit-keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .con-js .panel.visible { -webkit-animation: none; animation: none; }
  .accion, .rail-btn { transition: none; }
}

/* ---------- Panel de 9" (800 × 480) y similares ---------- */
@media (max-width: 900px) and (min-width: 700px) {
  body { font-size: 16px; }
  .cabecera { height: 48px; padding: 0 12px; }
  .con-js .armazon { top: 48px; }
  .marca-nombre { font-size: 19px; letter-spacing: 2px; }
  .marca-sub, .distribuidor-txt { display: none; }
  .estado { font-size: 13px; padding: 4px 10px; }
  .con-js .rail { width: 88px; }
  .cabecera:after { width: 88px; }
  .con-js .contenido { left: 88px; }
  .rail-btn { font-size: 12px; }
  .rail-btn .ico { width: 24px; height: 24px; }
  .contenido { padding: 14px 16px; }

  .inicio h1 { font-size: 30px; }
  .entradilla { font-size: 16px; margin-bottom: 12px; }
  .destacada { -webkit-flex-basis: 220px; flex-basis: 220px; }
  .destacada-txt { padding: 10px 12px; }
  .destacada-txt b { font-size: 17px; }
  .destacada-txt span { font-size: 13px; }
  .inicio-principal { padding-right: 16px; }
  .acciones { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .accion { min-height: 60px; padding: 8px 10px; margin-right: 8px; }
  .accion .ico { width: 24px; height: 24px; margin-right: 8px; }
  .accion-txt b { font-size: 16px; }
  .accion-txt small { font-size: 11px; }

  .titulo-panel { font-size: 22px; margin-bottom: 10px; }
  .titulo-panel span { display: none; }
  .canal { padding: 10px 12px; margin-right: 10px; }
  .numero { font-size: 28px; }
  .horario { font-size: 14px; }
  .qr { width: 112px; height: 112px; }
  .qr img { width: 96px; height: 96px; }
  .nota { font-size: 12px; }
  .tenga-a-mano { font-size: 13px; padding: 8px 12px; }
  .tenga-a-mano small { display: none; }

  .noticia { margin-right: 10px; }
  .noticia img { height: 100px; }
  .noticia h3 { font-size: 15px; }
  .noticia p { font-size: 13px; }

  /* 4 columnas compactas: toda la gama cabe en 800 × 480 sin desplazar */
  .equipo { width: 25%; padding: 0 10px 10px 0; }
  .rejilla-equipos { margin-right: -10px; }
  .equipo-img { height: 96px; padding: 6px; margin-bottom: 6px; }
  .equipo-img img { max-height: 84px; }
  .velocidad { top: 6px; left: 6px; font-size: 11px; padding: 1px 6px; }
  .equipo h3 { font-size: 13px; }
  .equipo p { font-size: 12px; }
  .chip { padding: 0 12px; margin-left: 6px; font-size: 14px; }

  .ventaja-hero figcaption { font-size: 13px; }
  .ventajas-lista li { padding: 8px 10px; margin-bottom: 8px; }
  .ventajas-lista b { font-size: 15px; }
  .ventajas-lista span { font-size: 13px; }
}

/* ---------- Pantallas altas en horizontal pero bajas (≤ 520 px de alto) ---------- */
@media (min-width: 700px) and (max-height: 520px) {
  .destacada-img img { max-height: 130px; object-fit: cover; }
}

/* =====================================================================
   MÓVIL (< 700 px): documento normal, barra de secciones arriba
   ===================================================================== */
@media (max-width: 699px) {
  .cabecera { height: auto; min-height: 56px; -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: 8px 16px; }
  .marca-sub, .distribuidor-txt { display: none; }
  .estado { -webkit-order: 3; order: 3; width: 100%; margin-top: 8px; -webkit-justify-content: center; justify-content: center; }
  .rail {
    display: -webkit-flex;
    display: flex; position: -webkit-sticky; position: sticky; top: 0; z-index: 3;
    border-bottom: 1px solid #2A3650;
  }
  .rail-btn { -webkit-flex: 1 1 0; flex: 1 1 0; min-height: 60px; font-size: 12px; border-left: 0; border-bottom: 3px solid transparent; }
  .rail-btn.activo { border-bottom-color: #E3051B; }
  .rail-btn .ico { width: 22px; height: 22px; }
  .contenido { padding: 20px 16px; }
  .panel { padding-top: 8px; }

  .inicio, .canales, .noticias, .ventajas { display: block; }
  .inicio-principal { padding-right: 0; margin-bottom: 18px; }
  .inicio h1 { font-size: 30px; }
  .acciones { display: block; }
  .accion { margin: 0 0 10px; }
  .canal, .noticia { margin: 0 0 12px; }
  .ventaja-hero { margin: 0 0 14px; }
  .cabeza-equipos { display: block; }
  .cabeza-equipos .titulo-panel { margin-bottom: 10px; }
  .filtros { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .chip { margin: 0 6px 6px 0; }
  .equipo { width: 50%; }
  .tenga-a-mano ol { display: block; margin-top: 6px; }
  .tenga-a-mano li { margin: 4px 0; }
}

/* =====================================================================
   FORMULARIO (soporte.html / enviar.php)
   ===================================================================== */
/* La página del formulario es un documento normal (sin raíl ni paneles) */
.con-js body.pagina-form { overflow: auto; }
.form-main { max-width: 860px; margin: 0 auto; padding: 16px 24px 40px; }
.volver {
  display: -webkit-inline-flex;
  display: inline-flex; -webkit-align-items: center; align-items: center; min-height: 44px;
  color: #C7D2E1; text-decoration: none; font-weight: 600; margin-bottom: 8px;
}
.volver .ico { -webkit-transform: rotate(180deg); transform: rotate(180deg); margin-right: 6px; width: 20px; height: 20px; }
.form-intro { color: #C7D2E1; margin-bottom: 18px; }

fieldset { border: 0; margin: 0 0 18px; padding: 0; }
legend { font-weight: 700; font-size: 17px; margin-bottom: 8px; padding: 0; }

/* Tipo de solicitud: radios convertidos en botones grandes */
.tipos { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-right: -10px; }
.tipo { width: 25%; padding: 0 10px 10px 0; }
.tipo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tipo span {
  display: -webkit-flex;
  display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 8px; border-radius: 12px;
  background: #131C2E; border: 2px solid #2A3650; font-weight: 700; cursor: pointer;
}
.tipo input:checked + span { background: #E3051B; border-color: #E3051B; color: #FFFFFF; }
.tipo input:focus + span { outline: 3px solid #FFFFFF; outline-offset: 2px; }

.campos { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-right: -14px; }
.campo { width: 50%; padding: 0 14px 14px 0; }
.campo--ancho { width: 100%; }
.campo label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.campo label small { font-weight: 400; color: #A9B6CA; }
.campo input, .campo textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: #0E1626; color: #FFFFFF;
  border: 1px solid #3B4A68; border-radius: 10px;
  font: inherit; font-size: 17px;
  -webkit-appearance: none; appearance: none;
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: #FFFFFF; }
.ayuda { display: block; color: #A9B6CA; font-size: 13px; margin-top: 4px; }

.trampa { position: absolute; left: -9999px; }   /* campo anti-spam oculto */

.consentimiento { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; color: #C7D2E1; }
.consentimiento input { width: 24px; height: 24px; margin: 0 10px 0 0; -webkit-flex: none; flex: none; }

.boton {
  display: -webkit-inline-flex;
  display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 12px;
  background: #E3051B; color: #FFFFFF; font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer; text-decoration: none;
}
.boton:active { background: #B80416; }
.boton .ico { margin-left: 10px; }

.aviso { border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.aviso--ok { background: #0F2A1C; border: 1px solid #22C55E; }
.aviso--error { background: #2A0F14; border: 1px solid #E3051B; }
.aviso h1 { font-size: 26px; margin-bottom: 8px; }
.aviso ul { margin: 8px 0 0; padding-left: 20px; }

@media (max-width: 699px) {
  .tipo { width: 50%; }
  .campo { width: 100%; }
}

/* ---------- Sprite de iconos (oculto sin usar style="": compatible con la CSP) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Caja de diagnóstico (?diag=1) ---------- */
.diagnostico {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 99;
  margin: 0; padding: 10px 12px; max-height: 45%; overflow: auto;
  background: #FFF7D6; color: #1A1A1A; border: 2px solid #E3A800; border-radius: 8px;
  font: 13px/1.4 Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-all;
}

/* ---------- Contadores (3 columnas) ---------- */
.campo--tercio { width: 33.333%; }
.ayuda--bloque { margin: -2px 0 10px; }
legend small { font-weight: 400; color: #A9B6CA; font-size: 14px; }
.obligatorio { color: #FF5A6A; }

/* ---------- Consumibles de tóner ----------
   Casillas convertidas en botones grandes (≥ 56 px alto, 10 px de separación).
   Con JS el bloque solo se ve con "Tóner" elegido; sin JS se ve siempre. */
.con-js .bloque-toner { display: none; }
.con-js .tipo-toner .bloque-toner { display: block; }
.consumibles { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-right: -10px; }
.consumible { width: 20%; padding: 0 10px 10px 0; }
.consumible input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consumible span {
  display: -webkit-flex;
  display: flex; -webkit-align-items: center; align-items: center; position: relative;
  min-height: 56px; padding: 8px 12px; border-radius: 12px;
  background: #131C2E; border: 2px solid #2A3650; font-weight: 700; font-size: 15px; line-height: 1.2;
  cursor: pointer;
}
/* Seleccionado: borde blanco, fondo más claro y marca ✓ (el estado no depende solo del color) */
.consumible input:checked + span { border-color: #FFFFFF; background: #22304A; }
.consumible input:checked + span:after {
  content: "\2713"; position: absolute; top: 4px; right: 8px; font-size: 14px; color: #FFFFFF;
}
.consumible input:focus + span { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.muestra {
  display: inline-block; -webkit-flex: none; flex: none; width: 22px; height: 22px; border-radius: 50%;
  margin-right: 10px; border: 2px solid rgba(255,255,255,.6);
}
.muestra--negro    { background: #111111; }
.muestra--magenta  { background: #E4007C; }
.muestra--cian     { background: #00A0E9; }
.muestra--amarillo { background: #FFE100; }
.muestra--residuos { background: #6B7280; border-style: dashed; border-radius: 4px; }

@media (max-width: 899px) {
  .consumible span { padding: 8px; font-size: 14px; }   /* 5 en fila también en el panel de 9" */
  .muestra { margin-right: 8px; }
}
@media (max-width: 699px) {
  .consumible { width: 50%; }
  .campo--tercio { width: 33.333%; }
  .campo--tercio label { font-size: 13px; }
}

/* ---------- Tarjetas de soporte pulsables enteras ("enlace extendido") ----------
   El enlace sigue siendo uno solo (correcto para lectores de pantalla), pero su
   pseudo-elemento :after cubre toda la tarjeta, así que se puede pulsar en
   cualquier punto: título, QR, texto... Sin JavaScript y válido en WebKit antiguo. */
.canal--pulsable { position: relative; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.canal--pulsable .enlace-tarjeta:after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 14px; z-index: 1;
}
/* Respuesta al toque: la tarjeta entera cambia de fondo mientras se pulsa */
.canal--pulsable:active { background: #22304A; border-color: #4A5A7A; }
.canal--destacado.canal--pulsable:active { border-color: #FF4D5E; }
/* Foco de teclado: el anillo rodea toda la tarjeta, no solo el texto */
.canal--pulsable .enlace-tarjeta:focus { outline: none; }
.canal--pulsable .enlace-tarjeta:focus:after { outline: 3px solid #FFFFFF; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .canal--pulsable { transition: none; } }
