/* REFRICESAR GROUP · Tienda en línea (catálogo, ficha, carrito, pago, cuenta y barra estilo app) */

/* ---------- Botón carrito en la cabecera ---------- */
.btn-carrito { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid rgba(5,44,67,.12); background: #fff; color: var(--petroleo); cursor: pointer; transition: transform .25s var(--curva), box-shadow .25s; }
.btn-carrito:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn-carrito .ico { width: 22px; height: 22px; }
.js-carrito-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: linear-gradient(135deg, #ff7a45, #f5a524); color: #fff; font: 700 .7rem/20px var(--t-texto); text-align: center; box-shadow: 0 4px 10px -2px rgba(245,165,36,.7); }
.js-carrito-n.salta { animation: tSalto .6s var(--curva); }
@keyframes tSalto { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }

/* ---------- Encabezado de la tienda ---------- */
.t-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    background: radial-gradient(1200px 400px at 85% -10%, rgba(34,195,214,.35), transparent 60%), radial-gradient(800px 380px at -10% 110%, rgba(30,167,225,.3), transparent 60%), linear-gradient(135deg, var(--petroleo-3), var(--petroleo) 45%, var(--profundo)); }
.t-hero .ondas { position: absolute; inset: 0; opacity: .08; background: var(--ondas); background-size: 640px 96px; }
.t-hero-in { position: relative; }
.t-hero h1 { font-family: var(--t-titulo); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: .6rem 0 .5rem; color: #fff; letter-spacing: -.02em; }
.t-hero p { max-width: 640px; color: rgba(255,255,255,.8); font-size: 1.08rem; margin: 0 0 1.6rem; }
.t-buscar { display: flex; align-items: center; gap: .75rem; max-width: 620px; padding: .35rem .5rem .35rem 1.1rem; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); color: var(--suave); }
.t-buscar .ico { width: 22px; height: 22px; flex: none; }
.t-buscar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1rem var(--t-texto); color: var(--tinta); padding: .85rem 0; }
.t-buscar kbd { font: 600 .75rem var(--t-texto); color: var(--suave); border: 1px solid var(--borde); border-radius: 8px; padding: .2rem .5rem; }

/* ---------- Categorías ---------- */
.t-catalogo { padding-top: 0; margin-top: -2.4rem; position: relative; }
.t-cats { display: flex; gap: .7rem; overflow-x: auto; padding: .4rem .2rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t-cats::-webkit-scrollbar { display: none; }
.t-cat { scroll-snap-align: start; flex: none; display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem .6rem .6rem; border-radius: 18px; background: #fff; color: var(--tinta); text-decoration: none; box-shadow: var(--sombra); border: 1.5px solid transparent; transition: transform .25s var(--curva), border-color .25s, background .25s; }
.t-cat:hover { transform: translateY(-3px); }
.t-cat span:last-child { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.t-cat small { color: var(--suave); font-weight: 500; font-size: .75rem; }
.t-cat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, rgba(34,195,214,.16), rgba(30,167,225,.16)); color: var(--cian-2); }
.t-cat-ico .ico { width: 21px; height: 21px; }
.t-cat.activa { background: var(--petroleo); color: #fff; border-color: var(--petroleo); }
.t-cat.activa small { color: rgba(255,255,255,.7); }
.t-cat.activa .t-cat-ico { background: rgba(255,255,255,.14); color: #7fe3ef; }

/* ---------- Destacados ---------- */
.t-dest { margin: 1rem 0 1.8rem; padding: 1.2rem; border-radius: 24px; background: linear-gradient(135deg, #fff7e8, #fff 60%); border: 1px solid #f6e3bf; }
.t-dest-cab { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.t-dest-cab h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font: 700 1.25rem var(--t-titulo); color: var(--tinta); }
.t-dest-cab h2 .ico { color: var(--ambar); }
.t-dest-cab p { margin: 0; color: var(--suave); font-size: .9rem; }
.t-dest-carril { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .3rem; scrollbar-width: thin; }
.t-dest-item { scroll-snap-align: start; display: flex; gap: .8rem; align-items: center; padding: .6rem; border-radius: 18px; background: #fff; text-decoration: none; color: var(--tinta); box-shadow: var(--sombra); transition: transform .25s var(--curva); }
.t-dest-item:hover { transform: translateY(-3px); }
.t-dest-item img { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; background: #f6f9fb; }
.t-dest-item b { display: block; font-size: .88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-dest-item em { font-style: normal; font-weight: 700; color: var(--cian-2); }

/* ---------- Barra de herramientas ---------- */
.t-barra { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 1.2rem; }
.t-conteo { margin: 0 auto 0 0; color: var(--suave); }
.t-conteo b { color: var(--tinta); }
.t-orden { display: flex; align-items: center; gap: .4rem; padding: .3rem .4rem .3rem .8rem; border-radius: 14px; background: #fff; border: 1px solid var(--borde); color: var(--suave); }
.t-orden .ico { width: 18px; height: 18px; }
.t-orden select { border: 0; background: transparent; font: 600 .9rem var(--t-texto); color: var(--tinta); padding: .45rem .2rem; outline: 0; }
.t-switch { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; color: var(--tinta); cursor: pointer; user-select: none; }
.t-switch input { position: absolute; opacity: 0; }
.t-switch span { width: 42px; height: 24px; border-radius: 999px; background: #d6dee5; position: relative; transition: background .25s; }
.t-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--curva); }
.t-switch input:checked + span { background: var(--ok); }
.t-switch input:checked + span::after { transform: translateX(18px); }
.t-switch input:focus-visible + span { outline: 2px solid var(--cian); outline-offset: 2px; }

/* ---------- Tarjeta de producto ---------- */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(.7rem, 1.6vw, 1.3rem); }
@media (max-width: 640px) { .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: #fff; box-shadow: var(--sombra); overflow: hidden; transition: transform .35s var(--curva), box-shadow .35s; }
.pt-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-alta); }
.pt-card.oculto { display: none; }
.pt-media { position: relative; display: block; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fff, #eef4f7); overflow: hidden; }
.pt-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .6s var(--curva), filter .4s; }
.pt-card:hover .pt-media img { transform: scale(1.07); }
.pt-sin-img { display: grid; place-items: center; width: 100%; height: 100%; color: #9fb6c4; }
.pt-sin-img .ico { width: 30%; height: 30%; }
.pt-sin-img.grande { aspect-ratio: 1; border-radius: 26px; background: #eef4f7; }
.pt-chips { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.pt-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border-radius: 999px; font: 700 .7rem var(--t-texto); letter-spacing: .02em; background: rgba(5,44,67,.86); color: #fff; backdrop-filter: blur(6px); }
.pt-chip .ico { width: 12px; height: 12px; }
.pt-chip-dest { background: linear-gradient(135deg, #ffb547, #f58f24); }
.pt-chip-agotado { background: #5b6878; }
.pt-info { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1rem; flex: 1; }
.pt-cat { font: 600 .72rem var(--t-texto); text-transform: uppercase; letter-spacing: .06em; color: var(--cian-2); }
.pt-info h3 { margin: 0; font: 600 .98rem/1.35 var(--t-titulo); color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.65em; }
.pt-info h3 a { color: inherit; text-decoration: none; }
.pt-info h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* toda la tarjeta abre la ficha */
.pt-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.pt-precio b { display: block; font: 700 1.15rem var(--t-titulo); color: var(--tinta); }
.pt-precio small { color: var(--suave); font-size: .72rem; }
.pt-agregar { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, var(--turquesa), var(--cian-2)); box-shadow: 0 10px 22px -10px rgba(30,167,225,.9); transition: transform .25s var(--curva), box-shadow .25s; }
.pt-agregar:hover { transform: translateY(-2px) rotate(90deg); }
.pt-agregar:active { transform: scale(.92); }
.pt-agregar .ico { width: 22px; height: 22px; }
.pt-agregar.listo, .pt-agregar.listo:hover { background: linear-gradient(135deg, #34d399, #0f9f6e); transform: none; }
@media (max-width: 640px) { .pt-info { padding: .7rem .75rem .8rem; } .pt-precio b { font-size: 1rem; } .pt-agregar { width: 40px; height: 40px; border-radius: 13px; } }

/* Agotado: imagen en gris y compra deshabilitada */
.pt-card.agotado .pt-media img, .t-prod-media.agotado img { filter: grayscale(1) opacity(.55); }
.pt-card.agotado .pt-precio b { color: var(--suave); text-decoration: line-through; text-decoration-thickness: 1px; }
.pt-card.agotado .pt-precio small { color: var(--error); font-weight: 600; }
.pt-agregar:disabled { background: #cfd8e0; box-shadow: none; cursor: not-allowed; transform: none; }

/* ---------- Vacío, garantías ---------- */
.t-vacio { text-align: center; padding: 3rem 1rem; color: var(--suave); }
.t-vacio > .ico { width: 54px; height: 54px; color: var(--cian); margin-bottom: .6rem; }
.t-vacio h3 { color: var(--tinta); font-family: var(--t-titulo); margin: .2rem 0; }
.t-acciones-centro { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.t-garantias { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.t-garantias div { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; padding: 1rem; border-radius: 18px; background: var(--calido); }
.t-garantias span { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--cian-2); }
.t-garantias b { color: var(--tinta); }
.t-garantias small { color: var(--suave); }

/* ---------- Ficha del producto ---------- */
.seccion-compacta { padding: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(3rem, 6vw, 5rem); }
.migas-oscuras { margin-bottom: 1.2rem; }
.migas-oscuras, .migas-oscuras a { color: var(--suave); }
.migas-oscuras [aria-current] { color: var(--tinta); font-weight: 600; }
.t-prod-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3.2rem); align-items: start; }
@media (max-width: 900px) { .t-prod-grid { grid-template-columns: 1fr; } }
.t-prod-media { position: relative; border-radius: 30px; background: radial-gradient(circle at 50% 35%, #fff, #e8f0f4); box-shadow: var(--sombra); overflow: hidden; }
@media (min-width: 901px) { .t-prod-media { position: sticky; top: 100px; } }
.t-prod-zoom { display: block; cursor: zoom-in; }
.t-prod-zoom img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 7%; transition: transform .6s var(--curva); }
.t-prod-zoom:hover img { transform: scale(1.05); }
.t-lupa { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(5,44,67,.85); color: #fff; }
.t-prod-sello { position: absolute; top: 1rem; left: 1rem; font-size: .85rem; padding: .4rem .9rem; }
.t-prod-info h1 { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--t-titulo); color: var(--tinta); margin: .4rem 0 .8rem; letter-spacing: -.01em; }
.t-prod-precio { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.t-prod-precio b { font: 800 clamp(1.8rem, 3.4vw, 2.4rem) var(--t-titulo); background: linear-gradient(135deg, var(--petroleo), var(--cian-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-prod-precio span { color: var(--suave); font-size: .9rem; }
.t-stock { display: inline-flex; align-items: center; gap: .5rem; margin: .7rem 0 1.1rem; padding: .4rem .9rem; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.t-stock .punto { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.t-stock.si { background: #e6f8f0; color: #0f8a5f; }
.t-stock.poco { background: #fff4e0; color: #b36b00; }
.t-stock.no { background: #fdecec; color: #c22f35; }
.t-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.t-tiles div { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .7rem; border-radius: 16px; background: #f4f8fa; border: 1px solid #e6eef2; }
.t-tiles span { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff; color: var(--cian-2); }
.t-tiles span .ico { width: 19px; height: 19px; }
.t-tiles small { color: var(--suave); font-size: .72rem; }
.t-tiles b { color: var(--tinta); font-size: .88rem; line-height: 1.25; }
.t-comprar { display: flex; gap: .7rem; margin-bottom: .7rem; }
.t-comprar .btn { flex: 1; }
.t-cant { display: flex; align-items: center; border: 1.5px solid var(--borde); border-radius: 999px; background: #fff; overflow: hidden; }
.t-cant button { width: 44px; height: 50px; border: 0; background: transparent; color: var(--petroleo); cursor: pointer; display: grid; place-items: center; }
.t-cant button:hover { background: #f1f5f8; }
.t-cant input { width: 46px; text-align: center; border: 0; font: 700 1rem var(--t-texto); color: var(--tinta); -moz-appearance: textfield; appearance: textfield; }
.t-cant input::-webkit-inner-spin-button { -webkit-appearance: none; }
.t-cant.chico button { width: 34px; height: 36px; }
.t-cant.chico input { width: 34px; font-size: .9rem; }
.btn-bloque { width: 100%; margin-bottom: .6rem; }
.t-btn-agotado { background: #e8edf1; color: var(--suave); cursor: not-allowed; }
.t-ventajas { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.t-ventajas li { display: flex; align-items: center; gap: .6rem; color: var(--texto); font-size: .92rem; }
.t-ventajas .ico { color: var(--ok); width: 20px; height: 20px; }
.t-prod-detalle { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.2rem; margin-top: 2.4rem; }
.t-panel { padding: clamp(1.1rem, 2.4vw, 1.6rem); border-radius: 24px; background: #fff; box-shadow: var(--sombra); margin-bottom: 1.2rem; }
.t-panel h2 { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font: 700 1.15rem var(--t-titulo); color: var(--tinta); }
.t-panel h2 .ico { color: var(--cian-2); }
.t-specs { margin: 0 0 1rem; display: grid; }
.t-specs div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 1rem; padding: .65rem .2rem; border-bottom: 1px dashed #e3eaef; }
.t-specs dt { color: var(--suave); }
.t-specs dd { margin: 0; color: var(--tinta); font-weight: 600; }
.t-relacionados { margin-top: 2.5rem; }
.t-relacionados h2 { font: 700 1.4rem var(--t-titulo); color: var(--tinta); }

/* ---------- Carrito, pago y cuenta ---------- */
.t-titulo { display: flex; align-items: center; gap: .6rem; font: 700 clamp(1.4rem, 3vw, 2rem) var(--t-titulo); color: var(--tinta); margin: 0 0 1rem; }
.t-titulo .ico { color: var(--cian-2); }
.t-carrito-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .t-carrito-grid { grid-template-columns: 1fr; } }
.t-resumen { position: sticky; top: 100px; }
.t-lineas { display: grid; gap: .2rem; }
.t-linea-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid #edf1f4; animation: tEntra .35s var(--curva); }
.t-linea-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: #f3f7f9; }
.t-linea-item b { color: var(--tinta); font-size: .92rem; line-height: 1.3; }
.t-linea-item small { display: block; color: var(--suave); }
.t-linea-item a { color: inherit; text-decoration: none; }
.t-linea-der { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.t-quitar { border: 0; background: transparent; color: var(--suave); cursor: pointer; padding: .2rem; border-radius: 8px; }
.t-quitar:hover { color: var(--error); background: #fdecec; }
.t-quitar .ico { width: 18px; height: 18px; }
.t-lineas.compacta .t-linea-item { grid-template-columns: 52px minmax(0, 1fr) auto; }
.t-lineas.compacta img { width: 52px; height: 52px; }
.t-res-fila { display: flex; justify-content: space-between; align-items: baseline; padding: .55rem 0; color: var(--texto); }
.t-res-total { border-top: 1px solid #edf1f4; margin-top: .4rem; padding-top: .9rem; }
.t-res-total b { font: 800 1.45rem var(--t-titulo); color: var(--tinta); }
.t-nota { color: var(--suave); font-size: .88rem; }
.t-nota .ico { width: 15px; height: 15px; vertical-align: -2px; }
.t-centro { text-align: center; }
.t-cargando { height: 120px; border-radius: 16px; background: linear-gradient(90deg, #f1f5f8 25%, #e6edf2 50%, #f1f5f8 75%); background-size: 200% 100%; animation: tBrillo 1.2s infinite; }
@keyframes tBrillo { to { background-position: -200% 0; } }
@keyframes tEntra { from { opacity: 0; transform: translateY(6px); } }
.t-aviso-carrito { padding: .7rem 1rem; border-radius: 14px; background: #fff4e0; color: #8a5300; font-size: .88rem; margin-bottom: .6rem; }
.t-pasos { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1.4rem; overflow-x: auto; }
.t-pasos li { display: flex; align-items: center; gap: .45rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: #eef3f6; color: var(--suave); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.t-pasos li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.t-pasos li.hecho { background: #e6f8f0; color: #0f8a5f; }
.t-pasos li.actual { background: var(--petroleo); color: #fff; }
.t-pasos li.actual span { background: var(--cian); color: #fff; }
.t-form { display: grid; gap: .2rem; }
.t-fila2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.t-fila3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 640px) { .t-fila2, .t-fila3 { grid-template-columns: 1fr; gap: 0; } }
.t-campo { display: grid; gap: .3rem; margin-bottom: .7rem; }
.t-campo > span { font-weight: 600; font-size: .86rem; color: var(--tinta); }
.t-campo em { font-style: normal; font-weight: 400; color: var(--suave); }
.t-campo input, .t-campo textarea, .t-campo select { width: 100%; border: 1.5px solid #dce4ea; border-radius: 14px; padding: .8rem .95rem; font: 500 1rem var(--t-texto); color: var(--tinta); background: #fbfdfe; transition: border-color .2s, box-shadow .2s; }
.t-campo input:focus, .t-campo textarea:focus { outline: 0; border-color: var(--cian); box-shadow: 0 0 0 4px rgba(30,167,225,.15); background: #fff; }
.t-campo input:disabled { color: var(--suave); background: #f1f5f8; }
.t-campo.con-error input, .t-campo.con-error textarea { border-color: var(--error); }
[data-error] { color: var(--error); font-size: .8rem; font-weight: 600; min-height: 0; }
.t-err-suelto { display: block; margin: -.2rem 0 .5rem; }
.t-check { display: flex; gap: .65rem; align-items: flex-start; margin: .5rem 0; font-size: .9rem; cursor: pointer; }
.t-check input { margin-top: .2rem; width: 20px; height: 20px; accent-color: var(--cian-2); flex: none; }
.t-check a { color: var(--cian-2); }
.t-pagos { display: grid; gap: .6rem; }
.t-pago { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 18px; border: 2px solid #e2e9ee; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.t-pago:hover { transform: translateY(-1px); }
.t-pago input { position: absolute; opacity: 0; }
.t-pago-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #f0f5f8; color: var(--petroleo); }
.t-pago b { display: block; color: var(--tinta); }
.t-pago small { color: var(--suave); }
.t-pago-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d3dde4; color: transparent; }
.t-pago-check .ico { width: 15px; height: 15px; }
.t-pago:has(input:checked) { border-color: var(--cian); background: #f2fbff; }
.t-pago:has(input:checked) .t-pago-ico { background: linear-gradient(135deg, var(--turquesa), var(--cian-2)); color: #fff; }
.t-pago:has(input:checked) .t-pago-check { background: var(--cian); border-color: var(--cian); color: #fff; }
.t-pago input:focus-visible ~ .t-pago-ico { outline: 2px solid var(--cian); outline-offset: 2px; }
.t-alerta { padding: .8rem 1rem; border-radius: 14px; background: #fdecec; color: #a3242a; font-weight: 600; font-size: .9rem; margin: .5rem 0; }
.t-btn-pedir { margin-top: .6rem; }
.t-btn-pedir.cargando { pointer-events: none; opacity: .8; }
.t-btn-pedir.cargando span::after { content: "…"; }
.t-pagar-acceso { max-width: 560px; margin: 0 auto; }
.t-acceso { margin-top: .6rem; }
.t-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; border-radius: 16px; background: #eef3f6; margin-bottom: 1rem; }
.t-tabs button { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem; border: 0; border-radius: 13px; background: transparent; font: 600 .95rem var(--t-texto); color: var(--suave); cursor: pointer; }
.t-tabs button.activa { background: #fff; color: var(--petroleo); box-shadow: 0 4px 12px -6px rgba(5,44,67,.3); }
.t-enlace { border: 0; background: transparent; color: var(--cian-2); font-weight: 600; cursor: pointer; padding: .4rem; }
.oculto-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.t-cuenta-cab { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.t-cuenta-cab h1 { margin: 0; font: 700 1.6rem var(--t-titulo); color: var(--tinta); }
.t-cuenta-cab p { margin: 0; color: var(--suave); }
.t-cuenta-cab form { margin-left: auto; }
.t-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: linear-gradient(135deg, var(--turquesa), var(--cian-2)); color: #fff; font: 700 1.5rem var(--t-titulo); }
.t-ped { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .85rem .3rem; border-bottom: 1px solid #edf1f4; text-decoration: none; color: var(--tinta); border-radius: 12px; transition: background .2s; }
.t-ped:hover { background: #f6f9fb; }
.t-ped small { display: block; color: var(--suave); }
.t-ped-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #eef5f9; color: var(--cian-2); }
.t-ped-der { text-align: right; }
.t-ped-der em { display: inline-block; margin-top: .2rem; font-style: normal; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #eef3f6; color: var(--suave); }
em.est-confirmado, .t-ped-ico.est-confirmado { background: #e5f4ff; color: #0b78bd; }
em.est-pagado, em.est-entregado, .t-ped-ico.est-pagado, .t-ped-ico.est-entregado { background: #e6f8f0; color: #0f8a5f; }
em.est-despachado, .t-ped-ico.est-despachado { background: #fff4e0; color: #b36b00; }
em.est-cancelado, .t-ped-ico.est-cancelado { background: #f1f1f1; color: #7a7a7a; }

/* ---------- Pedido confirmado ---------- */
.t-pedido { display: grid; gap: 1.2rem; }
.t-exito { text-align: center; padding: clamp(1.6rem, 4vw, 2.8rem); background: radial-gradient(700px 240px at 50% -20%, rgba(34,195,214,.18), transparent 70%), #fff; }
.t-exito-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 28px; background: linear-gradient(135deg, #ffb547, #f5732a); color: #fff; box-shadow: 0 18px 36px -14px rgba(245,115,42,.7); animation: tPop .8s var(--curva) both; }
.t-exito-ico .ico { width: 42px; height: 42px; }
@keyframes tPop { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.t-exito h1 { font: 800 clamp(1.7rem, 4vw, 2.5rem) var(--t-titulo); color: var(--tinta); margin: 1rem 0 .4rem; }
.t-exito p { max-width: 560px; margin: 0 auto 1.2rem; color: var(--texto); }
.t-btn-wa { font-size: 1.05rem; padding: 1rem 1.8rem; animation: tLatido 2.2s ease-in-out infinite 1.2s; }
@keyframes tLatido { 0%, 100% { box-shadow: 0 10px 24px -12px rgba(37,211,102,.9), 0 0 0 0 rgba(37,211,102,.45); } 50% { box-shadow: 0 10px 24px -12px rgba(37,211,102,.9), 0 0 0 14px rgba(37,211,102,0); } }
.t-linea { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 1.6rem auto 0; max-width: 640px; }
.t-linea li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--suave); }
.t-linea li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: #e3eaef; z-index: 0; }
.t-linea li:first-child::before { display: none; }
.t-linea li span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e3eaef; color: #fff; }
.t-linea li span .ico { width: 16px; height: 16px; }
.t-linea li.hecho { color: var(--tinta); }
.t-linea li.hecho span, .t-linea li.hecho::before { background: var(--ok); }
.t-linea li.actual span { box-shadow: 0 0 0 6px rgba(18,184,134,.18); }
.t-cancelado { color: var(--error); font-weight: 700; }
.t-qr { display: block; margin: .6rem auto; border-radius: 16px; border: 1px solid #e3eaef; max-width: 220px; height: auto; }
.t-sub { display: flex; align-items: center; gap: .4rem; font: 700 1rem var(--t-titulo); color: var(--tinta); margin: 1.2rem 0 .3rem; }
.t-confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- Carrito lateral ---------- */
.t-cajon { position: fixed; inset: 0; z-index: 80; background: rgba(3,29,45,.45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.t-cajon.abierto { opacity: 1; visibility: visible; }
.t-cajon-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px -20px rgba(0,0,0,.35); transform: translateX(100%); transition: transform .4s var(--curva); }
.t-cajon.abierto .t-cajon-panel { transform: none; }
.t-cajon-cab { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; border-bottom: 1px solid #edf1f4; }
.t-cajon-cab h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font: 700 1.15rem var(--t-titulo); color: var(--tinta); }
.t-cajon-cab button { border: 0; background: #f1f5f8; border-radius: 12px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--tinta); }
.t-cajon .t-lineas { flex: 1; overflow-y: auto; padding: .4rem 1.2rem; align-content: start; }
.t-cajon-pie { padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid #edf1f4; }
.t-cajon-pie .btn { margin-bottom: .5rem; }
.t-cajon-vacio { text-align: center; padding: 2.5rem 1rem; color: var(--suave); }
.t-cajon-vacio .ico { width: 54px; height: 54px; color: #b9cad5; }

/* ---------- Avisos y animación "vuela al carrito" ---------- */
.t-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: .6rem; max-width: min(440px, calc(100% - 2rem));
    padding: .8rem 1.1rem; border-radius: 16px; background: var(--petroleo-3); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); transition: transform .35s var(--curva), opacity .35s; }
.t-toast.ver { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.t-toast .ico { width: 20px; height: 20px; color: #5eead4; flex: none; }
.t-toast a { color: #7fe3ef; margin-left: .4rem; }
.t-vuela { position: fixed; z-index: 96; width: 70px; height: 70px; border-radius: 18px; object-fit: contain; background: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); pointer-events: none;
    transition: transform .75s cubic-bezier(.5,-.3,.6,1), opacity .75s; }

/* ---------- Barra inferior estilo app (tienda) ---------- */
.t-app { position: fixed; z-index: 70; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); width: min(520px, calc(100% - 20px));
    padding: .45rem; border-radius: 26px; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border: 1px solid rgba(5,44,67,.08); box-shadow: 0 20px 50px -18px rgba(5,44,67,.45); }
.t-app a, .t-app button { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .2rem; border: 0; background: transparent; border-radius: 18px; color: var(--suave); text-decoration: none;
    font: 600 .68rem var(--t-texto); cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.t-app .ico { width: 23px; height: 23px; }
.t-app a:hover, .t-app button:hover { color: var(--petroleo); }
.t-app .activo { color: var(--petroleo); background: rgba(30,167,225,.12); }
.t-app a:active, .t-app button:active { transform: scale(.94); }
.t-app-carrito .t-app-burbuja { position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -24px; border-radius: 17px; color: #fff;
    background: linear-gradient(135deg, var(--turquesa), var(--cian-2)); box-shadow: 0 12px 24px -8px rgba(30,167,225,.9), 0 0 0 5px #fff; }
.t-app-carrito .js-carrito-n { top: -6px; right: -8px; }
body.es-tienda { padding-bottom: 96px; }
body.es-tienda .flotante-wa { bottom: calc(100px + env(safe-area-inset-bottom)); }
body.es-tienda .subir { bottom: calc(170px + env(safe-area-inset-bottom)); }

/* Hojas (categorías y búsqueda) */
.t-hoja { position: fixed; inset: 0; z-index: 85; background: rgba(3,29,45,.45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.t-hoja.abierta { opacity: 1; visibility: visible; }
.t-hoja-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; padding: .6rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff;
    transform: translateY(100%); transition: transform .45s var(--curva); width: min(720px, 100%); margin: 0 auto; }
.t-hoja.abierta .t-hoja-panel { transform: none; }
.t-hoja-asa { display: block; width: 46px; height: 5px; border-radius: 99px; background: #d5dee5; margin: 0 auto .8rem; }
.t-hoja h2 { font: 700 1.2rem var(--t-titulo); color: var(--tinta); margin: 0 0 1rem; }
.t-hoja-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.t-hoja-cats a { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .9rem; border-radius: 18px; background: #f4f8fa; color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .9rem; }
.t-hoja-cats a span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #fff; color: var(--cian-2); }
.t-hoja-cats small { color: var(--suave); font-weight: 500; }
.t-hoja-legal { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .85rem; }
.t-hoja-legal a { color: var(--suave); }
.t-buscar-hoja { max-width: none; background: #f4f8fa; box-shadow: none; }
.t-sugerencias { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.t-sugerencias a { padding: .45rem .9rem; border-radius: 999px; background: #eef5f9; color: var(--petroleo); text-decoration: none; font-weight: 600; font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
    .pt-card, .pt-media img, .t-cat, .t-cajon-panel, .t-hoja-panel, .t-vuela, .t-btn-wa, .t-exito-ico { transition: none !important; animation: none !important; }
}
.btn.deshabilitado { opacity: .5; pointer-events: auto; cursor: not-allowed; filter: grayscale(.4); }
