/* [CSS-01] */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-800.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --vl-tinta: #110702;
  --vl-petroleo: #1c515e;
  --vl-turquesa-osc: #2f9284;
  --vl-turquesa: #3eb4a1;
  --vl-menta: #74c6a5;
  --vl-menta-clara: #e4f4ee;
  --vl-papel: #ffffff;
  --vl-niebla: #f1f7f5;
  --vl-linea: #d5e5df;
  --vl-borde: #8fb2a8;
  --vl-texto: #16110e;
  --vl-suave: #4d5c58;
  --vl-error: #b42318;
  --vl-velo: 13, 44, 51;
  --vl-degradado: linear-gradient(100deg, #3eb4a1 0%, #4dbab4 36%, #64c2a8 70%, #74c6a5 100%);
  --vl-degradado-portada: radial-gradient(140% 140% at 100% 0%, #1c515e 0%, #2f9284 24%, #3eb4a1 46%, #4dbab4 62%, #64c2a8 82%, #74c6a5 100%);
  --vl-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  --vl-titulos: "Montserrat", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --vl-cab: 56px;
  --vl-barra-movil: 63px;
  --vl-ancho-panel: 360px;
  --vl-radio: 8px;
  --vl-control: 36px;
  --vl-sombra: 0 12px 32px rgba(var(--vl-velo), .18);

  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--vl-texto);
  -webkit-text-size-adjust: 100%;
}

@media (pointer: coarse) {
  :root { --vl-control: 44px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "cab cab"
    "cat panel";
  overflow: hidden;
  background: var(--vl-papel);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

[hidden] { display: none !important; }

.vl-oculto {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--vl-tinta);
  outline-offset: 2px;
}

.vl-icono { width: 22px; height: 22px; flex: none; }

/* [CSS-02] */

.vl-cabecera {
  grid-area: cab;
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: calc(var(--vl-cab) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
  background: var(--vl-grano), var(--vl-degradado);
  color: var(--vl-tinta);
}

.vl-marca {
  display: block;
  flex: none;
  padding: 4px 6px;
  border-radius: var(--vl-radio);
}

.vl-marca img {
  display: block;
  height: 32px;
  width: auto;
}

.vl-titulo {
  margin: 0;
  padding-left: 12px;
  border-left: 1.5px solid rgba(17, 7, 2, .3);
  font-family: var(--vl-titulos);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vl-tinta);
  white-space: nowrap;
}

.vl-contacto {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vl-correo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--vl-tinta);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.vl-correo .vl-icono { width: 18px; height: 18px; color: var(--vl-tinta); }
.vl-correo:hover { background: rgba(255, 255, 255, .35); }
.vl-correo:hover .vl-correo__texto { text-decoration: underline; text-underline-offset: 3px; }

.vl-icono-boton {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--vl-tinta);
  cursor: pointer;
}

.vl-icono-boton .vl-icono { width: 20px; height: 20px; }

.vl-icono-boton:hover,
.vl-icono-boton[aria-expanded="true"] { background: rgba(255, 255, 255, .35); }

.vl-ancla { position: relative; }

.vl-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 260px;
  padding: 6px;
  border: 1px solid var(--vl-linea);
  border-radius: 12px;
  background: var(--vl-papel);
  box-shadow: var(--vl-sombra);
}

.vl-menu__opcion {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vl-texto);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.vl-menu__opcion:hover,
.vl-menu__opcion:focus-visible { background: var(--vl-niebla); color: var(--vl-tinta); }

.vl-menu__titulo {
  margin: 4px 10px 4px;
  font-family: var(--vl-titulos);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--vl-suave);
}

.vl-menu__nota {
  margin: 4px 4px 2px;
  padding: 8px 10px;
  border-left: 3px solid var(--vl-turquesa);
  border-radius: 0 8px 8px 0;
  background: var(--vl-menta-clara);
  font-size: 13px;
  line-height: 1.4;
}

.vl-menu__nota-texto { margin: 0 0 4px; }
.vl-menu__nota .vl-enlace-accion { padding: 0; font-size: 13px; }

/* [CSS-03] */

.vl-barra {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vl-accion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.vl-accion--clara { background: #fff; color: var(--vl-tinta); }
.vl-accion--clara:hover { background: var(--vl-menta-clara); }
.vl-accion--clara[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--vl-tinta); }

.vl-accion--tinta { background: var(--vl-tinta); }
.vl-accion--tinta:hover,
.vl-accion--tinta[aria-expanded="true"] { background: var(--vl-petroleo); }

.vl-accion--linea {
  background: transparent;
  color: var(--vl-tinta);
  box-shadow: inset 0 0 0 1.5px var(--vl-tinta);
}
.vl-accion--linea:hover,
.vl-accion--linea[aria-expanded="true"] { background: rgba(255, 255, 255, .35); }

.vl-accion .vl-icono { width: 20px; height: 20px; }

.vl-corto { display: none; }

.vl-contador {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--vl-menta);
  color: var(--vl-tinta);
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.vl-pulso { animation: vl-pulso .35s ease-out; }

@keyframes vl-pulso {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* [CSS-04] */

.vl-principal {
  grid-area: cat;
  display: block;
  min-width: 0;
  min-height: 0;
}

.vl-catalogo {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--vl-niebla);
}

/* [CSS-05] */

.vl-cargando {
  grid-area: cat;
  position: relative;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.vl-parpado {
  position: absolute;
  left: 0;
  right: 0;
  height: 51%;
  background: var(--vl-grano), var(--vl-degradado-portada);
  background-size: auto, 100% 196.08%;
  transition: transform 1.15s cubic-bezier(.87, 0, .13, 1) .1s;
  will-change: transform;
}

.vl-parpado--arriba { top: 0; background-position: 0 0, top; }
.vl-parpado--abajo { bottom: 0; background-position: 0 0, bottom; }

.vl-cargando__marca {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(300px, 64%);
  transform: translate(-50%, -50%);
  animation: vl-marca-entra .6s cubic-bezier(.2, .8, .2, 1) both;
}

.vl-cargando__marca img { display: block; width: 100%; height: auto; }

.vl-cargando__marca::after {
  content: "";
  display: block;
  height: 4px;
  margin-top: 18px;
  background: var(--vl-tinta);
  transform-origin: left;
  animation: vl-carga 1.3s .3s ease-in-out infinite both;
}

@keyframes vl-marca-entra {
  from { opacity: 0; transform: translate(-50%, -42%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes vl-marca-sale {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to { opacity: 0; transform: translate(-50%, -58%); }
}

@keyframes vl-carga {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.01% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.vl-cargando--abrir .vl-cargando__marca { animation: vl-marca-sale .3s ease-in forwards; }
.vl-cargando--abrir .vl-parpado--arriba { transform: translateY(-104%); }
.vl-cargando--abrir .vl-parpado--abajo { transform: translateY(104%); }

/* [CSS-06] */

.vl-panel {
  grid-area: panel;
  width: var(--vl-ancho-panel);
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--vl-papel);
  border-left: 1px solid var(--vl-linea);
}

.vl-panel__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 14px;
  border-bottom: 1px solid var(--vl-linea);
}

.vl-panel__titulo {
  margin: 0;
  font-family: var(--vl-titulos);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--vl-tinta);
}

.vl-panel__titulo:focus,
.vl-panel__titulo:focus-visible { outline: none; }

.vl-cerrar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--vl-tinta);
  cursor: pointer;
}

.vl-cerrar .vl-icono { width: 20px; height: 20px; }

.vl-cerrar:hover { background: rgba(17, 7, 2, .08); }

.vl-panel__cuerpo {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px 14px;
}

.vl-panel__pie {
  padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--vl-linea);
  background: var(--vl-papel);
}

.vl-panel__pie .vl-pista { margin-top: 6px; }

.vl-seccion {
  margin: 0 0 6px;
  font-family: var(--vl-titulos);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--vl-tinta);
}

.vl-total {
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vl-suave);
  font-variant-numeric: tabular-nums;
}

.vl-bloque { margin-top: 16px; }

.vl-bloque__cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* [CSS-07] */

.vl-ficha,
.vl-anadido,
.vl-info {
  margin: 0 0 10px;
  padding: 7px 10px;
  border-left: 3px solid var(--vl-tinta);
  border-radius: 0 var(--vl-radio) var(--vl-radio) 0;
  background: var(--vl-niebla);
  font-size: 13px;
  font-weight: 600;
  color: var(--vl-tinta);
}

.vl-ficha {
  border-left-color: var(--vl-turquesa);
  background: var(--vl-menta-clara);
  color: var(--vl-texto);
}

.vl-ficha__texto { margin: 0; }
.vl-ficha .vl-enlace-accion { margin-top: 2px; font-size: 13.5px; }

.vl-anadido { margin: 10px 0 0; }
.vl-info:empty { display: none; }

/* [CSS-08] */

.vl-sugeridas { margin: 0 0 12px; }

.vl-sugeridas__titulo {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vl-texto);
}

.vl-sugeridas__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vl-sugerida {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--vl-borde);
  border-radius: 16px;
  background: #fff;
  color: var(--vl-texto);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.vl-sugerida:hover { border-color: var(--vl-tinta); background: var(--vl-niebla); }

.vl-sugerida__nombre {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.vl-sugerida__ref {
  color: var(--vl-suave);
  font-variant-numeric: tabular-nums;
}

.vl-sugerida__marca {
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--vl-menta-clara);
  color: var(--vl-petroleo);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.vl-sugerida[aria-pressed="true"] {
  border-color: var(--vl-tinta);
  background: var(--vl-tinta);
  color: #fff;
}

.vl-sugerida[aria-pressed="true"] .vl-sugerida__ref { color: rgba(255, 255, 255, .82); }
.vl-sugerida[aria-pressed="true"] .vl-sugerida__marca { background: #fff; }

@media (pointer: coarse) {
  .vl-sugerida { min-height: 44px; border-radius: 22px; }
}

/* [CSS-09] */

.vl-campo { margin-bottom: 8px; }

.vl-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.vl-fila--mitades { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.vl-campo label {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vl-texto);
}

.vl-obligatorio { color: var(--vl-petroleo); }

.vl-campo input[type="text"],
.vl-campo input[type="email"],
.vl-campo input[type="tel"],
.vl-campo input[type="date"],
.vl-campo textarea,
.vl-item__cant input,
.vl-guardar__fila input {
  width: 100%;
  min-height: var(--vl-control);
  padding: 6px 9px;
  border: 1px solid var(--vl-borde);
  border-radius: var(--vl-radio);
  background: #fff;
  color: var(--vl-texto);
  font: inherit;
  font-size: 14px;
}

@media (pointer: coarse) {
  .vl-campo input[type="text"],
  .vl-campo input[type="email"],
  .vl-campo input[type="tel"],
  .vl-campo input[type="date"],
  .vl-campo textarea,
  .vl-item__cant input,
  .vl-guardar__fila input { font-size: 16px; } /* [CSS-09.1] */
}

.vl-campo textarea { min-height: 0; resize: vertical; }

.vl-campo input[readonly] {
  border-color: var(--vl-linea);
  background: var(--vl-niebla);
  color: var(--vl-tinta);
  font-weight: 600;
  cursor: default;
}

.vl-campo input[readonly]:focus { outline-offset: 0; }

.vl-campo input::placeholder,
.vl-campo textarea::placeholder { color: #7b8d88; }

.vl-campo input:focus,
.vl-campo textarea:focus,
.vl-item__cant input:focus,
.vl-guardar__fila input:focus {
  border-color: var(--vl-tinta);
  outline: 2px solid var(--vl-tinta);
  outline-offset: 0;
}

.vl-campo [aria-invalid="true"],
.vl-guardar__fila input[aria-invalid="true"] { border-color: var(--vl-error); }

.vl-pista {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--vl-suave);
}

.vl-error {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--vl-error);
}

.vl-campo--casilla {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.vl-campo--casilla input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--vl-petroleo);
}

.vl-campo--casilla label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
}

.vl-campo--casilla .vl-error { grid-column: 2; }

.vl-campo a,
.vl-estado a { color: var(--vl-petroleo); font-weight: 600; }

/* [CSS-10] */

.vl-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.vl-boton--ancho { width: 100%; }
.vl-boton--pequeno { min-height: 32px; padding: 0 12px; font-size: 13.5px; }

.vl-boton--tinta { background: var(--vl-tinta); color: #fff; }
.vl-boton--tinta:hover { background: var(--vl-petroleo); }

.vl-boton--turquesa { background: var(--vl-grano), var(--vl-degradado); color: var(--vl-tinta); font-weight: 800; }
.vl-boton--turquesa:hover { background: var(--vl-turquesa-osc); }

.vl-boton--linea {
  background: #fff;
  color: var(--vl-tinta);
  box-shadow: inset 0 0 0 1.5px var(--vl-tinta);
}
.vl-boton--linea:hover { background: var(--vl-niebla); }

.vl-boton--texto {
  min-height: 32px;
  padding: 0 6px;
  background: transparent;
  color: var(--vl-petroleo);
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vl-enlace,
.vl-enlace-accion {
  padding: 3px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vl-enlace { color: var(--vl-suave); }
.vl-enlace:hover { color: var(--vl-error); }

.vl-enlace-accion { color: var(--vl-petroleo); font-weight: 600; }
.vl-enlace-accion:hover { color: var(--vl-tinta); }

.vl-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* [CSS-11] */

.vl-vacia {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed var(--vl-linea);
  border-radius: 8px;
  font-size: 13px;
  color: var(--vl-suave);
}

.vl-lista {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--vl-linea);
}

.vl-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px 32px;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--vl-linea);
}

.vl-item__main {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.vl-item__main {
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: var(--vl-radio);
  cursor: pointer;
}

button.vl-item__main:hover { background: var(--vl-niebla); }

.vl-item__ref {
  display: block;
  font-weight: 700;
  color: var(--vl-tinta);
  overflow-wrap: anywhere;
}

.vl-item__meta,
.vl-item__pliego,
.vl-item__dato {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
}

.vl-item__meta { color: var(--vl-suave); }

.vl-item__nombre {
  font-weight: 500;
  color: var(--vl-suave);
}

.vl-item__pliego {
  font-weight: 600;
  color: var(--vl-petroleo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vl-item__dato {
  margin-top: 1px;
  color: var(--vl-texto);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.vl-item__cant { display: block; }

.vl-item__cant input {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 14px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vl-item__quitar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--vl-radio);
  background: transparent;
  color: var(--vl-suave);
  cursor: pointer;
}

.vl-item__quitar:hover { background: #fdecea; color: var(--vl-error); }
.vl-item__quitar .vl-icono { width: 18px; height: 18px; }

.vl-cesta-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 8px;
}

/* [CSS-12] */

.vl-guardar label {
  display: block;
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 600;
}

.vl-guardar__fila {
  display: flex;
  gap: 8px;
}

.vl-guardar__fila input { flex: 1; min-width: 0; }
.vl-guardar__fila .vl-boton { min-height: var(--vl-control); }
.vl-guardar .vl-enlace-accion { margin-top: 6px; }

.vl-cesta-aviso {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--vl-petroleo);
}

.vl-cesta-aviso:empty { display: none; }

.vl-cestas {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--vl-linea);
}

.vl-cestas:empty { display: none; }

.vl-cesta-guardada {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--vl-linea);
}

.vl-cesta-guardada__nombre {
  display: block;
  font-weight: 700;
  color: var(--vl-texto);
  overflow-wrap: anywhere;
}

.vl-cestas + .vl-pista,
.vl-vacia + .vl-cestas + .vl-pista { margin-top: 8px; }

/* [CSS-13] */

.vl-mensaje {
  margin: 0 0 8px;
  padding: 7px 10px;
  border-left: 3px solid var(--vl-error);
  background: #fdf1ef;
  font-size: 13px;
  font-weight: 600;
  color: var(--vl-error);
}

.vl-mensaje:empty { display: none; }

.vl-pie-acciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.vl-pie-acciones .vl-boton {
  width: 100%;
  padding: 6px 8px;
  border-radius: 14px;
  line-height: 1.2;
  text-align: center;
}

.vl-pie-aviso {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--vl-petroleo);
}

.vl-pie-aviso:empty { display: none; }

.vl-estado {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--vl-niebla);
  font-size: 13px;
}

.vl-estado p { margin: 0 0 6px; }
.vl-estado__titulo { font-weight: 700; color: var(--vl-tinta); }
.vl-estado .vl-acciones { margin-top: 8px; }

/* [CSS-14] */

.vl-dialogo {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--vl-papel);
  color: var(--vl-texto);
  box-shadow: 0 24px 64px rgba(var(--vl-velo), .28);
  overflow: hidden;
}

.vl-dialogo[open] {
  display: flex;
  flex-direction: column;
  animation: vl-dialogo-entra .18s ease-out;
}

.vl-dialogo::backdrop { background: rgba(13, 44, 51, .5); }

/* [CSS-14.1] */
.vl-dialogo[open]:not(:modal) {
  position: fixed;
  inset: 0;
  z-index: 60;
  height: fit-content;
  margin: auto;
  box-shadow: 0 0 0 100vmax rgba(var(--vl-velo), .4), 0 24px 64px rgba(var(--vl-velo), .28);
}

@keyframes vl-dialogo-entra {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.vl-dialogo__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 10px 14px 20px;
  background: var(--vl-grano), var(--vl-degradado);
}

.vl-dialogo__cab .vl-cerrar:hover { background: rgba(255, 255, 255, .35); }

.vl-dialogo__titulo {
  margin: 0;
  font-family: var(--vl-titulos);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--vl-tinta);
}

.vl-dialogo__titulo:focus,
.vl-dialogo__titulo:focus-visible { outline: none; }

.vl-dialogo__cuerpo {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 18px;
}

.vl-dialogo__texto {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--vl-texto);
}

.vl-dialogo__texto strong { color: var(--vl-tinta); overflow-wrap: anywhere; }

.vl-dialogo__destacado {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--vl-turquesa);
  border-radius: 0 var(--vl-radio) var(--vl-radio) 0;
  background: var(--vl-menta-clara);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--vl-texto);
}

.vl-dialogo__aviso {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-left: 3px solid var(--vl-petroleo);
  border-radius: 0 var(--vl-radio) var(--vl-radio) 0;
  background: var(--vl-niebla);
  font-size: 13.5px;
  line-height: 1.4;
}

.vl-dialogo__aviso .vl-enlace-accion,
.vl-pista .vl-enlace-accion { padding: 0; font-size: inherit; }

.vl-dialogo__alternativa { display: block; margin: 14px auto 0; }

.vl-dialogo__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.vl-dialogo__acciones .vl-boton { flex: 1 1 200px; }

.vl-opciones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vl-opciones--dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.vl-opcion {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--vl-linea);
  border-radius: 12px;
  background: #fff;
  color: var(--vl-texto);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}

button.vl-opcion {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vl-opcion:hover { border-color: var(--vl-tinta); background: var(--vl-niebla); }

.vl-opcion--destacada {
  border-color: var(--vl-tinta);
  box-shadow: inset 0 0 0 1px var(--vl-tinta);
}
.vl-opcion:focus-visible { outline: 3px solid var(--vl-tinta); outline-offset: 2px; }

.vl-opcion__icono {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 10px;
  background: var(--vl-menta-clara);
  color: var(--vl-petroleo);
}

.vl-opcion:hover .vl-opcion__icono { background: #fff; }

.vl-opcion__textos {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.vl-opcion__nombre {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--vl-tinta);
}

.vl-opcion__detalle {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--vl-suave);
}

.vl-opcion__ultima {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 9px;
  background: var(--vl-menta);
  color: var(--vl-tinta);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.vl-dialogo__otra {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--vl-linea);
  font-size: 14px;
  text-align: center;
  color: var(--vl-suave);
}

.vl-dialogo__otra .vl-enlace-accion { padding: 0; font-size: inherit; }

.vl-copia { margin-bottom: 12px; }

.vl-copia__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.vl-copia__etiqueta {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vl-texto);
}

.vl-copia__boton {
  min-width: 92px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--vl-tinta);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.vl-copia__boton:hover { background: var(--vl-petroleo); }
.vl-copia__boton--hecho { background: #157347; }
.vl-copia__boton--hecho:hover { background: #157347; }

.vl-copia__valor {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--vl-borde);
  border-radius: var(--vl-radio);
  background: var(--vl-niebla);
  color: var(--vl-texto);
  font: inherit;
  font-size: 14px;
}

.vl-copia__valor--largo {
  min-height: 120px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.45;
}

.vl-copia__valor:focus { outline: 2px solid var(--vl-tinta); outline-offset: 0; border-color: var(--vl-tinta); }

@media (pointer: coarse) {
  .vl-copia__boton { min-height: 40px; }
}

@media (max-width: 599px) {
  .vl-dialogo {
    width: 100%;
    max-width: none;
    max-height: calc(100% - 24px);
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }

  .vl-dialogo__cuerpo { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

  .vl-opciones,
  .vl-opciones--dos { grid-template-columns: minmax(0, 1fr); }

  .vl-opcion {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 64px;
  }

  .vl-opcion__ultima { position: static; flex: none; margin-left: auto; }
}

/* [CSS-15] */

@media (min-width: 960px) and (max-height: 780px) {
  .vl-panel__cuerpo { padding-top: 10px; padding-bottom: 10px; }
  .vl-campo { margin-bottom: 6px; }
  .vl-sugeridas { margin-bottom: 8px; }
  .vl-sugerida { min-height: 30px; padding: 4px 9px; }
  .vl-ficha,
  .vl-anadido,
  .vl-info { padding-top: 6px; padding-bottom: 6px; }
}

/* [CSS-16] */

.vl-velo {
  position: fixed;
  inset: calc(var(--vl-cab) + env(safe-area-inset-top, 0px)) 0 0 0;
  z-index: 25;
  background: rgba(var(--vl-velo), .4);
}

/* [CSS-17] */

.vl-diagnostico {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 50;
  width: min(460px, calc(100% - 24px));
  max-height: 40vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: var(--vl-petroleo);
  color: #fff;
  font-size: 12px;
  box-shadow: var(--vl-sombra);
}

.vl-diagnostico__cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-weight: 700;
}

.vl-diagnostico__cab button {
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--vl-tinta);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vl-diagnostico pre {
  margin: 0;
  padding: 0 10px 10px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* [CSS-18] */

@media (max-width: 1299px) {
  .vl-titulo { display: none; }
}

@media (max-width: 1059px) {
  .vl-correo__texto { display: none; }
}

@media (max-width: 959px) {
  .vl-panel {
    position: fixed;
    z-index: 28;
    top: calc(var(--vl-cab) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    width: min(100%, 440px);
    box-shadow: -12px 0 32px rgba(var(--vl-velo), .18);
    animation: vl-entrada .22s ease-out;
  }

  .vl-panel__cab { padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .vl-panel__cuerpo,
  .vl-panel__pie { padding-right: max(16px, env(safe-area-inset-right, 0px)); }

  .vl-accion .vl-largo { display: none; }
  .vl-accion .vl-corto { display: inline; }
  #btn-merch-mis-cestas .vl-corto { display: none; }
  #btn-merch-mis-cestas { padding: 0 8px; }
  .vl-accion { padding: 0 12px 0 10px; }
}

@keyframes vl-entrada {
  from { transform: translateX(32px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (min-width: 960px) {
  .vl-velo { display: none !important; }
}

@media (max-width: 799px) {
  .vl-marca img { height: 28px; }
}

/* [CSS-19] */

@media (max-width: 599px) {
  :root { --vl-cab: 56px; }

  body { padding-bottom: calc(var(--vl-barra-movil) + env(safe-area-inset-bottom, 0px)); }

  .vl-cabecera { gap: 8px; padding-right: max(6px, env(safe-area-inset-right, 0px)); }
  .vl-correo { padding: 0 8px; font-size: 14px; }

  .vl-barra {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 46px 1fr 1fr;
    gap: 8px;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--vl-grano), var(--vl-degradado);
    border-top: 1px solid rgba(17, 7, 2, .12);
  }

  .vl-accion { width: 100%; min-height: 46px; }
  .vl-accion--clara .vl-largo { display: inline; }
  .vl-accion--clara .vl-corto { display: none; }
  #btn-merch-mis-cestas { padding: 0; }

  .vl-panel {
    z-index: 31;
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }
}

@media (max-width: 419px) {
  .vl-accion--clara .vl-largo { display: none; }
  .vl-accion--clara .vl-corto { display: inline; }
}

/* [CSS-21] */

.vl-guia {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.vl-guia__foco {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 200vmax rgba(var(--vl-velo), .6);
  outline: 3px solid var(--vl-menta);
  outline-offset: 2px;
  pointer-events: none;
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
  animation: vl-guia-latido 1.8s ease-in-out infinite;
}

.vl-guia__foco--sin { outline-color: transparent; animation: none; }

@keyframes vl-guia-latido {
  0%, 100% { outline-color: rgba(116, 198, 165, 1); }
  50% { outline-color: rgba(116, 198, 165, .3); }
}

.vl-guia__muro {
  position: fixed;
  pointer-events: auto;
}

.vl-guia__tarjeta {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 10px 14px 12px 16px;
  border-radius: 14px;
  background: var(--vl-papel);
  color: var(--vl-texto);
  box-shadow: 0 18px 48px rgba(var(--vl-velo), .32);
  pointer-events: auto;
  transition: top .25s ease, left .25s ease;
}

.vl-guia__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-right: -6px;
}

.vl-guia__paso {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vl-suave);
  font-variant-numeric: tabular-nums;
}

.vl-guia__progreso {
  height: 4px;
  margin: 2px 0 12px;
  border-radius: 2px;
  background: var(--vl-niebla);
  overflow: hidden;
}

.vl-guia__barra {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--vl-turquesa);
  transition: width .25s ease;
}

.vl-guia__titulo {
  margin: 0 0 6px;
  font-family: var(--vl-titulos);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--vl-tinta);
}

.vl-guia__titulo:focus { outline: none; }

.vl-guia__texto {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
}

.vl-guia__imagen {
  display: block;
  max-width: 100%;
  max-height: 170px;
  margin: 12px auto 0;
  border: 1px solid var(--vl-linea);
  border-radius: 8px;
}

.vl-guia__accion {
  margin: 10px 0 0;
  padding: 7px 10px;
  border-radius: var(--vl-radio);
  background: var(--vl-menta-clara);
  font-size: 13px;
  font-weight: 600;
  color: var(--vl-petroleo);
}

.vl-guia__botones {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.vl-guia__botones .vl-boton--texto { margin-right: auto; padding: 0; font-size: 13.5px; color: var(--vl-suave); }
.vl-guia__botones .vl-boton--pequeno { min-width: 86px; }

/* [CSS-22] */

.vl-invitacion {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 46;
  width: min(300px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--vl-petroleo);
  color: #fff;
  box-shadow: 0 14px 36px rgba(var(--vl-velo), .3);
  animation: vl-asoma .25s ease-out;
}

.vl-invitacion::before {
  content: "";
  position: absolute;
  top: -6px;
  left: var(--vl-flecha, 50%);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--vl-petroleo);
  transform: rotate(45deg);
}

@keyframes vl-asoma {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.vl-invitacion__texto { margin: 0; font-size: 14px; line-height: 1.4; }
.vl-invitacion__texto strong { display: block; margin-bottom: 2px; font-size: 15px; }

.vl-invitacion__botones {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.vl-invitacion__texto strong { font-family: var(--vl-titulos); font-weight: 800; }
.vl-invitacion .vl-boton--tinta { background: var(--vl-menta); color: var(--vl-tinta); }
.vl-invitacion .vl-boton--tinta:hover { background: #fff; }
.vl-invitacion .vl-boton--texto { color: #fff; font-size: 13.5px; }

.vl-icono-boton--guia { background: #fff; color: var(--vl-tinta); }
.vl-icono-boton--guia:hover { background: var(--vl-menta-clara); }

/* [CSS-20] */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
