/* Componentes de la tienda: promos, combo, buscador en vivo, reseñas, checkout, pie. */

/* ---------- Barra de promociones (ticker) ---------- */
.ticker { background: var(--brand); color: #fff; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 700; }
.ticker-track { display: inline-flex; animation: ticker 40s linear infinite; padding: 7px 0; }
.ticker-track span { padding: 0 28px; position: relative; }
.ticker-track span::after { content: "✦"; position: absolute; right: -6px; opacity: .6; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Portada: la imagen de fondo siempre ocupa todo el ancho y queda anclada arriba al centro
   (si la pantalla es más baja que la imagen, se recorta la parte de abajo, nunca las caras de arriba). ---------- */
.hero[style] { background-size: cover; background-position: center top; background-repeat: no-repeat; }

/* ---------- Animaciones del inicio (assets/js/animations.js) ----------
   Solo se aplican con la clase "anim" en <html>, que pone el JS: sin JS todo se ve normal. */
.anim .reveal { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.anim .reveal { transform: translateY(28px); }
.anim .reveal.reveal-pop { transform: translateY(14px) scale(.9); }
.anim .reveal.is-visible { opacity: 1; transform: none; }

/* Portada: entrada en cascada al cargar */
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes perkIn { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.55); } 70% { box-shadow: 0 0 0 16px rgba(225,29,72,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); } }
.anim .hero h1 { animation: heroIn .8s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero p { animation: heroIn .8s .15s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero-perks > div { animation: perkIn .6s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero-perks > div:nth-child(1) { animation-delay: .3s; }
.anim .hero-perks > div:nth-child(2) { animation-delay: .42s; }
.anim .hero-perks > div:nth-child(3) { animation-delay: .54s; }
.anim .hero-perks > div:nth-child(4) { animation-delay: .66s; }
.anim .hero-actions { animation: heroIn .8s .7s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero-actions .btn-primary { animation: pulseRing 2.4s 2s infinite; }

/* Destello al pasar el mouse por las categorías y zoom en las fotos de las remeras */
.category-card::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); pointer-events: none; }
.category-card:hover::after { animation: shine .8s ease; }
@keyframes shine { to { left: 125%; } }
.product-card-img img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.keyword-chip img { transition: transform .3s; }
.keyword-chip:hover img { transform: rotate(-6deg) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .anim .hero *, .category-card:hover::after { animation: none !important; }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { height: 46px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.logo-invert { filter: invert(1); }
.logo-footer { height: 40px; margin-bottom: 6px; }
@media (max-width: 860px) { .logo-img { height: 36px; max-width: 160px; } }

/* ---------- Botones del encabezado ---------- */
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; text-decoration: none; letter-spacing: .3px; white-space: nowrap; }
.header-btn-outline { border: 1.5px solid #71717a; color: #fff; }
.header-btn-outline:hover { border-color: #fff; }
.header-btn-cart { background: #fff; color: var(--ink); }
.header-btn-cart .cart-count { position: static; background: var(--ink); color: #fff; border-radius: 6px; min-width: 22px; height: 22px; }
.show-sm, .show-menu-only { display: none; }
@media (max-width: 860px) {
  .header-btn-outline { display: none; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .show-menu-only { display: block; }
  .header-btn-cart { padding: 7px 10px; }
}

/* Submenú: el fondo del ítem al pasar el mouse no tapa las esquinas redondeadas. */
.dropdown { overflow: hidden; }

/* ---------- Encabezado en celular: logo centrado y barra fija con el buscador ---------- */
@media (max-width: 860px) {
  /* Fijo arriba; la barra de promociones (34 px) se va con el scroll y queda el menú + buscador. */
  .site-header { position: sticky; top: -34px; }
  .header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
  .menu-toggle { justify-self: start; }
  .logo { flex: none; justify-self: center; }
  .header-actions { justify-self: end; }
  .search { grid-column: 1 / -1; margin-left: 0; width: 100%; max-width: none; }
  /* Con el menú abierto, que se pueda desplazar si no entra en la pantalla. */
  .main-nav.open { max-height: calc(100vh - 120px); overflow-y: auto; }
  /* Submenú (Estampadas): margen interno para que el texto no quede pegado al borde del recuadro gris. */
  .main-nav .has-dropdown.open .dropdown { padding: 6px 0; }
  .main-nav .has-dropdown.open .dropdown a { padding: 12px 18px; }
  .main-nav .has-dropdown.open .dropdown li + li a { border-top: 1px solid rgba(255,255,255,.06); }
}

/* ---------- Buscador en vivo ---------- */
.search { position: relative; overflow: visible; }
.search input { border-radius: 999px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.25); z-index: 80; max-height: 70vh; overflow-y: auto; padding: 6px; }
.search-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.search-item:hover, .search-item.active { background: var(--bg-soft); }
.search-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--bg-soft); }
.search-item > span { display: flex; flex-direction: column; min-width: 0; }
.search-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item small { color: var(--muted); font-size: 12px; }
.search-item b { font-size: 14px; white-space: nowrap; }
.search-all { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--brand); text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }
.search-empty { padding: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Grillas con filas completas (inicio y "También te puede gustar") ----------
   Columnas fijas según el ancho y se ocultan los productos que dejarían una fila incompleta.
   --rows: 2 filas (10 / 8 / 6 / 6 productos) · --row1: 1 fila (5 / 4 / 3 / 2 productos) */
.product-grid--rows, .product-grid--row1 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.product-grid--rows > :nth-child(n+11), .product-grid--row1 > :nth-child(n+6) { display: none; }
@media (max-width: 1099px) {
  .product-grid--rows, .product-grid--row1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid--rows > :nth-child(n+9), .product-grid--row1 > :nth-child(n+5) { display: none; }
}
@media (max-width: 859px) {
  .product-grid--rows, .product-grid--row1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--rows > :nth-child(n+7), .product-grid--row1 > :nth-child(n+4) { display: none; }
}
@media (max-width: 559px) {
  .product-grid--rows, .product-grid--row1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid--rows > :nth-child(n+7), .product-grid--row1 > :nth-child(n+3) { display: none; }
}

/* ---------- Scroll infinito ---------- */
.infinite-status { display: flex; justify-content: center; align-items: center; min-height: 80px; padding: 24px 0 8px; color: var(--muted); font-size: 15px; }
.infinite-loading { display: inline-flex; align-items: center; gap: 10px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 74; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 560px) { .to-top { bottom: 84px; } }

/* ---------- Tarjeta de producto ---------- */
.product-card-img { position: relative; }
.card-tag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.card-tag-top { background: #fbbf24; color: #451a03; }
.card-delivery { background: #ecfeff; color: #155e75; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; text-align: center; letter-spacing: .2px; }
.card-rating { font-size: 13px; }
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: #d4d4d8; }
.price-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: auto; }
.price-box { padding: 7px 8px; display: flex; flex-direction: column; min-width: 0; }
.price-box + .price-box { border-left: 1px solid var(--line); }
.price-box-label { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .3px; }
.price-box strong { font-size: 16px; line-height: 1.25; white-space: nowrap; }
.price-box strong small { font-size: 10px; font-weight: 600; text-transform: uppercase; }
.price-box-note { font-size: 11px; color: var(--muted); }
.price-box-transfer { background: #f0fdf4; }
.price-box-transfer strong, .price-box-transfer .price-box-label { color: #15803d; }
.price-boxes:has(.price-box:only-child) { grid-template-columns: 1fr; }
.card-combo { font-size: 12px; background: #fffbeb; color: #92400e; border: 1px dashed #fcd34d; border-radius: 6px; padding: 5px 8px; }
.card-cta { margin-top: 4px; }
.product-card:hover .card-cta { background: var(--ink); color: #fff; }
@media (max-width: 560px) {
  .price-boxes { grid-template-columns: 1fr; }
  .price-box + .price-box { border-left: 0; border-top: 1px solid var(--line); }
  .price-box strong { font-size: 15px; }
}

/* ---------- Combo ---------- */
.combo-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 12px; margin: 16px 0; background: #fff; }
.combo-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.combo-track { position: relative; height: 12px; background: var(--bg-soft); border-radius: 999px; margin: 0 22px 44px 0; }
.combo-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, var(--brand)); transition: width .4s; }
.combo-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.combo-mark::before { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #d4d4d8; margin: 0 auto; }
.combo-mark.reached::before { border-color: var(--brand); background: var(--brand); }
.combo-mark-qty { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 15px; }
.combo-mark-pct { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; background: #fef3c7; color: #92400e; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.combo-mark.reached .combo-mark-pct { background: var(--brand); color: #fff; }
/* Parte rayada: lo que se sumaría (en la ficha, con esta remera; en el carrito, al elegir un escalón). */
.combo-fill { position: relative; z-index: 1; }
.combo-fill-preview { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; transition: width .4s;
  background: repeating-linear-gradient(45deg, rgba(225,29,72,.55) 0 7px, rgba(245,158,11,.35) 7px 14px); }
.combo-mark.preview-reached::before { border-color: var(--brand); border-style: dashed; }
.combo-mark.preview-reached .combo-mark-pct { background: rgba(225,29,72,.15); color: var(--brand); outline: 1px dashed var(--brand); }
button.combo-mark { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
button.combo-mark:hover::before { transform: scale(1.2); border-color: var(--brand); }
button.combo-mark::before { transition: transform .15s; }
.combo-mark.selected::before { box-shadow: 0 0 0 5px rgba(225, 29, 72, .25); }
.combo-mark.selected .combo-mark-qty { color: var(--brand); }
.combo-fill.preview { background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 8px, #fbbf24 8px, #fbbf24 16px); }
.combo-preview { margin: 8px 0 0; font-size: 14px; background: #f0fdf4; color: #166534; border-radius: 8px; padding: 8px 12px; }
.combo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.combo-actions-hint { flex-basis: 100%; }
.combo-foot { margin: 10px 0 0; }
.qty-input.flash { outline: 3px solid var(--brand); transition: outline .2s; }
.combo-msg { margin: 0; font-size: 14px; }
.combo-msg .muted { display: block; margin-top: 2px; }
.combo-nudge { background: #fffbeb; border: 1px dashed #fcd34d; color: #92400e; border-radius: 8px; padding: 9px 12px; font-size: 14px; margin-bottom: 14px; }
.combo-promo { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; }
.combo-promo h2 { font-size: 26px; margin-bottom: 4px; }
.combo-promo p { margin: 0; color: #d4d4d8; }
.combo-promo-tiers { display: flex; gap: 12px; flex-wrap: wrap; }
.combo-promo-tiers div { background: #27272a; border-radius: 10px; padding: 12px 18px; text-align: center; display: flex; flex-direction: column; }
.combo-promo-tiers strong { font-size: 26px; color: #fbbf24; }
.combo-promo-tiers span { font-size: 13px; color: #d4d4d8; }

/* Barra flotante del carrito */
.combo-dock { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); width: max-content; max-width: calc(100% - 100px); font-size: 14px; }
.combo-dock-close { background: none; border: 0; color: #a1a1aa; cursor: pointer; padding: 0 2px; font-size: 14px; }
.combo-dock .small { color: #fbbf24; }
@media (max-width: 560px) { .combo-dock { left: 12px; right: 76px; transform: none; max-width: none; width: auto; } }
.unlock-toast { position: fixed; top: 20px; left: 50%; transform: translate(-50%, -150%); z-index: 90; background: #fbbf24; color: #451a03; padding: 12px 20px; border-radius: 10px; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .35s; }
.unlock-toast.show { transform: translate(-50%, 0); }

/* ---------- Ficha de producto ---------- */
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; }
.gallery:not(:has(.gallery-thumbs)) { grid-template-columns: 1fr; }
.gallery-thumbs { flex-direction: column; margin-top: 0; overflow-y: auto; max-height: 620px; }
.gallery-thumbs button { flex: 0 0 76px; width: 76px; }
.gallery-main { position: relative; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(24,24,27,.65); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.gallery-nav:hover { background: var(--ink); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots span { width: 24px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.2); }
.gallery-dots span.active { background: var(--brand); }
@media (min-width: 861px) { .product-page .gallery { position: sticky; top: 16px; } }
@media (min-width: 861px) and (min-height: 760px) { .product-page .gallery { top: 150px; } }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; }
}
.product-meta { display: flex; gap: 12px; text-transform: uppercase; letter-spacing: .3px; }
.product-rating { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; text-decoration: none; margin: -8px 0 10px; color: var(--ink-2); }
.product-price { margin-bottom: 6px; }
.price-extra { font-size: 15px; display: grid; gap: 4px; margin-bottom: 14px; }
.delivery-promise { display: flex; gap: 12px; align-items: center; border: 1.5px solid #a5f3fc; background: #ecfeff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.delivery-promise strong { font-size: 18px; }
.delivery-icon { font-size: 28px; }
.ship-quote { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ship-quote label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 8px; }
.ship-quote-row { display: flex; gap: 8px; }
.ship-quote-row input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #d4d4d8; border-radius: 8px; text-transform: uppercase; }
.ship-quote-result ul { list-style: none; margin: 10px 0 0; padding: 0; }
.ship-quote-result li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ship-quote-result li span { display: flex; flex-direction: column; }
.ship-quote-result small { color: var(--muted); }
.ship-quote-result:empty { display: none; }
.perks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.perks-grid div { background: var(--bg-soft); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; font-size: 14px; }
.perks-grid span { color: var(--muted); font-size: 13px; }

/* ---------- Reseñas ---------- */
.review-list { display: grid; gap: 14px; }
.review { display: flex; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.review img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.review p { margin: 6px 0; }
.verified { color: var(--ok); font-weight: 600; }
.review-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.review-card { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; background: #fff; }
.review-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.review-card > div { padding: 12px 14px; }
.review-card p { margin: 6px 0; font-size: 14px; }
.star-input { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.star-input legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 36px; color: #d4d4d8; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

/* ---------- Selector de sucursal ---------- */
.branch-search { width: 100%; padding: 10px 12px; border: 1px solid #d4d4d8; border-radius: 8px 8px 0 0; border-bottom: 0; }
.branch-list { max-height: 340px; overflow-y: auto; border: 1px solid #d4d4d8; border-radius: 0 0 8px 8px; background: #fff; overscroll-behavior: contain; }
.field .branch-option input { width: auto; padding: 0; }
.field label.branch-option { display: flex; font-size: 14px; }
.branch-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.branch-option:last-child { border-bottom: 0; }
.branch-option:hover { background: var(--bg-soft); }
.branch-option input { margin-top: 4px; accent-color: var(--brand); flex-shrink: 0; }
.branch-option span { display: flex; flex-direction: column; gap: 2px; }
.branch-option strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.branch-option small { font-size: 13px; color: var(--muted); }
.branch-option:has(input:checked) { background: #fff1f2; box-shadow: inset 4px 0 0 var(--brand); }
.branch-selected { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: #fff1f2; border: 1.5px solid var(--brand); border-radius: 8px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.branch-selected > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.branch-selected strong { font-size: 15px; font-weight: 800; }
.branch-selected small { font-size: 13px; color: var(--muted); }
.branch-change { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.branch-selected:hover .branch-change { text-decoration: underline; }
.branch-loading { padding: 16px; color: var(--muted); font-size: 14px; }
.field.invalid .branch-list, .field.invalid .branch-search { border-color: #dc2626; }
[data-branch-count] { margin-top: 6px; }

/* ---------- Carrito / checkout / pedido ---------- */
.coupon-box { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.coupon-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #d4d4d8; border-radius: 8px; text-transform: uppercase; }
.pill-off { background: #16a34a; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.transfer-box { background: #f0fdf4; border-color: #bbf7d0; }
.big-amount { font-size: 24px; }
.bank-data { margin: 12px 0; display: grid; gap: 6px; }
.bank-data div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.bank-data dt { color: var(--muted); }
.bank-data dd { margin: 0; font-weight: 700; word-break: break-all; }
.account-offer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #eff6ff; border-color: #bfdbfe; }
.account-offer p { margin: 2px 0 0; }
.account-offer-form { display: flex; gap: 8px; }
.account-offer-form input { padding: 9px 12px; border: 1px solid #d4d4d8; border-radius: 8px; min-width: 0; }

/* ---------- Inicio ---------- */
.hero-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 10px; margin: 0 0 24px; }
.hero-perks div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.hero-perks strong { font-size: 22px; color: #fbbf24; }
.hero-perks span { font-size: 12px; color: #e4e4e7; }
@media (max-width: 640px) { .hero-perks { grid-template-columns: 1fr 1fr; } }
.category-card span small { display: block; font-size: 12px; font-weight: 500; text-transform: none; opacity: .85; }
.category-card-alt, .category-card-sale, .category-card-dark { display: flex; align-items: flex-end; }
.category-card-alt { background: linear-gradient(135deg, #f59e0b, #b45309); }
.category-card-sale { background: linear-gradient(135deg, var(--brand), #881337); }
.category-card-dark { background: linear-gradient(135deg, #3f3f46, #18181b); }
.category-card-alt span, .category-card-sale span, .category-card-dark span { background: none; }

/* ---------- Guía de talles ---------- */
.sizes-page { --pink: #ec4899; --pink-soft: #fce7f3; --pink-softer: #fdf2f8; --violet: #a855f7; }
.sizes-hero { background: radial-gradient(circle at 85% 20%, rgba(236,72,153,.35), transparent 45%), linear-gradient(120deg, #18181b, #3f3f46); color: #fff; }
.sizes-hero-inner { padding: 40px 16px 44px; }
.sizes-hero h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 900; letter-spacing: -1px; margin: 10px 0 8px; text-transform: uppercase; }
.sizes-hero p { margin: 0; color: #e4e4e7; max-width: 560px; }
.sizes-kicker { display: inline-block; background: var(--pink); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 999px; transform: rotate(-2deg); }
.sizes-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; margin-top: -22px; align-items: start; }
@media (max-width: 900px) { .sizes-layout { grid-template-columns: 1fr; } }
.sizes-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.sizes-card h2 { font-size: 20px; margin-bottom: 14px; }
.sizes-table-pretty { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid #18181b; border-radius: 14px; overflow: hidden; font-size: 17px; text-align: center; }
.sizes-table-pretty thead th { background: linear-gradient(180deg, #f9a8d4, var(--pink)); color: #18181b; font-weight: 800; padding: 14px 10px; font-size: 15px; line-height: 1.2; }
.sizes-table-pretty thead th + th { border-left: 2px solid #18181b; }
.sizes-table-pretty tbody th { background: var(--pink-soft); font-size: 22px; font-weight: 900; width: 34%; }
.sizes-table-pretty tbody td, .sizes-table-pretty tbody th { padding: 13px 10px; border-top: 1px solid #f5d0e6; }
.sizes-table-pretty tbody td { font-weight: 700; color: #27272a; border-left: 1px solid #f5d0e6; }
.sizes-table-pretty tbody tr:nth-child(even) td { background: var(--pink-softer); }
.sizes-table-pretty .unit { font-size: 12px; color: var(--muted); font-weight: 600; }
.sizes-table-pretty tr.is-match th, .sizes-table-pretty tr.is-match td { background: #18181b !important; color: #fff; }
.sizes-table-pretty tr.is-match .unit { color: #f9a8d4; }
.size-finder { margin-top: 18px; background: var(--pink-softer); border: 1.5px dashed #f9a8d4; border-radius: 12px; padding: 14px 16px; }
.size-finder h3 { margin: 0 0 4px; font-size: 16px; }
.size-finder p { margin: 0 0 10px; }
.size-finder-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.size-finder-input { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #18181b; border-radius: 10px; padding: 4px 12px 4px 4px; font-weight: 700; }
.size-finder-input input { width: 90px; border: 0; padding: 8px; font-size: 18px; font-weight: 800; outline: none; background: transparent; }
.size-finder-result { font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.size-pill { display: inline-block; background: var(--pink); color: #fff; border-radius: 999px; padding: 2px 14px; font-size: 18px; margin-left: 4px; }
.how-to-body { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; }
@media (max-width: 520px) { .how-to-body { grid-template-columns: 1fr; justify-items: center; } }
.shirt-diagram { width: 100%; max-width: 220px; height: auto; }
.how-to-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how-to-steps li { display: flex; gap: 12px; align-items: flex-start; }
.how-to-steps p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.step-badge { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; }
.step-a { background: var(--pink); }
.step-b { background: var(--violet); }
.sizes-tips { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.sizes-notes { margin-top: 24px; }
.sizes-thanks { text-align: center; font-weight: 900; font-size: 20px; color: var(--pink); margin: 28px auto 8px; transform: rotate(-2deg); }

/* ---------- Palabras destacadas ---------- */
.keyword-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-chip { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s, transform .15s; }
.keyword-chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-1px); }
.keyword-chip img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.keyword-label { font-weight: 800; font-size: 15px; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.keyword-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 1px 7px; }
.keyword-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.keyword-chip:hover .keyword-count { background: #3f3f46; color: #fbbf24; }
@media (max-width: 560px) {
  .keyword-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .keyword-chip { flex-shrink: 0; }
}

.chip-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-count { font-size: 11px; opacity: .7; margin-left: 2px; }

/* Editor de sub-palabras (panel) */
.tag-editor { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 40px; padding: 5px 8px; border: 1px solid #d4d4d8; border-radius: 6px; background: #fff; cursor: text; }
.tag-editor:focus-within { outline: 2px solid var(--ink); outline-offset: -1px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 13px; font-weight: 600; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; line-height: 1; padding: 0 4px; border-radius: 50%; }
.tag button:hover { color: #b91c1c; }
.tag-editor input { border: 0 !important; outline: 0; flex: 1; min-width: 120px; padding: 4px !important; background: transparent; }

/* ---------- Newsletter y pie ---------- */
.newsletter { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 32px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { margin: 0 0 4px; }
.newsletter p { margin: 0; color: var(--ink-2); max-width: 520px; }
.newsletter-form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #d4d4d8; border-radius: 8px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.socials a { font-weight: 700; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-legal a { color: #a1a1aa; }
.regret-link { border: 1px solid #71717a; padding: 2px 10px; border-radius: 6px; color: #fff !important; text-decoration: none; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 75; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.whatsapp-float:hover { transform: scale(1.06); }
.contact-ways { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- Panel: componentes nuevos ---------- */
.logo-preview-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.logo-preview { padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.logo-preview-dark { background: var(--ink); }
.admin-reviews { display: grid; gap: 12px; }
.admin-review { display: flex; gap: 16px; margin: 0; }
.admin-review img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.admin-review-body { flex: 1; }
.admin-review-body p { margin: 8px 0; }
.message-regret { border-left: 4px solid #dc2626; }
.settings-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; position: sticky; top: 56px; z-index: 5; background: var(--bg-soft); padding: 6px 0; }
.settings-nav a { padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.day-picker { display: flex; gap: 14px; flex-wrap: wrap; }
.card h3 { margin-top: 24px; }

.site-footer { padding-bottom: 84px; }

.category-checklist { columns: 2 260px; }
.category-checklist label { margin: 4px 0; }

.table.sizes-table.keywords-table { max-width: none; }
.keywords-table td:first-child input { min-width: 160px; }

/* ---------- Combo: paleta magenta → violeta ---------- */
.combo-card { --c-mag: #e935c1; --c-vio: #8b5cf6; }
.combo-fill { background: linear-gradient(90deg, var(--c-mag), var(--c-vio)); box-shadow: 0 0 12px rgba(168,85,247,.45); }
.combo-fill-preview { background: repeating-linear-gradient(-45deg, rgba(233,53,193,.45) 0 6px, rgba(139,92,246,.22) 6px 12px); }
.combo-mark::before { border-color: #a1a1aa; }
.combo-mark.reached::before { background: linear-gradient(135deg, var(--c-mag), var(--c-vio)); border-color: transparent; box-shadow: 0 0 10px rgba(168,85,247,.55); }
.combo-mark-pct { background: var(--bg-soft); color: var(--muted); }
.combo-mark.reached .combo-mark-pct { background: linear-gradient(135deg, var(--c-mag), var(--c-vio)); color: #fff; }
.combo-mark.preview-reached::before { border-color: var(--c-vio); border-style: dashed; }
.combo-mark.preview-reached .combo-mark-pct { background: rgba(139,92,246,.14); color: var(--c-vio); outline: 1px dashed var(--c-vio); }
button.combo-mark:hover::before { border-color: var(--c-mag); }
.combo-mark.selected::before { box-shadow: 0 0 0 5px rgba(168,85,247,.28); }
.combo-mark.selected .combo-mark-qty { color: var(--c-mag); }

/* ---------- Tarjetas de categoría: foto con el color de la tarjeta encima ---------- */
.category-card-alt img, .category-card-sale img, .category-card-dark img { position: absolute; inset: 0; mix-blend-mode: luminosity; opacity: .55; }
.category-card-alt:hover img, .category-card-sale:hover img, .category-card-dark:hover img { opacity: .45; }
.category-card-alt span, .category-card-sale span, .category-card-dark span { background: linear-gradient(transparent, rgba(0,0,0,.45)); text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* En el celu: una sola fila compacta que se desliza de costado */
@media (max-width: 640px) {
  .category-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card { flex: 0 0 38%; aspect-ratio: 1; scroll-snap-align: start; }
  .category-card span { padding: 10px; font-size: 14px; line-height: 1.15; }
  .category-card span small { font-size: 11px; margin-top: 2px; }
}

/* ---------- Productos personalizados: diseño del cliente ---------- */
.custom-upload { margin: 14px 0; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-soft); }
.custom-upload-title { font-weight: 700; margin-bottom: 6px; }
.custom-upload .field { margin: 8px 0 0; }
.custom-upload input[type="file"] { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card, #fff); color: inherit; }
.custom-upload-or { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 -2px; }
.cart-item-link { word-break: break-all; }
.color-picker span { min-width: auto; padding: 0 14px; }

/* ---------- Chat de la web con el asistente (burbuja rosa, arriba de la de WhatsApp) ---------- */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-widget.with-wa { bottom: 86px; }
.chat-float { width: 56px; height: 56px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #f472b6, #db2777); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(219,39,119,.45); transition: transform .15s; }
.chat-float:hover { transform: scale(1.06); }
.chat-widget.open .chat-float { transform: scale(.92); }
.chat-panel { width: min(360px, calc(100vw - 36px)); height: min(520px, calc(100vh - 190px)); display: flex; flex-direction: column; background: #fff; color: #18181b; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(135deg, #f472b6, #db2777); color: #fff; }
.chat-head img, .chat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; display: grid; place-items: center; flex: none; }
.chat-head div { flex: 1; min-width: 0; line-height: 1.2; }
.chat-head small { display: block; opacity: .9; font-size: 12px; }
.chat-x { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 6px; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fdf2f8; }
.chat-bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.chat-bubble a { color: #be185d; text-decoration: underline; }
.chat-bubble.from-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.chat-bubble.from-user { align-self: flex-end; background: #db2777; color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.from-user a { color: #fff; }
.chat-bubble.has-image { padding: 4px; background: #fff; }
.chat-bubble.has-image img { display: block; width: 200px; max-width: 100%; border-radius: 10px; }
.chat-typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #f472b6; animation: chatDot 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #fce7f3; background: #fff; }
.chat-input input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #f9a8d4; border-radius: 999px; font-size: 15px; color: #18181b; background: #fff; }
.chat-input input:focus { outline: 2px solid #f472b6; outline-offset: 0; }
.chat-input button { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: #db2777; color: #fff; font-size: 16px; cursor: pointer; }
@media (max-width: 560px) {
  .chat-widget.open { left: 12px; right: 12px; bottom: 12px; }
  .chat-widget.open .chat-panel { width: 100%; height: calc(100vh - 120px); }
  .chat-widget.open .chat-float { display: none; }
}

/* Rem asomándose detrás de la burbuja, con un globito */
.chat-peek { position: absolute; right: 0; bottom: 44px; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.chat-peek[hidden] { display: none; }
.chat-peek-img { width: 92px; height: auto; margin-right: -6px; transform: translateY(40px) scale(.6); opacity: 0; transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); order: 2; }
.chat-peek-text { order: 1; position: relative; max-width: 220px; margin: 0 6px 6px 0; padding: 10px 14px; border: 0; border-radius: 16px; border-bottom-right-radius: 4px; background: #fff; color: #18181b; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.2); cursor: pointer; pointer-events: auto; opacity: 0; transform: translateY(8px); transition: opacity .3s .35s, transform .3s .35s; }
.chat-peek-x { order: 1; position: absolute; top: -8px; right: -2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #52525b; color: #fff; font-size: 11px; cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity .3s .35s; }
.chat-peek.show .chat-peek-img { transform: translateY(0) scale(1); opacity: 1; }
.chat-peek.show .chat-peek-text, .chat-peek.show .chat-peek-x { opacity: 1; transform: none; }
.chat-widget.open .chat-peek { display: none; }
@media (prefers-reduced-motion: reduce) { .chat-peek-img, .chat-peek-text, .chat-peek-x { transition: none; } }
.chat-peek-text { width: max-content; max-width: 230px; }

/* Rem detrás del círculo: inclinada, con la base tapada por la burbuja */
.chat-float { position: relative; z-index: 2; }
.chat-peek { position: absolute; z-index: 1; right: -10px; bottom: 26px; display: block; width: 116px; }
.chat-peek-img { display: block; width: 116px; margin: 0; transform-origin: 50% 100%; transform: translateY(70px) rotate(-12deg); opacity: 0; }
.chat-peek.show .chat-peek-img { transform: translateY(0) rotate(-12deg); opacity: 1; }
.chat-peek-text { position: absolute; right: 108px; bottom: 58px; margin: 0; }
.chat-peek-x { top: auto; right: 98px; bottom: 98px; }
.chat-peek { right: -16px; bottom: 18px; }
.chat-peek-text { right: 112px; bottom: 62px; }
.chat-peek-x { right: 102px; bottom: 102px; }

/* Chat: tarjetitas de producto con foto */
.chat-products { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-top: -2px; scrollbar-width: thin; }
.chat-product { flex: 0 0 120px; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: #18181b; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chat-product img { width: 120px; height: 120px; object-fit: cover; background: #f4f4f5; }
.chat-product-name { padding: 6px 8px 0; font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-product-price { padding: 2px 8px 8px; font-size: 12px; font-weight: 700; color: #be185d; }
.chat-product:hover { box-shadow: 0 3px 10px rgba(219,39,119,.3); }
.chat-list > * { flex-shrink: 0; }   /* los mensajes y las tarjetas no se aplastan: la lista hace scroll */
