/* MÍA Shop · Tienda pública. Diseño para celular primero.
   Paleta aprobada: fucsia, rosa, blanco y detalles dorados (tonos provisionales hasta recibir el manual de marca). */
:root {
  --fucsia: #c2156f;
  --fucsia-osc: #8f0d52;
  --rosa: #fde4ef;
  --rosa-medio: #f08cb8;
  --dorado: #b08a2e;
  --dorado-claro: #ecdcae;
  --blanco: #ffffff;
  --fondo: #fff8fb;
  --texto: #2f2228;
  --suave: #6b5a62;
  --borde: #f1d7e3;
  --ok: #1d7a46;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radio: 16px;
}
* { box-sizing: border-box; }
/* scroll-padding-top = altura real del encabezado fijo (la mide tienda.js): los saltos a #categorias,
   #entregas o #contenido nunca quedan tapados por el encabezado. 130px es el valor de respaldo sin JS. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 130px) + 8px); }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--texto); background: var(--fondo); }
img { max-width: 100%; height: auto; }
a { color: var(--fucsia-osc); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }
h2 { font-size: 1.45rem; margin: 0 0 14px; color: var(--fucsia-osc); }
p { margin: 0 0 12px; }
.muted { color: var(--suave); }
.small { font-size: .88rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blanco); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }

.env-banner { margin: 0; padding: 6px 16px; text-align: center; font-size: .8rem; background: #2f2228; color: #fff; letter-spacing: .02em; }

/* ───── Encabezado ───── */
/* Encabezado FIJO (sticky): permanece visible al desplazarse. Fondo opaco para que fotos y precios no se
   transparenten por debajo. Ningún ancestro (html/body) tiene overflow, requisito para que sticky funcione. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--blanco); border-bottom: 1px solid var(--borde); box-shadow: 0 1px 0 var(--dorado-claro), 0 4px 10px rgba(47, 34, 40, .06); }
.brand { display: flex; align-items: center; gap: 10px; padding: 10px 16px 4px; text-decoration: none; }
.brand-placeholder.isotype, .isotype, .brand-name, .brand-slogan, .brand, .site-nav a { transition: all .18s ease; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--fucsia); letter-spacing: .01em; }
.brand-slogan { font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--dorado); }
.site-nav { display: flex; gap: 4px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--texto); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a[aria-current="page"], .site-nav a:hover { background: var(--rosa); color: var(--fucsia-osc); }

/* Marcadores temporales de marca (logotipo e isotipo oficiales pendientes) */
.brand-placeholder { display: inline-flex; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--dorado); color: var(--dorado); background: repeating-linear-gradient(45deg, #fff, #fff 8px, #fbf5e6 8px, #fbf5e6 16px); font-family: var(--sans); font-weight: 700; letter-spacing: .06em; }
.brand-placeholder.isotype { width: 42px; height: 42px; border-radius: 50%; font-size: .45rem; flex: none; }
.brand-placeholder.logo { width: min(260px, 80%); aspect-ratio: 2.4; border-radius: 14px; font-size: .78rem; margin: 0 auto 14px; flex-direction: column; }
.brand-placeholder.logo small { font-weight: 500; letter-spacing: 0; font-size: .7rem; }

/* ───── Botones y formularios ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--fucsia); background: var(--fucsia); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; touch-action: manipulation; }
.btn:hover { background: var(--fucsia-osc); border-color: var(--fucsia-osc); }
.btn.secondary { background: var(--blanco); color: var(--fucsia); }
.btn.big { min-height: 54px; padding: 12px 28px; font-size: 1.1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.whatsapp { background: #1f7a4d; border-color: #1f7a4d; }
.round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--borde); background: var(--blanco); color: var(--fucsia); font-size: 1.4rem; cursor: pointer; }
.search { width: 100%; max-width: 640px; margin: 0 auto; }
.search-row { display: flex; gap: 8px; }
.search input, .search select { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; font-size: 16px; border: 1px solid var(--borde); border-radius: 999px; background: var(--blanco); color: var(--texto); }
.search-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.search-filters .btn { grid-column: 1 / -1; }

/* ───── Portada ───── */
.hero { text-align: center; padding: 28px 16px 32px; background: radial-gradient(120% 90% at 50% 0%, var(--rosa) 0%, var(--fondo) 70%); border-bottom: 1px solid var(--dorado-claro); }
.hero-title { margin: 0; font-size: 2.2rem; color: var(--fucsia); }
.hero-slogan { margin: 4px 0 10px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--dorado); }
.hero-intro { max-width: 560px; margin: 0 auto 18px; color: var(--suave); }

.section { width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 16px 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; text-decoration: none; }
.carousel-ctrl { display: none; gap: 6px; }

/* ───── Tarjetas de producto (borde de marca automático) ───── */
/* TODAS las tarjetas miden lo mismo: mismas columnas en la cuadrícula y en el carrusel, recuadro de foto con
   proporción FIJA y zona de nombre y precios con altura reservada (con o sin oferta). grid-auto-rows: 1fr
   iguala además la altura de todas las filas. */
.pgrid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
/* position: relative en el carrusel y en cada tarjeta: los textos para lectores de pantalla (.sr-only,
   position: absolute) quedan contenidos en su tarjeta. Sin esto su bloque contenedor era <body>, escapaban
   del recorte del carrusel y ensanchaban el documento a 761 px en celulares (causa raíz, Fase 3). */
.carousel { position: relative; list-style: none; padding: 4px 0 14px; margin: 12px 0 0; display: flex; align-items: stretch; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
/* Mismo ancho que una columna de la cuadrícula en cada tamaño de pantalla */
.carousel > li { flex: 0 0 calc((100% - 12px) / 2); min-width: 0; scroll-snap-align: start; }
.pcard { position: relative; background: var(--blanco); border: 3px solid var(--borde); border-radius: var(--radio); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(194, 21, 111, .12); }
.border-fucsia { border-color: var(--fucsia); }
.border-rosa { border-color: var(--rosa-medio); }
.border-dorado { border-color: var(--dorado); }
.pcard-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
/* Recuadro de foto con proporción FIJA (4:5, la habitual de la ropa fotografiada en vertical). La foto se
   coloca ENCIMA del recuadro (position: absolute), así su tamaño real nunca agranda la tarjeta: antes una
   foto vertical estiraba su tarjeta (causa de las alturas distintas). */
.pcard-photo { --foto-tarjeta: 4 / 5; position: relative; margin: 0; aspect-ratio: var(--foto-tarjeta); background: #fff; overflow: hidden; }
/* Sin recortes ni deformaciones: la foto completa, centrada, con su proporción y sus colores originales */
.pcard-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; }
.photo-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; color: var(--suave); font-size: .85rem; background: var(--rosa); }
.pcard-photo .photo-placeholder { position: absolute; inset: 0; min-height: 0; }
.ribbon { z-index: 1; position: absolute; top: 10px; left: 10px; background: #2f2228; color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pcard-body { flex: 1; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.code { font: 600 .74rem ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--suave); letter-spacing: .03em; }
.pcard-name { margin: 0; min-height: 2.6em; font-family: var(--sans); font-size: .98rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Precios de tarjeta en filas FIJAS: precio actual arriba; precio anterior y «Oferta» debajo. La segunda fila
   se reserva aunque no haya oferta, así precios y etiquetas quedan alineados en todas las tarjetas. */
.pcard .price { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "now now" "before tag"; grid-template-rows: auto 1.6rem; align-items: center; justify-items: start; gap: 0 8px; }
.pcard .price strong { grid-area: now; }
.pcard .price del { grid-area: before; }
.pcard .price .badge.offer { grid-area: tag; }
.price { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price strong { color: var(--fucsia); font-size: 1.08rem; }
.price del { color: var(--suave); font-size: .88rem; }
.price.big strong { font-size: 1.7rem; }
.price.big del { font-size: 1.05rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.offer { background: var(--dorado); color: #fff; }
.badge.available { background: #e7f5ec; color: var(--ok); }
.badge.reserved { background: #2f2228; color: #fff; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--dorado-claro); border-radius: 999px; background: var(--blanco); color: var(--texto); text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--fucsia); color: var(--fucsia-osc); }
.chip .count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--rosa); color: var(--fucsia-osc); font-size: .78rem; text-align: center; }
.empty { padding: 18px; text-align: center; color: var(--suave); background: var(--blanco); border: 1px dashed var(--borde); border-radius: var(--radio); }

.cta, .channel { max-width: 1180px; margin: 28px auto 0; padding: 28px 16px; text-align: center; }
.cta { background: linear-gradient(135deg, var(--fucsia), var(--fucsia-osc)); color: #fff; border-radius: 0; }
.cta h2 { color: #fff; }
.cta .btn { background: #fff; color: var(--fucsia); border-color: var(--dorado-claro); }
.channel { background: var(--blanco); border-top: 1px solid var(--dorado-claro); border-bottom: 1px solid var(--dorado-claro); }

/* ───── Catálogo ───── */
.page-head h1 { margin: 4px 0 14px; font-size: 1.8rem; color: var(--fucsia); }
.crumbs { font-size: .85rem; color: var(--suave); }
.crumbs a { color: var(--suave); }
.results { margin: 12px 0 0; color: var(--suave); }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; }

/* ───── Ficha de producto ───── */
.product { max-width: 1180px; margin: 0 auto; padding: 14px 16px 8px; border: 0; }
.product-layout { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 10px; }
.product-name { margin: 4px 0 6px; font-size: 1.7rem; }
.product-info { display: flex; flex-direction: column; gap: 4px; }
.description { margin-top: 10px; }
.mio-box { margin: 12px 0 4px; }
.btn-mio { width: 100%; min-height: 58px; border-radius: 999px; border: 2px solid var(--dorado); background: linear-gradient(135deg, var(--fucsia), var(--fucsia-osc)); color: #fff; font: 700 1.35rem var(--serif); letter-spacing: .04em; cursor: pointer; }
.btn-mio[disabled] { opacity: .5; cursor: not-allowed; }
.delivery-box { margin-top: 14px; background: var(--blanco); border: 1px solid var(--borde); border-radius: 12px; padding: 10px 14px; }
.delivery-box summary { cursor: pointer; font-weight: 700; color: var(--fucsia-osc); }
.delivery-box ul { padding-left: 18px; margin: 10px 0 0; }

/* Galería: sin recortes ni filtros (object-fit: contain conserva proporción y color) */
.gallery { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gallery-main { position: relative; background: #fff; border: 3px solid var(--borde); border-radius: var(--radio); display: flex; align-items: center; justify-content: center; min-height: 260px; touch-action: pan-y; }
.product.border-fucsia .gallery-main { border-color: var(--fucsia); }
.product.border-rosa .gallery-main { border-color: var(--rosa-medio); }
.product.border-dorado .gallery-main { border-color: var(--dorado); }
.gallery-zoom { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
/* El tamaño en pantalla depende SOLO del diseño (ancho de la columna y 72vh), nunca del tamaño del archivo que
   elija srcset: ancho completo, alto según la proporción de la foto (atributos width/height) y, si es muy
   vertical, alto limitado con la foto completa centrada dentro (contain). */
.gallery-zoom img { display: block; width: 100%; height: auto; max-width: 100%; max-height: 72vh; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--borde); background: rgba(255,255,255,.92); color: var(--fucsia); font-size: 1.5rem; cursor: pointer; }
.gallery-nav.prev { left: 8px; } .gallery-nav.next { right: 8px; }
.gallery-counter { position: absolute; bottom: 8px; right: 10px; background: rgba(47,34,40,.75); color: #fff; font-size: .78rem; padding: 2px 8px; border-radius: 999px; }
.gallery-thumbs { list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; }
.thumb { flex: none; width: 68px; height: 68px; padding: 2px; border: 2px solid var(--borde); border-radius: 10px; background: #fff; cursor: pointer; scroll-snap-align: start; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border-color: var(--fucsia); }
.empty-gallery { min-height: 260px; border: 3px solid var(--borde); border-radius: var(--radio); background: var(--rosa); }

.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(20, 12, 16, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 12, 16, .94); }
/* Ampliada: el mayor tamaño que cabe en 94vw × 86vh con su proporción (--r = ancho/alto, lo pone tienda.js) */
.lightbox img { width: min(94vw, calc(86vh * var(--r, 1))); height: auto; max-width: 94vw; max-height: 86vh; object-fit: contain; touch-action: pan-y; }
.lb-close { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--texto); font-size: 1.8rem; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--fucsia); font-size: 1.8rem; cursor: pointer; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; }

.notice { text-align: center; padding-top: 40px; }
.notice h1 { color: var(--fucsia); font-size: 1.7rem; }

/* ───── Pie ───── */
.site-footer { margin-top: 36px; background: var(--rosa); border-top: 2px solid var(--dorado-claro); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 24px 16px 8px; display: grid; gap: 8px; }
.delivery { padding-left: 18px; margin: 0 0 10px; }
.delivery li { margin-bottom: 6px; }
.copy { text-align: center; margin: 0; padding: 12px 16px 18px; font-family: var(--serif); font-style: italic; color: var(--fucsia-osc); }

/* ───── Celulares (< 640 px): cuadrícula compacta ─────
   Cada tarjeta muestra solo la fotografía principal, el precio actual, el precio anterior tachado y la
   etiqueta «Oferta». El nombre y el código se ocultan SOLO visualmente (los lectores de pantalla los
   siguen anunciando) y toda la tarjeta abre la ficha. 2 columnas en celulares pequeños; 3 desde 360 px. */
@media (max-width: 639px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pgrid .pcard, .carousel .pcard { border-width: 2px; border-radius: 12px; }
  .pgrid .pcard-name, .pgrid .code, .carousel .pcard-name, .carousel .code {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .pgrid .pcard-body, .carousel .pcard-body { padding: 6px 8px 8px; gap: 0; }
  /* Una columna con 3 filas reservadas: precio actual · precio anterior · «Oferta» */
  .pcard .price { grid-template-columns: minmax(0, 1fr); grid-template-areas: "now" "before" "tag"; grid-template-rows: 1.25rem .95rem 1.1rem; gap: 1px; margin: 0; }
  .pcard .price strong { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
  .pcard .price del { font-size: .78rem; line-height: 1.2; }
  .pcard .badge.offer { padding: 1px 7px; font-size: .66rem; letter-spacing: .02em; }
  .pgrid .ribbon, .carousel .ribbon { top: 6px; left: 6px; padding: 2px 7px; font-size: .64rem; }
  .carousel { gap: 10px; }
  .carousel > li { flex-basis: calc((100% - 10px) / 2); }
}
@media (min-width: 360px) and (max-width: 639px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .carousel { gap: 8px; }
  .carousel > li { flex-basis: calc((100% - 16px) / 3); }
}

/* Encabezado COMPACTO en celulares al desplazarse (clase que agrega tienda.js): conserva el isotipo, el
   nombre y los cuatro accesos; solo oculta el eslogan y reduce espacios para ocupar menos pantalla. */
@media (max-width: 959px) {
  .site-header.is-compact .brand { padding: 5px 16px 0; gap: 8px; }
  .site-header.is-compact .brand-placeholder.isotype, .site-header.is-compact .isotype { width: 30px; height: 30px; font-size: .34rem; }
  .site-header.is-compact .brand-name { font-size: 1.08rem; }
  .site-header.is-compact .brand-slogan { display: none; }
  .site-header.is-compact .site-nav { padding-top: 0; padding-bottom: 4px; }
  .site-header.is-compact .site-nav a { padding-top: 9px; padding-bottom: 9px; }
}

/* Celulares angostos (320–400 px): el menú completo cabe sin desplazarse */
@media (max-width: 400px) {
  .site-nav { gap: 0; padding: 2px 6px 8px; justify-content: space-between; }
  .site-nav a { padding: 11px 9px; font-size: .9rem; }
}

/* ───── Tableta y computadora ───── */
@media (min-width: 640px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .carousel { gap: 16px; }
  .carousel > li { flex-basis: calc((100% - 32px) / 3); }
  .search-filters { grid-template-columns: 1fr 1fr auto; }
  .search-filters .btn { grid-column: auto; }
}
@media (min-width: 960px) {
  .site-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
  .brand { padding: 12px 0; }
  .site-nav { padding: 0; }
  .hero { padding: 48px 16px 52px; }
  .hero-title { font-size: 3rem; }
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .carousel { gap: 20px; }
  .carousel > li { flex-basis: calc((100% - 60px) / 4); }
  .carousel-ctrl { display: flex; }
  .product-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  /* Miniaturas a un lado de la foto principal */
  .gallery { grid-template-columns: 84px minmax(0, 1fr); align-items: start; }
  .gallery-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; max-height: 72vh; overflow-y: auto; overflow-x: hidden; }
  .gallery-main { grid-column: 2; grid-row: 1; min-height: 420px; }
  .thumb { width: 76px; height: 76px; }
  .btn-mio { max-width: 380px; }
  .footer-inner { grid-template-columns: 2fr 1fr; gap: 32px; }
  .cta { border-radius: var(--radio); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pcard, .brand-placeholder.isotype, .isotype, .brand-name, .brand-slogan, .brand, .site-nav a { transition: none; }
}

/* ───── «Mío» y «Mi pedido» (Fase 5A) ─────
   Mismo estilo de la tienda; pensado primero para celulares (botones de 44 px o más). */
a.btn-mio { display: flex; align-items: center; justify-content: center; text-decoration: none; }
a.btn-mio:focus-visible, .qty-btn:focus-visible, .order-remove:focus-visible, .order-clear:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }
.order-add { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; margin: 4px 0 14px; }
.order-add-btn { width: 100%; }
.order-add-note { grid-column: 1 / -1; margin: 0; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--borde); border-radius: 999px; background: var(--blanco); }
.qty-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--fucsia); font: 700 1.4rem var(--sans); cursor: pointer; touch-action: manipulation; border-radius: 999px; }
.qty-btn[disabled] { color: var(--borde); cursor: default; }
.qty-input { width: 3ch; min-width: 36px; border: 0; background: transparent; text-align: center; font: 600 1.05rem var(--sans); color: var(--texto); -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Barra flotante: aparece solo si hay artículos en el pedido */
.order-bar { position: fixed; z-index: 20; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 12px 20px; border-radius: 999px; background: var(--fucsia); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 22px rgba(143, 13, 82, .35); border: 2px solid var(--dorado); }
.order-bar[hidden] { display: none; }
.order-bar-go { margin-left: 4px; }
body.has-order-bar .site-footer { padding-bottom: 76px; }

/* Página «Mi pedido» */
.order-page h1 { color: var(--fucsia); margin-bottom: 4px; }
.order-alert, .order-ok { margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--dorado); background: #fff8e6; }
.order-ok { border-color: var(--ok); background: #e7f5ec; }
.order-alert ul { margin: 6px 0 0; padding-left: 18px; }
.order-alert p, .order-ok p { margin: 4px 0 0; }
.order-empty { text-align: center; padding: 24px 0; }
.order-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.order-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; padding: 10px; background: var(--blanco); border: 2px solid var(--borde); border-radius: 14px; }
.order-item.is-off { opacity: .75; }
.order-thumb { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; overflow: hidden; }
/* Miniatura completa, sin recortes (igual que las tarjetas) */
.order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-thumb-empty { width: 100%; height: 100%; background: var(--rosa); }
.order-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-info a, .order-info > span:first-child { font-weight: 600; color: var(--texto); overflow-wrap: anywhere; }
.order-unit { font-size: .88rem; color: var(--suave); }
.order-info .badge { align-self: flex-start; }
.order-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-sub { color: var(--fucsia); font-size: 1.05rem; margin-left: auto; }
.order-remove, .order-clear { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--fucsia-osc); font: 600 .92rem var(--sans); text-decoration: underline; cursor: pointer; }
.order-summary { margin-top: 16px; padding: 16px; background: var(--blanco); border: 2px solid var(--borde); border-radius: var(--radio); }
.order-total { margin: 0; font-size: 1.15rem; }
.order-total strong { color: var(--fucsia); font-size: 1.35rem; }
.order-send { margin-top: 10px; font-size: 1.15rem; }
.order-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (min-width: 640px) {
  .order-page { max-width: 760px; }
  .order-item { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
  .order-thumb { width: 72px; height: 72px; }
  .order-side { grid-column: auto; justify-content: flex-end; }
  .order-sub { margin-left: 0; min-width: 7.5em; text-align: right; }
  .order-add { grid-template-columns: auto minmax(0, 380px); }
}

/* ───── Datos comerciales configurables (Fase 5B) ───── */
.delivery-note, .contact-note, .terms-note { margin: 6px 0 10px; }
.terms-title { font-size: 1rem; margin: 12px 0 4px; }
.delivery-note p, .contact-note p, .terms-note p { margin: 0 0 6px; }
.contact-wa { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--fucsia); }
.socials { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--fucsia-osc); }

/* ───── Identidad visual oficial (logotipo e isotipo) ─────
   Copias web fieles de los originales: solo se escalan, sin recortes de diseño ni cambios de color. */
img.isotype { display: block; flex: none; width: 42px; height: 42px; border-radius: 10px; object-fit: contain; }
.hero-brand { margin: 0 0 6px; line-height: 0; }
/* El logotipo tiene fondo blanco: se presenta en una tarjeta blanca redondeada sobre el degradado del inicio. */
.hero-logo { display: block; width: min(300px, 78vw); height: auto; margin: 0 auto; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(143, 13, 82, .14); }
@media (min-width: 960px) { .hero-logo { width: 360px; } }

/* ───── Fondo difuminado detrás de las fotos (Fase 5C) ─────
   Solo presentación: detrás de la foto COMPLETA (contain) va una copia de la MISMA imagen, ampliada para
   cubrir el recuadro y difuminada. La foto principal no cambia de tamaño, proporción ni color. */
.pcard-photo .photo-bg { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px); transform: scale(1.18); z-index: 0; pointer-events: none; }
.pcard-photo .photo-main { z-index: 1; }
.gallery-main { overflow: hidden; isolation: isolate; }
.gallery-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(28px); transform: scale(1.18); z-index: 0; pointer-events: none; }
.gallery-zoom { position: relative; z-index: 1; }
.gallery-nav, .gallery-counter { z-index: 2; }

/* ───── Cinta superior con versículo (1 Timoteo 1:17) ───── */
.verse-ribbon { margin: 0; padding: 7px 16px 8px; text-align: center; color: #fff7fb; background: linear-gradient(90deg, #6d0b40 0%, #9c0f58 50%, #6d0b40 100%); border-bottom: 1px solid var(--dorado); }
.verse-ribbon p { margin: 0 auto; max-width: 980px; font-family: var(--serif); font-size: .8rem; line-height: 1.45; }
.verse-ribbon q { font-style: italic; quotes: "«" "»"; }
.verse-ribbon cite { display: inline-block; margin-left: 6px; font-style: normal; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #f3d58a; white-space: nowrap; }
@media (min-width: 960px) { .verse-ribbon p { font-size: .86rem; } .verse-ribbon cite { font-size: .76rem; } }

/* Categorías sin productos todavía: visibles (con su 0), en un tono más suave */
.chip.empty { opacity: .78; border-style: dashed; }

/* ───── Compartir producto / tienda (Fase 7) ───── */
.share { margin: 16px 0 6px; padding: 14px 16px; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--blanco); }
.share-heading { font-size: 1.05rem; margin: 0 0 10px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { min-height: 44px; padding: 8px 16px; font-size: .95rem; background: var(--blanco); color: var(--fucsia); }
.share-btn:hover { color: #fff; }
.share-btn[hidden] { display: none; }
.share-wa { border-color: #1f7a4d; color: #1f7a4d; }
.share-wa:hover { background: #1f7a4d; border-color: #1f7a4d; }
.share-fb { border-color: #1b4f9c; color: #1b4f9c; }
.share-fb:hover { background: #1b4f9c; border-color: #1b4f9c; }
.share-status:empty { display: none; }
.share-status { margin: 8px 0 0; overflow-wrap: anywhere; }
main > .share { max-width: 1180px; margin: 24px auto; }
@media (max-width: 1212px) { main > .share { margin: 24px 16px; } }
main > .share { text-align: center; }
main > .share .share-actions { justify-content: center; }

/* ───────── Productos «Por encargo» (Fase 8) ───────── */
.ribbon.mto { background: var(--dorado); color: #fff; }
.badge.mto { background: var(--dorado-claro); color: #5b4512; }
.price .from { font-size: .8em; color: var(--suave); font-weight: 600; }
.sizes-available { margin: 0 0 10px; font-weight: 600; }
.order-sizes { display: block; }
.order-sizes .sizes { border: 2px solid var(--dorado-claro); border-radius: 14px; padding: 8px 12px 4px; margin: 0 0 10px; }
.order-sizes legend { padding: 0 6px; font-weight: 700; color: var(--fucsia-osc); }
.size-list { list-style: none; margin: 0; padding: 0; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; padding: 6px 0; border-top: 1px solid var(--borde); }
.size-row:first-child { border-top: 0; }
.size-label { font-weight: 700; }
.size-price { color: var(--fucsia); font-weight: 600; white-space: nowrap; }
.order-sizes-total { margin: 0 0 10px; font-weight: 700; min-height: 1.2em; }
.order-sizes .order-add-note { margin-top: 8px; }
.order-variant { font-weight: 600; }
@media (max-width: 340px) { .size-row { grid-template-columns: minmax(0, 1fr) auto; } .size-row .qty { grid-column: 1 / -1; justify-self: start; } }
.pcard .price strong:has(.from) { white-space: nowrap; }
.pcard .price .from { font-size: .7em; }

/* Grupos de tallas Infantiles / Adultos (Fase 8B) */
.size-groups-title { margin: 0 0 6px; font-weight: 700; color: var(--fucsia-osc); }
.size-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.size-group-btn { min-height: 48px; padding: 8px 12px; border: 2px solid var(--fucsia); border-radius: 999px; background: var(--blanco); color: var(--fucsia); font: 700 1rem var(--sans); cursor: pointer; touch-action: manipulation; }
.size-group-btn[aria-pressed="true"] { background: var(--fucsia); color: #fff; }
.size-group-btn:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }
.order-sizes-total p { margin: 0 0 4px; }
.sizes-subtotal { color: var(--suave); font-weight: 600; }
.sizes-total { font-weight: 700; }

/* «Mi pedido»: botón para abrir WhatsApp en pestaña nueva (respaldo) */
.order-ok .order-open-wa { margin-top: 10px; width: 100%; min-height: 50px; padding: 8px 16px; font: 700 1.05rem var(--sans); letter-spacing: 0; text-align: center; }

/* ───── Catálogo de variedades: destacados, menú de categorías y entregas (Fase 13) ───── */
/* Estrella informativa (no es un botón): arriba a la derecha, sin tapar «Por encargo»/«Reservado» (arriba a la izquierda). */
.star-badge { z-index: 1; position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--dorado-claro); color: #7a5d14; font-size: .72rem; font-weight: 700; pointer-events: none; }
.star-badge > span { color: var(--dorado); font-size: .85rem; line-height: 1; }
@media (max-width: 639px) { .pgrid .star-badge { top: 6px; right: 6px; padding: 2px 6px; font-size: 0; gap: 0; } .pgrid .star-badge > span { font-size: .8rem; } } /* en celular solo la estrella */
.head-links { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }
.chip.active { background: var(--fucsia); border-color: var(--fucsia); color: #fff; }
.chip.active .count { background: rgba(255, 255, 255, .25); color: #fff; }
.chip.featured-chip { border-color: var(--dorado); }
.cat-nav { padding-top: 18px; }
.cat-nav h2 { font-size: 1.1rem; margin: 0 0 10px; }
/* Entregas y pagos: apartados con subtítulo, interlineado compacto */
.info-col h2 { margin: 0 0 8px; }
.info-group { display: grid; gap: 8px; }
.info-item p, .info-p { margin: 0; line-height: 1.45; }
.info-h { font-size: .98rem; margin: 10px 0 2px; color: var(--fucsia-osc); }
.info-group .info-item:first-child .info-h { margin-top: 0; }
.info-lines { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 3px; line-height: 1.4; }
.info-note { margin: 10px 0 0; padding: 8px 12px; background: rgba(255, 255, 255, .6); border: 1px solid var(--borde); border-radius: 10px; }
.info-note .info-lines { margin: 0; }
.site-footer .contact-note p { margin: 0 0 3px; line-height: 1.4; }
.delivery-box .info-group { margin-top: 8px; }
