/* ==========================================================================
   Tienda virtual · página pública. Los colores y las letras salen del diseño que edita cada tienda (variables --t-*)
   ========================================================================== */
:root {
  --t-primario: #4f46e5; --t-secundario: #0f172a; --t-fondo: #ffffff; --t-texto: #111827; --t-acento: #f59e0b;
  --t-sobre-primario: #ffffff; --t-sobre-secundario: #ffffff; --t-sobre-acento: #111827;
  --t-radio: 10px; --t-radio-tarjeta: 14px;
  --t-fuente-titulos: "Poppins", system-ui, sans-serif; --t-fuente-texto: "Inter", system-ui, sans-serif;
  --t-superficie: color-mix(in srgb, var(--t-texto) 5%, var(--t-fondo));
  --t-borde: color-mix(in srgb, var(--t-texto) 14%, var(--t-fondo));
  --t-suave: color-mix(in srgb, var(--t-texto) 62%, var(--t-fondo));
  --t-exito: #16a34a; --t-peligro: #dc2626; --t-aviso: #d97706;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.tienda { margin: 0; font-family: var(--t-fuente-texto); font-size: 16px; line-height: 1.55; color: var(--t-texto); background: var(--t-fondo); }
.tienda h1, .tienda h2, .tienda h3, .tienda h4 { font-family: var(--t-fuente-titulos); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
.tienda a { color: var(--t-primario); text-decoration: none; } .tienda a:hover { text-decoration: underline; }
.tienda img { max-width: 100%; display: block; }
.tienda p { margin: 0 0 1rem; }
.t-wrap { width: min(1200px, 100% - 2rem); margin: 0 auto; }
.t-suave { color: var(--t-suave); } .t-chico { font-size: .85rem; } .t-centro { text-align: center; }
.t-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-oculto { display: none !important; }
.t-vista-previa { background: #fde68a; color: #78350f; text-align: center; font-size: .82rem; padding: .35rem; font-weight: 600; }

/* Botones */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.25rem;
  border: 1px solid var(--t-borde); border-radius: var(--t-radio); background: var(--t-fondo); color: var(--t-texto); font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: none !important; transition: transform .08s, box-shadow .15s, background .15s; }
.t-btn:hover { box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }
.t-btn:active { transform: translateY(1px); }
.tienda a.t-btn-primario, .t-btn-primario { background: var(--t-primario); border-color: var(--t-primario); color: var(--t-sobre-primario); }
.tienda a.t-btn-acento, .t-btn-acento { background: var(--t-acento); border-color: var(--t-acento); color: var(--t-sobre-acento); }
.tienda a.t-btn-wa, .t-btn-wa { background: #16a34a; border-color: #16a34a; color: #fff; }
.t-btn-bloque { width: 100%; } .t-btn-chico { min-height: 36px; padding: .3rem .9rem; font-size: .88rem; }
.t-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Barra de anuncio y encabezado */
.t-anuncio { background: var(--t-secundario); color: var(--t-sobre-secundario); text-align: center; font-size: .86rem; padding: .45rem 1rem; }
.t-anuncio a { color: inherit; text-decoration: underline; }
.t-header { position: sticky; top: 0; z-index: 50; background: var(--t-fondo); border-bottom: 1px solid var(--t-borde); }
.t-header-fila { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.t-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--t-fuente-titulos); font-weight: 700; font-size: 1.2rem;
  color: var(--t-texto) !important; text-decoration: none !important; flex: none; }
.t-logo img { max-height: 44px; width: auto; }
@media (max-width: 480px) { .t-logo { flex: 0 1 auto; min-width: 0; line-height: 1.15; } .t-acciones { flex: none; } } /* un nombre largo no empuja el carrito fuera de la pantalla */
.t-nav { display: flex; gap: 1.4rem; flex: 1; justify-content: center; }
.t-nav a { color: var(--t-texto); font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.t-nav a:hover { border-bottom-color: var(--t-primario); text-decoration: none; }
.t-acciones { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.t-buscar { display: flex; align-items: center; background: var(--t-superficie); border-radius: 999px; padding: 0 .9rem; height: 42px; min-width: 200px; }
.t-buscar input { border: 0; background: none; outline: none; font: inherit; color: inherit; width: 100%; padding-left: .4rem; }
.t-icono { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--t-texto) !important;
  font-size: 1.35rem; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.t-icono:hover { background: var(--t-superficie); }
.t-badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--t-acento);
  color: var(--t-sobre-acento); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.t-menu-boton { display: none; }
.t-header.centrado .t-header-fila { flex-wrap: wrap; justify-content: center; padding: .6rem 0; }
.t-header.centrado .t-logo { width: 100%; justify-content: center; order: -1; }
.t-header.centrado .t-nav { order: 2; } .t-header.centrado .t-acciones { margin-left: 0; order: 3; }
@media (max-width: 860px) {
  .t-menu-boton { display: inline-grid; } .t-buscar { display: none; }
  .t-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--t-fondo);
    border-bottom: 1px solid var(--t-borde); padding: .5rem 1rem 1rem; box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .4); }
  .t-nav.abierto { display: flex; } .t-nav a { padding: .8rem 0; border-bottom: 1px solid var(--t-borde); }
  .t-buscar-movil { display: flex !important; margin: .5rem 0; }
  .t-header.centrado .t-nav { order: unset; }
}
.t-buscar-movil { display: none; }

/* Secciones de la portada */
.t-seccion { padding: 2.6rem 0; } .t-seccion.t-franja { background: var(--t-superficie); }
.t-titulo { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; margin-bottom: 1.2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.t-titulo a { font-size: .95rem; font-weight: 600; }
.t-hero { position: relative; display: grid; align-items: center; min-height: 440px; color: #fff; background: var(--t-secundario) center/cover no-repeat; overflow: hidden; }
.t-hero.alta { min-height: 600px; } .t-hero.baja { min-height: 300px; }
.t-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--oscurecer, .35)); }
.t-hero.sin-imagen { background: linear-gradient(135deg, var(--t-primario), var(--t-secundario)); }
.t-hero-cuerpo { position: relative; padding: 3rem 0; max-width: 640px; }
.t-hero.centro .t-hero-cuerpo { margin: 0 auto; text-align: center; } .t-hero.derecha .t-hero-cuerpo { margin-left: auto; text-align: right; }
.t-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; }
.t-hero p { font-size: 1.12rem; opacity: .95; }
/* Efectos del banner. La imagen se anima en una capa propia (::after) para que el texto y el oscurecido no se muevan. */
.t-hero.img-acercar, .t-hero.img-alejar, .t-hero.img-movimiento { isolation: isolate; }
.t-hero.img-acercar::after, .t-hero.img-alejar::after, .t-hero.img-movimiento::after { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; will-change: transform; }
.t-hero.img-acercar::after { animation: t-img-acercar 12s ease-out both; }
.t-hero.img-alejar::after { animation: t-img-alejar 12s ease-out both; }
.t-hero.img-movimiento::after { animation: t-img-movimiento 20s ease-in-out infinite alternate; }
.t-hero.img-paralaje { background-attachment: fixed; }
.t-hero.texto-aparecer .t-hero-cuerpo > * { animation: t-txt-aparecer .9s ease-out both; }
.t-hero.texto-subir .t-hero-cuerpo > * { animation: t-txt-subir .8s cubic-bezier(.2, .7, .2, 1) both; }
.t-hero.texto-lado .t-hero-cuerpo > * { animation: t-txt-lado .8s cubic-bezier(.2, .7, .2, 1) both; }
.t-hero.derecha.texto-lado .t-hero-cuerpo > * { animation-name: t-txt-lado-der; }
.t-hero[class*="texto-"] .t-hero-cuerpo > :nth-child(2) { animation-delay: .15s; } .t-hero[class*="texto-"] .t-hero-cuerpo > :nth-child(3) { animation-delay: .3s; }
/* En el carrusel, cada banner anima cuando le toca aparecer */
.t-carrusel .t-hero:not(.activa)::after, .t-carrusel .t-hero:not(.activa) .t-hero-cuerpo > * { animation: none; }
@keyframes t-img-acercar { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes t-img-alejar { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes t-img-movimiento { from { transform: scale(1.1) translate3d(-2.5%, -1%, 0); } to { transform: scale(1.1) translate3d(2.5%, 1%, 0); } }
@keyframes t-txt-aparecer { from { opacity: 0; } }
@keyframes t-txt-subir { from { opacity: 0; transform: translateY(28px); } }
@keyframes t-txt-lado { from { opacity: 0; transform: translateX(-40px); } }
@keyframes t-txt-lado-der { from { opacity: 0; transform: translateX(40px); } }
@media (hover: none) { .t-hero.img-paralaje { background-attachment: scroll; } } /* los celulares no lo muestran bien */
@media (prefers-reduced-motion: reduce) {
  .t-hero::after, .t-hero-cuerpo > * { animation: none !important; }
  .t-hero.img-paralaje { background-attachment: scroll; }
}
.t-carrusel { position: relative; overflow: hidden; }
.t-carrusel-pistas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.t-carrusel-pistas::-webkit-scrollbar { display: none; } .t-carrusel-pistas > .t-hero { flex: 0 0 100%; scroll-snap-align: start; }
.t-carrusel-flecha { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); color: #111; cursor: pointer; font-size: 1.1rem; } .t-carrusel-flecha.izq { left: 12px; } .t-carrusel-flecha.der { right: 12px; }
.t-puntos { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.t-puntos button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); padding: 0; cursor: pointer; } .t-puntos button.activo { background: #fff; width: 22px; border-radius: 99px; }

.t-grid-productos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 700px) { .t-grid-productos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .t-grid-productos { grid-template-columns: repeat(4, 1fr); gap: 1.3rem; } }
.t-prod { position: relative; display: flex; flex-direction: column; background: var(--t-fondo); border: 1px solid var(--t-borde); border-radius: var(--t-radio-tarjeta); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.t-prod:hover { box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.t-prod-img { aspect-ratio: 1; background: var(--t-superficie); display: grid; place-items: center; overflow: hidden; }
.t-prod-img img { width: 100%; height: 100%; object-fit: cover; } .t-prod-img .t-sinfoto { font-size: 2.6rem; color: var(--t-suave); opacity: .5; }
.t-prod-cuerpo { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.t-prod-nombre { font-weight: 600; font-size: .95rem; color: var(--t-texto) !important; line-height: 1.3; } .t-prod-nombre:hover { text-decoration: none; color: var(--t-primario) !important; }
.t-precio { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.t-precio b { font-size: 1.15rem; font-family: var(--t-fuente-titulos); } .t-precio s { color: var(--t-suave); font-size: .85rem; }
.t-etiqueta { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--t-acento); color: var(--t-sobre-acento); font-size: .75rem; font-weight: 800; padding: .2rem .55rem; border-radius: 99px; }
.t-etiqueta.agotado { background: #374151; color: #fff; }
.t-pocas { color: var(--t-aviso); font-size: .78rem; font-weight: 600; }

.t-categorias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 700px) { .t-categorias { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1000px) { .t-categorias { grid-template-columns: repeat(6, 1fr); } }
.t-cat { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; color: var(--t-texto) !important; text-decoration: none !important; }
.t-cat-img { width: 100%; aspect-ratio: 1; border-radius: var(--t-radio-tarjeta); background: var(--t-superficie); overflow: hidden; display: grid; place-items: center; font-size: 2.4rem; color: var(--t-primario); }
.t-cat-img img { width: 100%; height: 100%; object-fit: cover; } .t-categorias.circulos .t-cat-img { border-radius: 50%; width: 110px; } .t-cat b { font-size: .95rem; }
.t-cat:hover .t-cat-img { box-shadow: 0 0 0 3px var(--t-primario); }
.t-beneficios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } @media (min-width: 900px) { .t-beneficios { grid-template-columns: repeat(4, 1fr); } }
.t-beneficio { text-align: center; padding: 1rem; } .t-beneficio i { font-size: 2rem; color: var(--t-primario); } .t-beneficio b { display: block; margin: .4rem 0 .15rem; font-family: var(--t-fuente-titulos); }
.t-texto-imagen { display: grid; gap: 2rem; align-items: center; } @media (min-width: 800px) { .t-texto-imagen { grid-template-columns: 1fr 1fr; } .t-texto-imagen.derecha .t-ti-img { order: 2; } }
.t-ti-img img { width: 100%; border-radius: var(--t-radio-tarjeta); aspect-ratio: 4/3; object-fit: cover; } .t-ti-img .t-vacio-img { aspect-ratio: 4/3; border-radius: var(--t-radio-tarjeta); background: var(--t-superficie); display: grid; place-items: center; font-size: 3rem; color: var(--t-suave); }
.t-promo { padding: 1.3rem 0; text-align: center; } .t-promo .t-wrap { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; } .t-promo b { font-size: 1.15rem; font-family: var(--t-fuente-titulos); }
.t-testimonios { display: grid; gap: 1rem; } @media (min-width: 800px) { .t-testimonios { grid-template-columns: repeat(3, 1fr); } }
.t-testimonio { background: var(--t-fondo); border: 1px solid var(--t-borde); border-radius: var(--t-radio-tarjeta); padding: 1.3rem; } .t-estrellas { color: var(--t-acento); letter-spacing: 2px; margin-bottom: .4rem; }
.t-faq details { border-bottom: 1px solid var(--t-borde); padding: .9rem 0; } .t-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; } .t-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; } .t-faq details[open] summary::after { content: "–"; } .t-faq details p { margin: .6rem 0 0; color: var(--t-suave); }
.t-galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; } @media (min-width: 800px) { .t-galeria { grid-template-columns: repeat(4, 1fr); } } .t-galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--t-radio-tarjeta); }
.t-video { position: relative; aspect-ratio: 16/9; border-radius: var(--t-radio-tarjeta); overflow: hidden; background: #000; max-width: 860px; margin: 0 auto; } .t-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t-contacto { display: grid; gap: 1.5rem; } @media (min-width: 800px) { .t-contacto { grid-template-columns: 1fr 1fr; align-items: center; } } .t-datos li { list-style: none; display: flex; gap: .7rem; padding: .35rem 0; } .t-datos { padding: 0; margin: 0 0 1rem; } .t-datos i { color: var(--t-primario); }
.t-marcas { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; } .t-marcas img { max-height: 54px; filter: grayscale(1); opacity: .75; } .t-marcas img:hover { filter: none; opacity: 1; }
.t-boletin { text-align: center; max-width: 560px; margin: 0 auto; } .t-boletin form { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; } .t-boletin input { flex: 1; min-width: 200px; }
.t-prosa h2 { font-size: 1.5rem; margin-top: 1.5rem; } .t-prosa h3 { font-size: 1.15rem; margin-top: 1.2rem; } .t-prosa ul { padding-left: 1.2rem; } .t-prosa li { margin: .25rem 0; }
.t-vacio { text-align: center; padding: 2.5rem 1rem; color: var(--t-suave); } .t-vacio i { font-size: 2.6rem; display: block; margin-bottom: .6rem; opacity: .6; }

/* Formularios */
.t-campo { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; } .t-campo label { font-size: .86rem; font-weight: 600; }
.t-campo input, .t-campo select, .t-campo textarea, .t-input { font: inherit; color: inherit; background: var(--t-fondo); border: 1px solid var(--t-borde); border-radius: var(--t-radio); padding: .65rem .8rem; min-height: 44px; width: 100%; }
.t-campo input:focus, .t-campo select:focus, .t-campo textarea:focus, .t-input:focus { outline: 2px solid var(--t-primario); outline-offset: 1px; border-color: transparent; }
.t-campo small { color: var(--t-suave); } .t-fila { display: grid; gap: .8rem; } @media (min-width: 640px) { .t-fila.dos { grid-template-columns: 1fr 1fr; } .t-fila.tres { grid-template-columns: 1fr 1fr 1fr; } }
.t-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin: .6rem 0; } .t-check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; }
.t-trampa { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.t-aviso { padding: .8rem 1rem; border-radius: var(--t-radio); margin: 0 0 1rem; font-size: .92rem; display: flex; gap: .6rem; align-items: flex-start; }
.t-aviso.exito { background: #dcfce7; color: #14532d; } .t-aviso.error { background: #fee2e2; color: #7f1d1d; } .t-aviso.info { background: #dbeafe; color: #1e3a8a; } .t-aviso.warning { background: #fef3c7; color: #78350f; }

/* Producto */
.t-producto { display: grid; gap: 2rem; padding: 1.5rem 0 2.5rem; } @media (min-width: 860px) { .t-producto { grid-template-columns: 1.05fr 1fr; } }
.t-galeria-prod .principal { aspect-ratio: 1; border-radius: var(--t-radio-tarjeta); background: var(--t-superficie); overflow: hidden; display: grid; place-items: center; } .t-galeria-prod .principal img { width: 100%; height: 100%; object-fit: contain; }
.t-miniaturas { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; } .t-miniaturas button { width: 68px; height: 68px; border-radius: 10px; border: 2px solid var(--t-borde); background: none; padding: 0; cursor: pointer; overflow: hidden; } .t-miniaturas button.activo { border-color: var(--t-primario); } .t-miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.t-producto h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); } .t-producto .t-precio b { font-size: 1.9rem; } .t-miga { font-size: .85rem; color: var(--t-suave); padding: 1rem 0 0; } .t-miga a { color: var(--t-suave); }
.t-cantidad { display: inline-flex; align-items: center; border: 1px solid var(--t-borde); border-radius: var(--t-radio); overflow: hidden; } .t-cantidad button { width: 42px; height: 44px; border: 0; background: var(--t-superficie); font-size: 1.2rem; cursor: pointer; color: inherit; } .t-cantidad input { width: 52px; text-align: center; border: 0; font: inherit; background: var(--t-fondo); color: inherit; height: 44px; }
.t-ficha { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; } .t-ficha span { background: var(--t-superficie); border-radius: 99px; padding: .25rem .8rem; font-size: .82rem; }

/* Catálogo */
.t-catalogo { display: grid; gap: 1.5rem; padding: 1.5rem 0 3rem; } @media (min-width: 900px) { .t-catalogo { grid-template-columns: 240px 1fr; } }
.t-filtros { border: 1px solid var(--t-borde); border-radius: var(--t-radio-tarjeta); padding: 1rem; align-self: start; } .t-filtros h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--t-suave); margin: 1rem 0 .4rem; } .t-filtros h4:first-child { margin-top: 0; }
.t-filtros a { display: flex; justify-content: space-between; padding: .35rem 0; color: var(--t-texto); } .t-filtros a.activo { color: var(--t-primario); font-weight: 700; }
.t-paginas { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; } .t-paginas a, .t-paginas span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--t-borde); border-radius: 10px; color: var(--t-texto); } .t-paginas .actual { background: var(--t-primario); color: var(--t-sobre-primario); border-color: var(--t-primario); }

/* Carrito y compra */
.t-carrito { display: grid; gap: 1.5rem; padding: 1.5rem 0 3rem; } @media (min-width: 900px) { .t-carrito { grid-template-columns: 1fr 360px; align-items: start; } }
.t-linea { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--t-borde); align-items: center; } .t-linea img, .t-linea .t-miniatura { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--t-superficie); display: grid; place-items: center; }
.t-resumen { border: 1px solid var(--t-borde); border-radius: var(--t-radio-tarjeta); padding: 1.2rem; background: var(--t-superficie); position: sticky; top: 90px; } .t-resumen .fila { display: flex; justify-content: space-between; padding: .3rem 0; } .t-resumen .total { border-top: 1px solid var(--t-borde); margin-top: .5rem; padding-top: .7rem; font-size: 1.25rem; font-weight: 800; font-family: var(--t-fuente-titulos); }
.t-bloque { border: 1px solid var(--t-borde); border-radius: var(--t-radio-tarjeta); padding: 1.2rem; margin-bottom: 1.2rem; } .t-bloque > h3 { font-size: 1.05rem; display: flex; gap: .6rem; align-items: center; } .t-bloque > h3 span { width: 28px; height: 28px; border-radius: 50%; background: var(--t-primario); color: var(--t-sobre-primario); display: grid; place-items: center; font-size: .85rem; }
.t-opciones { display: grid; gap: .6rem; } .t-opcion { display: flex; gap: .8rem; align-items: center; border: 2px solid var(--t-borde); border-radius: var(--t-radio); padding: .8rem 1rem; cursor: pointer; } .t-opcion:has(input:checked) { border-color: var(--t-primario); background: color-mix(in srgb, var(--t-primario) 8%, var(--t-fondo)); } .t-opcion input { width: 18px; height: 18px; flex: none; } .t-opcion i { font-size: 1.4rem; color: var(--t-primario); } .t-opcion small { display: block; color: var(--t-suave); }

/* Seguimiento del pedido */
.t-proceso { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; } .t-proceso li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .2rem; }
.t-proceso li::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 24px); right: calc(50% + 24px); height: 3px; background: var(--t-borde); border-radius: 3px; } .t-proceso li:first-child::before { display: none; }
.t-proceso li.hecho::before, .t-proceso li.actual::before, .t-proceso li.parcial::before { background: var(--t-exito); } .t-proceso li.fallo::before { background: var(--t-peligro); }
.t-proceso .ico { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--t-superficie); color: var(--t-suave); border: 2px solid var(--t-borde); }
.t-proceso li.hecho .ico { background: var(--t-exito); border-color: var(--t-exito); color: #fff; } .t-proceso li.actual .ico { background: var(--t-primario); border-color: var(--t-primario); color: var(--t-sobre-primario); box-shadow: 0 0 0 5px color-mix(in srgb, var(--t-primario) 20%, transparent); }
.t-proceso li.parcial .ico { background: var(--t-aviso); border-color: var(--t-aviso); color: #fff; } .t-proceso li.fallo .ico { background: var(--t-peligro); border-color: var(--t-peligro); color: #fff; }
.t-proceso .txt { margin-top: .5rem; font-size: .8rem; line-height: 1.25; } .t-proceso .txt b { display: block; } .t-proceso .txt small { color: var(--t-suave); }
@media (max-width: 640px) { .t-proceso { flex-direction: column; gap: .2rem; } .t-proceso li { flex-direction: row; align-items: flex-start; text-align: left; gap: .8rem; padding: .3rem 0; } .t-proceso li::before { top: -17px; left: 19px; right: auto; width: 3px; height: 22px; } .t-proceso .txt { margin-top: .4rem; } }
.t-linea-tiempo { list-style: none; margin: 0; padding: 0; } .t-linea-tiempo li { padding: .55rem 0 .55rem 1.4rem; border-left: 2px solid var(--t-borde); position: relative; } .t-linea-tiempo li::before { content: ""; position: absolute; left: -6px; top: .85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--t-primario); }
.t-pago-datos { background: var(--t-superficie); border-radius: var(--t-radio); padding: 1rem; display: grid; gap: .5rem; } .t-pago-datos .fila { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; } .t-copiar { border: 1px solid var(--t-borde); background: var(--t-fondo); color: inherit; border-radius: 8px; padding: .2rem .6rem; cursor: pointer; font: inherit; font-size: .8rem; } .t-qr { width: 190px; border-radius: 12px; border: 1px solid var(--t-borde); background: #fff; padding: 6px; }

/* Pie y complementos */
.t-pie { background: var(--t-secundario); color: var(--t-sobre-secundario); padding: 2.4rem 0 1.4rem; margin-top: 2rem; } .t-pie a { color: inherit; opacity: .85; } .t-pie a:hover { opacity: 1; }
.t-pie-grid { display: grid; gap: 1.6rem; } @media (min-width: 800px) { .t-pie-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } } .t-pie h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: .7rem; } .t-pie ul { list-style: none; margin: 0; padding: 0; } .t-pie li { padding: .25rem 0; }
.t-redes { display: flex; gap: .7rem; font-size: 1.4rem; margin-top: .8rem; } .t-pie-medios { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; } .t-pie-medios span { background: rgba(255, 255, 255, .12); border-radius: 8px; padding: .25rem .6rem; font-size: .8rem; }
.t-pie-legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 1.6rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; opacity: .9; }
.t-libro { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: #111 !important; border-radius: 10px; padding: .4rem .8rem; font-weight: 700; opacity: 1 !important; } .t-libro i { color: #dc2626; font-size: 1.2rem; }
.t-wa-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff !important; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); text-decoration: none !important; }
.t-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: #111827; color: #fff; padding: .7rem 1.2rem; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); font-size: .92rem; }

/* Página personalizada: el diseño ocupa lo que dejan el encabezado y el aviso legal, y se desplaza dentro de su marco. Un marco que
   creciera con su contenido no sirve: las secciones de altura 100vh crecerían con él sin parar */
body.tienda.con-propia { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.con-propia > * { flex-shrink: 0; }
body.con-propia > main { flex: 1 1 auto; flex-shrink: 1; min-height: 0; display: flex; }
.t-propia-marco { flex: 1; width: 100%; min-width: 0; height: 100%; border: 0; display: block; background: #fff; }
.t-propia-legal { display: flex; align-items: center; justify-content: space-between; gap: .3rem 1rem; flex-wrap: wrap; padding: .3rem 1rem; font-size: .74rem; background: var(--t-secundario); color: var(--t-sobre-secundario); }
.t-propia-legal .t-libro { padding: .2rem .6rem; font-size: .74rem; border-radius: 8px; } .t-propia-legal .t-libro i { font-size: .95rem; }
