/* Public storefront refresh. Loaded after the original component stylesheet. */
:root {
    --bg-body: #f5f7fb;
    --bg-card: #ffffff;
    --bg-surface: #edf2f7;
    --bg-hover: #e4ebf3;
    --primary: #1564da;
    --secondary: #0d4198;
    --accent: #0d8b73;
    --text-primary: #17243a;
    --text-secondary: #52627a;
    --text-muted: #68788f;
    --border: #e2e8f0;
    --border-hover: #b9c9df;
    --gradient: linear-gradient(135deg, #216ee2, #1351b7);
    --gradient-accent: linear-gradient(135deg, #0d8b73, #1469cc);
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --glow-primary: 0 18px 45px rgba(25, 62, 113, .09);
    --glow-secondary: 0 18px 45px rgba(25, 62, 113, .09);
    --radius-md: 12px;
    --radius-lg: 18px;
    --container-max-width: 1240px;
    --section-padding-y: 76px;
}

html { scroll-padding-top: 100px; }
body { background: var(--bg-body); }
.container.section { padding-inline: 24px; }
::selection { background: #b9d7ff; color: #102f60; }
a:hover { color: var(--secondary); }
:focus-visible { outline: 3px solid #8bb8ff; outline-offset: 3px; }

.btn { border-radius: 11px; font-weight: 700; letter-spacing: -.01em; box-shadow: none; }
.btn--primary { color: #fff; background: #1766d5; box-shadow: 0 10px 24px rgba(23, 102, 213, .18); }
.btn--primary:hover { background: #0d55bd; box-shadow: 0 14px 30px rgba(23, 102, 213, .22); filter: none; }
.btn--secondary { background: #fff; border: 1px solid #cfdaea; color: #203d61; }
.btn--secondary:hover { background: #f2f6fc; color: #173d76; }
.btn--outline { border: 1px solid #cad8ec; color: #175ac0; background: #fff; }
.btn--outline:hover { color: #0e4da8; background: #eff5ff; box-shadow: none; }
.btn--whatsapp { background: #e8f8ef; border: 1px solid #bce8cc; color: #087243; box-shadow: none; }
.btn--whatsapp:hover { background: #d8f2e3; color: #07623a; box-shadow: none; }

.navbar, .navbar.scrolled {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e6ebf2;
    box-shadow: 0 2px 18px rgba(27, 47, 73, .045);
    padding: 10px 0;
    backdrop-filter: blur(14px);
}
.navbar__inner { min-height: 55px; }
.navbar__brand-icon { border-radius: 12px; background: #1766d5; color: #fff; box-shadow: none; font-size: 1rem; font-weight: 800; }
.navbar__brand-text { font-size: 1.17rem; letter-spacing: -.04em; color: #17243a; }
.navbar__menu { gap: 2px; }
.navbar__link { color: #44566f; font-size: .91rem; font-weight: 600; }
.navbar__link--active, .navbar__link[aria-current="page"] { background: #edf4ff; color: #155ac0; }
.navbar__link:not(.navbar__link--active):not([aria-current="page"]):hover { background: transparent; color: #155ac0; }
.navbar__dropdown.open .navbar__dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.navbar__search-btn, .navbar__toggle { color: #263d5c; border-radius: 10px; }
.navbar__search { background: #fff; border-color: #dbe3ee; }
.navbar__search:focus-within { background: #fff; border-color: #8bb8f0; box-shadow: 0 0 0 3px rgba(23, 102, 213, .09); }
.navbar__search-input { color: #263d5c; }
.navbar__search-input::placeholder { color: #8190a5; }
.navbar__search .navbar__search-btn { color: #263d5c; }
.navbar__dropdown-menu { background: #fff; box-shadow: 0 22px 50px rgba(21, 45, 80, .15); }
.navbar__mobile-menu { background: #fff; }
.navbar__mobile-link { color: #253b56; }
.navbar__mobile-label { color: #64748b; }

.hero {
    min-height: auto;
    padding: 142px 0 72px;
    background: radial-gradient(circle at 88% 18%, #e0efff 0, transparent 37%), linear-gradient(180deg, #fff 0, #f4f7fb 100%);
}
.hero__layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: 58px; }
.hero__content { max-width: none; padding: 0; text-align: left; }
.eyebrow, .section__eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #155bbf; font-weight: 800; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { padding: 9px 13px; border: 1px solid #c9dfff; background: #edf5ff; border-radius: 100px; margin-bottom: 24px; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: #1670e5; }
.hero__title { font-size: clamp(3.1rem, 5.5vw, 5.25rem); line-height: 1.03; letter-spacing: -.068em; color: #152945; background: none; -webkit-text-fill-color: currentColor; margin: 0 0 24px; animation: none; }
.hero__title span { color: #1766d5; }
.hero__subtitle { font-size: 1.08rem; color: #56677f; line-height: 1.72; max-width: 560px; margin: 0 0 30px; animation: none; }
.hero__actions { justify-content: flex-start; gap: 12px; flex-wrap: wrap; margin: 0; animation: none; }
.hero__actions .btn { padding: 15px 21px; font-size: .93rem; }
.hero__note { margin-top: 29px; display: flex; align-items: center; gap: 9px; font-size: .84rem; color: #61718a; }
.hero__note i { color: #0f9a73; }
.hero__visual { display: block; position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1.04; background: #101923; box-shadow: 0 28px 65px rgba(18, 39, 72, .19); color: #fff; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hero__visual:hover img { transform: scale(1.035); }
.hero__visual-caption { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(13, 25, 42, .83); backdrop-filter: blur(10px); }
.hero__visual-caption span { display: grid; gap: 3px; }
.hero__visual-caption small { color: #b7cbe2; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
.hero__visual-caption strong { color: #fff; font-size: .96rem; }
.hero__visual-caption i { font-size: 1.1rem; color: #fff; }

.service-strip { background: #fff; border-block: 1px solid #e6edf5; }
.service-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-strip__grid > div { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 112px; padding: 19px 24px; }
.service-strip__grid > div + div { border-left: 1px solid #e6edf5; }
.service-strip__grid i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #1766d5; background: #edf4ff; font-size: 1.08rem; }
.service-strip__grid span { display: grid; gap: 2px; }
.service-strip__grid strong { color: #273a55; font-size: .88rem; }
.service-strip__grid small { color: #76869b; font-size: .78rem; }

.section__header { text-align: left; max-width: none; margin: 0 0 30px; }
.section__title { background: none; -webkit-text-fill-color: currentColor; color: #172b46; font-size: clamp(1.9rem, 3vw, 2.55rem); letter-spacing: -.045em; margin: 7px 0 8px; }
.section__subtitle { font-size: .98rem; color: #6b7c92; margin: 0; }
#categorias { background: #fff; }
#destacados { background: #f5f7fb; }
#productos { background: #fff; }
.catalog-filter { background: #f7f9fc; border: 1px solid #e1e8f2; border-radius: 18px; padding: 22px; margin-bottom: 22px; }
.catalog-filter__intro { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.catalog-filter__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: #1766d5; background: #e7f0ff; border-radius: 12px; }
.catalog-filter__intro div { display: grid; gap: 2px; }
.catalog-filter__intro strong { color: #203653; font-size: .96rem; }
.catalog-filter__intro small { color: #718199; font-size: .8rem; }
.catalog-filter__fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 12px; }
.catalog-filter__field { display: grid; gap: 7px; min-width: 0; }
.catalog-filter__field > span:first-child { color: #52647d; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.catalog-filter__field input, .catalog-filter__field select { width: 100%; min-width: 0; height: 44px; border: 1px solid #d8e2ee; border-radius: 10px; background: #fff; color: #233955; padding: 0 12px; font-size: .86rem; }
.catalog-filter__field input::placeholder { color: #94a2b4; }
.catalog-filter__input-wrap { position: relative; }
.catalog-filter__input-wrap i { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #8191a7; font-size: .85rem; }
.catalog-filter__input-wrap input { padding-left: 38px; }
.catalog-filter__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.catalog-filter__checks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.catalog-filter__checks label { display: inline-flex; align-items: center; gap: 8px; color: #435771; font-size: .83rem; font-weight: 600; cursor: pointer; }
.catalog-filter__checks input { accent-color: #1766d5; width: 16px; height: 16px; cursor: pointer; }
.catalog-filter__reset { border: 0; background: none; color: #1766d5; font-size: .8rem; font-weight: 800; cursor: pointer; padding: 7px 0; white-space: nowrap; }
.catalog-filter__reset:hover { text-decoration: underline; }
.catalog-results { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; color: #79879b; font-size: .82rem; }
.catalog-results strong { color: #243b5a; font-size: .92rem; }
.catalog-empty { text-align: center; border: 1px dashed #cbd9eb; border-radius: 18px; padding: 48px 22px; background: #f9fbfe; }
.catalog-empty i { color: #8ca9d1; font-size: 2rem; margin-bottom: 15px; }
.catalog-empty h3 { color: #253c5c; margin-bottom: 8px; }
.catalog-empty p { color: #687b95; }
.catalog-empty[hidden], #catalogGrid .product-card[hidden] { display: none !important; }
.categories-grid { gap: 14px; }
.category-card { background: #f6f8fc; border: 1px solid #e4eaf2; border-radius: 16px; box-shadow: none; padding: 25px 18px; }
.category-card:hover { background: #edf5ff; border-color: #a8cbfb; box-shadow: 0 12px 26px rgba(22, 76, 142, .07); transform: translateY(-3px); }
.category-card__icon { color: #1766d5; background: #e5efff; box-shadow: none; }
.category-card__name { color: #253a56; font-size: .95rem; }
.category-card__count { color: #75869b; }
.category-carousel__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.category-carousel__heading { min-width: 0; }
.category-carousel__controls { display: flex; align-items: center; gap: 9px; flex: none; padding-bottom: 2px; }
.category-carousel__button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #dbe5f1; border-radius: 50%; background: #fff; color: #1b5db7; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.category-carousel__button:not(:disabled):hover { transform: translateY(-2px); border-color: #1766d5; background: #1766d5; color: #fff; }
.category-carousel__button:disabled { cursor: default; opacity: .38; }
.category-carousel__viewport { overflow: hidden; margin: -6px -2px 0; }
.category-carousel__track { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.category-carousel__track::-webkit-scrollbar { display: none; }
.category-carousel__track:focus-visible { outline: 3px solid #8bb8ff; outline-offset: -2px; }
.category-carousel__track .category-card { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; scroll-snap-align: start; }

.products-grid { gap: 18px; }
.product-card { border: 1px solid #e3e9f1; box-shadow: 0 7px 24px rgba(25, 48, 78, .045); border-radius: 16px; }
.product-card:hover { transform: translateY(-4px); border-color: #b9cfe9; box-shadow: 0 18px 38px rgba(25, 48, 78, .105); }
.product-card__image { aspect-ratio: 1.2; background: #16212d; }
.product-card__image img { object-fit: cover; }
.product-card:hover .product-card__image img { transform: scale(1.045); }
.product-card__content { padding: 19px; }
.product-card__category { color: #647b9a; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.product-card__name { font-size: 1rem; color: #223653; line-height: 1.35; margin-bottom: 15px; }
.product-card__pricing { margin-bottom: 14px; gap: 8px; }
.product-card__price { color: #162c4a; font-size: 1.3rem; letter-spacing: -.035em; }
.product-card__old-price { color: #8b9aab; }
.product-card__discount { color: #087958; background: #e5f7ee; }
.product-card__badge { background: #eaf3ff; color: #1459b6; letter-spacing: .05em; }
.product-card__badge--offer, .product-card__badge--new { background: #eaf3ff !important; color: #1459b6 !important; }
.product-card__btn { font-size: .82rem; border-radius: 9px; padding: 10px 12px; }
.product-card__btn--view { background: #edf4ff; color: #1558ba; }
.product-card__btn--whatsapp { background: #e4f6eb; color: #087444; }

.advice-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: #142c4c; border-radius: 20px; padding: 42px 48px; box-shadow: 0 18px 40px rgba(13, 39, 74, .14); }
.advice-banner .section__eyebrow { color: #8bc2ff; }
.advice-banner h2 { color: #fff; margin: 8px 0; font-size: clamp(1.7rem, 2.5vw, 2.3rem); letter-spacing: -.04em; }
.advice-banner p { margin: 0; color: #becfe3; }
.advice-banner .btn { flex: none; background: #fff; color: #174678; box-shadow: none; }
.advice-banner .btn:hover { background: #eaf4ff; color: #174678; }

.product-detail__gallery { background: #14202d; }
.product-detail__title, .product-detail__price { color: #1b304c; }
.product-page { padding-top: 120px; }
.product-detail { min-width: 0; }
.product-detail__gallery, .product-detail__info { min-width: 0; }
.product-detail__pricing { flex-wrap: wrap; }
.page-categoria > .container.section, .page-buscar > .container.section { padding-top: 120px; }
.footer { background: #101f34; color: #fff; }
.footer__title, .footer__brand-text { color: #fff; }
.footer__text, .footer__link, .footer__bottom { color: #afbed0; }
.footer__link:hover { color: #fff; }
.whatsapp-float__btn { box-shadow: 0 12px 25px rgba(13, 107, 59, .2); }

@media (max-width: 1024px) {
    .navbar__search { flex-basis: 220px; }
    .navbar__actions { gap: 8px; }
    .category-carousel__track .category-card { flex-basis: calc((100% - 32px) / 3); }
    .hero__layout { gap: 32px; }
    .hero__title { font-size: clamp(2.8rem, 5vw, 4.1rem); }
    .service-strip__grid > div { justify-content: flex-start; }
    .catalog-filter__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .navbar__actions { gap: 6px; }
    .navbar__search { flex: 1 1 0; min-width: 0; }
    .navbar__search-input { padding-left: 11px; font-size: .82rem; }
    .navbar__search .navbar__search-btn { width: 38px; }
    .category-carousel__track .category-card { flex-basis: calc((100% - 16px) / 2); }
    :root { --section-padding-y: 56px; }
    .hero { padding: 118px 0 52px; }
    .hero__layout { grid-template-columns: 1fr; gap: 32px; }
    .hero__content { text-align: left; }
    .hero__title { max-width: 650px; }
    .hero__visual { max-width: 620px; width: 100%; aspect-ratio: 1.4; }
    .service-strip__grid { grid-template-columns: 1fr; padding-block: 10px; }
    .service-strip__grid > div { min-height: 76px; padding: 10px 0; }
    .service-strip__grid > div + div { border-left: 0; border-top: 1px solid #e6edf5; }
    .advice-banner { align-items: flex-start; flex-direction: column; padding: 32px; }
    .product-detail__gallery, .product-detail__info { width: 100%; }
    .product-detail__gallery img { width: 100%; }
}
@media (max-width: 480px) {
    .container { padding-inline: 18px; }
    .container.section { padding-inline: 18px; }
    .navbar__inner { gap: 7px; }
    .navbar__brand { gap: 8px; }
    .navbar__brand-text { font-size: 1rem; white-space: nowrap; }
    .navbar__actions { gap: 3px; }
    .navbar__search { flex: 0 1 132px; }
    .navbar__search-input { padding-inline: 9px 2px; font-size: .78rem; }
    .navbar__search .navbar__search-btn { width: 34px; }
    .navbar__admin-btn, .navbar__toggle { width: 34px; height: 38px; }
    .category-carousel__header { align-items: flex-start; flex-direction: column; gap: 16px; }
    .category-carousel__controls { align-self: flex-end; }
    .category-carousel__track .category-card { flex-basis: 82%; }
    .hero { padding-top: 104px; }
    .hero__title { font-size: 2.85rem; }
    .hero__actions { align-items: stretch; flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .hero__visual { aspect-ratio: 1; }
    .hero__visual-caption { left: 12px; right: 12px; bottom: 12px; padding: 11px 13px; }
    .advice-banner { padding: 25px; }
    .advice-banner .btn { width: 100%; }
    .catalog-filter { padding: 18px; }
    .catalog-filter__fields { grid-template-columns: 1fr; }
    .catalog-filter__bottom { align-items: flex-start; flex-direction: column; }
    .catalog-filter__checks { gap: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
