:root {
  --ink: #161718;
  --muted: #5e6166;
  --line: #e3e5e8;
  --bg: #ffffff;
  --soft: #f4f5f6;
  --brand: #0392ca;      /* azul del logo */
  --brand-ink: #0277a6;  /* versión más oscura para texto/botones (contraste AA) */
  --on-brand: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .18);
  --error: #c62828;
  --ok: #1b7f45;
  color-scheme: light dark;
}
/* Oscuro: sigue al sistema salvo que el usuario elija con el botón (data-theme en <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #f1f2f3; --muted: #a3a7ad; --line: #2c2f33; --bg: #111214; --soft: #1b1d20; --brand-ink: #2bb0e6; --on-brand: #0b0c0d; --error: #ff6b6b; --ok: #5cd38a; }
}
:root[data-theme="dark"] { --ink: #f1f2f3; --muted: #a3a7ad; --line: #2c2f33; --bg: #111214; --soft: #1b1d20; --brand-ink: #2bb0e6; --on-brand: #0b0c0d; --error: #ff6b6b; --ok: #5cd38a; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Open Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .add, .primary, .primary-sm, .cart-btn, .precio { font-family: Oswald, "Arial Narrow", sans-serif; letter-spacing: .02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Encabezado */
.top { background: #000; color: #fff; position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand h1 { margin: 0; font-size: 26px; font-weight: 600; }
.brand h1 span { color: var(--brand); }
.cart-btn { background: #fff; color: #000; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.badge { background: #0277a6; color: #fff; border-radius: 999px; min-width: 24px; padding: 0 6px; text-align: center; }

.hero { background: #000; color: #fff; padding: 8px 0 28px; border-bottom: 3px solid var(--brand); }
.hero h2 { margin: 0 0 6px; font-size: clamp(28px, 6vw, 44px); line-height: 1.1; font-weight: 600; text-transform: uppercase; }
.hero p { margin: 0; max-width: 56ch; color: #c8cacd; }
.hero-row { display: flex; align-items: center; gap: 16px; }
.hero-row > div:first-child { flex: 1; }
.hero .hero-sub { color: #fff; font-size: 17px; margin-bottom: 6px; }
.hero .hero-tags { font: 500 13px/1.6 Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.mascotas { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.mascotas img { width: 76px; height: auto; transition: transform .35s cubic-bezier(.22,1,.36,1); transform-origin: 50% 85%; }
.mascotas.miran img { transform: translateY(-6px) perspective(300px) rotateX(18deg) rotate(6deg); }
.mascotas.miran img + img { transform: translateY(-6px) perspective(300px) rotateX(18deg) rotate(10deg); transition-delay: .06s; }
.volando { position: fixed; z-index: 50; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
@media (min-width: 720px) { .mascotas img { width: 120px; } .hero .hero-sub { font-size: 19px; } }
@media (max-width: 380px) { .mascotas img { width: 60px; } }


/* Menú de categorías */
.menu { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 4px; padding-bottom: 6px; position: relative; }
.menu-item { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: #c8cacd; padding: 8px 10px; border-radius: 8px; font: 500 15px Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; list-style: none; text-align: left; white-space: nowrap; }
.menu-item::-webkit-details-marker { display: none; }
.menu-item:hover { color: #fff; background: rgb(255 255 255 / .08); }
.menu > .menu-item[aria-pressed="true"], .drop > .menu-item.on, .menu > a[aria-current="page"], :is([data-vista="eventos"], [data-vista="galeria"], [data-vista="nosotros"], [data-vista="preguntas"]) .mas > summary { color: #fff; box-shadow: inset 0 -3px 0 var(--brand); border-radius: 8px 8px 0 0; }
.drop > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.drop-panel { position: absolute; left: 8px; right: 8px; top: 100%; z-index: 7; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgb(0 0 0 / .45); max-height: 70dvh; overflow-y: auto; }
.drop-panel .menu-item { color: var(--ink); font-size: 14px; text-transform: none; letter-spacing: .02em; }
.drop-panel .menu-item:hover { background: var(--soft); color: var(--ink); }
.drop-panel .menu-item[aria-pressed="true"] { background: var(--brand-ink); color: var(--on-brand); }
.drop-panel .menu-item:first-child { grid-column: 1 / -1; font-weight: 600; text-transform: uppercase; }
a.menu-item { text-decoration: none; }
[data-vista] .menu > .menu-item[aria-pressed="true"], [data-vista] .drop > .menu-item.on { color: #c8cacd; box-shadow: none; }
.drop-panel a[aria-current="page"] { background: var(--brand-ink); color: var(--on-brand); }
.menu .link-info, .menu .mas { display: none; }
@media (max-width: 1199px) { .menu .mas { display: block; } }
@media (min-width: 1200px) { .menu .menu-item { padding-inline: 8px; } .menu .link-info { display: flex; } .menu .link-info:first-of-type { margin-left: 12px; position: relative; } .menu .link-info:first-of-type::before { content: ""; position: absolute; left: -8px; top: 25%; height: 50%; border-left: 1px solid #444; } }
.mas .drop-panel .menu-item:first-child { grid-column: auto; text-transform: none; font-weight: 500; }
@media (min-width: 720px) { .mas .drop-panel { left: auto; right: 0; width: 240px; grid-template-columns: 1fr; } }
@media (min-width: 720px) { .drop { position: relative; } .drop-panel { left: 0; right: auto; width: 460px; } }

/* Buscador */
.tools { display: grid; gap: 10px; padding: 20px 0 6px; }
input, textarea { font: inherit; color: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; }
input[type=search] { padding-left: 40px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 14px center; }
.estado { color: var(--muted); margin: 8px 0; }
.estado:empty { display: none; }

/* Cantidad por página y paginación */
.lista-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; font-size: 14px; color: var(--muted); }
.lista-barra label { display: flex; align-items: center; gap: 8px; }
.lista-barra select { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.paginas { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 0 32px; }
.pag { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 16px Oswald, sans-serif; }
.pag:hover:not(:disabled) { border-color: var(--muted); }
.pag[aria-current="page"] { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--on-brand); }
.pag:disabled { opacity: .35; cursor: default; }
.pag-gap { color: var(--muted); padding: 0 2px; }

/* Grilla de productos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; padding: 10px 0 32px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } }
.card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.foto { aspect-ratio: 1; background: var(--soft); border: 0; padding: 0; display: block; width: 100%; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .foto img { transform: scale(1.04); }
.nofoto { height: 100%; min-height: 160px; display: grid; place-items: center; font: 600 34px Oswald, sans-serif; color: var(--muted); }
.info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sub { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.info h3 { margin: 0 0 6px; font-size: 17px; font-weight: 500; line-height: 1.2; flex: 1; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.precio { font-size: 19px; font-weight: 600; }
.add { border: 0; border-radius: 999px; padding: 7px 14px; background: var(--brand-ink); color: var(--on-brand); font-size: 14px; }
.add:hover { filter: brightness(1.08); }
.add.on { background: var(--ink); color: var(--bg); }

/* Barra fija del carrito */
.barra { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #000; color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: 0 10px 30px -8px rgb(0 0 0 / .45); }
.primary-sm { border: 0; border-radius: 999px; padding: 9px 18px; min-height: 44px; background: var(--brand-ink); color: var(--on-brand); font-size: 16px; }

/* WhatsApp flotante: sube cuando está la barra del carrito */
.wa-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 6; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px -6px rgb(0 0 0 / .45); transition: transform .2s, bottom .2s; }
.wa-flotante:hover { transform: scale(1.06); }
body:has(#barra:not([hidden])) .wa-flotante { display: none; } /* la barra del pedido ya lleva a WhatsApp */
.wa-flotante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: wa-pulso 2s ease-out 2; opacity: 0; }
.wa-flotante svg { animation: wa-saludo 4s ease-in-out 2; transform-origin: 50% 60%; }
@keyframes wa-pulso { from { transform: scale(1); opacity: .6; } to { transform: scale(1.8); opacity: 0; } }
@keyframes wa-saludo { 0%, 80%, 100% { transform: rotate(0) scale(1); } 84% { transform: rotate(-16deg) scale(1.12); } 88% { transform: rotate(14deg) scale(1.12); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); } }

/* Detalle de producto */
.modal { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100% - 24px)); background: var(--bg); color: var(--ink); overflow: hidden; }
.modal::backdrop, .sheet::backdrop { background: rgb(0 0 0 / .55); }
.modal .cerrar { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgb(0 0 0 / .55); color: #fff; border-radius: 50%; width: 36px; height: 36px; }
.detalle-foto { aspect-ratio: 1; background: var(--soft); position: relative; }
.carrusel { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel > * { flex: 0 0 100%; scroll-snap-align: start; }
.carrusel img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .5); color: #fff; font-size: 26px; line-height: 1; }
.car-btn.ant { left: 10px; } .car-btn.sig { right: 10px; }
.puntos { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.puntos { gap: 0; }
.puntos button { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.puntos button::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: rgb(255 255 255 / .7); box-shadow: 0 0 0 1px rgb(0 0 0 / .3); transition: width .2s; }
.puntos button[aria-current="true"] { width: 34px; }
.puntos button[aria-current="true"]::before { background: var(--brand); width: 22px; }
.foto { position: relative; }
.n-fotos { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: 12px; font-weight: 600; }
a.add { text-decoration: none; display: inline-block; }
.visor { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96dvh; overflow: visible; }
.visor::backdrop { background: rgb(0 0 0 / .85); }
.visor img { display: block; max-width: 96vw; max-height: 86dvh; border-radius: 12px; }
.visor img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.visor .car-btn { display: none; }
.visor.varias .car-btn { display: block; }
.visor-n { position: absolute; left: 0; right: 0; bottom: -30px; margin: 0; text-align: center; color: #fff; font-size: 14px; }
.visor .cerrar { position: absolute; top: -14px; right: -6px; z-index: 1; background: #fff; color: #000; border-radius: 50%; width: 36px; height: 36px; }
.carrusel img, #galeria img { cursor: zoom-in; }
.flyer-btn { padding: 0; border: 0; background: none; display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.detalle-info { padding: 16px 18px 20px; }
.detalle-info h2 { margin: 2px 0 12px; font-size: 26px; font-weight: 500; }

/* Carrito */
.sheet { border: 0; padding: 0; width: min(480px, 100%); max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; background: var(--bg); color: var(--ink); overflow-y: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.sheet-head h2 { margin: 0; font-weight: 500; }
.icon { border: 0; background: none; color: inherit; font-size: 20px; padding: 4px 8px; }
.items { list-style: none; margin: 0; padding: 8px 16px; }
.items li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.items .vacio { display: block; color: var(--muted); border: 0; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); color: inherit; font-size: 20px; line-height: 1; }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty output { min-width: 1.5em; text-align: center; }
.total { display: flex; justify-content: space-between; padding: 0 16px; font-size: 18px; }
.checkout { display: grid; gap: 12px; padding: 8px 16px 24px; }
.checkout label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; gap: 16px; flex-wrap: wrap; }
legend { font-size: 14px; color: var(--muted); padding: 0 4px; }
.checkout .radio { display: flex; gap: 6px; align-items: center; color: var(--ink); font-size: 15px; }
.radio input { width: auto; }
/* Un solo color principal (azul de la marca); el verde de WhatsApp queda solo en su ícono. */
.primary { border: 0; border-radius: 999px; padding: 12px; min-height: 48px; background: var(--brand-ink); color: var(--on-brand); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.primary svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.pago { display: grid; gap: 12px; justify-items: center; padding: 24px 16px; text-align: center; }
.pago h3 { margin: 0; font-size: 26px; font-weight: 500; }
.pago p { margin: 0; }
.pago img { width: 232px; height: 232px; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.pago .primary { width: 100%; text-decoration: none; text-align: center; }
.invitado { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; color: var(--muted); }
.invitado .enlace { font-size: inherit; }
.primary-sm.azul { background: var(--brand-ink); color: var(--on-brand); font-family: Oswald, sans-serif; }
.enlace { border: 0; background: none; padding: 0; color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ofrecer { width: 100%; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; display: grid; gap: 8px; justify-items: center; }
.ofrecer .secundario { margin: 0; }
.fine { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }

.tema-btn { background: none; border: 1px solid #444; color: #fff; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; font-size: 17px; line-height: 1; }
.tema-btn:hover { border-color: #888; }

/* Cuenta */
.acciones { display: flex; gap: 8px; align-items: center; }
.user-btn { background: none; color: #fff; border: 1px solid #444; border-radius: 999px; padding: 7px 14px; font: 500 15px Oswald, sans-serif; letter-spacing: .02em; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn:hover { border-color: #888; }
.cuenta { width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.cuenta-body { padding: 28px 8px 8px; text-align: center; }
.cuenta-body > p { padding: 0 16px; }
.cuenta-logo { border-radius: 50%; }
.cuenta-body h2 { margin: 8px 0 16px; font-weight: 500; }
.cuenta .checkout { text-align: left; }
.icon.claro { background: none; color: var(--ink); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px 8px; background: var(--soft); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: none; color: var(--muted); border-radius: 999px; padding: 8px; font: 500 15px Oswald, sans-serif; }
.tabs button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.panel > * { max-width: 640px; }
.panel h2 + .seccion-intro { margin-top: -4px; }
.fine.izq { text-align: left; margin-top: 16px; }
.user-menu { position: relative; }
.user-drop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px; display: grid; padding: 6px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgb(0 0 0 / .45); }
.user-drop[hidden] { display: none; }
.user-drop a, .user-drop button { display: block; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 15px; text-decoration: none; }
.user-drop a:hover, .user-drop button:hover, .user-drop :focus-visible { background: var(--soft); }
.user-drop button { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; color: var(--muted); }
.panel .tabs { margin: 0 0 16px; }
.panel h3 { font: 500 16px Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.pedidos { display: grid; gap: 10px; }
.pedido { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--soft); }
.pedido-cab, .pedido-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pedido-cab span, .vacio { color: var(--muted); font-size: 14px; }
.pedido-items { margin: 6px 0 10px; padding-left: 18px; font-size: 14px; }
.pedido-pie span { font-weight: 600; font-size: 14px; }
.pasos { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(5, 1fr); font-size: 11px; line-height: 1.2; color: var(--muted); text-align: center; }
.pasos li { position: relative; padding-top: 20px; }
.pasos li::before { content: ""; position: absolute; top: 3px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line); z-index: 1; }
.pasos li + li::after { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.pasos .hecho::before, .pasos .hecho::after, .pasos .actual::after { background: var(--brand); }
.pasos .actual { color: var(--ink); font-weight: 600; }
.pasos .actual::before { background: var(--brand); box-shadow: 0 0 0 4px rgb(3 146 202 / .25); }
.secundario.chico { padding: 6px 12px; font-size: 14px; margin: 0; }
.ok:empty { display: none; }
.domicilio { border: 0; padding: 0; margin: 0; display: grid; gap: inherit; }
.domicilio legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.domicilio legend span { font-weight: 400; color: var(--muted); }
.checkout select { font: inherit; color: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; }
.panel .fine { margin-top: 12px; }
.link-btn { border: 0; background: none; color: var(--brand-ink); text-decoration: underline; padding: 8px 0; font: inherit; font-size: 14px; }
.ok { color: var(--ok); min-height: 1em; margin: 0; }
.primary.azul { background: var(--brand-ink); color: var(--on-brand); }
.secundario { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 10px 18px; margin-bottom: 16px; }
.error { margin: 0; color: var(--error); font-size: 14px; min-height: 0; }
.error:empty { display: none; }

/* Eventos */
.proximo { padding-top: 16px; }
.proximo-card { display: grid; grid-template-columns: 92px 1fr; gap: 4px 14px; align-items: center; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.proximo-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.proximo-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; grid-row: span 2; }
.proximo-ver { color: var(--brand-ink); font: 500 15px Oswald, sans-serif; letter-spacing: .02em; }
.evento-datos h3 { margin: 2px 0; font-size: 24px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.evento-datos p { margin: 0; color: var(--muted); }
.evento-datos .evento-cuando { color: var(--ink); font-weight: 600; }
.evento-detalle { display: inline-block; margin-top: 6px !important; padding: 2px 10px; border-radius: 999px; background: #157a3e; color: #fff !important; font-size: 13px; font-weight: 600; }
.evento-etiqueta { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.evento-full { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 720px) { .evento-full { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } .proximo-card { grid-template-columns: 110px 1fr auto; } .proximo-card img { width: 110px; height: 110px; } .proximo-ver { grid-row: span 2; } }
.evento-flyer { width: 100%; border-radius: var(--radius); display: block; }
.evento-mapa { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); margin: 16px 0 12px; background: var(--soft); display: block; }
.evento-full .secundario { display: inline-block; text-decoration: none; }

/* Galería, Nosotros, Preguntas */
.seccion { padding: 32px 16px 8px; min-height: 60vh; }
.seccion h2 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); font-weight: 600; text-transform: uppercase; }
.seccion h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 6px; background: var(--brand); border-radius: 2px; }
.seccion-intro { margin: 0 0 16px; color: var(--muted); }
.eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 720px) { .eventos { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.evento { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 3 / 4; }
.evento img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.evento:hover > img { transform: scale(1.04); }
.evento .carrusel img { object-fit: cover; }
.evento .puntos { top: 10px; bottom: auto; }
.evento figcaption { pointer-events: none; }
.evento figcaption { position: absolute; inset: auto 0 0; padding: 28px 12px 10px; color: #fff; font: 500 15px/1.2 Oswald, sans-serif; letter-spacing: .02em; text-transform: uppercase; background: linear-gradient(transparent, rgb(0 0 0 / .8)); }
.evento figcaption span { display: block; font: 400 12px "Open Sans", sans-serif; text-transform: none; color: #d6d8db; margin-top: 2px; }
.nosotros { max-width: 70ch; margin-top: 14px; }
.nosotros p { margin: 0 0 12px; }
.redes { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.redes a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 15px Oswald, sans-serif; letter-spacing: .03em; }
.redes a:hover { border-color: var(--brand); color: var(--brand-ink); }
.redes a { display: inline-flex; align-items: center; gap: 8px; }
.redes svg { width: 18px; height: 18px; flex: none; }
.pie-redes { flex-basis: 100%; margin: 0 0 12px; }
.faq { margin-top: 14px; display: grid; gap: 8px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 Oswald, sans-serif; color: var(--brand-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }

/* Pie */
.pie { margin-top: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 16px 0 88px; }
.pie-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.version { font-family: ui-monospace, monospace; }
@media (max-width: 480px) { .brand h1 { display: none; } .acciones { gap: 6px; } .cart-btn { padding: 8px 12px; } .user-btn { max-width: 110px; padding: 7px 12px; } }
.modo-pago { flex-direction: column; gap: 6px; }

/* Comprobante: solo existe al imprimir ("Guardar como PDF"). */
.comprobante { display: none; }
.pedido-acciones { display: flex; gap: 6px; flex-wrap: wrap; }
@media print {
  @page { margin: 16mm; }
  body > *:not(.comprobante) { display: none !important; }
  body { background: #fff; color: #111; }
  .comprobante { display: block; font: 12pt/1.4 "Open Sans", Arial, sans-serif; color: #111; }
  .comprobante header { display: flex; gap: 16px; align-items: center; border-bottom: 3px solid #0392ca; padding-bottom: 12px; margin-bottom: 16px; }
  .comprobante header img { border-radius: 50%; }
  .comprobante h1 { font: 600 20pt Oswald, Arial, sans-serif; margin: 0; }
  .comprobante h2 { font: 600 12pt Oswald, Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; color: #0277a6; }
  .comprobante p { margin: 2px 0; }
  .comprobante table { width: 100%; border-collapse: collapse; margin: 16px 0; }
  .comprobante th, .comprobante td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; }
  .comprobante th:nth-child(n+3), .comprobante td:nth-child(n+3) { text-align: right; }
  .comprobante tfoot td { font-weight: 600; border-bottom: 0; }
  .comprobante tfoot tr:first-child td { border-top: 2px solid #111; }
  .comp-pie { color: #555; font-size: 10pt; }
}

/* V0.24 · auditorías */
::placeholder { color: var(--muted); opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }

/* Menú en una sola fila que se desliza de costado en el celular (el encabezado fijo ocupa menos). */
@media (max-width: 719px) {
  .menu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; position: static; padding-bottom: 4px; }
  .menu::-webkit-scrollbar { display: none; }
  .menu > * { flex: none; }
  .top { position: sticky; } /* los desplegables se ubican respecto del encabezado y no se cortan */
  .drop-panel { top: 100%; }
  .hero { padding: 4px 0 16px; }
  .hero .hero-tags, .hero p:last-child { display: none; }
  .hero .hero-sub { font-size: 15px; margin: 0; }
  .mascotas img { width: 54px; }
  .proximo { padding-top: 12px; }
  .proximo-card { grid-template-columns: 1fr auto; padding: 10px 14px; }
  .proximo-card img, .proximo-card .evento-datos > p:not(.evento-cuando) { display: none; }
  .proximo-card .evento-datos h3 { font-size: 18px; }
  .tools { padding-top: 14px; }
  .card .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .card .add { text-align: center; padding: 10px 14px; }
  .card .qty { justify-content: space-between; }
}
.add { min-height: 40px; white-space: nowrap; }
.card .row { flex-wrap: nowrap; }
.card { position: relative; }
.card .qty { gap: 4px; }
.card .qty button { width: 40px; height: 40px; }
.card .qty output { font: 600 17px Oswald, sans-serif; }

/* Favoritos */
.fav { position: absolute; top: 8px; left: 8px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 19px; line-height: 1; display: grid; place-items: center; }
.fav[aria-pressed="true"] { color: #ff5a7a; }

/* Búsqueda: borrar, filtros activos, ordenar */
.tools { position: relative; }
input[type=search]::-webkit-search-cancel-button { display: none; }
.buscar-borrar { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 22px; line-height: 1; }
.buscar-borrar:hover { color: var(--ink); background: var(--line); }
.activos { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; }
.chip { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; min-height: 36px; font-size: 14px; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"], .activos .chip { border-color: var(--brand-ink); }
.lista-barra { flex-wrap: wrap; }
.lista-barra #conteo { flex: 1 1 100%; }
@media (min-width: 720px) { .lista-barra #conteo { flex: 1 1 auto; } }

/* Ficha: tamaño y plazo */
.detalle-datos { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.detalle-datos:empty { display: none; }
.plazo-chip { display: inline-block; margin: 0 0 14px; padding: 3px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.detalle-info .row { flex-wrap: wrap; }

/* Carrito */
.plazo { margin: 4px 16px 0; font-size: 13px; color: var(--muted); }
.plazo:empty { display: none; }
.envio { display: grid; gap: 12px; }
.ayuda-campo { font-size: 12.5px; color: var(--muted); }
.ayudas { display: grid; gap: 4px; }
.ayudas details { border-bottom: 1px solid var(--line); }
.ayudas summary { cursor: pointer; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.ayudas p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.fine a { color: var(--brand-ink); font-weight: 600; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkout { position: relative; }

/* Pantalla final */
.pago-numero { font: 500 16px Oswald, sans-serif; letter-spacing: .03em; color: var(--muted); }
.pago .secundario { margin: 0; width: 100%; min-height: 44px; }
.siguientes { list-style: none; counter-reset: paso; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 8px; text-align: left; font-size: 14px; color: var(--muted); }
.siguientes li { counter-increment: paso; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; }
.siguientes li::before { content: counter(paso); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; color: var(--ink); }
.siguientes strong { color: var(--ink); }

/* Cerrar sesión */
.salir { width: min(400px, calc(100% - 24px)); }
.salir-body { display: grid; gap: 10px; padding: 24px 20px 16px; text-align: center; }
.salir-body h2 { margin: 0; font-weight: 500; }
.salir-body p { margin: 0 0 6px; color: var(--muted); }
.salir-body .secundario { margin: 0; min-height: 44px; }

/* Aviso con Deshacer */
.aviso { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px -8px rgb(0 0 0 / .45); font-size: 15px; }
.aviso button { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; padding: 8px 10px; min-height: 40px; }
#pedidos-ejemplo { min-height: 44px; }
.user-btn { min-height: 36px; }
:is([data-vista="mis-pedidos"], [data-vista="historial"], [data-vista="mis-datos"]) #ver-cuenta { border-color: var(--brand); background: rgb(3 146 202 / .18); }
p, li, .plazo-chip { text-wrap: pretty; }
