/* 1. Identidad Ananay: superficies claras y acentos del logo. */
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Nunito+Sans:wght@400;600;700;800;900&display=swap');
:root {
  color-scheme: light;
  --ink: #281c3d;
  --purple: #5b22a8;
  --deep: #34136e;
  --pink: #c61072;
  --fuchsia: #f52f9a;
  --cyan: #20c4f4;
  --cream: #fff9f5;
  --muted: #70647c;
  --line: #ebdfef;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --page-width: 1160px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 'Nunito Sans', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button, input { min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #0080ac; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: white; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 10px; letter-spacing: .15em; font-weight: 800; color: var(--pink); }
.app-scroll { height: 100vh; height: 100dvh; padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; scroll-padding-top: calc(86px + var(--safe-top)); scroll-padding-bottom: calc(86px + var(--safe-bottom)); }
section, header, main, .families, .catalog-family, footer { scroll-margin-top: 8px; }

/* 2. Portada compacta, con adornos hechos en CSS. */
.cover { position: relative; max-width: var(--page-width); margin: 0 auto; padding: 18px 28px 20px; background: radial-gradient(ellipse at 6% 80%, #ccf8ff 0, transparent 52%), radial-gradient(ellipse at 90% 5%, #ffdaf0 0, transparent 52%), #fffdfb; border-radius: 0 0 30px 30px; overflow: hidden; }
.cover::after { content: ''; position: absolute; width: 120px; height: 190px; right: -86px; bottom: -85px; border-radius: 60%; transform: rotate(40deg); background: var(--cyan); opacity: .45; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .11em; font-weight: 800; color: var(--deep); }
.topline a { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; }
.topline a>.icon { width: 12px; height: 12px; }
.cover-inner { display: flex; align-items: center; justify-content: center; gap: 32px; position: relative; }
.brand-logo { width: 180px; height: 168px; object-fit: contain; filter: drop-shadow(0 8px 8px #5b22a819); }
h1 { font-family: 'Lobster', Georgia, serif; color: var(--pink); font-size: 66px; font-weight: 400; }
h1 span { display: block; font: 900 24px/1 'Nunito Sans', Arial, sans-serif; color: #0679b2; }
.tagline { color: var(--deep); font-size: 17px; font-weight: 700; font-style: italic; margin-top: 8px; }
.cover-spark { color: var(--fuchsia); font-size: 36px; transform: rotate(15deg); margin-left: 24px; }

/* Instagram del local: acceso visible, compacto y fácil de tocar. */
.cover-social { display: flex; justify-content: center; position: relative; z-index: 1; margin-top: 16px; }
.instagram-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; min-height: 48px; padding: 10px 18px; border: 1px solid #e9c6e3; border-radius: 18px; background: #ffffffc9; color: var(--deep); box-shadow: 0 5px 18px #a0246910; }
.instagram-link>.icon { color: var(--pink); width: 25px; height: 25px; }
.instagram-link>span:not(.instagram-arrow) { font-size: 12px; line-height: 1.4; }
.instagram-link strong { display: block; font-size: 14px; font-weight: 900; color: var(--pink); overflow-wrap: anywhere; }
.instagram-arrow { font-size: 22px; color: var(--pink); }
.instagram-link:hover { background: #fff; border-color: #c61072; }
.instagram-contact { gap: 10px; }
.instagram-contact .icon { width: 20px; height: 20px; }

/* 3. Buscador sticky y panel de navegación por familias. */
.browse-bar { position: sticky; top: var(--safe-top); z-index: 30; background: #fff9f5; border-bottom: 1px solid #ebdfef80; }
.browse-inner { max-width: var(--page-width); margin: auto; padding: 14px 24px; display: flex; gap: 10px; align-items: center; position: relative; }
.search-box { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 1px solid #d9cbea; border-radius: 16px; background: white; padding: 0 14px; height: 48px; box-shadow: 0 3px 14px #34136e05; color: var(--purple); }
.search-box:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px #5b22a811; }
.search-box input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; height: 44px; }
.search-box input::placeholder { color: #82748e; opacity: 1; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear { display: grid; place-items: center; flex-shrink: 0; border: 0; background: none; width: 44px; height: 44px; padding: 0; }
.search-clear>.icon { width: 20px; height: 20px; }
.category-menu summary { list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; color: white; background: var(--purple); border-radius: 15px; padding: 0 16px; font-weight: 800; font-size: 14px; }
summary::-webkit-details-marker { display: none; }
.category-menu[open] summary { background: var(--deep); }
.category-links { position: absolute; top: calc(100% - 5px); left: 24px; right: 24px; max-height: min(65dvh, 620px); overflow-y: auto; overscroll-behavior: contain; padding: 20px; background: #fffdfc; border: 1px solid var(--line); box-shadow: 0 18px 40px #34136e26; border-radius: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nav-group { min-width: 0; }
.nav-group a { display: flex; align-items: center; min-height: 44px; font-size: 14px; padding: 7px 8px; border-radius: 9px; overflow-wrap: anywhere; }
.nav-group .nav-family { color: var(--purple); font-weight: 900; gap: 8px; }
.nav-group a:hover { background: #f8eaf7; }
.quick-nav { max-width: var(--page-width); margin: auto; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); padding: 12px 24px; gap: 10px; }
.quick-chip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; min-height: 56px; border-radius: 17px; color: var(--deep); font-size: 14px; font-weight: 800; background: var(--tile-color); transition: transform .2s, box-shadow .2s; }
.quick-chip:hover { transform: translateY(-2px); box-shadow: 0 5px 12px #34136e12; }
.food { --tile-color: #ffe1ae; --tile-strong: #ffb74e; }
.promos { --tile-color: #ffd9ed; --tile-strong: #fb65b4; }
.ice { --tile-color: #e8d6ff; --tile-strong: #b881f5; }
.waffles { --tile-color: #ffdfeb; --tile-strong: #ff97ba; }
.slush { --tile-color: #c2efff; --tile-strong: #40c8f1; }
.drinks { --tile-color: #c2f5f1; --tile-strong: #58dfd8; }

/* 4. Mosaico de familias con fotos del proyecto. */
.families { max-width: var(--page-width); margin: 0 auto; padding: 10px 24px 12px; }
.block-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.block-heading h2 { font-size: 23px; letter-spacing: -.03em; }
.block-heading>span { color: var(--pink); font-size: 25px; }
.family-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.family-card { display: flex; align-items: center; gap: 16px; position: relative; isolation: isolate; min-height: 134px; border-radius: 22px; padding: 14px; overflow: hidden; background: linear-gradient(120deg,var(--tile-color),var(--tile-strong)); border: 1px solid #ffffffc9; box-shadow: 0 5px 14px #34136e08; transition: transform .2s; }
.family-card::after { content: ''; position: absolute; z-index: -1; width: 110px; height: 110px; border-radius: 50%; background: #ffffff35; right: -32px; top: -46px; }
.family-card:hover { transform: translateY(-3px); }
.family-card>img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #ffffffa6; box-shadow: 0 4px 12px #34136e24; }
.family-copy { min-width: 0; flex: 1; }
.family-copy h3 { font-size: 21px; font-weight: 900; color: var(--deep); letter-spacing: -.03em; }
.family-arrow { margin-top: 10px; display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: #fffdfcd9; color: var(--purple); }
.family-arrow .icon { width: 18px; height: 18px; }

/* 5. Ocho familias, secciones originales plegables y accesos secundarios. */
main { max-width: var(--page-width); padding: 0 24px 34px; margin: auto; }
.menu-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 16px; }
.menu-intro h2 { font-size: 28px; letter-spacing: -.035em; margin-top: 4px; }
.menu-intro>p { font-size: 13px; color: var(--muted); text-align: right; }
.catalog-family { margin: 22px 0 30px; }
.family-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.family-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; color: var(--deep); letter-spacing: -.025em; }
.family-heading h2>.icon { color: var(--pink); width: 28px; height: 28px; }
.family-heading>a { min-height: 44px; min-width: 44px; display: grid; place-items: center; font-size: 22px; color: var(--purple); }
.subcategory-nav { display: flex; flex-wrap: wrap; gap: 5px 8px; padding: 8px 0 14px; }
.subcategory-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 800; color: #685080; padding: 7px 12px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.subcategory-nav a:hover { border-color: #a582ca; color: var(--purple); }
.catalog-family:has(.menu-section:only-of-type) .subcategory-nav { display: none; }
.menu-section { margin: 8px 0; }
.category-section { border: 1px solid var(--line); border-radius: 20px; background: #ffffffc9; box-shadow: 0 6px 24px #34136e04; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 13px 18px; list-style: none; }
.category-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; min-width: 0; }
.section-name { font-size: 17px; font-weight: 900; overflow-wrap: anywhere; }
.category-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.expand-icon { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: var(--purple); background: #f1e9fa; }
.expand-icon>.icon { width: 18px; height: 18px; transform-origin: center; transition: transform .2s; }
.category-section[open] .expand-icon>.icon { transform: rotate(180deg); }
.category-section[open]>.section-heading { color: var(--purple); }
.section-content { padding: 0 16px 16px; }
.catalog-subheading { font-size: 18px; color: var(--deep); margin: 23px 0 14px; }
.show-all, .reset-search { display: flex; align-items: center; justify-content: center; min-height: 46px; gap: 10px; padding: 10px 22px; margin: 17px auto 0; border: 1px solid #d6bee7; border-radius: 26px; background: #f8f0ff; color: var(--purple); font-weight: 800; font-size: 14px; }
.show-all:hover, .reset-search:hover { background: #ecddfb; }

/* 6. Cards compactas. Ningún nombre ni precio se recorta. */
/* Fotos uniformes y tarjetas alineadas por fila, sin formatos según el nombre. */
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; align-items: stretch; }
.product-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid #eddfeb; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px #34136e0b; }
.product-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: #f6f0eb; flex-shrink: 0; isolation: isolate; }
.sweet-section .product-photo { background: #f8f1fb; }
.product-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* El retrato se muestra entero sobre un fondo suave de la misma fotografía. */
.product-photo.photo-portrait::before { content: ''; position: absolute; inset: -18px; background: var(--photo-backdrop) center / cover no-repeat; filter: blur(18px); opacity: .45; }
.product-photo.photo-portrait img { object-fit: contain; }
.photo-reference { position: absolute; bottom: 7px; left: 7px; padding: 3px 7px; border-radius: 6px; background: #ffffffed; color: #51445e; font-size: 10px; line-height: 1.4; }
.product-photo:has(img[src$='.svg']) { background: #faf3fc; }
.product-photo img[src$='.svg'] { object-fit: contain; }

/* Bubble Tea: galería táctil nativa, preparada para fotos de sabores. */
.product-gallery { display: flex; min-width: 0; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.product-gallery .product-photo { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.bubble-flavors { margin: 8px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bubble-pearls { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--deep); }
.section-content:not(:has(.bubble-card:not([hidden]))) .bubble-pearls { display: none; }
.product-info { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 14px; }
.product-info h3 { color: var(--deep); font-size: 16px; font-weight: 800; line-height: 1.28; overflow-wrap: anywhere; }
.product-description { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 8px 0 4px; }
/* El texto completo está disponible mediante Leer más; sin JS queda visible. */
.js-ready .product-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.js-ready .product-description.is-expanded { display: block; }
.description-toggle { border: 0; background: none; text-align: left; align-self: flex-start; padding: 4px 0; min-height: 44px; font-size: 12px; font-weight: 800; color: var(--purple); }
.price { font-size: 22px; letter-spacing: -.04em; color: var(--pink); font-weight: 900; margin-top: auto; padding-top: 13px; white-space: nowrap; }
.price-options { padding: 8px 0 0; margin: auto 0 0; }
.price-options>div { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 0 8px; border-top: 1px solid #f0e8f2; padding: 6px 0 0; margin-top: 5px; }
.price-options dt { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.price-options dd { margin: 0 0 0 auto; font-size: 18px; font-weight: 900; color: var(--pink); white-space: nowrap; letter-spacing: -.025em; }
.promo-label { position: absolute; top: 9px; left: 9px; background: #ffe5a5; border-radius: 20px; color: #643805; font-size: 9px; letter-spacing: .06em; font-weight: 900; padding: 4px 9px; box-shadow: 0 3px 9px #0002; }
/* Promociones: una composición estable para todos los nombres, incluso largos. */
#familia-promos .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.promo-card { display: grid; grid-template-columns: clamp(104px,30%,152px) minmax(0,1fr); gap: 14px; padding: 12px; }
.promo-card .product-photo { width: 100%; align-self: start; border-radius: 12px; }
.promo-card .product-info { padding: 2px 0; }
.promo-card .product-info h3 { font-size: 15px; line-height: 1.35; }
.promo-card .price { padding-top: 10px; }
.promo-card .promo-label { top: 6px; left: 6px; font-size: 8px; padding: 3px 7px; }
.extras { margin-top: 16px; padding: 16px; border-radius: 14px; background: #f7f1fb; }
.extras h3 { color: var(--deep); font-size: 16px; }
.extras dl { margin: 10px 0 0; }
.extras dl>div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; }
.extras dt { font-size: 13px; color: #645270; }
.extras dd { font-size: 15px; font-weight: 900; color: var(--purple); margin: 0; white-space: nowrap; }
.search-status { color: var(--purple); background: #f0e8fa; font-size: 15px; padding: 12px 16px; border-radius: 14px; margin: 14px 0; }
.search-empty { padding: 40px 20px; text-align: center; background: white; border-radius: 20px; border: 1px solid var(--line); }
.search-empty>span { font-size: 45px; color: var(--pink); }
.search-empty>span>.icon { width: 42px; height: 42px; margin: auto; }
.search-empty h3 { font-size: 22px; margin: 10px 0; }
.search-empty p { color: var(--muted); }
.is-searching .cover, .is-searching .quick-nav, .is-searching .families, .is-searching .menu-intro, .is-searching .subcategory-nav { display: none; }
.is-searching .catalog-family { margin-top: 16px; }

/* 7. Información del local y firma permanente Servimat. */
.site-footer { background: radial-gradient(ellipse at 0 0,#66399866,transparent 70%),#291345; color: #fff8ff; padding: 44px max(24px,calc((100% - 1112px)/2)) 20px; border-radius: 30px 30px 0 0; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.site-footer .eyebrow { color: #fbb3da; }
.footer-welcome h2 { font-size: 35px; letter-spacing: -.04em; margin: 12px 0; }
.footer-welcome>p:not(.eyebrow) { font-size: 21px; color: #e1cfe9; }
.footer-back { display: inline-flex; align-items: center; gap: 25px; margin-top: 24px; padding: 10px 18px; min-height: 44px; border: 1px solid #8969a1; border-radius: 24px; font-size: 14px; }
.footer-back .icon { width: 18px; height: 18px; }
.footer-contact address { font-style: normal; display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact address>span, .opening-hours>span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .13em; color: #c9afd9; margin: 12px 0 2px; }
.footer-contact address>a { font-size: 15px; display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; max-width: 100%; }
.footer-contact address>a:hover { text-decoration: underline; }
.footer-contact address>a>.icon { width: 15px; height: 15px; margin-left: 7px; }
.opening-hours { font-size: 15px; }
.footer-whatsapp { display: flex; align-items: center; gap: 12px; border: 1px solid #69c7ad66; background: #a2efd70d; border-radius: 15px; padding: 10px 14px; margin-top: 20px; max-width: 350px; }
.footer-whatsapp>span { flex: 1; font-size: 14px; }
.footer-whatsapp>.icon:last-child { width: 16px; }
.footer-thanks { text-align: center; padding: 34px 0 26px; }
.footer-thanks h3 { font-size: 23px; margin-bottom: 7px; }
.footer-thanks p { color: #dac6e5; font-size: 14px; }
.footer-bottom { display: flex; justify-content: center; border-top: 1px solid #ffffff20; padding: 20px 0 4px; }
.servimat-signature { display: flex; flex-direction: column; gap: 1px; color: #4f4956; }
.signature-label { font-size: 8px; letter-spacing: .13em; font-weight: 700; line-height: 1.4; }
.signature-brand { display: flex; align-items: center; gap: 7px; }
.signature-brand img { width: 35px; height: 31px; object-fit: contain; filter: brightness(0); opacity: .7; }
.signature-brand strong { font-size: 13px; letter-spacing: .1em; font-weight: 900; }
.signature-brand>.icon { width: 14px; height: 14px; margin-left: 2px; }
.footer-bottom .servimat-signature { color: #c3b7c9; align-items: center; }
.footer-bottom .signature-brand img { filter: none; opacity: .7; }
.footer-bottom .signature-label { font-size: 10px; }
.footer-bottom .signature-brand strong { font-size: 16px; }
.footer-bottom .signature-brand img { width: 45px; height: 40px; }

/* 8. Flotantes independientes; safe areas sin reservar una barra inferior. */
.servimat-floating { position: fixed; z-index: 40; left: 16px; left: calc(16px + var(--safe-left)); bottom: 16px; bottom: calc(16px + var(--safe-bottom)); width: max-content; max-width: calc(100vw - 106px - var(--safe-left) - var(--safe-right)); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: .72; min-height: 44px; justify-content: center; text-shadow: 0 1px 2px #fff, 0 0 4px #fff; transition: opacity .3s, transform .3s, visibility .3s; }
.servimat-floating .signature-brand strong { font-size: 10px; letter-spacing: .08em; }
.servimat-floating .signature-brand { animation: soft-float 5s ease-in-out infinite; }
.servimat-floating:hover { opacity: 1; }
.servimat-floating.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); visibility: hidden; }
.whatsapp-float { position: fixed; z-index: 40; right: 16px; right: calc(16px + var(--safe-right)); bottom: 16px; bottom: calc(16px + var(--safe-bottom)); display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; background: #25d366; color: white; box-shadow: 0 4px 14px #075e5438; animation: soft-breath 5s ease-in-out infinite; }
.whatsapp-float>.icon { width: 29px; height: 29px; }
@keyframes soft-breath { 0%,100% { box-shadow: 0 4px 14px #075e5438; } 50% { box-shadow: 0 5px 19px #075e5450; } }
@keyframes soft-float { 0%,100% { transform: translateY(1px); } 50% { transform: translateY(-2px); } }

/* 9. Adaptación a tablet y celular, priorizando 390 px. */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-card { gap: 10px; padding: 10px; min-height: 115px; }
  .family-card>img { width: 76px; height: 76px; }
  .family-copy h3 { font-size: 18px; }
  .quick-chip { flex-direction: column; gap: 3px; font-size: 12px; }
}
@media (max-width: 600px) {
  .app-scroll { scroll-padding-top: calc(74px + var(--safe-top)); }
  section, header, main, .families, .catalog-family, footer { scroll-margin-top: 8px; }
  .cover { padding: 8px 16px 12px; border-radius: 0 0 23px 23px; }
  .topline { font-size: 7.5px; letter-spacing: .055em; }
  .cover-inner { gap: 14px; justify-content: flex-start; min-height: 134px; }
  .brand-logo { width: 133px; height: 132px; }
  h1 { font-size: 43px; }
  h1 span { font-size: 19px; }
  .tagline { font-size: 13px; margin-top: 6px; }
  .cover-spark { position: absolute; right: 1px; top: 1px; font-size: 22px; margin: 0; }
  .browse-inner { padding: 10px 14px; gap: 8px; }
  .search-box { height: 46px; padding: 0 10px; gap: 6px; }
  .search-box>.icon { width: 20px; height: 20px; }
  .search-box input { font-size: 16px; }
  .search-clear { width: 32px; }
  .category-menu summary { min-height: 46px; width: 46px; padding: 0; border-radius: 14px; }
  .category-menu summary>span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .category-links { position: fixed; top: auto; bottom: calc(86px + var(--safe-bottom)); left: calc(10px + var(--safe-left)); right: calc(10px + var(--safe-right)); padding: 13px; gap: 13px; max-height: 60vh; max-height: min(65dvh,calc(100dvh - 170px - var(--safe-top) - var(--safe-bottom))); }
  .nav-group a { font-size: 13px; padding: 8px 4px; }
  .nav-group .nav-family { align-items: flex-start; }
  .nav-group .icon { width: 19px; height: 19px; }
  .quick-nav { padding: 4px 14px 10px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .quick-nav::-webkit-scrollbar { display: none; }
  .quick-chip { flex: 1 0 52px; min-width: 52px; max-width: 76px; min-height: 66px; padding: 7px 3px; font-size: 10px; line-height: 1.15; text-align: center; border-radius: 16px; }
  .quick-chip>.icon { width: 23px; height: 23px; }
  .families { padding: 6px 14px 0; }
  .block-heading { margin-bottom: 10px; }
  .block-heading h2 { font-size: 20px; }
  .block-heading>span { font-size: 20px; }
  .family-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .family-card { gap: 6px; min-height: 92px; padding: 8px; border-radius: 18px; }
  .family-card>img { width: 62px; height: 62px; border-width: 2px; }
  .family-copy h3 { font-size: 14px; letter-spacing: -.035em; overflow-wrap: normal; }
  .family-arrow { width: 22px; height: 22px; margin-top: 6px; }
  .family-arrow .icon { width: 15px; height: 15px; }
  main { padding: 0 14px 24px; }
  .menu-intro { gap: 12px; margin: 22px 0 8px; }
  .menu-intro h2 { font-size: 22px; }
  .menu-intro .eyebrow { font-size: 8px; }
  .menu-intro>p { max-width: 114px; font-size: 11px; }
  .catalog-family { margin: 14px 0 24px; }
  .family-heading h2 { font-size: 21px; gap: 8px; }
  .family-heading h2>.icon { width: 23px; height: 23px; }
  .subcategory-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 0 10px; gap: 6px; }
  .subcategory-nav a { flex-shrink: 0; font-size: 12px; min-height: 44px; }
  .category-title { gap: 2px 9px; }
  .section-heading { padding: 12px; min-height: 61px; gap: 8px; }
  .section-name { font-size: 16px; }
  .category-count { font-size: 11px; }
  .section-content { padding: 0 8px 10px; }
  .category-section[open] { background: #fff5fb; border-color: #e7d3ec; }
  .product-grid { gap: 8px; }
  .product-card { border-radius: 15px; }
  .product-info { padding: 11px 10px 12px; }
  .product-info h3 { font-size: 14px; }
  .product-description { font-size: 12.5px; line-height: 1.4; }
  .price { font-size: 21px; padding-top: 10px; }
  .price-options dd { font-size: 17px; }
  .price-options dt { font-size: 11.5px; }
  .promo-card { grid-template-columns: 30% minmax(0,1fr); gap: 12px; padding: 10px; }
  .promo-card .product-info { padding: 0; }
  .promo-card .product-info h3 { font-size: 14px; }
  .extras { padding: 13px; }
  .extras dl>div { gap: 9px; }
  .site-footer { padding: 30px 22px 20px; }
  .footer-main { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .footer-welcome h2 { font-size: 30px; }
  .footer-welcome>p:not(.eyebrow) { font-size: 18px; }
  .footer-contact address>a { font-size: 14px; }
  .footer-thanks { padding: 28px 0; }
  .signature-label { font-size: 7px; letter-spacing: .1em; }
  .signature-brand strong { font-size: 12px; }
  .signature-brand img { width: 31px; height: 27px; }
}
/* Ajuste de compatibilidad para etiquetas completas en 320–375 px. */
@media (max-width: 767px) {
  #familia-promos .product-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 389px) {
  .family-card>img { width: 56px; height: 56px; }
  .family-copy h3 { font-size: 13px; }
}
@media (max-width: 359px) {
  .brand-logo { width: 110px; height: 122px; }
  h1 { font-size: 38px; }
  .family-card>img { width: 40px; height: 40px; }
  .family-copy h3 { font-size: 12px; }
  .product-grid { grid-template-columns: minmax(0,1fr); }
}
/* 10. Detalles visuales: misma identidad, fotos protagonistas y navegación siempre a mano. */
:root { --muted: #655b70; }
.app-scroll { scroll-padding-top: calc(140px + var(--safe-top)); }
.cover { padding: 16px 32px 22px; background: radial-gradient(ellipse at 0 100%,#d7f7ff,transparent 55%),radial-gradient(ellipse at 95% 10%,#ffdaee,transparent 55%),#fffcf7; border: 1px solid #f4e6ed; border-top: 0; }
.cover::after { width: 200px; height: 200px; right: -90px; top: 110px; bottom: auto; background: none; border: 22px solid #f52f9a12; }
.cover-inner { justify-content: flex-start; gap: 24px; min-height: 210px; }
.brand-logo { width: 176px; height: 180px; }
.cover-copy { position: relative; z-index: 1; }
.cover-showcase { position: relative; flex: 1; max-width: 390px; height: 205px; margin-left: auto; }
.cover-showcase>img { position: absolute; width: 155px; height: 176px; object-fit: cover; border: 6px solid white; border-radius: 28px; box-shadow: 0 12px 25px #54203c1c; }
.showcase-food { left: 8%; top: 7px; transform: rotate(-8deg); }
.showcase-sweet { right: 0; top: 0; transform: rotate(9deg); }
.showcase-note { position: absolute; z-index: 1; bottom: -8px; left: 20%; padding: 10px 18px; background: #fff9f1; border: 1px solid #eacda7; border-radius: 14px; color: var(--deep); font-size: 15px; font-weight: 900; line-height: 1.2; transform: rotate(-3deg); box-shadow: 0 5px 15px #3a145010; }
.showcase-note>span { position: absolute; right: -14px; top: -18px; color: var(--pink); font-size: 32px; }
.cover-social { justify-content: flex-start; gap: 10px; margin-top: 8px; }
.cover-social .social-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px; border-radius: 24px; border: 1px solid #dfcddd; background: #ffffffd9; color: var(--deep); font-size: 13px; font-weight: 800; box-shadow: none; transition: background .2s, border-color .2s; }
.cover-social .social-link>.icon { width: 19px; height: 19px; }
.cover-social .social-link>span { font-size: inherit; }
.cover-social .social-link:hover { background: white; border-color: var(--purple); }
.facebook-link>.icon { color: #1765b4; }
.browse-bar { background: #fffaf7f5; box-shadow: 0 6px 18px #35184907; }
.browse-inner { padding-bottom: 8px; }
.quick-nav { display: flex; gap: 8px; padding: 0 24px 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.quick-nav::-webkit-scrollbar { display: none; }
.quick-chip { flex: 1 0 auto; flex-direction: row; min-width: 0; max-width: none; min-height: 44px; gap: 7px; padding: 7px 13px; border: 1px solid transparent; border-radius: 24px; background: transparent; color: #665176; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.quick-chip>.icon { width: 19px; height: 19px; }
.quick-chip:hover { transform: none; background: var(--tile-color); box-shadow: none; }
.quick-chip[aria-current="location"] { color: var(--deep); border-color: #d8c4e5; background: var(--tile-color); }
.pizza { --tile-color: #ffe3bd; --tile-strong: #e7ac63; }
.fruit { --tile-color: #e8f0d7; --tile-strong: #bed385; }
.families { padding-top: 24px; }
.block-heading { margin-bottom: 16px; }
.block-heading h2 { margin-top: 5px; font-size: 28px; color: var(--deep); }
.family-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.family-card { display: block; isolation: isolate; min-height: 180px; padding: 20px; background: var(--tile-color); border: 1px solid #fff; border-radius: 20px; box-shadow: 0 5px 14px #34136e0a; }
.family-card>img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 75%; height: 100%; border: 0; border-radius: 0; object-fit: cover; object-position: center; box-shadow: none; transition: transform .4s; }
.family-card::after { z-index: -1; inset: 0; width: 100%; height: 100%; border-radius: 0; background: linear-gradient(90deg,var(--tile-color) 5%,var(--tile-color) 16%,transparent 100%); }
.family-copy { max-width: 75%; }
.family-copy h3 { max-width: 140px; font-size: 22px; line-height: 1.1; }
.family-copy p { font-size: 11px; font-weight: 800; color: #49265d; margin-top: 8px; max-width: 95px; line-height: 1.4; }
.family-arrow { margin-top: 14px; width: 29px; height: 29px; background: #fffdf8; }
.menu-intro { margin-top: 36px; padding-top: 24px; border-top: 1px solid #eadddf; }
.catalog-family { margin-bottom: 40px; }
.family-heading { margin-bottom: 7px; }
.family-heading h2 { font-size: 27px; }
.family-heading h2>.icon { width: 39px; height: 39px; padding: 7px; background: #f9e4f0; border-radius: 13px; }
.category-section { border-radius: 22px; box-shadow: 0 4px 20px #34136e05; }
.category-section[open] { background: #fffdfb; border-color: #decce5; }
.sweet-section .category-section[open] { background: linear-gradient(140deg,#fff8fd,#faf6ff); }
.product-card { border-color: #eee3ea; box-shadow: 0 4px 14px #49233f08; transition: transform .25s, box-shadow .25s, border-color .25s; }
.product-info { padding: 15px; }
.product-info h3 { line-height: 1.3; }
.product-description { font-size: 14px; line-height: 1.45; }
.price { font-size: 24px; padding-top: 14px; }
.price-options dd { font-size: 20px; }
.price-options dt { font-size: 13px; }
.description-toggle { font-size: 13px; text-underline-offset: 3px; }
.description-toggle:hover { text-decoration: underline; }
.promo-card { background: linear-gradient(145deg,#fff,#fffcf6); border-color: #ecdac7; }
.promo-card .product-photo { border: 1px solid #f1e3d9; }
.promo-card .product-info h3 { font-size: 16px; }
.promo-card .promo-label { top: 0; left: 0; padding: 5px 10px; border-radius: 0 0 12px 0; }
.photo-reference { font-size: 9px; background: #fffdf5ed; }
.bubble-flavors { font-size: 13px; color: var(--muted); }
.bubble-flavors strong { color: var(--deep); }
.footer-contact address>.facebook-contact { gap: 9px; }
.footer-contact address>.facebook-contact>.icon { margin: 0; width: 18px; height: 18px; }
.footer-thanks .photo-note { margin-top: 16px; font-size: 12px; color: #cbb9d6; }
/* Entradas breves, sin ocultar contenido cuando JavaScript no está disponible. */
.reveal-once { animation: menu-reveal .5s ease-out; }
@keyframes menu-reveal { from { opacity: .65; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px #49233f14; border-color: #d9bfdc; }
  .family-card:hover>img { transform: scale(1.045); }
}
@media (max-width: 1000px) {
  .cover-showcase { margin-left: 0; }
  .cover-showcase>img { width: 128px; height: 160px; }
  .showcase-food { left: 0; }
  .showcase-note { left: 8%; font-size: 13px; }
  .family-grid { gap: 10px; }
  .family-card { padding: 14px; min-height: 165px; }
  .family-copy h3 { font-size: 19px; }
}
@media (max-width: 767px) {
  .cover-showcase { display: none; }
  .cover-inner { justify-content: center; }
  .cover-social { justify-content: center; }
  .family-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-card { min-height: 124px; }
  .family-copy h3 { max-width: 130px; }
  .family-copy p { display: none; }
  .family-arrow { margin-top: 10px; }
  .family-card>img { width: 70%; }
  .family-heading h2 { font-size: 24px; }
}
@media (max-width: 600px) {
  .cover { padding: 8px 18px 16px; }
  .cover-inner { min-height: 138px; gap: 16px; }
  .brand-logo { width: 130px; height: 130px; }
  .cover-social { gap: 8px; margin-top: 4px; }
  .cover-social .social-link { flex: 1; max-width: 170px; padding: 8px 12px; font-size: 12px; }
  .cover-social .social-link>span:last-child { margin-left: auto; }
  .browse-inner { padding: 10px 14px 6px; }
  .quick-nav { padding: 0 14px 8px; gap: 4px; }
  .quick-chip { flex: 0 0 auto; font-size: 12px; padding: 8px 11px; min-height: 44px; }
  .quick-chip>.icon { width: 18px; height: 18px; }
  .families { padding: 20px 14px 4px; }
  .block-heading h2 { font-size: 24px; }
  .block-heading .eyebrow { font-size: 9px; }
  .family-card { min-height: 110px; border-radius: 17px; padding: 13px; }
  .family-copy h3 { font-size: 17px; max-width: 100px; }
  .family-arrow { width: 25px; height: 25px; }
  .menu-intro { margin-top: 24px; padding-top: 20px; }
  .catalog-family { margin-bottom: 30px; }
  .family-heading h2 { font-size: 22px; }
  .family-heading h2>.icon { width: 32px; height: 32px; padding: 6px; }
  .category-section { border-radius: 19px; }
  .product-info { padding: 12px 10px; }
  .product-info h3 { font-size: 14px; }
  .product-description { font-size: 13px; }
  .price { font-size: 22px; }
  .price-options dd { font-size: 19px; }
  .price-options dt { font-size: 12px; }
  .promo-card .product-info h3 { font-size: 14px; }
  .bubble-flavors { font-size: 12px; }
}
@media (max-width: 359px) {
  .cover { padding-inline: 14px; }
  .cover-inner { gap: 10px; }
  .brand-logo { width: 105px; height: 116px; }
  .family-card { padding: 11px; min-height: 105px; }
  .family-copy h3 { font-size: 16px; }
}

/* 11. Promos legibles, agregados destacados y controles de navegación. */
.promo-card { grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); align-items: stretch; gap: 14px; padding: 12px; }
.promo-card .product-photo { border-radius: 14px; }
.promo-card .product-info { padding: 3px 0; }
.promo-card .product-info h3 { font-size: 17px; line-height: 1.25; }
.js-ready .promo-card .product-description { display: block; overflow: visible; -webkit-line-clamp: unset; }
.promo-card .description-toggle { display: none; }
.promo-card .product-description { margin-top: 7px; font-size: 13px; line-height: 1.5; }
.promo-card .price { margin-top: auto; padding-top: 12px; }
.promo-card .promo-label { background: #ffdf85; color: #593200; padding: 6px 10px; letter-spacing: .1em; }
.promo-card .photo-reference { font-size: 8px; left: 5px; bottom: 5px; padding: 3px 5px; }

.extras { position: relative; margin-top: 20px; padding: 20px; border: 1px solid #d7b6e2; border-top: 4px solid #c61072; border-radius: 18px; background: radial-gradient(ellipse at 100% 0,#ffe4ad80,transparent 65%),linear-gradient(120deg,#f5e9ff,#fff4f8); box-shadow: 0 6px 18px #5b22a80b; }
.extras h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; color: var(--deep); }
.extras h3::before { content: '✦'; display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: var(--purple); color: #ffe5a5; box-shadow: 0 3px 8px #5b22a826; }
.extras dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.extras dl>div { min-width: 0; padding: 12px; gap: 12px; border: 1px solid #ead9e9; border-radius: 12px; background: #ffffffdf; align-items: center; }
.extras dl>div:only-child { grid-column: 1 / -1; }
.extras dt { font-size: 14px; font-weight: 700; line-height: 1.4; color: #4e3567; overflow-wrap: anywhere; }
.extras dd { flex-shrink: 0; color: #a10b5a; background: #ffe8f4; border: 1px solid #f5c8df; padding: 5px 9px; border-radius: 9px; font-size: 17px; line-height: 1.3; }

.family-arrow { width: 48px; height: 32px; border-radius: 11px; color: white; background: var(--deep); border: 1px solid #ffffff80; box-shadow: 0 4px 10px #34136e22; transition: transform .2s,background .2s; }
.family-arrow .icon { width: 22px; height: 22px; }
.family-card:hover .family-arrow { transform: translateX(3px); background: var(--purple); }
.expand-icon { width: 44px; height: 44px; border-radius: 14px; color: var(--purple); background: linear-gradient(145deg,#fff,#f3e7fa); border: 1px solid #d8bde9; box-shadow: 0 3px 8px #34136e0b; transition: background .2s,box-shadow .2s; }
.expand-icon>.icon { width: 23px; height: 23px; }
.category-section[open]>.section-heading .expand-icon { color: white; background: linear-gradient(145deg,#7841ba,#5b22a8); border-color: #6d39ac; box-shadow: 0 4px 10px #5b22a82b; }
.family-heading>a { width: 44px; border: 1px solid #dcc5ea; border-radius: 14px; background: #fff; box-shadow: 0 3px 9px #34136e08; }
.family-heading>a:hover { background: #f0e4fa; }
.show-all { border-color: #d4b5e6; background: white; box-shadow: 0 3px 10px #34136e08; }
.show-all::after { content: ''; width: 8px; height: 8px; margin: -4px 2px 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.show-all[aria-expanded='true']::after { margin-top: 4px; transform: rotate(225deg); }
@media (max-width: 767px) {
  .extras dl { grid-template-columns: minmax(0,1fr); }
  .promo-card { grid-template-columns: minmax(96px,34%) minmax(0,1fr); }
}
@media (max-width: 600px) {
  .promo-card { gap: 12px; padding: 10px; }
  .promo-card .product-info h3 { font-size: 16px; }
  .promo-card .product-description { font-size: 13px; }
  .extras { padding: 15px; }
  .extras h3 { font-size: 18px; }
  .extras dl>div { padding: 10px; gap: 9px; }
  .extras dd { font-size: 16px; }
  .family-arrow { width: 42px; height: 29px; margin-top: 9px; }
}

/* Productos sin fotografía: tarjetas compactas, sin reservar un espacio de imagen. */
.product-grid-text { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .product-grid-text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .product-grid-text { grid-template-columns: minmax(0, 1fr); }
}

/* 12. Movimiento reducido e impresión completa, incluso con categorías cerradas. */
@media (prefers-reduced-motion: reduce) {
  .app-scroll { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .app-scroll { height: auto; overflow: visible; }
  .servimat-floating, .whatsapp-float, .browse-bar, .quick-nav, .families, .subcategory-nav, .show-all, .description-toggle { display: none; }
  .category-section::details-content { content-visibility: visible; }
  .product-card { break-inside: avoid; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .js-ready .product-description { display: block; }
}
