/* T-Market. Sin variables CSS ni grid: debe verse bien también en el
   navegador integrado de Visual GESOPT (motor de Internet Explorer 11). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Corbel, Calibri, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1d2733;
  background: #f3f5f8;
}
a { color: #1f4f8f; }
a:hover { color: #0f2f5f; }
img { max-width: 100%; border: 0; }
h1 { font-size: 1.6em; margin: 0 0 .6em; color: #12305a; font-weight: 600; }
h2 { font-size: 1.25em; margin: 1.4em 0 .6em; color: #12305a; font-weight: 600; }
h3 { font-size: 1.05em; margin: 1em 0 .4em; }
code { background: #eef2f7; padding: 1px 4px; border-radius: 3px; }

.cabecera-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Aviso de entorno */
.fase { background: #b00020; color: #fff; text-align: center; font-weight: 600; padding: 4px; font-size: .85em; letter-spacing: .05em; }

/* Cabecera */
.cabecera { background: #fff; border-bottom: 3px solid #6699c2; }
.cabecera > .cabecera-in { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-wrap: wrap; flex-wrap: wrap; min-height: 64px; }
.marca { display: block; margin-right: 24px; padding: 8px 0; }
.marca img { display: block; height: 44px; width: auto; }
.menu { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.menu a { padding: 20px 12px; text-decoration: none; color: #12305a; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -3px; position: relative; }
.menu a:hover { border-bottom-color: #12305a; }
.globo { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: #990000; color: #fff; font-size: .75em; text-align: center; line-height: 20px; }

.usuario { background: #12305a; color: #fff; font-size: .9em; }
.usuario .cabecera-in { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-wrap: wrap; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.titular { font-weight: 600; margin-right: 16px; }
.etiquetas { -ms-flex: 1; flex: 1; }
.etiqueta { display: inline-block; padding: 1px 8px; margin: 2px 4px 2px 0; border-radius: 10px; background: rgba(255, 255, 255, .15); font-size: .85em; }
.principal .etiqueta, .cesta .etiqueta { background: #e7edf5; color: #12305a; }
.etiqueta.ok { background: #2e7d32; color: #fff; }
.etiqueta.aviso { background: #b26a00; color: #fff; }
.salir { margin: 0; }
.enlace { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Avisos de productos ocultos */
.avisos { display: block; margin-top: 12px; background: #fff8e1; border: 1px solid #f0d080; border-radius: 6px; padding: 8px 16px; }
.avisos summary { cursor: pointer; font-weight: 600; color: #7a5200; }
.avisos ul { margin: .3em 0 .8em; }

/* Cuerpo */
.cuerpo { max-width: 1240px; margin: 0 auto; padding: 20px 16px 40px; }
.cuerpo.con-cesta { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; }
.principal { -ms-flex: 1; flex: 1; min-width: 0; background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(18, 48, 90, .08); }
.con-cesta .cesta { width: 320px; margin-left: 20px; -ms-flex-negative: 0; flex-shrink: 0; }

/* Cesta */
.cesta { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(18, 48, 90, .08); border-top: 4px solid #12305a; }
.cesta h2 { margin: 0 0 .5em; }
.cesta h3 { font-size: .95em; color: #12305a; border-bottom: 1px solid #dde3ea; padding-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cesta .vacia { color: #6b7684; }
.lineas { list-style: none; margin: 0; padding: 0; }
.lineas li { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed #dde3ea; font-size: .9em; }
.linea-desc { -ms-flex: 1 1 100%; flex: 1 1 100%; }
.linea-desc small, .linea-num small { display: block; color: #6b7684; }
.linea-num { -ms-flex: 1; flex: 1; text-align: right; }
.linea-num strong { display: block; }
.lineas form { margin: 0 0 0 8px; }
.quitar { border: 1px solid #d0d7e0; background: #fff; color: #990000; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 16px; line-height: 22px; padding: 0; }
.quitar:hover { background: #990000; color: #fff; }
.totales { width: 100%; margin: 8px 0 12px; border-collapse: collapse; font-size: .9em; }
.totales th { text-align: left; font-weight: normal; color: #4a5563; }
.totales td { text-align: right; }
.totales .total th, .totales .total td { font-weight: 700; font-size: 1.1em; border-top: 1px solid #dde3ea; padding-top: 4px; color: #12305a; }
.bonus { background: #eef6ee; border-radius: 6px; padding: 8px; font-size: .9em; margin: 12px 0 0; }

/* Botones */
.boton { display: inline-block; padding: 8px 16px; border: 1px solid #b9c4d2; border-radius: 6px; background: #fff; color: #12305a; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.boton:hover { background: #eef2f7; color: #12305a; }
.boton.primario { background: #12305a; border-color: #12305a; color: #fff; }
.boton.primario:hover { background: #1f4f8f; border-color: #1f4f8f; }
.boton.ancho { display: block; width: 100%; text-align: center; }
.acciones { margin-top: 20px; }
.acciones .boton { margin: 0 8px 8px 0; }

/* Mensajes */
.mensaje { padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; border-left: 4px solid #6699c2; background: #eef4fa; }
.mensaje.error { border-color: #b00020; background: #fdecee; color: #7a0016; }
.mensaje.ok { border-color: #2e7d32; background: #edf7ed; }

/* Rejilla de familias */
.rejilla { list-style: none; margin: 0 -8px; padding: 0; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.rejilla li { width: 25%; padding: 8px; }
.tarjeta { display: block; height: 100%; text-align: center; text-decoration: none; color: #12305a; border: 1px solid #dde3ea; border-radius: 8px; padding: 16px 8px; background: #fff; }
.tarjeta:hover { border-color: #6699c2; box-shadow: 0 2px 8px rgba(18, 48, 90, .12); }
.tarjeta img { display: block; margin: 0 auto 8px; height: 96px; width: auto; }
.tarjeta span { font-weight: 600; }

.migas { font-size: .9em; color: #6b7684; margin-bottom: 12px; }

/* Familia */
.familia-cabecera { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; margin-bottom: 16px; }
.familia-logo { width: 160px; margin-right: 20px; }
.texto-rico hr { border: 0; border-top: 1px solid #dde3ea; }
.lista-productos { list-style: none; margin: 0; padding: 0; }
.lista-productos li { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-wrap: wrap; flex-wrap: wrap; border-bottom: 1px solid #edf0f4; padding: 10px 0; }
.lista-productos img { width: 64px; height: 64px; object-fit: contain; margin-right: 14px; }
.lista-productos li > div { -ms-flex: 1; flex: 1; }
.producto-enlace { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; text-decoration: none; -ms-flex: 1 1 100%; flex: 1 1 100%; }
.nota { font-size: .85em; color: #4a5563; margin-left: 78px; }
.lista-productos .nota { -ms-flex: 1 1 100%; flex: 1 1 100%; }
.renovaciones, .renovar { background: #f6f9fc; border: 1px solid #dde3ea; border-radius: 8px; padding: 4px 16px 16px; margin-bottom: 20px; }
tr.seleccionada td { background: #fff8e1; }
.tutoriales iframe { max-width: 100%; }

/* Tablas */
.tabla { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95em; }
.tabla caption { text-align: left; font-weight: 600; color: #12305a; padding: 4px 0; }
.tabla th, .tabla td { padding: 7px 10px; border-bottom: 1px solid #e3e8ee; text-align: left; vertical-align: middle; }
.tabla thead th { background: #f0f4f8; color: #12305a; font-weight: 600; }
.tabla .num, .tabla td.num { text-align: right; white-space: nowrap; }
.tabla tfoot th, .tabla tfoot td { font-weight: 700; border-top: 2px solid #12305a; }
.tabla-desplazable { overflow-x: auto; }

/* Ficha de producto */
.ficha { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; }
.ficha-imagen { width: 220px; margin-right: 24px; border: 1px solid #edf0f4; border-radius: 8px; }
.ficha-info { -ms-flex: 1; flex: 1; min-width: 0; }
.precios { max-width: 460px; }
.nota-iva { font-size: .85em; color: #6b7684; }
.compra { margin-top: 24px; border-top: 1px solid #dde3ea; }
.compra-tabla .fila-empresa td { background: #f6f9fc; }
.compra-tabla .fila-centro td:first-child { padding-left: 26px; }
input.unidades { width: 90px; text-align: right; }
input.invalido { border-color: #b00020; background: #fdecee; }

/* Formularios */
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid #b9c4d2; border-radius: 5px; }
input:focus, button:focus, a:focus { outline: 2px solid #6699c2; outline-offset: 1px; }
.formulario label, .encuesta > label { display: block; margin: 12px 0 4px; font-weight: 600; }
.formulario input { width: 100%; }
.formulario .boton { margin-top: 18px; }

/* Login */
.login { max-width: 400px; margin: 30px auto; text-align: center; }
.login .formulario { text-align: left; }
.login-logo { height: 70px; width: auto; margin-bottom: 10px; }

/* Documento */
.doc-cabecera { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; border-bottom: 2px solid #12305a; margin-bottom: 16px; }
.doc-logo { width: 180px; margin-right: 20px; }
.doc-cliente p { margin: 0; }
.totales-doc { max-width: 620px; margin-left: auto; }
.totales-doc .total { font-size: 1.2em; color: #12305a; }
.accesos { background: #f6f9fc; border-radius: 6px; padding: 6px 10px; font-size: .9em; }
.accesos p { margin: 4px 0; }
.confirmar { background: #fff8e1; border: 1px solid #f0d080; border-radius: 8px; padding: 4px 16px 16px; margin-top: 20px; }
.aceptacion label { display: block; margin: 8px 0; font-weight: 600; }

/* Encuesta */
.encuesta fieldset { border: 1px solid #dde3ea; border-radius: 8px; margin: 16px 0; padding: 8px 16px; }
.encuesta legend { font-weight: 600; color: #12305a; padding: 0 6px; }
.pregunta p { margin: 10px 0 4px; }
.escala label { display: inline-block; margin-right: 10px; white-space: nowrap; }
.destacado { font-size: 1.1em; }

/* Resultado de pago y errores */
.resultado { text-align: center; padding: 20px 0; }
.resultado img { height: 80px; width: auto; }
.resultado .tabla { max-width: 460px; margin: 16px auto; }
.resultado .detalle { font-weight: 600; color: #7a0016; }

.texto-legal { font-size: .95em; }
.texto-legal h2 { border-bottom: 1px solid #dde3ea; padding-bottom: 4px; }

/* Pie */
.pie { background: #12305a; color: #c9d6e6; font-size: .85em; padding: 16px 0; }
.pie a { color: #fff; margin-right: 16px; }
.pie .cabecera-in { display: -ms-flexbox; display: flex; -ms-flex-pack: justify; justify-content: space-between; -ms-flex-wrap: wrap; flex-wrap: wrap; }

/* Móvil y tableta */
@media (max-width: 900px) {
  .cuerpo.con-cesta { display: block; }
  .con-cesta .cesta { width: auto; margin: 20px 0 0; }
  .rejilla li { width: 50%; }
}
@media (max-width: 600px) {
  .principal { padding: 16px; }
  .menu a { padding: 10px 8px; }
  .ficha, .familia-cabecera, .doc-cabecera { display: block; }
  .doc-logo { width: 140px; margin: 0 0 8px; }
  .doc-cabecera h1 { font-size: 1.3em; }
  .titular { width: 100%; }
  .etiquetas { -ms-flex: 1 1 100%; flex: 1 1 100%; }
  .ficha-imagen, .familia-logo { width: 140px; margin: 0 0 12px; }
  .rejilla li { width: 50%; }
  .tarjeta img { height: 64px; }
  .nota { margin-left: 0; }
}

/* Impresión */
@media print {
  .cabecera, .usuario, .pie, .cesta, .no-imprimir, .avisos, .fase { display: none !important; }
  body { background: #fff; }
  .principal { box-shadow: none; padding: 0; }
}

/* Marca VISUAL dentro de los textos: en línea, cursiva y mayúsculas. */
em.marca-visual { display: inline; font-style: italic; }
