/* Alamarket · tema propio. Diseño del prototipo 2027 (prototipos/) y Manual de identidad v1.0. */

/* ---------- Colores y medidas ---------- */
:root {
  --azul: #2457e8; --azul-hover: #1a45c4; --amarillo: #ffd23f; --amarillo-hover: #f5c518; --tinta: #14243d;
  --ok: #1f9d55; --error: #d93636;
  --bg: #f6f8fd; --surface: rgba(255, 255, 255, .72); --surface-solid: #fff;
  --line: rgba(20, 36, 61, .1); --line-fuerte: rgba(20, 36, 61, .22);
  --fg: #14243d; --muted: #56627a; --chip: #eaeff9; --bar: rgba(255, 255, 255, .95);
  --logo-word: #2457e8; --acento: #2457e8; --enlace: #2457e8;
  --glow-a: rgba(36, 87, 232, .2); --glow-b: rgba(255, 210, 63, .26);
  --tono-a: rgba(255, 210, 63, .3); --tono-b: rgba(36, 87, 232, .12);
  --shadow: 0 1px 2px rgba(20, 36, 61, .05), 0 12px 32px -12px rgba(20, 36, 61, .18);
  --on-azul: #fff; --on-amarillo: #14243d;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px; --r-pill: 999px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220; --surface: rgba(22, 34, 56, .66); --surface-solid: #131e33;
    --line: rgba(255, 255, 255, .09); --line-fuerte: rgba(255, 255, 255, .22); --fg: #eef2fb; --muted: #9aa6bf; --chip: #1c2a46;
    --bar: rgba(16, 26, 44, .96); --logo-word: #fff; --acento: #ffd23f; --enlace: #ffd23f; --ok: #3ccf7f; --error: #ff6b6b;
    --glow-a: rgba(36, 87, 232, .42); --glow-b: rgba(255, 210, 63, .14); --tono-a: rgba(255, 210, 63, .14); --tono-b: rgba(36, 87, 232, .26);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
img { max-width: 100%; height: auto; }
a { color: var(--enlace); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
.saltar { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amarillo); color: var(--tinta); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; }
.saltar:focus { left: 16px; }
.ico { width: 20px; height: 20px; flex: none; }
.lg-b { fill: var(--logo-word); }
.lg-y { fill: var(--amarillo); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wrap { width: 100%; max-width: 2200px; margin: 0 auto; padding-inline: clamp(16px, 2.2vw, 48px); }
.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura span { position: absolute; border-radius: 50%; filter: blur(70px); }
.aura .a1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: var(--glow-a); }
.aura .a2 { width: 36vw; height: 36vw; right: -8vw; top: 30vh; background: var(--glow-b); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn, .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-pill);
  padding: 13px 22px; font-weight: 700; text-decoration: none; font-size: 15px; line-height: 1.2; cursor: pointer;
  background: var(--amarillo); color: var(--on-amarillo); transition: transform .15s, background .2s;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--amarillo-hover); color: var(--on-amarillo); }
.btn:active, .button:active { transform: scale(.98); }
.btn .ico, .button .ico { width: 18px; height: 18px; }
.btn.azul, .woocommerce .button.alt, .woocommerce button.button.alt, .checkout-button, #place_order { background: var(--azul); color: var(--on-azul); }
.btn.azul:hover, .woocommerce .button.alt:hover, .woocommerce button.button.alt:hover { background: var(--azul-hover); color: var(--on-azul); }
.btn.borde { background: transparent; color: var(--fg); border: 1px solid var(--line-fuerte); }
.btn.borde:hover { background: var(--chip); color: var(--fg); }
.btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn.y { background: var(--amarillo); color: var(--on-amarillo); }

/* ---------- Encabezado ---------- */
header.top { position: relative; z-index: 20; padding-block: 16px 0; }
@media (min-width: 721px) { header.top { position: sticky; top: 0; padding-bottom: 4px; } }
.admin-bar header.top { top: 32px; }
.barra {
  display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow); padding: 8px 8px 8px 22px;
}
.barra > * { min-width: 0; }
.logo { flex: none; display: block; }
.logo .logo-svg { display: block; width: 150px; height: auto; }
.buscar { flex: 1; position: relative; margin: 0; }
.buscar .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.buscar input[type="search"] { width: 100%; border: 1px solid transparent; background: var(--chip); border-radius: var(--r-pill); padding: 12px 16px 12px 46px; outline: none; }
.buscar input[type="search"]:focus { border-color: var(--azul); background: var(--surface-solid); }
.acciones-top { display: flex; gap: 6px; flex: none; }
.ico-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--fg); border-radius: var(--r-pill); padding: 10px 14px; font-weight: 700; font-size: 14px; text-decoration: none; }
.ico-btn:hover { background: var(--chip); }
.ico-btn.carrito { background: var(--azul); color: var(--on-azul); }
.ico-btn.carrito:hover { background: var(--azul-hover); }
.badge { min-width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--amarillo); color: var(--on-amarillo); display: inline-grid; place-items: center; font-size: 12px; padding-inline: 6px; font-variant-numeric: tabular-nums; }
.badge.pop { animation: pop .4s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.fav-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 999px; font-size: 10px; display: inline-grid; place-items: center; background: var(--amarillo); color: var(--on-amarillo); }
.cats-top { display: flex; gap: 8px; padding-top: 12px; overflow-x: auto; scrollbar-width: none; }
.cats-top::-webkit-scrollbar { display: none; }
.cats-top a { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: var(--r-pill); padding: 8px 16px; font-size: 14px; font-weight: 700; text-decoration: none; }
.cats-top li { list-style: none; display: contents; }
.cats-top a:hover, .cats-top .current-menu-item > a, .cats-top .current-product_cat-ancestor > a, .cats-top a[aria-current] { background: var(--azul); color: #fff; border-color: var(--azul); }

/* ---------- Contenido general ---------- */
.contenido { padding-bottom: 32px; }
.migas, .woocommerce-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--muted); padding-block: 22px 14px; }
.migas a { color: var(--muted); text-decoration: none; }
.migas a:hover { text-decoration: underline; }
.cabeza-pagina { padding-block: 8px 20px; display: grid; gap: 8px; }
.cabeza-pagina h1 { font-size: clamp(30px, 4vw, 52px); }
.texto { max-width: 72ch; font-size: 16.5px; line-height: 1.7; }
.texto-ancho { max-width: none; font-size: 16px; line-height: 1.5; }
.texto h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 28px 0 12px; }
.texto h3 { font-size: 18px; margin: 18px 0 6px; }
.texto ul { padding-left: 22px; display: grid; gap: 6px; }
.texto table { border-collapse: collapse; width: 100%; margin: 6px 0 14px; }
.texto th, .texto td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pagina-legal .texto section { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; scroll-margin-top: 110px; }
.pagina-legal .falta { background: rgba(255, 210, 63, .45); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.pagina-legal .plazos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 14px; }
.pagina-legal .plazo { border-radius: var(--r-md); background: var(--surface-solid); border: 1px solid var(--line); padding: 16px; display: grid; gap: 4px; }
.pagina-legal .plazo strong { font-size: 26px; }
.pagina-legal .plazo span { font-size: 14px; color: var(--muted); }
.pagina-legal .nota { font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: var(--r-sm); background: var(--chip); }
.tarjeta { border-radius: var(--r-md); background: var(--surface-solid); border: 1px solid var(--line); padding: 18px; }
.vacio-sec { text-align: center; padding: 40px 16px; border-radius: var(--r-md); border: 1px dashed var(--line-fuerte); display: grid; gap: 12px; justify-items: center; color: var(--muted); }
.vacio-sec strong, .vacio-sec h1 { color: var(--fg); }
.vacio-sec.grande { padding-block: 64px; }
.iso-404 { width: 120px; height: auto; }

/* ---------- Portada ---------- */
.bento { display: grid; gap: clamp(14px, 1.2vw, 24px); padding-block: 24px 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "hero hero hero entrega" "hero hero hero claro" "cats cats cats cats"; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 24px; min-width: 0; text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hero { grid-area: hero; background: var(--azul); color: #fff; border: 0; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: clamp(360px, 28vw, 560px); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 40%), radial-gradient(circle at 70% 110%, rgba(255, 210, 63, .35), transparent 45%); pointer-events: none; }
.hero > * { position: relative; }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h1 { font-size: clamp(40px, 6vw, 76px); margin-block: 14px 16px; }
.hero h1 em { font-style: normal; color: var(--amarillo); }
.hero p { font-size: clamp(16px, 1.6vw, 19px); max-width: 30em; opacity: .92; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.iso-3d { display: grid; place-items: center; perspective: 900px; }
.card3d { width: min(100%, clamp(260px, 21vw, 420px)); aspect-ratio: 1; border-radius: 34%; background: linear-gradient(145deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 30px 60px -20px rgba(8, 20, 60, .6); display: grid; place-items: center; transition: transform .15s ease-out; animation: respira 6s ease-in-out infinite; }
@keyframes respira { 50% { translate: 0 -10px; } }
.card3d .iso-svg { width: 62%; height: auto; filter: drop-shadow(0 18px 24px rgba(8, 20, 60, .35)); }
.card3d .lg-b { fill: #fff; }
/* Promo de la juguetería en el banner principal */
.hero-promo h1 { font-size: clamp(38px, 5.4vw, 72px); }
.cupon-promo { display: inline-flex; align-items: stretch; margin-top: 22px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .14); border: 1px dashed rgba(255, 255, 255, .55); max-width: 100%; }
.cupon-promo .pct { display: grid; place-items: center; align-content: center; padding: 10px 16px; background: var(--amarillo); color: var(--tinta); font-weight: 700; font-size: 26px; line-height: 1; }
.cupon-promo .pct small { font-size: 11px; letter-spacing: .1em; margin-top: 2px; }
.cupon-promo .codigo { display: grid; align-content: center; padding: 8px 16px; min-width: 0; }
.cupon-promo .codigo small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.cupon-promo .codigo strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 20px; letter-spacing: .08em; }
.cupon-promo .copiar { border: 0; border-left: 1px dashed rgba(255, 255, 255, .55); background: transparent; color: #fff; font-weight: 700; padding: 0 18px; }
.cupon-promo .copiar:hover { background: rgba(255, 255, 255, .12); }
.letra-menuda { font-size: 12px !important; opacity: .75 !important; margin-top: 16px !important; }
.collage { position: relative; aspect-ratio: 1; width: min(100%, 440px); justify-self: center; }
.collage .pieza { position: absolute; border-radius: 28px; overflow: hidden; background: rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -24px rgba(8, 20, 60, .65); border: 4px solid rgba(255, 255, 255, .5); animation: flota 6s ease-in-out infinite; }
.collage .pieza img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collage .p1 { width: 58%; aspect-ratio: 1; left: 0; top: 6%; transform: rotate(-7deg); }
.collage .p2 { width: 46%; aspect-ratio: 1; right: 0; top: 0; transform: rotate(6deg); animation-delay: -2s; }
.collage .p3 { width: 50%; aspect-ratio: 1; right: 6%; bottom: 0; transform: rotate(-3deg); animation-delay: -4s; }
.collage .sello { position: absolute; left: 30%; bottom: 8%; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: var(--amarillo); color: var(--tinta); font-weight: 700; font-size: 28px; line-height: 1; box-shadow: 0 16px 30px -10px rgba(8, 20, 60, .5); transform: rotate(-12deg); }
.collage .sello small { font-size: 12px; letter-spacing: .1em; }
@keyframes flota { 50% { translate: 0 -8px; } }

.entrega-tile { grid-area: entrega; display: flex; flex-direction: column; gap: 10px; }
.entrega-tile .dato { font-size: 26px; font-weight: 700; line-height: 1.15; }
.mini { font-size: 13px; color: var(--muted); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ruta { display: flex; gap: 6px; margin-top: auto; }
.ruta i { flex: 1; height: 6px; border-radius: 3px; background: var(--chip); position: relative; overflow: hidden; }
.ruta i.on { background: var(--azul); }
.ruta i.mov::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--amarillo); border-radius: 3px; animation: avanza 2.4s ease-in-out infinite; }
@keyframes avanza { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.claro { grid-area: claro; display: flex; flex-direction: column; gap: 12px; }
.claro ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.claro li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--amarillo); color: var(--on-amarillo); display: grid; place-items: center; }
.check .ico { width: 12px; height: 12px; }
.cat-row { grid-area: cats; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: inherit; }
.cat-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 200px; }
.cat-tile h3 { font-size: 26px; }
.cat-tile p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.cat-tile .arte { position: absolute; right: -18px; bottom: -18px; width: 132px; height: 132px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cat-tile:hover .arte { transform: rotate(-8deg) scale(1.08); }
.cat-tile .ir { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--acento); }
.cat-tile.jug { grid-column: span 2; background: var(--amarillo); color: var(--tinta); border: 0; }
.cat-tile.jug p, .cat-tile.jug .ir { color: var(--tinta); }

.campanas { display: grid; gap: clamp(14px, 1.2vw, 24px); padding-block: 40px 8px; grid-template-columns: 1.35fr 1fr 1fr 1.1fr; grid-template-areas: "a b b e" "a c d e"; grid-auto-rows: minmax(clamp(220px, 16vw, 320px), auto); }
.banner { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(20px, 2vw, 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; color: inherit; min-width: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.banner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.banner > :not(.b-arte) { position: relative; z-index: 1; }
.banner .eyebrow { color: inherit; opacity: .8; }
.banner h3 { font-size: clamp(22px, 2vw, 36px); max-width: 10em; }
.banner p { font-size: 15px; max-width: 19em; opacity: .85; margin: 0; }
.banner .comprar { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; border-radius: var(--r-pill); padding: 9px 16px; font-weight: 700; font-size: 14px; background: var(--amarillo); color: var(--on-amarillo); }
.banner .comprar .ico { width: 16px; height: 16px; }
.b-arte { position: absolute; right: -6%; bottom: -10%; width: 55%; max-width: 280px; height: auto; border-radius: 28px; mix-blend-mode: multiply; opacity: .95; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.banner:hover .b-arte { transform: scale(1.06) rotate(-4deg); }
.b-a { grid-area: a; background: var(--azul); color: #fff; }
.b-b { grid-area: b; background: var(--amarillo); color: var(--tinta); }
.b-b .comprar { background: var(--tinta); color: #fff; }
.b-c { grid-area: c; background: var(--surface-solid); border: 1px solid var(--line); }
.b-d { grid-area: d; background: var(--tinta); color: #fff; border: 1px solid var(--line); }
.b-e { grid-area: e; background: var(--chip); }
.b-c .comprar, .b-e .comprar { background: var(--azul); color: #fff; }
.b-a .b-arte, .b-d .b-arte { mix-blend-mode: normal; opacity: .9; }
.b-svg { mix-blend-mode: normal; width: 42%; max-width: 190px; right: 4%; bottom: 4%; border-radius: 0; opacity: 1; }
.b-a .b-svg [fill="#2457e8"] { fill: #fff; } /* sobre el banner azul */

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { color: var(--muted); max-width: 34em; margin: 8px 0 0; }
.colecciones-sec, .vitrina { padding-top: 48px; }
.col-pista { display: flex; gap: clamp(12px, 1.2vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.col-pista::-webkit-scrollbar { display: none; }
.col-card { flex: 0 0 clamp(290px, 24vw, 400px); scroll-snap-align: start; border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--tono-a); }
.col-card.tono-b { background: var(--tono-b); }
.col-head { display: flex; justify-content: space-between; gap: 10px; padding: 4px 4px 0; }
.col-head h3 { font-size: 16px; letter-spacing: 0; line-height: 1.3; }
.ver-todo { font-size: 13px; font-weight: 700; color: var(--fg); white-space: nowrap; }
.col-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-prod { background: var(--surface-solid); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; color: var(--fg); }
.mp-foto { border-radius: 12px; overflow: hidden; background: var(--chip); margin-bottom: 6px; }
.mp-foto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.mini-prod:hover .mp-foto img { transform: scale(1.06); }
.mp-precio { font-weight: 700; font-size: 15px; }
.mp-precio small { display: none; }
.mp-nombre { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tarjetas de producto (listas de WooCommerce) ---------- */
.woocommerce ul.products, ul.products { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 15vw, 290px), 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, ul.products li.prod { width: auto !important; float: none !important; margin: 0 !important; }
.prod { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod .foto { position: relative; background: var(--chip); }
.prod .foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 !important; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.prod:hover .foto img { transform: scale(1.05); }
.cubre { position: absolute; inset: 0; z-index: 1; }
.tag { position: absolute; z-index: 2; left: 12px; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-solid); border-radius: var(--r-pill); padding: 5px 10px; color: var(--muted); }
.tag.nuevo { background: var(--amarillo); color: var(--on-amarillo); }
.fav { position: absolute; z-index: 2; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-solid); display: grid; place-items: center; color: var(--muted); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.fav .ico { width: 18px; height: 18px; }
.fav[aria-pressed="true"] { color: #e5484d; }
.fav[aria-pressed="true"] path { fill: currentColor; }
.prod .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sub-n { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.prod h3 { font-size: 16px; letter-spacing: -.01em; line-height: 1.3; padding: 0 !important; }
.prod h3 a { color: inherit; text-decoration: none; }
.prod h3 a:hover { text-decoration: underline; }
.prod .desc { font-size: 13px; color: var(--muted); margin: 0; }
.prod .pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.prod .precio, .prod .price { font-size: 20px; font-weight: 700; color: var(--fg) !important; }
.prod .price del { font-size: 14px; color: var(--muted); font-weight: 400; }
.prod .price ins { text-decoration: none; }
.prod .button { padding: 10px 16px; font-size: 14px; margin: 0 !important; white-space: nowrap; }
.prod .added_to_cart { display: none; }
.prod .button.added { background: var(--azul); color: #fff; }

/* ---------- Categoría / tienda ---------- */
.banner-cat { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 48px); min-height: 200px; display: flex; align-items: center; background: var(--azul); color: #fff; }
.banner-cat.tecnologia { background: var(--tinta); border: 1px solid var(--line); }
.banner-cat.juguetes { background: var(--amarillo); color: var(--tinta); }
.banner-cat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .22), transparent 45%); pointer-events: none; }
.banner-cat > * { position: relative; }
.banner-cat .eyebrow { color: inherit; opacity: .8; }
.banner-cat h1 { font-size: clamp(34px, 4.6vw, 64px); margin-block: 10px 12px; }
.banner-cat p { font-size: clamp(16px, 1.4vw, 19px); max-width: 32em; opacity: .9; margin: 0; }
.banner-cat .conteo { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; border-radius: var(--r-pill); padding: 6px 14px; background: rgba(255, 255, 255, .18); }
.banner-cat.juguetes .conteo { background: rgba(20, 36, 61, .1); }
.subcats { display: flex; gap: 10px; padding-block: 20px 4px; overflow-x: auto; scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.subcat { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-solid); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 14px; }
.subcat .n { font-size: 12px; color: var(--muted); }
.subcat:hover { border-color: var(--azul); }
.subcat[aria-current="page"] { background: var(--azul); color: #fff; border-color: var(--azul); }
.subcat[aria-current="page"] .n { color: rgba(255, 255, 255, .8); }
.barra-res { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px 14px; }
.woocommerce-result-count { margin: 0 !important; color: var(--muted); float: none !important; }
.woocommerce-ordering { margin: 0 !important; float: none !important; }
.woocommerce-ordering select { border: 1px solid var(--line-fuerte); background: var(--surface-solid); border-radius: var(--r-pill); padding: 9px 14px; font-weight: 700; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: var(--r-pill); min-width: 40px; padding: 10px; background: var(--surface-solid); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--azul); color: #fff; }

/* ---------- Página de producto ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.single-product div.product .woocommerce-product-gallery { position: relative; width: auto !important; float: none !important; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); }
.single-product div.product .woocommerce-product-gallery .fav { top: 16px; right: 16px; width: 46px; height: 46px; z-index: 9; }
.single-product div.product .summary { width: auto !important; float: none !important; display: grid; gap: 16px; }
.single-product .product_title { font-size: clamp(28px, 2.6vw, 42px); }
.single-product div.product p.price { font-size: clamp(30px, 3vw, 42px); font-weight: 700; color: var(--fg); margin: 0; display: grid; gap: 4px; }
.single-product .iva { font-size: 13px; color: var(--muted); font-weight: 400; }
.single-product .woocommerce-product-details__short-description { color: var(--muted); font-size: 17px; }
.single-product form.cart { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 !important; }
.single-product form.cart .quantity input { width: 80px; height: 50px; border: 1px solid var(--line-fuerte); border-radius: var(--r-pill); background: var(--surface-solid); text-align: center; font-weight: 700; }
.single-product form.cart .single_add_to_cart_button { flex: 1; padding: 15px 22px; font-size: 16px; background: var(--amarillo) !important; color: var(--tinta) !important; }
.single-product .product_meta { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.single-product .product_meta a { color: var(--muted); }
.entrega { display: grid; gap: 12px; }
.ciudad { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ciudad select { border: 1px solid var(--line-fuerte); background: var(--surface-solid); border-radius: var(--r-pill); padding: 8px 14px; font-weight: 700; }
.entrega-fila { display: flex; gap: 12px; align-items: flex-start; }
.entrega-fila .ico-caja { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--chip); color: var(--acento); display: grid; place-items: center; }
.entrega-fila strong { display: block; }
.entrega-fila span { font-size: 14px; color: var(--muted); }
.pagos-tarjeta { display: grid; gap: 10px; }
.pagos { display: flex; flex-wrap: wrap; gap: 6px; }
.pagos span { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; background: var(--surface-solid); }
.ayuda { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ayuda p { font-size: 14px; margin: 0; }
.ayuda p strong { display: block; font-size: 16px; }
.single-product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-solid); padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 18px; color: var(--fg); font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--azul); border-color: var(--azul); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel { border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-bottom: 1px solid var(--line); background: transparent !important; padding: 10px 12px; font-style: normal; }
.single-product .related, .single-product .upsells { grid-column: 1 / -1; margin-top: 32px; }
.single-product .related > h2, .single-product .upsells > h2 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 16px; }

/* ---------- Avisos, formularios y tablas de WooCommerce ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border: 0 !important; border-radius: var(--r-md); background: var(--surface-solid) !important; color: var(--fg) !important; box-shadow: var(--shadow); padding: 16px 20px 16px 52px !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--azul) !important; top: 16px !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .form-tarjeta input, .form-tarjeta select, .form-tarjeta textarea,
#review_form input[type="text"], #review_form input[type="email"], #review_form textarea {
  width: 100%; border: 1px solid var(--line-fuerte); background: var(--surface-solid); border-radius: var(--r-sm); padding: 13px 14px; min-height: 48px; outline: none; }
#review_form p { margin: 0 0 14px; }
#review_form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#review_form .comment-form-cookies-consent label { display: inline; font-weight: 400; color: var(--muted); }
.woocommerce #review_form #respond input#submit, #review_form .form-submit input[type="submit"] { background: var(--amarillo); color: var(--tinta); border: 0; border-radius: var(--r-pill); padding: 13px 26px; font-weight: 700; cursor: pointer; }
.woocommerce form .form-row input.input-text:focus, #review_form input:focus, #review_form textarea:focus, .form-tarjeta input:focus, .form-tarjeta textarea:focus, .form-tarjeta select:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(36, 87, 232, .18); }
.woocommerce form .form-row label, .form-tarjeta label { font-weight: 700; font-size: 14px; }
.form-tarjeta { border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; max-width: 760px; }
.form-tarjeta .campo { display: grid; gap: 6px; margin: 0; }
.form-tarjeta .casilla { font-size: 14px; margin: 0; }
.enviado { border-radius: var(--r-lg); background: var(--surface-solid); border: 2px solid var(--ok); padding: 24px; margin-bottom: 20px; max-width: 760px; }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-solid); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-top: 1px solid var(--line); padding: 14px 16px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 14px; display: grid; gap: 2px; border-radius: var(--r-md); background: var(--surface-solid); border: 1px solid var(--line); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 700; }
.woocommerce-MyAccount-navigation a:hover { background: var(--chip); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--azul); color: #fff; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: auto !important; float: none !important; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
/* Bloques de carrito y pago */
.wc-block-cart, .wc-block-checkout { --wp--preset--color--contrast: var(--fg); }
.wc-block-components-button:not(.is-link) { border-radius: var(--r-pill) !important; background: var(--azul) !important; color: #fff !important; font-weight: 700 !important; min-height: 50px; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select { border-radius: var(--r-sm) !important; }
.wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block, .wc-block-checkout__sidebar { border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); padding: 20px; }

/* ---------- Pie ---------- */
footer.pie { margin-top: 64px; background: var(--azul); color: #fff; padding-block: 44px 48px; border-radius: 36px 36px 0 0; }
.pie-grid { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; align-items: flex-start; }
.pie .logo-pie { width: 180px; height: auto; display: block; margin-bottom: 12px; }
.pie .lg-b { fill: #fff; }
.pie-marca p { max-width: 26em; opacity: .9; }
.menu-pie { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 8px 40px; }
.pie a { color: #fff; text-decoration: none; opacity: .92; }
.pie a:hover { opacity: 1; text-decoration: underline; }
.pie .nota { width: 100%; font-size: 13px; opacity: .75; margin: 0; }

/* ---------- Aviso flotante ---------- */
.toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transition: all .3s cubic-bezier(.2, .8, .2, 1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Barra inferior móvil ---------- */
nav.app-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .single-product div.product { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "hero hero" "entrega claro" "cats cats"; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .iso-3d { display: none; }
  .collage { width: min(100%, 340px); }
  .cat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campanas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b b" "c d" "e e"; grid-auto-rows: minmax(210px, auto); }
  .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
  .menu-pie { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .barra { flex-wrap: wrap; border-radius: 26px; padding: 10px 10px 10px 18px; gap: 12px 10px; }
  .logo .logo-svg { width: 128px; }
  .buscar { order: 3; flex-basis: 100%; }
  .acciones-top { margin-left: auto; gap: 8px; }
  .acciones-top .ico-btn { width: 44px; height: 44px; padding: 0; justify-content: center; background: var(--chip); }
  .acciones-top .ico-btn.carrito { width: auto; padding: 0 12px; gap: 6px; background: var(--azul); }
  .acciones-top .txt { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "entrega" "claro" "cats"; }
  .hero { padding: 28px 22px; }
  .hero .ctas { flex-direction: column; }
  .collage { width: min(100%, 300px); margin-top: 8px; }
  .cupon-promo .codigo strong { font-size: 17px; }
  .cat-row { grid-template-columns: minmax(0, 1fr); }
  .cat-tile.jug { grid-column: auto; }
  .campanas { gap: 12px; grid-auto-rows: minmax(190px, auto); }
  .banner p { display: none; }
  .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod .info { padding: 12px; }
  .prod .desc { display: none; }
  .prod .pie { flex-direction: column; align-items: stretch; }
  .prod .button { justify-content: center; }
  .prod .precio, .prod .price { font-size: 17px; }
  .prod h3 { font-size: 14px; }
  .col-card { flex-basis: 84%; }
  .pagina-legal .plazos { grid-template-columns: minmax(0, 1fr); }
  .menu-pie { grid-template-columns: minmax(0, 1fr); }
  footer.pie { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  nav.app-bar {
    display: flex; position: fixed; left: 12px; right: 12px; z-index: 30; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--bar); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 6px; justify-content: space-around;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .app-bar a { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 4px; border-radius: 18px; position: relative; text-decoration: none; }
  .app-bar a .ico { width: 22px; height: 22px; }
  .app-bar a.activo { color: var(--acento); background: var(--chip); }
  .app-bar .badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: 10px; }
}
