/* =====================================================
   TIENDA PÚBLICA — estilos
   Usa las variables de app.css; --m-color es el color de la tienda.
   Pensada primero para celular.
   ===================================================== */

.t-cuerpo{ background: #F4F5F7; padding-bottom: 96px; }
.t-contenedor{ width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.t-saltar{ position: absolute; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: 10px; }

/* ---------- Encabezado ---------- */
.t-encabezado{ background: var(--blanco); border-bottom: 1px solid var(--borde); }
.t-portada{
    height: 150px;
    background-color: var(--m-color);
    background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.22) 0, transparent 45%),
                      radial-gradient(circle at 85% 80%, rgba(0,0,0,.18) 0, transparent 50%);
    background-size: cover; background-position: center;
}
.t-info{ display: flex; align-items: flex-end; gap: 16px; padding-bottom: 18px; flex-wrap: wrap; }
.t-logo{
    width: 92px; height: 92px; flex-shrink: 0; margin-top: -46px;
    border-radius: 24px; background: var(--blanco); border: 4px solid var(--blanco);
    box-shadow: 0 6px 20px rgba(22,24,29,.14); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.t-logo img{ width: 100%; height: 100%; object-fit: cover; }
.t-logo span{ width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--m-color); color: #fff; font-size: 38px; font-weight: 800; border-radius: 18px; }
.t-datos{ flex: 1; min-width: 200px; padding-top: 10px; }
.t-datos h1{ font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1.2; }
.t-desc{ margin: 4px 0 0; color: var(--texto-suave); font-size: 14px; line-height: 1.45; }
.t-meta{ list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.t-meta li{ display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--texto-suave); background: #F1F3F5; border-radius: 999px; padding: 5px 10px; }
.t-meta li .punto{ width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.t-meta li.abierto{ color: var(--exito); background: color-mix(in srgb, var(--exito) 10%, #fff); }
.t-meta li.cerrado{ color: var(--error); background: color-mix(in srgb, var(--error) 9%, #fff); }
.t-acciones{ display: flex; gap: 8px; }
.t-btn-circulo{
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borde); background: var(--blanco);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--texto); cursor: pointer;
}
.t-btn-circulo:hover{ background: #F1F3F5; text-decoration: none; color: var(--texto); }
.t-btn-circulo.wa{ background: #25D366; border-color: #25D366; color: #fff; }
.t-btn-circulo.wa:hover{ filter: brightness(.95); color: #fff; }

.t-aviso-cerrado{ display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: var(--radio); background: #FFF6E5; color: #7A4D00; font-size: 14px; font-weight: 600; }

/* ---------- Barra fija: buscador + filtros ---------- */
.t-barra{ position: sticky; top: 0; z-index: 20; background: rgba(244,245,247,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: 12px; }
.t-barra > .t-contenedor:first-child{ display: flex; gap: 10px; }
.t-buscar{ flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: var(--blanco); border: 1px solid var(--borde); border-radius: 999px; color: var(--texto-suave); min-width: 0; }
.t-buscar:focus-within{ border-color: var(--m-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-color) 18%, transparent); }
.t-buscar input{ border: none; outline: none; background: transparent; flex: 1; font: inherit; font-size: 15px; color: var(--texto); min-width: 0; }
.t-btn-carrito{ position: relative; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--m-oscuro); color: #fff; font-size: 20px; cursor: pointer; }
.t-btn-carrito .cuenta{ position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--m-color); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #F4F5F7; }
.t-btn-carrito.rebote{ animation: rebote .45s ease; }
@keyframes rebote{ 30%{ transform: scale(1.15); } 60%{ transform: scale(.95); } }

.t-filtros{ padding-top: 10px; padding-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.t-chips{ display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.t-chips::-webkit-scrollbar{ display: none; }
.t-chip{ flex-shrink: 0; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--borde); background: var(--blanco); font: inherit; font-size: 14px; font-weight: 600; color: var(--texto); cursor: pointer; white-space: nowrap; }
.t-chip:hover{ border-color: #C9CDD6; }
.t-chip.activo{ background: var(--m-oscuro); border-color: var(--m-oscuro); color: #fff; }
.t-filtros .t-chips + .t-chips .t-chip.activo{ background: color-mix(in srgb, var(--m-color) 12%, #fff); border-color: var(--m-color); color: var(--m-color); }

.t-resultado{ margin: 4px 0 10px; font-size: 13px; color: var(--texto-suave); min-height: 1px; }

/* ---------- Grilla de productos ---------- */
.t-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px){ .t-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px){ .t-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.t-tarjeta{
    display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit;
    background: var(--blanco); border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.t-tarjeta:hover{ transform: translateY(-2px); box-shadow: var(--sombra); }
.t-tarjeta:focus-visible{ outline: 3px solid var(--m-color); outline-offset: 2px; }
.t-tarjeta .foto{ position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; color: #B9BEC8; font-size: 34px; border-bottom: 1px solid var(--borde-suave); }
.t-tarjeta .foto{ overflow: hidden; }
.t-tarjeta .foto img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.t-tarjeta.agotado .foto img{ opacity: .45; filter: grayscale(.6); }
.t-tarjeta .sello{ position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--m-color); color: #fff; }
.t-tarjeta .sello.oscuro{ background: var(--m-oscuro); }
.t-tarjeta .sello.gris{ background: #5B606B; }
.t-tarjeta .cuerpo{ padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.t-tarjeta .nombre{ font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-tarjeta .precio{ font-size: 15px; margin-top: auto; }
.t-tarjeta .precio strong{ font-weight: 800; }
.t-tarjeta .precio s, .t-detalle-precio s{ color: #9AA0AB; font-size: .85em; margin-left: 4px; }
.desde{ font-size: 12px; color: var(--texto-suave); font-weight: 600; }
.t-puntos{ display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.t-puntos span{ width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.t-puntos em{ font-style: normal; font-size: 11px; font-weight: 700; color: var(--texto-suave); }

.t-vacio{ grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--texto-suave); }
.t-vacio i{ font-size: 40px; color: #B9BEC8; }
.t-vacio h2{ font-size: 18px; font-weight: 800; color: var(--texto); margin: 12px 0 4px; }
.t-vacio p{ margin: 0; font-size: 14px; }

.t-pie{ margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--borde); }
.t-pie .t-contenedor{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--texto-suave); }
.t-pie .marca a{ color: var(--texto); }

/* ---------- Botón flotante (celular) ---------- */
.t-flotante{
    position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
    display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px;
    border: none; border-radius: 18px; background: var(--m-color); color: #fff; font: inherit; font-size: 15px; font-weight: 700;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--m-color) 40%, transparent); cursor: pointer;
}
.t-flotante .cant{ min-width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.t-flotante strong{ margin-left: auto; }
.t-flotante[hidden]{ display: none; }
@media (min-width: 768px){ .t-flotante{ left: auto; width: 340px; right: 24px; } }

/* ---------- Detalle del producto ---------- */
.t-modal .modal-content{ border: none; border-radius: 24px; overflow: hidden; }
@media (max-width: 575.98px){ .t-modal .modal-content{ border-radius: 0; } }
.t-modal .modal-body{ padding: 0; }
.t-cerrar{ position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.15); font-size: 16px; cursor: pointer; }
.t-detalle{ display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px){ .t-detalle{ grid-template-columns: 1.05fr 1fr; } .t-detalle-fotos{ position: sticky; top: 0; align-self: start; } }
.t-detalle-fotos{ background: #fff; border-bottom: 1px solid var(--borde-suave); }
.t-galeria-grande{ display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; background: #fff; }
.t-galeria-grande::-webkit-scrollbar{ display: none; }
.t-galeria-grande img{ flex: 0 0 100%; width: 100%; height: 100%; min-height: 0; object-fit: contain; scroll-snap-align: start; }
.t-galeria-grande.vacia{ align-items: center; justify-content: center; font-size: 48px; color: #B9BEC8; }
.t-miniaturas{ display: flex; gap: 8px; padding: 10px 14px 14px; overflow-x: auto; scrollbar-width: none; }
.t-miniaturas button{ flex: 0 0 56px; height: 56px; padding: 0; border-radius: 12px; border: 2px solid transparent; background: #F4F5F7; overflow: hidden; cursor: pointer; }
.t-miniaturas button.activa{ border-color: var(--m-color); }
.t-miniaturas img{ width: 100%; height: 100%; object-fit: cover; }

.t-detalle-info{ padding: 20px 20px 12px; }
.t-detalle-info h2{ font-size: 21px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; padding-right: 36px; }
@media (min-width: 768px){ .t-detalle-info{ padding: 28px 28px 12px; } }
.t-detalle-precio{ font-size: 22px; margin-bottom: 16px; }
.t-detalle-precio strong{ font-weight: 800; color: var(--m-color); }

.t-variante{ border: none; padding: 0; margin: 0 0 16px; }
.t-variante legend{ font-size: 14px; font-weight: 600; color: var(--texto-suave); margin-bottom: 8px; float: none; width: auto; padding: 0; }
.t-variante legend b{ color: var(--texto); }
.t-variante.sacudir{ animation: sacudir .4s; }
@keyframes sacudir{ 20%, 60%{ transform: translateX(-6px); } 40%, 80%{ transform: translateX(6px); } }
.t-opciones{ display: flex; flex-wrap: wrap; gap: 8px; }
.t-opcion{ min-width: 52px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--borde); background: var(--blanco); font: inherit; font-size: 14px; font-weight: 700; color: var(--texto); cursor: pointer; }
.t-opcion:hover{ border-color: #A9AEB8; }
.t-opcion.activa{ border-color: var(--m-oscuro); background: var(--m-oscuro); color: #fff; }
.t-opcion.no{ color: #A9AEB8; background: repeating-linear-gradient(135deg, #fff 0 6px, #F4F5F7 6px 7px); }
.t-opcion.no.activa{ background: #5B606B; border-color: #5B606B; color: #fff; }
.t-color{ width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: none; cursor: pointer; position: relative; }
.t-color span{ display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.t-color.activa{ border-color: var(--m-oscuro); }
.t-color.no::after{ content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: #5B606B; transform: rotate(45deg); border-radius: 2px; }
.t-color.no span{ opacity: .5; }

.t-stock{ min-height: 4px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.t-stock .poco{ color: #B26A00; }
.t-stock .no{ color: var(--error); }
.t-detalle-desc{ font-size: 14.5px; line-height: 1.6; color: #3B3F47; margin: 4px 0 16px; }
.t-detalles{ margin: 0 0 16px; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.t-detalles div{ display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; }
.t-detalles div + div{ border-top: 1px solid var(--borde-suave); }
.t-detalles dt{ font-weight: 600; color: var(--texto-suave); }
.t-detalles dd{ margin: 0; font-weight: 700; text-align: right; }
.t-compartir{ border: none; background: none; padding: 6px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--texto-suave); cursor: pointer; }
.t-compartir:hover{ color: var(--texto); }

.t-modal-pie{ display: flex; gap: 10px; align-items: center; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); background: var(--blanco); }
.t-modal-pie .btn-m{ flex: 1; height: 52px; }

.t-cantidad{ display: flex; align-items: center; height: 52px; border: 1px solid var(--borde); border-radius: var(--radio); flex-shrink: 0; }
.t-cantidad button{ width: 44px; height: 100%; border: none; background: none; font-size: 18px; color: var(--texto); cursor: pointer; }
.t-cantidad button:disabled{ color: #C9CDD6; cursor: not-allowed; }
.t-cantidad span{ min-width: 26px; text-align: center; font-weight: 800; }
.t-cantidad.chica{ height: 36px; border-radius: 10px; }
.t-cantidad.chica button{ width: 34px; font-size: 15px; }

/* ---------- Mi pedido ---------- */
.t-carrito{ --bs-offcanvas-width: 440px; }
@media (max-width: 575.98px){ .t-carrito{ --bs-offcanvas-width: 100%; } }
.t-carrito .offcanvas-header{ gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--borde); }
.t-carrito .offcanvas-title{ font-size: 18px; font-weight: 800; margin: 0; flex: 1; }
.t-atras, .t-cerrar-panel{ width: 40px; height: 40px; border-radius: 50%; border: none; background: #F1F3F5; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.t-carrito .offcanvas-body{ padding: 16px 18px; }
.t-carrito-pie{ padding: 14px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); background: var(--blanco); }
.t-carrito-pie .btn-m{ height: 54px; }
.t-total{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 14px; color: var(--texto-suave); font-weight: 600; }
.t-total strong{ font-size: 20px; color: var(--texto); font-weight: 800; }
.t-btn-wa{ background: #25D366; }
.t-btn-wa:hover{ color: #fff; }
.t-nota-pie{ margin: 8px 0 0; font-size: 12.5px; text-align: center; color: var(--texto-suave); }

.t-lineas{ list-style: none; margin: 0; padding: 0; }
.t-lineas li{ display: flex; gap: 12px; padding: 12px 0; }
.t-lineas li + li{ border-top: 1px solid var(--borde-suave); }
.t-lineas .foto{ width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--borde-suave); background: #fff; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #B9BEC8; }
.t-lineas .foto img{ width: 100%; height: 100%; object-fit: contain; }
.t-lineas .texto{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t-lineas .texto strong{ font-size: 14px; font-weight: 700; line-height: 1.3; }
.t-lineas .texto span{ font-size: 12.5px; color: var(--texto-suave); }
.t-lineas .texto b{ font-size: 14px; margin-top: auto; }
.t-lineas .lado{ display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.t-quitar{ border: none; background: none; color: var(--texto-suave); font-size: 15px; cursor: pointer; padding: 4px; }
.t-quitar:hover{ color: var(--error); }

.t-legend{ font-size: 13px; font-weight: 700; margin-bottom: 6px; float: none; width: auto; padding: 0; }
fieldset.campo{ border: none; padding: 0; }
.t-radios{ display: grid; gap: 8px; }
.t-radio{ display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--borde); border-radius: var(--radio); cursor: pointer; background: var(--blanco); }
.t-radio input{ accent-color: var(--m-color); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.t-radio i{ font-size: 20px; color: var(--texto-suave); }
.t-radio span{ display: flex; flex-direction: column; font-size: 14px; }
.t-radio small{ color: var(--texto-suave); font-size: 12.5px; }
.t-radio:has(input:checked){ border-color: var(--m-color); background: color-mix(in srgb, var(--m-color) 6%, #fff); }
.t-radio:has(input:checked) i{ color: var(--m-color); }
.opcional{ font-weight: 500; color: var(--texto-suave); }
.entrada.con-error{ border-color: var(--error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 15%, transparent); }
.t-oculto{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.t-listo{ text-align: center; padding: 24px 4px; }
.t-listo .icono{ width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: color-mix(in srgb, var(--exito) 12%, #fff); color: var(--exito); font-size: 36px; display: flex; align-items: center; justify-content: center; }
.t-listo h2{ font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.t-listo p{ color: var(--texto-suave); font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; }
.t-listo .t-total{ border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; margin: 0; }

/* ---------- Aviso de edad ---------- */
.t-edad{ position: fixed; inset: 0; z-index: 3000; background: rgba(22,24,29,.75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.t-edad[hidden]{ display: none; }
.t-edad .caja{ background: var(--blanco); border-radius: 24px; padding: 28px 24px; max-width: 380px; width: 100%; text-align: center; }
.t-edad .icono{ width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--m-oscuro); color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.t-edad h2{ font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.t-edad p{ color: var(--texto-suave); font-size: 14.5px; margin: 0 0 18px; }

/* ---------- Página de tienda no encontrada ---------- */
.t-vacio-pagina{ min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 6px; }
.t-vacio-pagina .icono{ width: 80px; height: 80px; border-radius: 24px; background: var(--blanco); border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--m-color); margin-bottom: 10px; }
.t-vacio-pagina h1{ font-size: 22px; font-weight: 800; margin: 0; }
.t-vacio-pagina p{ color: var(--texto-suave); margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce){
    .t-tarjeta, .t-btn-carrito.rebote, .t-variante.sacudir{ transition: none; animation: none; }
}

/* ---------- Ajustes para celular ---------- */
.t-cuerpo .toasts{ top: auto; bottom: 90px; align-items: center; }
@media (max-width: 640px){
    .t-portada{ height: 120px; }
    .t-info{ gap: 12px; }
    .t-logo{ width: 80px; height: 80px; margin-top: -40px; border-radius: 22px; }
    .t-acciones{ order: 2; margin-left: auto; align-self: center; }
    .t-datos{ order: 3; flex-basis: 100%; padding-top: 0; }
    .t-datos h1{ font-size: 22px; }
}

/* ---------- Entrega en el pedido ---------- */
.t-linea{ display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--texto-suave); font-weight: 600; margin-bottom: 6px; }
.t-linea > :last-child{ color: var(--texto); text-align: right; }
.t-gratis{ color: var(--exito) !important; }
.t-pendiente{ color: #9A6200 !important; font-weight: 600; font-size: 13px; }
.t-falta-gratis{ margin: 2px 0 8px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--exito) 9%, #fff); color: #0B6B53; font-size: 13px; }
.t-carrito-pie .t-total{ margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--borde); }
.t-btn-ubicar{ width: 100%; }
.t-mapa{ height: 240px; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); margin-top: 8px; z-index: 0; }
.t-error-texto{ color: var(--error) !important; font-weight: 600; }
.t-enlace-ubicar{ align-self: flex-start; border: none; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--m-color); cursor: pointer; }
.t-nota-entrega{ display: flex; gap: 8px; margin: -6px 0 16px; padding: 10px 12px; border-radius: 12px; background: #F4F5F7; font-size: 13.5px; color: #3B3F47; }
/* Con "Mi pedido" abierto, los avisos salen arriba para no tapar el total */
body:has(.t-carrito.show) .toasts, body:has(.t-carrito.showing) .toasts{ top: 16px; bottom: auto; }
.t-datos-pago{ margin-top: 12px; text-align: left; padding: 12px 14px; border-radius: var(--radio); background: #F4F5F7; font-size: 14px; }
.t-datos-pago p{ margin: 4px 0 0; color: #3B3F47; line-height: 1.5; }
.t-radio small{ white-space: pre-line; }

/* ---------- Extras, texto del cliente y encargos ---------- */
.t-extras .t-max{ font-weight: 500; }
.t-extra{ display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; margin: 0 0 8px; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--blanco); cursor: pointer; font-size: 15px; }
.t-extra input{ width: 20px; height: 20px; accent-color: var(--m-color); flex: none; margin: 0; }
.t-extra span{ flex: 1; min-width: 0; }
.t-extra b{ font-weight: 700; color: var(--texto-suave); white-space: nowrap; font-size: 14px; }
.t-extra:has(input:checked){ border-color: var(--m-color); background: color-mix(in srgb, var(--m-color) 6%, #fff); }
.t-extra:has(input:checked) b{ color: var(--m-color); }
.t-extra.no{ opacity: .45; cursor: not-allowed; }
.t-texto-cliente{ margin-bottom: 16px; }
.t-texto-cliente label{ font-size: 14px; font-weight: 600; color: var(--texto-suave); }
.t-anticipacion{ display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-suave); margin: 0 0 12px; }
.t-anticipacion i{ color: var(--m-color); }
.t-lineas .texto .t-txt-linea{ font-style: italic; }
.t-falta-minimo{ display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 10px; padding: 10px 12px; border-radius: 12px; background: #FFF6E5; color: #7A4B00; font-size: 13px; line-height: 1.4; }
.t-falta-minimo i{ margin-top: 1px; }
.t-cuando .opcional{ font-weight: 500; color: var(--texto-suave); }

/* ---------- Celulares: batería, financiamiento, accesorios, equipo ---------- */
.t-tarjeta .t-inicial{ display: block; font-size: 12px; font-weight: 700; color: var(--exito); margin-top: 2px; }
.t-bateria{ display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #3B4250; margin-top: 4px; }
.t-bateria i{ font-size: 15px; color: var(--exito); }
.t-bateria.grande{ font-size: 14px; font-weight: 500; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: #EEF7F3; }
.t-pago .t-extra span{ display: flex; flex-direction: column; }
.t-pago .t-extra small{ font-size: 13px; color: var(--texto-suave); font-weight: 500; }
.t-nota-fin{ display: flex; gap: 6px; font-size: 13px; color: var(--texto-suave); margin: 2px 0 0; line-height: 1.45; }
.t-relacionados{ margin: 18px 0 6px; }
.t-relacionados h3{ font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.t-rel-fila{ display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.t-rel{ flex: 0 0 118px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 6px 6px 8px; border: 1px solid var(--borde); border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.t-rel:hover{ border-color: var(--m-color); }
.t-rel .foto{ position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #F4F5F7; display: flex; align-items: center; justify-content: center; color: #B0B5BD; font-size: 22px; }
.t-rel .foto img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.t-rel b{ font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-rel em{ font-style: normal; font-size: 12px; font-weight: 800; color: var(--m-color); }
.t-lineas .texto .t-fin-linea{ color: var(--exito); font-weight: 600; }
.t-equipo .t-extra span{ display: flex; flex-direction: column; }
.t-equipo .t-extra small{ font-size: 12px; color: var(--texto-suave); font-weight: 500; }
.t-equipo textarea{ margin-top: 4px; }

/* ---------- Precio por cantidad, aviso de salud y mayoría de edad ---------- */
.t-escala-chip{ background: #FFF4D6; color: #7A5200; }
.t-escalas{ border: 1.5px dashed color-mix(in srgb, var(--m-color) 45%, #fff); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.t-escalas strong{ display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.t-escalas strong i{ color: var(--m-color); }
.t-escalas ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.t-escalas li{ display: flex; justify-content: space-between; gap: 10px; }
.t-escalas li span{ color: var(--texto-suave); }
.t-escalas small{ display: block; margin-top: 8px; font-size: 12px; color: var(--texto-suave); }
.t-escalas em{ display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--m-color); }
.t-escalas em:empty{ display: none; }
.t-escala-ok{ font-size: 12px; font-weight: 700; color: #0B7A43; }
.t-detalle-precio .t-escala-ok{ display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #E7F8EE; vertical-align: 3px; }
.t-lineas .texto .t-escala-ok{ display: flex; align-items: center; gap: 5px; }
.t-aviso-salud{ display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #FFF6E5; color: #6B4600; font-size: 13px; line-height: 1.45; }
.t-aviso-salud i{ margin-top: 1px; }
.t-pie .t-aviso-salud{ margin: 0 0 14px; }
.t-edad-ok{ margin-bottom: 16px; }

/* ---------- Cupón ---------- */
.t-cupon-fila{ display: flex; gap: 8px; }
.t-cupon-fila .entrada{ flex: 1; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.t-cupon-fila .btn-m-sec{ height: 48px; flex: none; }
.t-cupon-ok{ display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #E7F8EE; color: #0B5C34; font-size: 14px; }
.t-cupon-ok i{ font-size: 18px; }
.t-cupon-ok span{ flex: 1; }
.t-cupon-quitar{ border: none; background: none; color: #0B5C34; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px; }
.t-linea-cupon{ color: #0B7A43; font-weight: 700; }

/* ---------- Combos, etiquetas y recomendados ---------- */
.t-tarjeta .sello.combo{ background: #6D28D9; }
.t-tarjeta .sello.nuevo{ background: #0B7A43; }
.t-tarjeta .sello i{ margin-right: 2px; }
.t-combo{ border: 1.5px solid #DDD6FE; background: #F5F3FF; border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.t-combo strong{ display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; color: #4C1D95; }
.t-combo ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.t-combo li b{ display: inline-block; min-width: 26px; color: #6D28D9; }
.t-combo em{ display: block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 13px; color: #0B7A43; }
.t-recomendados{ margin: 4px 0 18px; }
.t-recomendados h2{ font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.t-reco-fila{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.t-reco-fila .t-tarjeta{ scroll-snap-align: start; }

/* ---------- Reseñas ---------- */
.t-meta-estrellas a{ color: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.t-meta-estrellas i{ color: #F5A524; }
.t-estrellas{ color: #F5A524; display: inline-flex; gap: 2px; font-size: 14px; }
.t-resenas{ margin: 34px 0 10px; }
.t-resenas-cabeza{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.t-resenas-cabeza h2{ font-size: 18px; font-weight: 800; margin: 0; }
.t-resenas-prom{ display: inline-flex; align-items: center; gap: 8px; }
.t-resenas-prom b{ font-size: 20px; }
.t-resenas-prom small{ color: var(--texto-suave); font-size: 13px; }
.t-resenas-fila{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.t-resena{ background: var(--blanco); border: 1px solid var(--borde); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.t-resena p{ margin: 0; font-size: 14px; line-height: 1.5; }
.t-resena footer{ font-size: 12px; color: var(--texto-suave); margin-top: auto; }
.t-resena-resp{ font-size: 13px; background: #F6F7F9; border-radius: 10px; padding: 8px 10px; }
.t-resenas-nota{ font-size: 12px; color: var(--texto-suave); margin: 8px 0 0; }
.t-opinion{ text-align: center; }
.t-opinion h2{ font-size: 20px; margin: 0 0 6px; }
.t-opinion p{ color: var(--texto-suave); margin: 0 0 14px; }
.t-opinion .icono{ background: var(--m-color); }
.t-op-estrellas{ display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.t-op-estrellas button{ border: none; background: none; font-size: 34px; color: #F5A524; cursor: pointer; padding: 2px; line-height: 1; }
.t-op-estrellas button:focus-visible{ outline: 3px solid var(--m-color); border-radius: 8px; }
.t-opinion textarea, .t-opinion input{ text-align: left; }
.t-op-nota{ display: block; font-size: 12px; color: var(--texto-suave); margin: 8px 0 14px; text-align: left; }

/* ---------- Cliente frecuente ---------- */
.t-fidelidad { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #F4F1FF; color: #3C2F7A; font-size: .9rem; line-height: 1.4; }
.t-fidelidad i { font-size: 1.15rem; margin-top: 1px; }
.t-fidelidad.ok { background: #E6F6EC; color: #0B6B3A; }
