/* Web pública del C.C. Inmaculada Concepción — misma paleta del escudo (tokens.css). */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Outfit", var(--fuente); color: var(--texto); background: #f6f7fb; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.02em; }
.punto { color: var(--accent-500); }
a { color: var(--enlace); text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Cabecera */
.cab { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--borde); } /* fondo blanco sólido: el logo (JPG con fondo blanco) no debe verse como un cuadro sobre otro color */
.cab-ancho { width: min(1800px, 100% - 32px); margin-inline: auto; }
.cab-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 3vw, 48px); min-height: 72px; }
.buscador { display: flex; align-items: center; max-width: 820px; width: 100%; justify-self: center; border: 2px solid var(--borde-fuerte); border-radius: 999px; padding: 3px 3px 3px 18px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.buscador:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.buscador input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem; background: transparent; min-width: 0; }
.buscador input::-webkit-search-cancel-button { cursor: pointer; }
.buscador button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-500); color: #fff; font-size: 1.1rem; display: grid; place-items: center; }
.buscador button:hover { background: var(--brand-600); }
/* Barra de enlaces turquesa (color de marca del portal) */
.cab-sub { background: var(--brand-600); color: #fff; }
.cab-sub-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; font-size: .9rem; color: #fff; }
.cab-sub-in #cab-direccion { color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cab-links { flex: 0 0 auto; }
.cab-sub-in #cab-direccion span:empty { display: none; }
.cab-links { display: flex; gap: 22px; }
.cab-links a { color: #fff; font-weight: 600; } .cab-links a:hover { color: var(--accent-400); text-decoration: none; }
@media (max-width: 860px) { .cab-in { grid-template-columns: auto 1fr; } .buscador { grid-column: 1 / -1; grid-row: 2; margin-bottom: 10px; } .cab-acciones { grid-column: 2; grid-row: 1; } .cab-sub { display: none; } }
.cab .marca { display: flex; align-items: center; gap: 10px; color: var(--texto); font-weight: 800; letter-spacing: -.01em; }
.cab .marca img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.cab .marca span { white-space: nowrap; }
.cab .marca small { display: block; font-weight: 500; color: var(--texto-3); font-size: .78rem; letter-spacing: 0; }
.cab-acciones { justify-self: end; display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap; transition: transform .12s, background .12s; }
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--brand-500); color: #fff; }
.btn-primario:hover { background: var(--brand-600); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fb858; }
.btn-dorado { background: var(--accent-400); color: #3a2f00; }
.btn-dorado:hover { background: var(--accent-500); }
.btn-borde { background: #fff; border-color: var(--borde-fuerte); color: var(--texto-2); }
.btn-borde:hover { background: var(--superficie-2); }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-bloque { width: 100%; }

/* Carrusel */
.carrusel { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-800), var(--brand-500)); color: #fff; }
.carrusel-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(calc(100vw * var(--ratio, 0.375)), 85vh); transition: height .35s ease; }
.carrusel-pista::-webkit-scrollbar { display: none; }
.diapo { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: grid; align-items: end; }
.diapo { background: var(--brand-800); overflow: hidden; }
.diapo .fondo { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(22px) brightness(.55); transform: scale(1.1); }
.carrusel-puntos { bottom: 8px; }
.diapo picture { position: absolute; inset: 0; display: block; }
.diapo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.diapo-texto { position: relative; padding: clamp(18px, 5vw, 56px) clamp(16px, 6vw, 80px); background: linear-gradient(to top, rgba(8,40,50,.88), rgba(8,40,50,0) 70%); }
.diapo-texto h2 { margin: 0; font-size: clamp(1.2rem, 3.5vw, 2.2rem); line-height: 1.15; text-wrap: balance; }
.diapo-texto p { margin: 6px 0 0; color: rgba(255,255,255,.85); font-size: clamp(.9rem, 2vw, 1.1rem); max-width: 60ch; }
.diapo-texto .btn { margin-top: 14px; padding: 12px 22px; font-size: 1rem; }
.diapo-vacia { padding: clamp(24px, 6vw, 56px); text-align: center; align-self: center; }
.diapo-vacia h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 2.6rem); line-height: 1.1; }
.diapo-vacia p { margin: 10px auto 0; max-width: 60ch; color: rgba(255,255,255,.85); }
.carrusel-puntos { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: flex; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(8,40,50,.55); }
.carrusel-puntos button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; }
.carrusel-puntos button[aria-current="true"] { background: var(--accent-400); width: 22px; border-radius: 6px; }
.carrusel-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(10,50,62,.72); color: #fff; font-size: 1.6rem; display: grid; place-items: center; transition: background .15s; }
.carrusel-flecha:hover { background: var(--brand-600); }
.carrusel-flecha.izq { left: 18px; } .carrusel-flecha.der { right: 18px; }
@media (max-width: 640px) { .carrusel-flecha { display: none; } .diapo-texto { padding: 14px 16px 30px; } .diapo-texto h2 { font-size: 1.25rem; } .diapo-texto p { font-size: .9rem; } }

/* Burbujas de categorías */
.seccion { margin-top: 40px; }
.seccion-cats { margin-top: -28px; position: relative; z-index: 2; }
@media (max-width: 640px) { .seccion-cats { margin-top: 12px; } }
.seccion-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seccion-cab h2 { margin: 0; font-size: clamp(1.15rem, 2.5vw, 1.5rem); letter-spacing: -.01em; }
.seccion-cab p { margin: 0; color: var(--texto-3); font-size: .9rem; }
.burbujas { display: flex; justify-content: center; gap: 10px; overflow-x: auto; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(15,23,42,.10); scrollbar-width: thin; }
.burbuja { flex: 1 0 118px; display: grid; justify-items: center; gap: 6px; background: none; border: 0; border-radius: 14px; padding: 12px 6px 10px; color: var(--texto-2); position: relative; transition: background .15s; }
.burbuja:hover { background: var(--superficie-2); }
.burbuja small { font-size: .72rem; color: var(--texto-4); }
.burbuja::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 3px; background: transparent; transition: background .15s; }
.burbuja[aria-pressed="true"]::after { background: var(--brand-500); }
.burbuja span.ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: var(--brand-50); border: 2px solid var(--brand-100); overflow: hidden; transition: transform .15s, background .15s, border-color .15s; }
.burbuja span.ico img { width: 100%; height: 100%; object-fit: cover; }
.burbuja:hover span.ico { transform: translateY(-3px); background: var(--brand-100); }
.burbuja[aria-pressed="true"] span.ico { background: var(--brand-500); border-color: var(--accent-400); color: #fff; box-shadow: 0 8px 20px rgba(42,167,192,.35); }
.burbuja[aria-pressed="true"] { color: var(--brand-700); font-weight: 700; }
.burbuja b { font-weight: 600; font-size: .9rem; text-align: center; line-height: 1.2; }
.filtro-activo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; color: var(--texto-2); margin-top: 14px; }
.filtro-activo .quitar { border: 0; background: var(--superficie-2); border-radius: 999px; padding: 4px 10px; color: var(--texto-2); font-size: .85rem; }

/* Tiendas */
.rejilla { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tienda { background: #fff; border: 1px solid var(--borde); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sombra); transition: box-shadow .15s, transform .15s; height: 100%; }
.tienda:hover { box-shadow: var(--sombra-2); transform: translateY(-2px); }
.tienda-cab { display: flex; gap: 12px; align-items: center; }
.logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--brand-50); display: grid; place-items: center; font-weight: 800; color: var(--brand-600); font-size: 1.3rem; flex: 0 0 auto; }
.tienda h3 { margin: 0; font-size: 1.05rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tienda .etiquetas { min-height: 26px; align-content: flex-start; }
.tienda .stand { color: var(--texto-3); font-size: .85rem; }
.etiquetas { display: flex; gap: 6px; flex-wrap: wrap; }
.etiqueta { background: var(--brand-50); color: var(--brand-700); font-size: .75rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.oferta-pill { background: var(--accent-100); color: var(--accent-600); font-size: .78rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.tienda-acciones { display: flex; gap: 8px; margin-top: auto; padding-top: 2px; }
.tienda-acciones .btn { flex: 1; }

/* Artículos */
.rejilla-art { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.art { background: #fff; border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra); height: 100%; }
.art-foto { aspect-ratio: 1; flex: 0 0 auto; background: var(--superficie-2); display: grid; place-items: center; color: var(--texto-4); font-size: 2.4rem; position: relative; }
.art-foto img { width: 100%; height: 100%; object-fit: cover; }
.art-foto .oferta-pill { position: absolute; top: 8px; left: 8px; background: var(--rojo, #E01B1B); color: #fff; }
.art-cuerpo { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.art h3 { margin: 0; font-size: .98rem; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art .precio { min-height: 1.5em; line-height: 1.5; }
.art .desc { font-size: .82rem; color: var(--texto-3); line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art .vende { min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.precio { font-weight: 800; color: var(--brand-700); font-size: 1.05rem; }
.precio s { color: var(--texto-4); font-weight: 500; font-size: .85rem; margin-left: 6px; }
.vende { font-size: .82rem; color: var(--texto-3); }
.vende b { color: var(--texto-2); font-weight: 600; }
.art .btn { margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.art .btn + .btn { margin-top: 6px; }

/* Modal resumen de tienda */
dialog.modal { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: 90vh; box-shadow: 0 24px 60px rgba(15,23,42,.3); }
dialog.modal::backdrop { background: rgba(8,40,50,.55); backdrop-filter: blur(2px); }
.modal-cab { display: flex; gap: 12px; align-items: center; padding: 18px 20px 0; }
.modal-cab h3 { margin: 0; font-size: 1.2rem; }
.modal-cuerpo { padding: 14px 20px 20px; display: grid; gap: 12px; }
.modal-cerrar { margin-left: auto; border: 0; background: var(--superficie-2); width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; align-self: start; }
.lista-ofertas { display: grid; gap: 8px; }
.oferta-fila { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--borde); border-radius: 12px; }
.oferta-fila img, .oferta-fila .sin { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--superficie-2); display: grid; place-items: center; flex: 0 0 auto; }
.oferta-fila .nom { font-weight: 600; font-size: .95rem; flex: 1; }
.oferta-fila .precio { font-size: .98rem; }

/* Perfil de tienda */
.perfil-hero { margin-top: 16px; border-radius: 20px; padding: clamp(18px, 4vw, 32px); background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.perfil-hero .logo { width: 88px; height: 88px; border-radius: 20px; font-size: 2rem; background: #fff; }
.perfil-hero h1 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.15; }
.perfil-hero p { margin: 4px 0 0; color: rgba(255,255,255,.85); }
.perfil-hero .etiqueta { background: rgba(255,255,255,.18); color: #fff; }
.botones-perfil { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 16px; }
.boton-perfil { display: grid; justify-items: center; gap: 8px; padding: 16px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--borde); color: var(--texto); font-weight: 700; text-align: center; box-shadow: var(--sombra); transition: transform .12s, box-shadow .12s; }
.boton-perfil:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); text-decoration: none; }
.boton-perfil .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-50); }
.boton-perfil.wa .ico { background: #e7f9ee; } .boton-perfil.oro .ico { background: var(--accent-100); }
.boton-perfil small { font-weight: 500; color: var(--texto-3); font-size: .78rem; }
.qr-caja { text-align: center; display: grid; gap: 10px; justify-items: center; }
.qr-caja img { width: min(320px, 100%); border-radius: 12px; border: 1px solid var(--borde); }
.descripcion { white-space: pre-line; color: var(--texto-2); }

.pie { margin: 48px 0 24px; padding-top: 20px; border-top: 1px solid var(--borde); color: var(--texto-3); font-size: .85rem; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.vacio { padding: 28px; text-align: center; color: var(--texto-3); background: var(--superficie-2); border-radius: 16px; border: 1px dashed var(--borde-fuerte); }
@media (max-width: 520px) { .cab .marca { font-size: .92rem; } .cab .marca small { display: none; } .cab .marca img { width: 34px; height: 34px; } .cab .marca span { white-space: normal; } }

/* Título centrado estilo tienda por departamentos */
.titulo-grande { text-align: center; font-size: clamp(1.7rem, 4.2vw, 2.8rem); font-weight: 500; margin: 0; }
.titulo-grande b { font-weight: 800; }
.titulo-sub { text-align: center; color: var(--texto-3); margin: 6px 0 22px; }

/* Afiches de ofertas */
.afiches { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* El afiche tiene dos caras (frente: oferta; dorso: perfil de la tienda) y gira al tocarlo */
.afiche { perspective: 1400px; height: 100%; color: var(--texto); }
.afiche-caras { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.afiche:not(.volteado):hover .afiche-caras { transform: translateY(-4px); }
.afiche.volteado .afiche-caras { transform: rotateY(180deg); }
.afiche-frente, .afiche-dorso { grid-area: 1 / 1; background: #fff; border-radius: 22px; padding: 22px 18px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--borde); box-shadow: var(--sombra); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; min-width: 0; }
.afiche-frente { cursor: pointer; }
.afiche:not(.volteado):hover .afiche-frente { box-shadow: 0 18px 40px rgba(15,23,42,.12); }
.afiche-dorso { transform: rotateY(180deg); padding-bottom: 16px; text-align: left; align-items: stretch; gap: 8px; cursor: pointer; }
.afiche-voltear { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.94); color: var(--brand-700); font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(15,23,42,.18); }
.afiche-voltear .ico-svg { width: 1.1em; height: 1.1em; }
.dorso-tienda { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.dorso-tienda .dorso-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--brand-50); display: grid; place-items: center; font-weight: 800; color: var(--brand-700); flex: 0 0 auto; }
.dorso-tienda b { display: block; font-size: 1.02rem; line-height: 1.2; color: var(--texto); }
.dorso-tienda small { display: block; font-size: .8rem; color: var(--texto-3); }
.dorso-dato { font-size: .8rem; color: var(--texto-3); }
.dorso-cats { gap: 5px; }
.dorso-desc { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dorso-art { font-size: .82rem; color: var(--texto-2); background: var(--superficie-2); border-radius: 12px; padding: 8px 10px; margin-top: auto; }
.dorso-art b { color: var(--brand-700); }
.dorso-botones { display: flex; flex-direction: column; gap: 8px; }
.dorso-botones .btn { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dorso-sinwa { font-size: .8rem; color: var(--texto-3); text-align: center; }
.afiche-volver { border: 0; background: none; color: var(--brand-600); font-weight: 700; font-size: .85rem; padding: 4px; cursor: pointer; }
.afiche-volver:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .afiche-caras { transition: none; } }
.afiche-eti { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--texto-2); min-height: 1.3em; line-height: 1.3; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.afiche-etiqueta { min-height: 24px; display: flex; align-items: center; justify-content: center; margin: 2px 0; max-width: 100%; }
.afiche-etiqueta span { font-size: .74rem; font-weight: 700; color: var(--texto-2); background: var(--superficie-2); border: 1px solid var(--borde); border-radius: 999px; padding: 2px 10px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afiche-cifra { font-size: clamp(3.4rem, 7vw, 4.6rem); line-height: 1; height: 1em; display: flex; align-items: center; font-weight: 900; color: var(--verde-500); letter-spacing: -.04em; margin-top: 4px; }
.afiche-cifra small { font-size: .45em; font-weight: 800; margin-left: 2px; }
.afiche-cifra.precio-cifra { font-size: clamp(2.2rem, 4.5vw, 3rem); height: clamp(3.4rem, 7vw, 4.6rem); }
.afiche-sub { display: inline-block; background: var(--accent-400); color: #2b2300; font-weight: 800; padding: 2px 10px; border-radius: 6px; font-size: 1rem; line-height: 1.4; margin-top: 6px; white-space: nowrap; }
.afiche-marca { margin-top: 8px; font-weight: 700; font-size: 1rem; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.afiche-vende { font-size: .8rem; color: var(--texto-3); }
.afiche-foto { width: 100%; aspect-ratio: 5 / 4; margin-top: auto; padding-top: 12px; display: grid; place-items: center; font-size: 4rem; position: relative; }
.afiche-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px 16px 0 0; }

/* Carril horizontal (novedades) */
.carril { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.carril .art { scroll-snap-align: start; }

/* Tarjetas */
.tienda, .art { border-radius: 18px; }
.art-foto { background: #f1f3f9; }
.oferta-pill { letter-spacing: .04em; }

/* Pie grande */
.pie-grande { margin-top: 56px; background: var(--brand-900); color: rgba(255,255,255,.8); padding: 36px 0 28px; }
.pie-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pie-marca { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.pie-marca img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.pie-grande p { margin: 0; font-size: .9rem; }
.pie-links { display: flex; gap: 18px; flex-wrap: wrap; }
.pie-links a { color: rgba(255,255,255,.85); font-weight: 600; }
.pie-links a:hover { color: var(--accent-400); text-decoration: none; }
@media (max-width: 640px) {
  .afiches { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .afiche-frente, .afiche-dorso { padding: 14px 10px 0; border-radius: 16px; } .afiche-dorso { padding-bottom: 12px; }
  .afiche-voltear { font-size: .66rem; padding: 4px 8px; right: 6px; bottom: 6px; } .dorso-tienda .dorso-logo { width: 42px; height: 42px; } .dorso-tienda b { font-size: .92rem; } .dorso-desc { -webkit-line-clamp: 3; font-size: .8rem; } .dorso-botones .btn { padding: 8px 10px; font-size: .82rem; gap: 5px; } .dorso-botones .largo { display: none; }
  .afiche-cifra { font-size: 2.6rem; } .afiche-cifra.precio-cifra { font-size: 1.7rem; }
  .afiche-sub { font-size: .8rem; } .afiche-eti { font-size: .68rem; letter-spacing: .14em; } .afiche-marca { font-size: .9rem; }
  .carril { grid-auto-columns: minmax(150px, 170px); }
}

/* Filtros de tipo de oferta */
.filtros-oferta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: -8px 0 20px; }
.filtros-oferta:empty { display: none; }
.chip { border: 1.5px solid var(--borde-fuerte); background: #fff; color: var(--texto-2); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; transition: background .12s, border-color .12s; }
.chip small { font-weight: 700; font-size: .75rem; background: var(--superficie-2); color: var(--texto-3); border-radius: 999px; padding: 1px 7px; }
.chip:hover { border-color: var(--brand-400); }
.chip[aria-pressed="true"] { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.chip[aria-pressed="true"] small { background: rgba(255,255,255,.25); color: #fff; }
.ver-mas { text-align: center; margin-top: 18px; }

/* Afiche: tipo, tienda */
.afiche-tipo { align-self: stretch; margin: -22px -18px 8px; padding: 8px 12px; font-size: .78rem; line-height: 1.2; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--brand-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afiche.tipo-liquidacion .afiche-tipo, .oferta-pill.tipo-liquidacion { background: #E01B1B; color: #fff; }
.afiche.tipo-campana .afiche-tipo, .oferta-pill.tipo-campana { background: var(--accent-500); color: #2b2300; }
.afiche.tipo-combo .afiche-tipo, .oferta-pill.tipo-combo { background: #7c3aed; color: #fff; }
.afiche.tipo-mayorista .afiche-tipo, .oferta-pill.tipo-mayorista { background: var(--brand-800); color: #fff; }
.afiche.tipo-nuevo .afiche-tipo, .oferta-pill.tipo-nuevo { background: var(--verde-600); color: #fff; }
.afiche.tipo-oferta .afiche-tipo, .oferta-pill.tipo-oferta { background: #E01B1B; color: #fff; }
.afiche-precios { font-weight: 800; color: var(--brand-700); min-height: 1.5em; line-height: 1.5; }
.afiche-precios s { color: var(--texto-4); font-weight: 500; font-size: .9rem; margin-left: 6px; }
.afiche-tienda { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 6px 10px; border-radius: 999px; background: var(--superficie-2); text-align: left; max-width: 100%; height: 44px; box-sizing: border-box; }
.afiche-tienda .afiche-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--brand-50); display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--brand-700); flex: 0 0 auto; }
.afiche-tienda span { display: grid; line-height: 1.15; min-width: 0; }
.afiche-tienda b { font-size: .85rem; color: var(--brand-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afiche-tienda small { font-size: .72rem; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .afiche-tipo { margin: -14px -10px 6px; font-size: .66rem; padding: 6px 8px; } .afiche-tienda { padding: 4px 8px; height: 40px; } .afiche-eti { font-size: .66rem; letter-spacing: .12em; } .afiche-marca { font-size: .9rem; } .afiche-etiqueta span { font-size: .66rem; } .afiche-tienda b { font-size: .78rem; } }

/* Celular: precios en una sola línea y sello de tienda más compacto */
@media (max-width: 640px) {
  .art .precio { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .art .precio s { font-size: .75rem; margin-left: 4px; }
  .afiche-precios { font-size: .9rem; white-space: nowrap; }
  .afiche-precios s { font-size: .75rem; margin-left: 4px; }
  .afiche-tienda { gap: 6px; padding: 4px 8px; }
  .afiche-tienda .afiche-logo { width: 22px; height: 22px; font-size: .55rem; }
  .afiche-tienda small { font-size: .66rem; }
  .art h3 { font-size: .92rem; }
  .art .desc, .art .vende { font-size: .78rem; }
}

/* Sin emojis: íconos de línea, iniciales y descripción de la tienda */
.ico-svg { width: 1.3em; height: 1.3em; display: inline-block; vertical-align: -0.25em; }
.burbuja span.ico .ico-svg { width: 30px; height: 30px; color: var(--brand-600); }
.burbuja[aria-pressed="true"] span.ico .ico-svg { color: #fff; }
.burbuja span.ico .mono { font-weight: 800; font-size: 1.5rem; color: var(--brand-700); font-family: "Outfit", var(--fuente); }
.burbuja[aria-pressed="true"] span.ico .mono { color: #fff; }
.sin-foto { display: grid; place-items: center; width: 100%; height: 100%; color: var(--texto-4); }
.sin-foto .ico-svg { width: 34%; height: 34%; max-width: 72px; max-height: 72px; stroke-width: 1.4; }
.oferta-fila .sin .ico-svg { width: 24px; height: 24px; color: var(--texto-4); }
.buscador button svg { width: 20px; height: 20px; }
.boton-perfil .ico .ico-svg { width: 26px; height: 26px; color: var(--brand-700); }
.boton-perfil.wa .ico .ico-svg { color: #1a9e4b; }
.boton-perfil.oro .ico .ico-svg { color: var(--accent-600); }
.chip .punto-tipo { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-500); display: inline-block; }
.chip .punto-tipo.tipo-oferta, .chip .punto-tipo.tipo-liquidacion { background: #E01B1B; }
.chip .punto-tipo.tipo-campana { background: var(--accent-500); }
.chip .punto-tipo.tipo-combo { background: #7c3aed; }
.chip .punto-tipo.tipo-mayorista { background: var(--brand-800); }
.chip .punto-tipo.tipo-nuevo { background: var(--verde-600); }
.chip[aria-pressed="true"] .punto-tipo { background: #fff; }
.tienda-desc { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--texto-2); min-height: calc(1.45em * 3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tienda-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 28px; font-size: .8rem; }
.tienda-meta .ver-mas { border: 0; background: none; padding: 0; color: var(--brand-600); font-weight: 700; font-size: .85rem; line-height: 1; cursor: pointer; }
.tienda-meta .ver-mas:hover { text-decoration: underline; }
.tienda-ofertas { color: var(--texto-3); font-weight: 600; margin-left: auto; white-space: nowrap; }
.tienda-ofertas.con { color: var(--accent-600); background: var(--accent-100); padding: 2px 10px; border-radius: 999px; }

/* Barra de filtros de ofertas */
.filtros-barra { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin: -6px 0 22px; }
.filtro { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--borde-fuerte); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: .88rem; color: var(--texto-3); font-weight: 600; }
.filtro:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.filtro select { border: 0; background: var(--superficie-2); border-radius: 999px; padding: 6px 30px 6px 12px; font: inherit; font-weight: 700; color: var(--texto); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b7890' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; cursor: pointer; max-width: 220px; }
.filtro select:focus { outline: none; }
.filtro-limpiar { border: 0; background: none; color: var(--brand-600); font-weight: 700; font-size: .88rem; cursor: pointer; padding: 6px 10px; }
.filtro-limpiar:hover { text-decoration: underline; }
@media (max-width: 640px) { .filtros-barra { gap: 8px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; } .filtro { flex: 0 0 auto; font-size: .8rem; } .filtro select { padding: 5px 26px 5px 10px; max-width: 160px; } }

/* Carrusel de "Las mejores ofertas": caben N tarjetas enteras por pantalla (sin cortes), flechas, puntos y avance automático */
.carril-ofertas { position: relative; }
.afiches-carril { --n: 4; --gap: 18px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap) * (var(--n) - 1)) / var(--n)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 14px; scrollbar-width: none; -ms-overflow-style: none; }
.afiches-carril::-webkit-scrollbar { display: none; }
.afiches-carril > * { scroll-snap-align: start; }
.carril-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--borde); box-shadow: 0 8px 24px rgba(15,23,42,.16); font-size: 1.7rem; line-height: 1; color: var(--brand-700); display: grid; place-items: center; cursor: pointer; z-index: 2; padding: 0 0 3px; }
.carril-flecha:hover { background: var(--brand-50); }
.carril-flecha.izq { left: -23px; } .carril-flecha.der { right: -23px; }
@media (max-width: 1260px) { .carril-flecha.izq { left: -16px; } .carril-flecha.der { right: -16px; } } /* sin sitio fuera del contenedor: pegadas al borde, sin desbordar la página */
main { overflow-x: clip; }
.carril-puntos { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
.carril-puntos button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--borde-fuerte); padding: 0; transition: width .15s, background .15s; }
.carril-puntos button[aria-current="true"] { background: var(--brand-500); width: 22px; border-radius: 6px; }
@media (max-width: 1000px) { .afiches-carril { --n: 3; } }
@media (max-width: 640px) { .afiches-carril { --n: 2; --gap: 10px; } .carril-flecha { display: none; } }
.filtro-activo.centrado { justify-content: center; margin: -8px 0 16px; }

/* Burbuja redonda "Ver más" (al final del carrusel y de la rejilla de tiendas) */
.burbuja-mas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--texto-2); min-height: 100%; padding: 20px 10px; border-radius: 22px; }
.burbuja-mas .circulo { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: 0 12px 28px rgba(42,167,192,.35); transition: transform .15s, box-shadow .15s; }
.burbuja-mas .circulo .ico-svg { width: 34px; height: 34px; stroke-width: 2.2; }
.burbuja-mas:hover { text-decoration: none; }
.burbuja-mas:hover .circulo { transform: scale(1.07); box-shadow: 0 16px 34px rgba(42,167,192,.45); }
.burbuja-mas b { font-size: 1.05rem; color: var(--brand-700); }
.burbuja-mas small { font-size: .82rem; color: var(--texto-3); }
.rejilla .burbuja-mas { background: #fff; border: 1px dashed var(--borde-fuerte); border-radius: 18px; }
@media (max-width: 640px) { .burbuja-mas .circulo { width: 68px; height: 68px; } .burbuja-mas .circulo .ico-svg { width: 28px; height: 28px; } }

/* Sello "Más visitada" y tipos 2 x 1 / 3 x 1 */
.sello-top { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); background: var(--accent-100); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.afiche.tipo-dosxuno .afiche-tipo, .oferta-pill.tipo-dosxuno { background: #7c3aed; color: #fff; }
.afiche.tipo-tresxuno .afiche-tipo, .oferta-pill.tipo-tresxuno { background: #db2777; color: #fff; }
.afiche-cifra.promo { font-size: clamp(2.9rem, 6vw, 3.9rem); }
.afiche-cifra.promo small { font-size: .5em; font-weight: 800; margin: 0 2px; }
@media (max-width: 640px) { .afiche-cifra.promo { font-size: 2.2rem; } }

/* Páginas /ofertas y /tiendas */
.seccion-pagina { margin-top: 28px; }
.seccion-pagina .filtro-activo { justify-content: center; margin: -8px 0 18px; }
.oferta-fila .oferta-pill { font-size: .62rem; margin-left: 4px; vertical-align: middle; }

/* Página de ofertas de la tienda: acciones del encabezado */
.perfil-acciones { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.perfil-acciones .btn { white-space: nowrap; }
@media (max-width: 640px) { .perfil-acciones { width: 100%; } }

/* Tarjeta de tienda: el logo, muy desenfocado, como fondo; un velo blanco encima mantiene todo legible */
.tienda { position: relative; overflow: hidden; isolation: isolate; }
.tienda-fondo { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) saturate(1.2); opacity: .6; z-index: -2; pointer-events: none; }
.tienda-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.82) 55%, rgba(255,255,255,.9) 100%); z-index: -1; pointer-events: none; }
.tienda.con-fondo .tienda-ofertas.con { background: rgba(253,246,214,.95); }
.tienda.con-fondo .btn-borde { background: rgba(255,255,255,.92); }

/* Consulta de asociados por DNI */
.consulta-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 auto 22px; max-width: 560px; }
.consulta-form input { flex: 1 1 220px; font: inherit; font-size: 1.1rem; padding: 11px 18px; border: 1.5px solid var(--borde-fuerte); border-radius: 999px; letter-spacing: .08em; }
.consulta-form input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.consulta-aviso { max-width: 720px; margin: 0 auto; }
.ficha-consulta { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); }
.ficha-consulta .banda { background: var(--brand-600); color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 10px 18px; font-size: .85rem; text-align: center; }
.ficha-consulta dl { display: grid; grid-template-columns: max-content 1fr; margin: 0; }
.ficha-consulta dt { background: var(--brand-50); color: var(--brand-800); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 11px 14px; border-bottom: 1px solid var(--borde); border-right: 1px solid var(--borde); }
.ficha-consulta dd { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--borde); font-weight: 500; }
.ficha-consulta dd b { font-weight: 800; }
.ficha-consulta .nota { margin: 0; padding: 12px 18px; font-size: .82rem; color: var(--texto-3); }
@media (max-width: 520px) { .ficha-consulta dl { grid-template-columns: 1fr; } .ficha-consulta dt { border-right: 0; border-bottom: 0; padding-bottom: 2px; } }

/* Ficha del padrón como imagen en la consulta (no se puede seleccionar ni arrastrar) */
.ficha-imagen { max-width: 760px; margin: 18px auto 0; padding: 0; user-select: none; -webkit-user-select: none; }
.ficha-imagen img { display: block; width: 100%; height: auto; border: 1px solid var(--borde); border-radius: 12px; background: #fff; box-shadow: var(--sombra); pointer-events: none; -webkit-user-drag: none; }
.ficha-imagen figcaption { font-size: .8rem; color: var(--texto-3); text-align: center; margin-top: 8px; }
