/*
Theme Name:  TPP Child
Theme URI:   https://prepago.tpp.com.ar/
Description: Child theme de Storefront para TPP · Tarjeta Virtual. Restyle cálido,
             simple y mobile-first sobre WooCommerce clásico. La fuente de verdad
             del diseño es tpp-prepago.html. No usar Elementor ni page builders.
Author:      TPP S.A.
Template:    storefront
Version:     0.1.0
Text Domain: tpp-child
*/

/* =============================================================================
   1. Sistema de diseño — tokens (fuente: tpp-prepago.html + Apéndice A del handoff)
   Usar SIEMPRE estas variables. Nunca hardcodear colores ni fuentes.
   ========================================================================== */
:root{
  /* ---- Paleta de marca (crema cálido + rojo TPP) ---- */
  --bg:#FCFBF8;          /* fondo de la app */
  --card:#FFFFFF;        /* tarjetas elevadas */
  --surface:#F3F1EB;     /* cajas / superficies sutiles */
  --frame:#E9E4DA;       /* marco (solo visible en desktop) */
  --text:#2B2826;        /* texto principal (carbón) */
  --text2:#8A8278;       /* texto secundario */
  --text3:#B3AC9F;       /* texto terciario / leyendas */
  --border:#ECE9E2;      /* bordes */
  --brand:#EE1B22;       /* rojo de marca / acción */
  --brand-dark:#C8141A;  /* rojo hover / links */
  --brand-tint:#FCE9EA;  /* fondo rojo suave (chips, íconos) */
  --success-bg:#E8EFE2; --success-tx:#4F7A3F;
  --warning-bg:#F3EAD2; --warning-tx:#8A6D1F;
  --mp:#009EE3;          /* azul MercadoPago */
  --wa:#25D366;          /* verde WhatsApp */
  --radius:14px;
  --radius-sm:10px;
  --font:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;
}

/* =============================================================================
   2. Base — tipografía y colores globales (mobile-first)
   El restyle por pantalla (home, producto, checkout, etc.) se irá agregando
   en fases posteriores como overrides/secciones específicas.
   ========================================================================== */
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--frame);      /* marco crema visible en desktop; el .tpp-app va arriba */
  font-size:16px;              /* 16px en inputs/base evita el zoom de iOS */
  -webkit-font-smoothing:antialiased;
}

a{ color:var(--brand-dark); }
a:hover{ color:var(--brand); }

/* Logo TPP: toma el color de marca vía currentColor */
.tpp-logo{ color:var(--brand); display:block; }
.tpp-logo svg{ height:34px; width:auto; display:block; }

/* Inputs en 16px para no disparar el zoom automático de iOS */
input, select, textarea{ font-size:16px; }

/* Foco accesible: sin el aro morado por defecto de Storefront al tocar/clickear
   (molesto sobre todo en mobile); aro de marca SOLO con teclado (:focus-visible). */
.tpp-app{ -webkit-tap-highlight-color: rgba(0,0,0,0); }
.tpp-app a:focus,
.tpp-app button:focus,
.tpp-app input:focus,
.tpp-app select:focus,
.tpp-app [tabindex]:focus{ outline:none; }
.tpp-app a:focus-visible,
.tpp-app button:focus-visible,
.tpp-app [tabindex]:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

/* Mono para PIN / códigos */
.tpp-mono{ font-family:var(--mono); font-weight:500; }

/* =============================================================================
   3. Shell global "app-style" (header.php / footer.php) — contenedor + barra
   superior con logo + tab bar inferior. Reproduce el shell del prototipo en
   TODAS las pantallas.
   ========================================================================== */

/* Contenedor tipo app: centrado en desktop, full en mobile */
.tpp-app{
  max-width:440px; margin:0 auto; min-height:100dvh;
  background:var(--bg); display:flex; flex-direction:column;
  box-shadow:0 0 80px rgba(43,40,38,.10);
}

/* Barra superior con el logo (+ botón volver en páginas internas) */
.tpp-appbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; gap:10px;
  padding:14px 16px; background:var(--bg);
  border-bottom:.5px solid var(--border);
}
.tpp-appbar__label{ font-size:13px; color:var(--text2); margin-left:auto; }
.tpp-appbar__back{
  display:inline-flex; align-items:center; background:none; border:none;
  cursor:pointer; color:var(--text); padding:0; line-height:0;
}
.tpp-appbar__back svg{ width:22px; height:22px; }
.tpp-logo{ color:var(--brand); display:flex; flex:none; line-height:0; text-decoration:none; }
.tpp-logo svg{ height:34px; width:auto; display:block; }

.tpp-main{ flex:1; display:flex; flex-direction:column; }

/* Contenido de WooCommerce/Storefront a una sola columna dentro del shell */
.tpp-app #primary,
.tpp-app .content-area{ width:100%; float:none; margin:0; padding:18px 16px; }
.tpp-app #main{ margin:0; }

/* ---- Barra de navegación inferior ---- */
.tpp-tabbar{
  position:sticky; bottom:0; z-index:20;
  display:flex; background:var(--card); border-top:.5px solid var(--border);
  padding-bottom:env(safe-area-inset-bottom);
}
.tpp-tab{
  flex:1; background:none; border:none; cursor:pointer; padding:9px 4px; font-family:inherit;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  font-size:12px; color:var(--text2); line-height:1.2; text-align:center; text-decoration:none;
}
.tpp-tab svg{ width:20px; height:20px; }
.tpp-tab.active{ color:var(--brand); }
.tpp-tab:hover{ color:var(--brand-dark); }

/* =============================================================================
   3b. Producto "Elegí el monto" (single product variable) — vista #v-amount.
   Quitamos el cromo por defecto de Woo y mostramos solo el selector de monto.
   ========================================================================== */

/* Encabezado y bajada reutilizables */
.tpp-h2{ font-size:20px; margin:4px 0; font-weight:600; color:var(--text); }

/* Ocultar cromo del single product que no va en la pantalla del prototipo.
   Nota: "single-product" es clase de <body> (ancestro de .tpp-app), por eso
   apuntamos directamente a div.product, que sí vive dentro de .tpp-app. */
.tpp-app div.product .woocommerce-product-gallery,
.tpp-app div.product .summary > .price,
.tpp-app div.product .product_title,
.tpp-app div.product .woocommerce-product-rating,
.tpp-app div.product .woocommerce-product-details__short-description,
.tpp-app div.product .product_meta,
.tpp-app .woocommerce-tabs,
.tpp-app .related.products,
.tpp-app .up-sells{ display:none !important; }

/* Layout a UNA columna. Storefront flota la .summary a la derecha al ~48% en
   viewports de escritorio (la otra mitad era la galería, ya oculta), por eso el
   contenido aparecía angosto y pegado a la derecha. La forzamos a ancho completo. */
.tpp-app div.product{ display:block; }
.tpp-app div.product .summary,
.tpp-app div.product .entry-summary{
  width:100% !important; float:none !important; margin:0 !important; padding:0 !important;
}

/* Tabla nativa de variaciones (la reemplazan las amount cards) */
.tpp-variations-hidden{ display:none !important; }

/* La caja de variación inyectada por Woo (precio/disponibilidad) — el precio ya
   está en cada card. Woo la muestra con style inline, así que necesitamos !important. */
.tpp-app .woocommerce-variation.single_variation{ display:none !important; }

/* Lista de montos */
.tpp-amt-list{ margin-top:6px; }
.tpp-amt{
  background:var(--card); border:.5px solid var(--border); border-radius:var(--radius);
  padding:16px 18px; width:100%; cursor:pointer; text-align:left; color:var(--text);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  transition:border-color .12s; font-family:inherit;
}
.tpp-amt + .tpp-amt{ margin-top:12px; }
.tpp-amt:hover{ border-color:var(--brand); }
/* Fijamos fondo/borde también en :focus/:active: en mobile el botón queda enfocado
   tras el tap y Storefront pintaría la card en gris (su estilo de <button> nativo). */
.tpp-amt, .tpp-amt:focus, .tpp-amt:active{ background:var(--card); -webkit-tap-highlight-color:transparent; }
.tpp-amt:focus{ outline:none; }
.tpp-amt--sel, .tpp-amt--sel:focus, .tpp-amt--sel:active{ border:2px solid var(--brand); background:var(--brand-tint); }
/* Variación sin stock: en gris, no seleccionable */
.tpp-amt--disabled{ opacity:.55; cursor:not-allowed; background:var(--surface); }
.tpp-amt--disabled:hover{ border-color:var(--border); }
.tpp-amt--disabled .tpp-amt__v,
.tpp-amt--disabled .tpp-amt__s{ color:var(--text3); }
.tpp-amt--disabled .tpp-radio{ visibility:hidden; }
.tpp-amt__main{ display:flex; flex-direction:column; }
.tpp-amt__v{ font-size:20px; font-weight:600; }
.tpp-amt__s{ font-size:14px; color:var(--text2); margin-top:2px; }
.tpp-amt__right{ display:flex; align-items:center; gap:10px; }
.tpp-radio{
  width:22px; height:22px; border-radius:50%; border:2px solid var(--border); flex:none;
  display:flex; align-items:center; justify-content:center; color:transparent;
}
.tpp-radio svg{ width:13px; height:13px; }
.tpp-amt--sel .tpp-radio{ border-color:var(--brand); background:var(--brand); color:#fff; }

/* Badge "Más elegida" */
.tpp-badge{ font-size:11px; font-weight:600; padding:3px 9px; border-radius:8px; }
.tpp-badge--brand{ background:var(--brand-tint); color:var(--brand); }

/* Cantidad siempre 1 (oculta) + link "Editar" de admin fuera del front */
.tpp-app form.cart .quantity{ display:none !important; }
.tpp-app .post-edit-link,
.tpp-app .edit-link{ display:none; }

/* Selector de cantidad (piloto Recargas): sólo aparece en variaciones habilitadas */
.tpp-qty{
	margin-top:18px; background:var(--surface);
	border:1px solid var(--border); border-radius:var(--radius);
	padding:15px 15px 16px;
}
.tpp-qty[hidden]{ display:none; }
.tpp-qty__head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:11px; }
.tpp-qty__title{ font-size:15px; font-weight:800; }
.tpp-qty__hint{ font-style:normal; font-size:12px; color:var(--text2); }
.tpp-qty__seg{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.tpp-qty__b{
	font-family:inherit; cursor:pointer; padding:11px 0; border-radius:var(--radius-sm);
	background:var(--card); border:1.5px solid var(--border);
	font-size:18px; font-weight:800; color:var(--text);
	transition:border-color .12s, box-shadow .12s, color .12s;
}
.tpp-qty__b small{ display:block; font-size:11px; font-weight:600; color:var(--text2); margin-top:1px; }
.tpp-qty__b:hover{ border-color:var(--text3); }
.tpp-qty__b--sel{ border-color:var(--brand); color:var(--brand-dark); box-shadow:0 0 0 3px var(--brand-tint); background:#fff; }
.tpp-qty__b--sel small{ color:var(--brand-dark); }
.tpp-qty__b:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }
.tpp-qty__total{
	display:flex; align-items:baseline; justify-content:space-between;
	margin-top:13px; padding-top:12px; border-top:1px dashed var(--border);
}
.tpp-qty__k{ font-size:13px; color:var(--text2); font-weight:600; }
.tpp-qty__v{ font-size:20px; font-weight:800; }
.tpp-qty__v small{ font-size:12px; color:var(--text2); font-weight:600; }
.tpp-qty__note{ margin:8px 0 0; font-size:12.5px; color:var(--text2); }
.tpp-qty__note:empty{ display:none; }

/* Botón "Continuar" estilo CTA */
.tpp-app .single_add_to_cart_button{
  width:100%; margin-top:18px; padding:14px; border:none; border-radius:12px;
  background:var(--brand); color:#fff; font-size:16px; font-weight:600; cursor:pointer;
  box-shadow:0 4px 14px rgba(238,27,34,.30); transition:background .15s, transform .05s;
}
.tpp-app .single_add_to_cart_button:hover{ background:var(--brand-dark); }
.tpp-app .single_add_to_cart_button:active{ transform:translateY(1px); }
.tpp-app .single_add_to_cart_button.disabled,
.tpp-app .single_add_to_cart_button:disabled{ opacity:.5; cursor:not-allowed; }

/* =============================================================================
   3c. Checkout de un paso (solo email) + pedido recibido — vista #v-pay.
   ========================================================================== */

/* Avisos de WooCommerce (errores / info / mensajes) al estilo de marca —
   en vez del bloque rojo duro de Storefront, una cajita suave redondeada. */
.tpp-app .woocommerce-error,
.tpp-app .woocommerce-info,
.tpp-app .woocommerce-message{
  list-style:none; margin:0 0 16px; padding:12px 14px; border:none;
  border-radius:var(--radius-sm); box-shadow:none; font-size:14px; line-height:1.5;
}
.tpp-app .woocommerce-error{ background:var(--brand-tint); color:var(--brand-dark); }
.tpp-app .woocommerce-info,
.tpp-app .woocommerce-message{ background:var(--surface); color:var(--text); }
.tpp-app .woocommerce-error li,
.tpp-app .woocommerce-info li,
.tpp-app .woocommerce-message li{ list-style:none; margin:0; padding:0; }
.tpp-app .woocommerce-error::before, .tpp-app .woocommerce-error li::before,
.tpp-app .woocommerce-info::before, .tpp-app .woocommerce-info li::before,
.tpp-app .woocommerce-message::before, .tpp-app .woocommerce-message li::before{ content:none !important; }
.tpp-app .woocommerce-error a,
.tpp-app .woocommerce-info a,
.tpp-app .woocommerce-message a{ color:inherit; text-decoration:underline; font-weight:600; }
.tpp-app .woocommerce-error a:hover{ color:var(--brand); }

/* En el checkout el error va INLINE debajo del campo (no arriba). Ocultamos el
   grupo de avisos de arriba y estilamos el mensaje inline de WooCommerce.
   (Nota: cuando entre MercadoPago, revisar errores de pago que no tienen campo.) */
.tpp-app .woocommerce-NoticeGroup-checkout{ display:none; }
.tpp-app .checkout-inline-error-message{ color:var(--brand-dark); font-size:13px; margin:8px 0 0; }

/* Ocultar lo que no va en el flujo: cupón, login, "info adicional" y los
   encabezados por defecto ("Billing details", etc.) */
.tpp-app .woocommerce-form-login-toggle,
.tpp-app .woocommerce-form-coupon-toggle,
.tpp-app .woocommerce-form-login,
.tpp-app .checkout_coupon,
.tpp-app .woocommerce-additional-fields > h3,
.tpp-app .woocommerce-billing-fields > h3{ display:none !important; }

/* Una sola columna. Storefront flota #customer_details y #order_review al ~48%
   en viewports de escritorio; forzamos ancho completo en ambos. */
.tpp-app #customer_details,
.tpp-app #customer_details .col-1,
.tpp-app #customer_details .col-2,
.tpp-app #order_review,
.tpp-app #order_review_heading{ width:100%; float:none; max-width:none; }

/* Campos */
.tpp-app form.checkout .form-row{ margin:0 0 14px; padding:0; }
.tpp-app form.checkout label{ font-size:14px; font-weight:600; display:block; margin-bottom:6px; }
.tpp-app form.checkout .input-text{
  width:100%; padding:12px; border:.5px solid var(--border); border-radius:var(--radius-sm);
  background:var(--card); color:var(--text); font-size:16px; font-family:inherit;
}
.tpp-app form.checkout .input-text:focus{ outline:none; border-color:var(--brand); }

/* Resumen compacto propio (producto + monto una sola vez + "Cambiar"),
   arriba del email — como la pantalla #v-pay del prototipo. */
.tpp-summary{
  background:var(--surface); border-radius:var(--radius-sm); padding:12px 14px;
  margin:0 0 18px; display:flex; justify-content:space-between; align-items:center; gap:10px;
}
.tpp-summary__k{ display:block; font-size:14px; color:var(--text2); }
.tpp-summary__v{ display:block; font-size:18px; font-weight:600; }
.tpp-summary .tpp-tlink,
.tpp-summary .tpp-tlink:hover{ text-decoration:none; }

/* Ocultar la tabla y el título "Tu pedido" por defecto (los reemplaza .tpp-summary) */
.tpp-app #order_review_heading,
.tpp-app .woocommerce-checkout-review-order-table{ display:none !important; }

/* Checkout institucional: resumen del pedido (varios ítems) ARRIBA, lindo y ancho.
   (La tabla "Tu pedido" por defecto y su título quedan ocultos por la regla de arriba.) */
.tpp-may-summary{
  width:100%; border-collapse:separate; border-spacing:0; margin:16px 0 18px;
  border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
}
.tpp-may-summary td{ padding:12px 14px; font-size:15px; vertical-align:middle; }
.tpp-may-summary tbody tr:nth-child(odd){ background:var(--surface); }
.tpp-may-summary tbody tr td:last-child{ text-align:right; font-weight:600; white-space:nowrap; }
.tpp-may-summary__name{ color:var(--text); font-weight:600; }
.tpp-may-summary__qty{ color:var(--text2); font-size:13px; }
.tpp-may-summary tfoot td{ border-top:1px solid var(--border); background:var(--card); font-weight:700; font-size:17px; }
.tpp-may-summary tfoot td:last-child{ text-align:right; }

/* Sin borde verde de "campo validado" de WooCommerce (usamos el borde neutro). */
.tpp-app form .form-row.woocommerce-validated input.input-text,
.tpp-app form .form-row.woocommerce-validated textarea,
.tpp-app form .form-row.woocommerce-validated select{ border-color:var(--border) !important; box-shadow:none !important; }
.tpp-app form .form-row.woocommerce-invalid input.input-text{ border-color:var(--brand) !important; }

/* Bajada del email y línea de confianza */
.tpp-checkout-hint{ font-size:13px; color:var(--text2); margin:-4px 0 18px; line-height:1.5; }
.tpp-checkout-hint--above{ margin:0 0 10px; }
.tpp-checkout-trust{ font-size:13px; color:var(--text2); text-align:center; margin:10px 0 0; }
.tpp-checkout-trust--info{ text-align:left; line-height:1.55; margin-top:14px; }

/* Botón de pago en azul MercadoPago */
.tpp-app #place_order{
  width:100%; margin-top:8px; padding:14px; border:none; border-radius:12px;
  background:var(--mp); color:#fff; font-size:16px; font-weight:600; cursor:pointer;
  box-shadow:0 4px 14px rgba(0,158,227,.30); transition:background .15s, transform .05s;
}
.tpp-app #place_order:hover{ background:#008fcc; }
.tpp-app #place_order:active{ transform:translateY(1px); }

/* Checkout institucional: el botón "Confirmar pedido" va en rojo de marca (no es MercadoPago). */
body.tpp-wholesale-checkout #place_order{ background:var(--brand); box-shadow:0 4px 14px rgba(238,27,34,.30); }
body.tpp-wholesale-checkout #place_order:hover{ background:var(--brand-dark); }

/* Texto alineado a la izquierda dentro de la pantalla de éxito (centrada). */
.tpp-done .tpp-left{ text-align:left; }

/* Aviso "sacá una captura" en pedido recibido */
.tpp-screenshot-notice{
  background:var(--brand-tint); color:var(--brand-dark); font-weight:600;
  padding:10px 12px; border-radius:var(--radius-sm); margin:0 0 16px;
}

/* Aviso transitorio "8/10 dígitos" (renovación). Tono neutro/cálido, no alarma.
   Quitar .tpp-renew-note (acá y sus usos) cuando termine la transición. */
.tpp-renew-note{
  display:flex; gap:8px; align-items:flex-start; text-align:left;
  background:var(--surface); color:var(--text2);
  border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:11px 13px; margin:0 0 16px; font-size:13.5px; line-height:1.5;
}
.tpp-renew-note__i{ flex:none; font-size:15px; line-height:1.2; }
.tpp-renew-note strong{ color:var(--text); font-weight:600; }
/* En "pedido recibido" (thankyou) un poco más de aire arriba (separa del título). */
.tpp-done .tpp-renew-note{ margin-top:18px; }

/* Enlace "Ver próximos ajustes de precios" debajo de las tarifas */
.tpp-rate-link{ margin:10px 0 0; font-size:14px; }

/* ============================================================================
 * Página Línea Virtual (landing comercial de la app)
 * ========================================================================== */
.tpp-h3{ font-size:18px; font-weight:700; color:var(--text); margin:30px 0 12px; }

.tpp-eyebrow{
  display:inline-block; background:var(--brand-tint); color:var(--brand-dark);
  font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:5px 11px; border-radius:999px; margin-bottom:10px;
}

.tpp-lv-hero{ display:flex; flex-direction:column; gap:8px; }
.tpp-phone{ width:190px; max-width:58%; margin:14px auto 4px; filter:drop-shadow(0 12px 26px rgba(43,40,38,.20)); }

.tpp-save{
  display:flex; align-items:center; gap:13px; margin:16px 0 2px;
  background:var(--success-bg); border-radius:var(--radius); padding:12px 16px;
}
.tpp-save__pct{ font-size:30px; font-weight:800; color:var(--success-tx); line-height:1; white-space:nowrap; }
.tpp-save__txt{ font-size:14px; color:var(--text); line-height:1.4; }

.tpp-wa--hero{ margin-top:18px; }

.tpp-compare{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.tpp-compare__row{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 16px; }
.tpp-compare__row + .tpp-compare__row{ border-top:1px solid var(--border); }
.tpp-compare__row--win{ background:var(--brand-tint); }
.tpp-compare__lbl{ font-size:15px; color:var(--text); }
.tpp-compare__old{ font-size:17px; font-weight:600; color:var(--text2); text-decoration:line-through; white-space:nowrap; }
.tpp-compare__new{ font-size:20px; font-weight:800; color:var(--brand-dark); white-space:nowrap; }

.tpp-stores{ display:flex; flex-direction:row-reverse; gap:10px; justify-content:center; margin:16px 0 0; }
.tpp-store{
  display:inline-flex; align-items:center; gap:7px; font-size:14px; font-weight:600;
  color:var(--text); background:var(--surface); border-radius:999px; padding:8px 14px;
}
.tpp-store svg{ width:16px; height:16px; flex:0 0 16px; }

/* ---- Caja de PIN / Clave / código (pedido recibido y Mis compras) ---- */
.tpp-pin-prod{ font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text2); margin:18px 0 4px; }
.tpp-pin-lead{ font-size:14px; color:var(--text2); margin:6px 0 12px; }
.tpp-pinbox{
  width:100%; background:var(--card); border:1.5px solid var(--brand);
  border-radius:12px; padding:6px 16px; margin:0 0 12px;
}
.tpp-pinrow{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 0; }
.tpp-pinrow + .tpp-pinrow{ border-top:.5px solid var(--border); }
.tpp-pinrow__k{ display:block; font-size:12px; color:var(--text2); }
.tpp-pinrow__v{ display:block; font-family:var(--mono); font-weight:500; font-size:21px; letter-spacing:1px; }
.tpp-copy{
  flex:none; border:.5px solid var(--border); background:var(--card); color:var(--brand-dark);
  border-radius:8px; padding:6px 11px; font-size:13px; font-weight:500; cursor:pointer;
  font-family:inherit; white-space:nowrap;
}
.tpp-copy:hover{ border-color:var(--brand); }
.tpp-copy.is-copied{ color:var(--success-tx); border-color:var(--success-tx); }
/* Botón único "Copiar PIN y Clave" / "Copiar código" debajo de la caja */
.tpp-copy--block{ margin-top:12px; padding:10px 16px; font-size:14px; }
/* "Copiar" como enlace de texto (no botón), en la misma fila que el valor. */
.tpp-copy--link{
  border:0; background:none; border-radius:0; padding:0; box-shadow:none;
  align-self:flex-end; margin-bottom:3px;
  color:var(--brand-dark); font-size:13px; font-weight:600;
  text-decoration:underline; text-underline-offset:3px; white-space:nowrap;
}
.tpp-copy--link:hover{ border:0; color:var(--brand); }
.tpp-copy--link.is-copied{ border:0; color:var(--success-tx); text-decoration:none; }
/* Fila de enlaces "Copiar CBU" / "Copiar todo" en la caja de transferencia */
.tpp-copy-actions{ display:flex; gap:20px; margin-top:10px; }
.tpp-howbox{
  width:100%; text-align:left; background:var(--surface); border-radius:var(--radius-sm);
  padding:14px 16px; font-size:14px; line-height:1.7; margin:0 0 12px;
}
.tpp-howbox b{ font-weight:600; }
/* Línea final del box de transferencia: a dónde enviar el comprobante. */
.tpp-transfer-note{ display:block; margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }

/* No pedimos datos de facturación: ocultamos el bloque vacío ("N/D") */
.tpp-app .woocommerce-customer-details{ display:none; }

/* ---- Pantalla de éxito (pedido recibido) tipo #v-done / #v-done-rec ---- */
.tpp-done{ text-align:center; }
.tpp-done .tpp-pinbox,
.tpp-done .tpp-howbox,
.tpp-done .tpp-pin-prod,
.tpp-done .tpp-pin-lead,
.tpp-done .tpp-done__backup{ text-align:left; }
.tpp-check{
  width:50px; height:50px; border-radius:50%; background:var(--brand-tint); color:var(--brand);
  display:flex; align-items:center; justify-content:center; margin:6px auto 12px;
}
.tpp-check svg{ width:27px; height:27px; }
.tpp-done__title{ text-align:center; }
.tpp-done .tpp-screenshot-notice{ text-align:left; }
.tpp-done__backup{ font-size:13px; color:var(--text2); margin:12px 0 18px; }
.tpp-done__cta{ margin-top:18px; }
.tpp-cta{
  display:block; width:100%; padding:14px; border:none; border-radius:12px;
  background:var(--brand); color:#fff; font-size:16px; font-weight:600; text-decoration:none;
  text-align:center; box-shadow:0 4px 14px rgba(238,27,34,.30); transition:background .15s, transform .05s;
}
/* Texto blanco en todos los estados de link (evita que a:visited de Storefront
   lo pinte oscuro cuando el botón es un enlace ya visitado, p. ej. al inicio). */
.tpp-cta:link,
.tpp-cta:visited,
.tpp-cta:hover,
.tpp-cta:focus,
.tpp-cta:active{ color:#fff; }
.tpp-cta:hover,
.tpp-cta:focus{ background:var(--brand-dark); text-decoration:none; }
.tpp-cta:active{ transform:translateY(1px); }

/* Ocultar el título de página "Checkout"/"Carrito" (ya tenemos "Confirmá y pagá") */
.woocommerce-checkout .entry-title,
.woocommerce-checkout .page-title,
.woocommerce-cart .entry-title,
.woocommerce-cart .page-title{ display:none !important; }

/* Quitar el párrafo de política de privacidad del checkout (no va en el prototipo) */
.tpp-app .woocommerce-privacy-policy-text{ display:none; }

/* Quitar el aviso "se agregó al carrito / Ver carrito": en el flujo de un paso
   vamos directo al checkout, así que ese mensaje sobra */
.tpp-app .woocommerce-message:has(.wc-forward){ display:none; }

/* =============================================================================
   4. Portada / Landing (front-page.php) — vista #v-home del prototipo.
   ========================================================================== */

/* ---- Contenido de la home ---- */
.tpp-home{ flex:1; display:flex; flex-direction:column; padding:18px 16px; }
.tpp-h1{ font-size:23px; line-height:1.25; margin:6px 0; font-weight:700; color:var(--text); }
.tpp-lead{ font-size:16px; color:var(--text2); margin:0 0 18px; line-height:1.5; }

/* ---- Tarjetas de opción (bifurcación) ---- */
.tpp-opt{
  background:var(--card); border:.5px solid var(--border); border-radius:var(--radius);
  padding:14px 16px; width:100%; text-align:left; text-decoration:none;
  display:flex; align-items:center; gap:14px; color:var(--text);
  transition:border-color .15s, transform .05s;
}
.tpp-opt + .tpp-opt{ margin-top:12px; }
.tpp-opt:hover{ border-color:var(--brand); color:var(--text); }
.tpp-opt:active{ transform:scale(.995); }
.tpp-opt__ic{
  width:42px; height:42px; border-radius:var(--radius-sm); flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--brand-tint); color:var(--brand);
}
.tpp-opt__ic svg{ width:22px; height:22px; }
.tpp-opt__tx{ display:flex; flex-direction:column; }
.tpp-opt__t{ font-weight:600; font-size:16px; }
.tpp-opt__s{ font-size:14px; color:var(--text2); }
.tpp-opt__chev{ margin-left:auto; color:var(--text3); display:flex; }
.tpp-opt__chev svg{ width:20px; height:20px; }

/* ---- Link de texto ---- */
.tpp-tlink{
  display:inline-block; margin:16px 0 0; color:var(--brand-dark);
  font-size:14px; font-weight:500; text-decoration:none; align-self:flex-start;
}
.tpp-tlink:hover{ text-decoration:underline; color:var(--brand); }

/* ---- Sellos de confianza ---- */
.tpp-trustwrap{ margin-top:20px; display:flex; flex-direction:column; gap:8px; }
.tpp-trust{ display:flex; align-items:center; gap:6px; font-size:14px; color:var(--text2); }
.tpp-trust svg{ width:16px; height:16px; color:var(--brand); flex:none; }

/* Aviso "sitio oficial": tono calmo (verde de verificado, NO rojo de alarma)
   para reafirmar confianza sin asustar. */
.tpp-official{
  margin-top:22px; display:flex; gap:12px; align-items:flex-start;
  background:var(--success-bg); border:1px solid #D5E3C9; border-radius:var(--radius); padding:14px 16px;
}
.tpp-official__ic{ flex:none; color:var(--success-tx); }
.tpp-official__ic svg{ width:24px; height:24px; }
.tpp-official__t{ display:block; font-weight:700; font-size:15px; color:var(--success-tx); margin-bottom:2px; }
.tpp-official__s{ margin:0; font-size:13.5px; color:var(--text2); line-height:1.55; }
.tpp-official__s b{ color:var(--text); word-break:break-word; }
.tpp-official__s a{ color:var(--success-tx); font-weight:600; text-decoration:underline; }

/* ---- Footer ---- */
.tpp-foot{ margin-top:auto; padding-top:18px; text-align:center; font-size:12px; color:var(--text3); line-height:1.7; }
.tpp-foot a{ color:var(--text3); text-decoration:none; }
.tpp-foot a:hover{ text-decoration:underline; color:var(--text2); }

/* =============================================================================
   5. Páginas de contenido — Cómo funciona (#v-how) y Tarifas (#v-tarifas).
   ========================================================================== */
.tpp-page{ flex:1; display:flex; flex-direction:column; padding:18px 16px; }
.tpp-cta-wrap{ margin-top:auto; padding-top:18px; }
.tpp-contact-note{ font-size:13px; color:var(--text2); text-align:left; margin:0 0 24px; line-height:1.55; }
.tpp-contact-note a{ color:var(--brand-dark); text-decoration:none; font-weight:600; }
.tpp-contact-note a:hover{ text-decoration:underline; }
.tpp-hint{ font-size:13px; color:var(--text2); margin:12px 0 0; line-height:1.5; }
.tpp-muted{ color:var(--text2); }

/* Data Fiscal (Formulario 960/D) */
.tpp-fiscal{
	display:flex; flex-wrap:wrap; align-items:center; gap:18px;
	margin-top:16px; padding:18px;
	background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
}
.tpp-fiscal__qr{
	width:160px; height:160px; flex:none; display:block;
	border-radius:var(--radius-sm); background:#fff;
}
.tpp-fiscal__data{ margin:0; flex:1 1 200px; min-width:200px; }
.tpp-fiscal__data dt{ font-size:12px; color:var(--text2); margin:0; }
.tpp-fiscal__data dd{ margin:0 0 12px; font-size:16px; font-weight:600; color:var(--text); }
.tpp-fiscal__data dd:last-child{ margin-bottom:0; }
.tpp-fiscal__mono{ font-family:'JetBrains Mono', ui-monospace, monospace; letter-spacing:.5px; }

/* Pasos (Cómo funciona) */
.tpp-steps{ display:flex; flex-direction:column; gap:18px; margin-top:6px; }
.tpp-step{ display:flex; gap:14px; align-items:flex-start; }
.tpp-step__n{
  width:28px; height:28px; border-radius:50%; flex:none;
  background:var(--brand-tint); color:var(--brand); font-weight:600; font-size:14px;
  display:flex; align-items:center; justify-content:center;
}
.tpp-step__t{ display:block; font-weight:600; font-size:16px; }
.tpp-step__d{ display:block; font-size:14px; color:var(--text2); margin-top:2px; }

/* Softbox "¿Y para recargar?" */
.tpp-softbox{
  display:block; background:var(--surface); border-radius:var(--radius-sm);
  padding:14px 16px; width:100%; color:var(--text); text-decoration:none; margin-top:20px;
}
.tpp-softbox:hover{ color:var(--text); }
.tpp-softbox__ic{ width:16px; height:16px; color:var(--brand); vertical-align:-3px; }

/* Tarifas */
.tpp-rates{ margin-top:6px; }
.tpp-rate{ display:flex; justify-content:space-between; align-items:center; padding:11px 0; font-size:16px; }
.tpp-rate + .tpp-rate{ border-top:.5px solid var(--border); }
.tpp-rate__v{ font-weight:600; white-space:nowrap; }

/* Bloque Línea Virtual + botón WhatsApp */
.tpp-lv{ margin-top:20px; background:var(--brand-tint); border:1px solid #F6CBCE; border-radius:var(--radius); padding:16px; }
/* Todo el texto (título + párrafo + "Quiero saber más") es un solo link a la
   Línea Virtual. El botón verde de WhatsApp queda fuera (no se anidan <a>). */
.tpp-lv__link{
  display:block; text-decoration:none; color:inherit; cursor:pointer;
  margin:-8px -8px 12px; padding:8px; border-radius:var(--radius-sm);
  transition:background .15s ease;
}
.tpp-lv__link:hover{ background:rgba(255,255,255,.55); }
.tpp-lv__link:hover .tpp-lv__head span{ color:var(--brand-dark); }
.tpp-lv__link:hover .tpp-lv__more{ color:var(--brand-dark); text-decoration:underline; }
.tpp-lv__link:hover .tpp-lv__arrow{ transform:translateX(3px); }
.tpp-lv__link:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }
.tpp-lv__head{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.tpp-lv__head svg{ width:20px; height:20px; color:var(--brand); flex:none; }
.tpp-lv__head span{ font-weight:700; font-size:16px; transition:color .15s ease; }
.tpp-lv__text{ font-size:14px; color:var(--text2); margin:0 0 8px; line-height:1.55; }
.tpp-lv__text b{ color:var(--text); }
.tpp-lv__more{ display:inline-block; color:var(--brand); font-weight:600; font-size:14px; transition:color .15s ease; }
.tpp-lv__arrow{ display:inline-block; transition:transform .15s ease; }
.tpp-lv .tpp-wa{ margin-top:8px; } /* aire extra entre el texto y el botón de WhatsApp */
.tpp-wa{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  padding:14px; border-radius:12px; background:var(--wa); color:#fff; font-size:16px;
  font-weight:600; text-decoration:none; box-shadow:0 4px 14px rgba(37,211,102,.30);
}
.tpp-wa:link,
.tpp-wa:visited,
.tpp-wa:hover,
.tpp-wa:focus{ color:#fff; }
.tpp-wa:hover{ background:#1da851; }
.tpp-wa svg{ width:20px; height:20px; }

.tpp-howbox--spaced{ margin-top:14px; }

/* 404 — centrado, con el ícono en círculo de marca */
.tpp-404{ text-align:center; }

/* Prosa para páginas de contenido largo (legales) */
.tpp-prose{ font-size:15px; line-height:1.65; color:var(--text2); }
.tpp-prose h3{ font-size:17px; font-weight:700; color:var(--text); margin:22px 0 8px; }
.tpp-prose p{ margin:0 0 12px; }
.tpp-prose strong{ color:var(--text); font-weight:600; }
.tpp-prose ul{ margin:0 0 14px; padding-left:20px; }
.tpp-prose li{ margin:0 0 6px; }
.tpp-prose a{ color:var(--brand-dark); }
.tpp-prose a:hover{ color:var(--brand); }

/* =============================================================================
   6. Mis compras (acceso por OTP) — vista #v-orders.
   ========================================================================== */
.tpp-pane{ display:flex; flex-direction:column; flex:1; }
.tpp-lock-ic{
  width:56px; height:56px; border-radius:50%; background:var(--brand-tint); color:var(--brand);
  display:flex; align-items:center; justify-content:center; margin:6px auto 18px;
}
.tpp-lock-ic svg{ width:28px; height:28px; }
.tpp-field-label{ font-size:14px; font-weight:600; display:block; margin-bottom:6px; }

/* Encuesta CSAT (landing /encuesta/) */
.tpp-csat-scale{ display:flex; justify-content:space-between; gap:6px; margin:8px 0 4px; }
.tpp-csat-face{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:10px 0; border:.5px solid var(--border); border-radius:var(--radius-sm);
  background:var(--card); text-decoration:none; color:var(--text2);
}
.tpp-csat-face.is-on{ border-color:var(--brand); background:var(--brand-tint); color:var(--text); }
.tpp-csat-emoji{ font-size:28px; line-height:1; }
.tpp-csat-num{ font-size:12px; font-weight:600; }
.tpp-csat-current{ font-size:14px; color:var(--text2); margin:4px 0 10px; }
.tpp-csat-comment{ font-size:14px; color:var(--text2); margin:0 0 14px; font-style:italic; }
.tpp-ok{
  background:var(--success-bg); color:var(--success-tx); border-radius:var(--radius-sm);
  padding:12px 14px; font-size:14px; font-weight:600; margin:4px 0;
}
.tpp-input{
  width:100%; padding:12px; border:.5px solid var(--border); border-radius:var(--radius-sm);
  background:var(--card); color:var(--text); font-size:16px; font-family:inherit;
}
.tpp-input:focus{ outline:none; border-color:var(--brand); }
.tpp-otp-input{
  width:100%; text-align:center; font-size:26px; letter-spacing:10px; font-family:var(--mono);
  padding:12px; border:.5px solid var(--border); border-radius:var(--radius-sm);
  background:var(--card); color:var(--text);
}
.tpp-otp-input:focus{ outline:none; border-color:var(--brand); }
.tpp-err{ color:var(--brand-dark); font-size:13px; margin:8px 0 0; }
/* Honeypot anti-bot de los forms OTP: fuera de pantalla (no display:none, que
   algunos bots detectan). Invisible para humanos; ver inc/otp-guard.php. */
.tpp-hp{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.tpp-suggest{ margin-top:8px; font-size:14px; background:var(--brand-tint); border-radius:8px; padding:8px 10px; color:var(--text); }
.tpp-suggest__btn{ background:none; border:none; color:var(--brand-dark); font-weight:600; text-decoration:underline; cursor:pointer; font-size:14px; padding:0; font-family:inherit; }

/* Tarjetas de compra — con sombra y más separación para distinguir cada compra */
.tpp-order{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:16px; box-shadow:0 2px 10px rgba(43,40,38,.07);
}
.tpp-order + .tpp-order{ margin-top:16px; }
.tpp-order__row{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.tpp-order__t{ display:block; font-weight:600; font-size:16px; }
.tpp-order__s{ display:block; font-size:14px; color:var(--text2); margin-top:2px; }
.tpp-order__pin{ margin-top:14px; }
.tpp-badge--ok{ background:var(--success-bg); color:var(--success-tx); }
.tpp-badge--warn{ background:var(--warning-bg); color:var(--warning-tx); }
.tpp-badge--muted{ background:var(--surface); color:var(--text2); }
/* Spinner inline (toma el color del texto con currentColor). Feedback de "conectando". */
.tpp-spin{ display:inline-block; width:1em; height:1em; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:tpp-spin .6s linear infinite; vertical-align:-.15em; flex:none; }
@keyframes tpp-spin{ to{ transform:rotate(360deg); } }
/* Enlace de texto (no botón): "Mostrar/Ocultar" en Mis compras. */
.tpp-textlink{
  padding:2px 0; border:0; background:none; cursor:pointer; font-family:inherit;
  color:var(--brand-dark); font-size:14px; font-weight:600;
  text-decoration:underline; text-underline-offset:3px;
}
.tpp-textlink:hover{ color:var(--brand); }
.tpp-reveal{ margin-top:12px; }
.tpp-tlink--block{ display:block; width:100%; text-align:center; margin-top:12px; }

/* Pedido institucional pendiente (sin códigos todavía). */
.tpp-order__pending{ margin:0; font-size:14px; color:var(--text2); }

/* Tabla de códigos de un pedido institucional (al expandir). */
.tpp-codes{ width:100%; border-collapse:collapse; font-size:14px; }
.tpp-codes th{
  text-align:left; padding:7px 8px; border-bottom:2px solid var(--border);
  font-size:12px; color:var(--text2); font-weight:600;
}
.tpp-codes td{ padding:8px; border-bottom:1px solid var(--border); color:var(--text); vertical-align:top; }
.tpp-codes tbody tr:nth-child(even) td{ background:var(--surface); }
.tpp-codes__n{ color:var(--text2); }
.tpp-codes__mono{ font-family:var(--mono); font-weight:500; letter-spacing:.5px; white-space:nowrap; }
.tpp-codes + .tpp-copy{ display:inline-block; margin-top:12px; }

/* Separador "Compras anteriores" (legacy, sitio anterior) */
.tpp-legacy-sep{ margin:18px 0 12px; }
.tpp-legacy-sep--top{ margin-top:30px; padding-top:22px; border-top:1px solid var(--border); }
.tpp-legacy-sep__t{ margin:0; font-size:15px; font-weight:700; color:var(--text); }
.tpp-legacy-sep__s{ margin:4px 0 0; font-size:13px; color:var(--text2); }

/* ============================================================================
 * Portal mayorista — formulario de pedido por cantidades
 * ========================================================================== */
.tpp-may-form{ margin-top:8px; }
.tpp-may-group{ font-size:15px; font-weight:700; margin:22px 0 8px; color:var(--text); }
.tpp-may-rows{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden;
}
.tpp-may-row{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 16px;
}
.tpp-may-row + .tpp-may-row{ border-top:1px solid var(--border); }
.tpp-may-row__info{ display:flex; flex-direction:column; }
.tpp-may-row__amount{ font-weight:600; font-size:16px; }
.tpp-may-row__meta{ font-size:13px; color:var(--text2); margin-top:2px; }
.tpp-may-qty{
  width:84px; flex:0 0 84px; text-align:center; font-size:16px; font-family:var(--mono);
  padding:10px; border:1px solid var(--border); border-radius:var(--radius-sm);
  background:var(--card); color:var(--text);
}
.tpp-may-qty:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 1px var(--brand); }
.tpp-may-qty:disabled{ background:var(--surface); color:var(--text3); cursor:not-allowed; }
.tpp-may-total{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:18px; padding:14px 16px; border-radius:var(--radius);
  background:var(--surface); font-weight:700; font-size:18px;
}
.tpp-may-total__v{ font-variant-numeric:tabular-nums; }

/* Ícono de "en espera" (pedido mayorista registrado / pago sin acreditar aún) */
.tpp-check--wait{ background:var(--warning-bg); color:var(--warning-tx); }

/* ── Página de espera: pago hecho, pedido aún sin acreditar ──────────────── */
.tpp-done__backup--center{ text-align:center; }

/* Flujo en 3 pasos (pago realizado → confirmando → PIN disponible) */
.tpp-steps{
  list-style:none; margin:18px 0 4px; padding:0;
  /* flex-direction:row explícito: hay otro .tpp-steps (vertical, "Cómo funciona")
     que setea column; sin esto el stepper heredaría column y se apilaría. */
  display:flex; flex-direction:row; align-items:flex-start; justify-content:space-between; gap:6px;
  counter-reset:none;
}
.tpp-step{
  flex:1 1 0; position:relative; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
/* Línea conectora entre puntos */
.tpp-step::before{
  content:""; position:absolute; top:13px; left:-50%; width:100%; height:2px;
  background:var(--border); z-index:0;
}
.tpp-step:first-child::before{ display:none; }
.tpp-step--done::before,
.tpp-step--active::before{ background:var(--success-tx); }
.tpp-step__dot{
  position:relative; z-index:1; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:700; line-height:1;
  background:var(--surface); color:var(--text3); border:2px solid var(--border);
}
.tpp-step__label{ font-size:12px; line-height:1.3; color:var(--text2); max-width:9em; }
.tpp-step--done .tpp-step__dot{ background:var(--success-bg); color:var(--success-tx); border-color:var(--success-tx); }
.tpp-step--done .tpp-step__label{ color:var(--text); }
.tpp-step--active .tpp-step__dot{
  background:var(--brand-tint); color:var(--brand); border-color:var(--brand);
  animation:tpp-pulse 1.4s ease-in-out infinite;
}
.tpp-step--active .tpp-step__label{ color:var(--text); font-weight:600; }
@keyframes tpp-pulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(238,27,34,.28); }
  50%{ box-shadow:0 0 0 6px rgba(238,27,34,0); }
}
@media (prefers-reduced-motion: reduce){
  .tpp-step--active .tpp-step__dot{ animation:none; }
}

/* Lista "¿qué hacer ahora?" dentro de la caja */
.tpp-wait-list{ margin:8px 0 0; padding-left:18px; }
.tpp-wait-list li{ margin:6px 0; line-height:1.5; }

/* Fila de 2 botones (Ver Mis compras / Actualizar) */
.tpp-done__cta--row{ display:flex; gap:10px; }
.tpp-done__cta--row .tpp-cta{ flex:1 1 0; }
.tpp-cta--ghost{
  background:transparent; color:var(--brand-dark); box-shadow:none;
  border:1.5px solid var(--border);
}
.tpp-cta--ghost:link,
.tpp-cta--ghost:visited{ color:var(--brand-dark); }
.tpp-cta--ghost:hover,
.tpp-cta--ghost:focus{ background:var(--surface); color:var(--brand-dark); border-color:var(--brand); }
