/* Acodex v9 · /precios/: las tres reglas y el presupuesto (servicios en filas a la izquierda, el ticket a la derecha).
   Con el lenguaje del resto de la web: filetes finos, títulos en Josefin, píldoras y la tarjeta blanca con luz. Lo maneja
   precios.js; sin JS se ven los servicios con su precio y el ticket vacío. */
:root { --filete: rgba(24, 24, 26, .14); --punteado: rgba(24, 24, 26, .22); }

/* ---- las tres reglas (como «Cómo lo hacemos» de Servicios) */
.bloque:has(.reglas) { padding-top: clamp(36px, 6svh, 64px); padding-bottom: 0; }
.bloque.tpv-bloque { padding-top: clamp(40px, 7svh, 80px); }
.reglas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.reglas li { padding-top: 18px; border-top: 1px solid var(--filete); }
.reglas h2 { font: 600 clamp(22px, 2vw, 28px)/1.05 var(--titulo); letter-spacing: -0.04em; }
.reglas p { margin-top: 10px; max-width: 42ch; font-size: 15.5px; line-height: 1.5; color: var(--gris); }
.reglas strong { color: var(--ink); font-weight: 600; }

/* ---- el presupuesto */
.tpv-bloque > .titulo-seccion { margin-bottom: clamp(32px, 5svh, 56px); }
.tpv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(32px, 5vw, 88px); align-items: start; }
.catalogo { display: grid; gap: clamp(44px, 7svh, 72px); }

/* cada grupo: su nombre grande y fino (como las filas de Servicios) y su nota de mantenimiento */
.tg-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 8px; }
.tg-cab h3 { font: 300 clamp(32px, 3.6vw, 52px)/1 var(--titulo); letter-spacing: -0.04em; }
.tg-cab span { font-size: 14px; font-weight: 600; color: var(--acento); }

/* cada servicio, una fila entre filetes; toda la fila es el botón */
.teclas { border-top: 1px solid var(--filete); }
.tecla { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; column-gap: clamp(14px, 2vw, 28px); width: 100%;
  padding: clamp(16px, 2.4svh, 22px) 0; border: 0; border-bottom: 1px solid var(--filete); background: none; color: var(--ink); text-align: left;
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tc-txt { display: grid; gap: 4px; min-width: 0; }
.tc-t { font: 600 clamp(20px, 1.7vw, 24px)/1.1 var(--titulo); letter-spacing: -0.03em; transition: transform .5s var(--curva), color .25s; }
.tc-d { max-width: 52ch; font-size: 15px; line-height: 1.45; color: var(--gris); }
.tc-p { display: grid; justify-items: end; gap: 2px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tc-p s { font-size: 13px; font-weight: 400; color: var(--gris); }
.tc-gratis { color: var(--verde); }
.tc-anual { font-size: 13px; font-weight: 500; color: var(--gris); }
/* el círculo: «+» para añadir; lleno, con ✓ (o la cantidad), si ya está en el ticket */
.tc-marca { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--filete);
  font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; transition: background .3s var(--curva), color .3s, box-shadow .3s, scale .2s var(--curva); }
.tc-marca:empty::before { content: "+"; font-size: 20px; font-weight: 400; }
.tecla[aria-pressed="true"] .tc-marca { background: var(--ink); color: #fff; box-shadow: none; }
.tecla[aria-pressed="true"] .tc-marca:empty::before { content: "✓"; font-size: 15px; font-weight: 600; }
.tecla[aria-pressed="true"] .tc-t { color: var(--acento); }
@media (hover: hover) {
  .tecla:hover .tc-t { transform: translateX(6px); }
  .tecla:hover .tc-marca { box-shadow: inset 0 0 0 1.5px var(--ink); }
}
.tecla:active .tc-marca { scale: .92; }
.tecla:focus-visible { outline-offset: -2px; }
/* lo que va siempre (SEO, multiidioma, redacción): no es botón, lleva el ✓ puesto */
.tecla.incluida { cursor: default; }
.tecla.incluida .tc-marca { background: var(--ink); color: #fff; box-shadow: none; }
.tecla.incluida .tc-marca:empty::before { content: "✓"; font-size: 15px; font-weight: 600; }
@media (hover: hover) { .tecla.incluida:hover .tc-t { transform: none; } }

/* ---- el ticket: la tarjeta blanca con la luz de la web, filetes punteados de recibo y números alineados */
/* fijo al bajar. Sin scroll dentro (22/11/2026): el ticket se alarga con cada línea, como un recibo. Si llega a ser más alto que la
   pantalla, --tope (precios.js) lo deja subir con la página hasta que se ve su final, y se queda fijo ahí */
.caja { position: sticky; top: var(--tope, 84px); display: flex; flex-direction: column; gap: 12px; align-self: start; }
.caja > * { flex: none; }
.ticket { display: flex; flex-direction: column; }
.ticket > * { flex: none; }
/* el papel: arriba recto, abajo dentado (máscara); la sombra va en .ticket-sombra, porque la máscara la recortaría */
.ticket-sombra { filter: drop-shadow(0 1px 1px rgba(24, 24, 26, .08)) drop-shadow(0 26px 34px rgba(27, 47, 107, .16)); }
.ticket { --diente: 9px; padding: clamp(24px, 2.4vw, 32px) clamp(24px, 2.4vw, 32px) calc(clamp(24px, 2.4vw, 32px) + var(--diente)); border-radius: 14px 14px 0 0;
  background: linear-gradient(#fff, #fdfcf9); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--diente) + 1px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--diente) * 2) var(--diente) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--diente) + 1px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--diente) * 2) var(--diente) repeat-x; }
.ticket.imprime { animation: tk-sale .45s var(--curva); }
@keyframes tk-sale { 0% { transform: translateY(-4px); } 100% { transform: none; } }
/* la letra de ticket: monoespaciada en las líneas, los subtotales y la fecha */
.tk-lineas, .tk-gris, .tk-meta, .tk-anual > span:last-child, .tk-pie { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
.tk-lineas { font-size: 13.5px; }
.tk-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tk-titulo { font: 600 26px/1 var(--titulo); letter-spacing: -0.04em; }
.tk-meta { font-size: 12.5px; color: var(--gris); }
.tk-sep { margin: 14px 0; border: 0; border-top: 1px dashed var(--punteado); }
/* con o sin mantenimiento: un selector de píldora */
.tk-modo { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--tono); }
.tk-modo button { min-height: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--gris); font: 500 14px/1.1 var(--sans);
  cursor: pointer; transition: background .3s var(--curva), color .3s; }
.tk-modo button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tk-zona { margin-top: 8px; }
.tk-nota { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--gris); }
/* (03/12/2026) cada línea en una fila: la × roja a la izquierda (quitar), el nombre y el importe */
.tk-lineas li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 4px 0; }
/* cada línea nueva sale «impresa»: se descubre de arriba abajo */
.tk-lineas li.nueva { animation: tk-imprime .5s steps(6, end); }
@keyframes tk-imprime { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
/* (03/12/2026) lo incluido, a la vista: ✓ verde y una pastilla «Incluido»; arriba, un filete y el rótulo «Va incluido» */
.tk-lineas li[data-incluido] { color: var(--ink); }
.tk-lineas li[data-primero] { position: relative; margin-top: 12px; padding-top: 26px; border-top: 1px dashed rgba(24, 24, 26, .14); }
.tk-lineas li[data-primero]::before { content: "Va incluido, sin coste"; position: absolute; left: 0; top: 8px; font: 600 11px/1 var(--sans);
  letter-spacing: .06em; text-transform: uppercase; color: var(--verde); }
.tk-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--verde); }
.tk-check::before { content: ""; width: 8px; height: 4px; margin-top: -2px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.tk-gratis { display: inline-block; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--verde) 14%, transparent);
  color: color-mix(in srgb, var(--verde) 70%, #000); font: 600 12px/1.5 var(--sans); }
.tk-lineas em { margin-right: 6px; font-style: normal; color: var(--gris); }
.tk-imp { text-align: right; white-space: nowrap; font-weight: 500; }
.tk-imp s { margin-right: 6px; font-weight: 400; color: var(--gris); }
.tk-quita { position: relative; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; color: #d23b3b; cursor: pointer;
  transition: background .2s, color .2s; }
.tk-quita::before, .tk-quita::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 1px; background: currentColor; }
.tk-quita::before { transform: translate(-50%, -50%) rotate(45deg); } .tk-quita::after { transform: translate(-50%, -50%) rotate(-45deg); }
.tk-quita:hover, .tk-quita:focus-visible { background: #d23b3b; color: #fff; outline: none; }
.tk-lineas .tk-vacio { display: block; padding: 16px 0; text-align: center; color: var(--gris); animation: none; }
.tk-fila { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.tk-gris { font-size: 14px; color: var(--gris); }
.tk-total { align-items: baseline; padding-top: 10px; }
.tk-total > span:first-child { font: 600 20px/1 var(--titulo); letter-spacing: -0.03em; }
.tk-total > span:last-child { font: 600 clamp(28px, 2.6vw, 34px)/1 var(--sans); letter-spacing: -0.03em; }
.tk-anual { font-weight: 600; color: var(--acento); }
/* la cifra que rueda: cada dígito, una tira 0–9 dentro de una ventana de 1em (precios.js) */
.tk-cifra .rd { display: inline-flex; font-variant-numeric: tabular-nums; }   /* (03/12/2026) cifras de igual ancho: el «1» dejaba hueco */
.rd-d { display: inline-block; height: 1em; overflow: hidden; }
.rd-tira { display: flex; flex-direction: column; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.rd-tira > span { display: block; height: 1em; line-height: 1; }
.rd-c { white-space: pre; }
@media (prefers-reduced-motion: reduce) { .rd-tira { transition: none; } .tk-lineas li.nueva, .ticket.imprime { animation: none; } }
.tk-ahorro { margin-top: 12px; padding: 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--verde) 10%, transparent);
  text-align: center; font-size: 13.5px; font-weight: 600; color: #178a48; }
.tk-ahorro:empty { display: none; }
.tk-pie { font-size: 12.5px; color: var(--gris); text-align: center; }
.tk-acciones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tk-acciones .boton { width: 100%; }
.tk-incluye { font-size: 13.5px; line-height: 1.5; color: var(--gris); }
/* (03/12/2026) sin impuestos en el ticket: lo dice aquí */
.tk-sinimp { margin-top: 6px; font-size: 12.5px; color: var(--gris); text-align: right; }

/* ---- en el móvil: el ticket debajo, y una píldora con el total que lleva a él */
.tk-barra { display: none; }
@media (max-width: 960px) {
  .tpv { grid-template-columns: minmax(0, 1fr); }
  .caja { position: static; max-width: 480px; }
  .reglas { grid-template-columns: minmax(0, 1fr); }
  .tk-barra:not([hidden]) { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex;
    align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff;
    font: 500 14px/1.3 var(--sans); text-decoration: none; box-shadow: 0 16px 40px -16px rgba(20, 20, 30, .5); transition: transform .45s var(--curva); }
  .tk-barra.fuera { transform: translateY(160%); }
  .tk-barra b { font-size: 17px; font-variant-numeric: tabular-nums; }
}
@media (max-width: 520px) {
  .tecla { grid-template-columns: minmax(0, 1fr) 36px; row-gap: 8px; }
  .tc-txt { grid-column: 1; grid-row: 1; }
  .tc-marca { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; }
  .tc-p { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; text-align: left; }
  .tk-modo button { padding: 0 4px; font-size: 13px; white-space: nowrap; }
}

/* pantallas bajas con el ticket fijo: fuera lo que ya cuentan las preguntas, para que quepan las líneas y los botones */
@media (min-width: 961px) and (max-height: 920px) {
  .caja .tk-nota, .caja .tk-incluye { display: none; }
  .caja .tk-modo + .tk-modo { margin-top: 8px; }
}
