/* Portada de 5ocho: composición visual y navegación del catálogo. */
:root { --home-header-h: 72px; }
.home-main { padding: 0; }
.top {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(10, 16, 23, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.top .nav { position: relative; min-height: 72px; gap: clamp(12px, 2vw, 24px); }
.top .brand { flex: 0 0 auto; }
.primary-links { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 22px); white-space: nowrap; }
.primary-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 5px;
}
.primary-links a:hover, .primary-links a:focus-visible { color: var(--brand); }
.top .social-links { margin-left: auto; }
.mobile-menu { display: none; }
.header-search svg { flex: none; }
.home-main :is(#categorias, #inicio), .catalog-main :is(#catalogo, #search) { scroll-margin-top: calc(var(--home-header-h) + 116px); }
.catalog-main .toolbar { top: var(--home-header-h); z-index: 10; }
.catalog-intro { padding-top: clamp(18px, 2.8vw, 34px); padding-bottom: clamp(12px, 2vw, 20px); }
.catalog-intro .section-kicker { margin: 0 0 6px; color: var(--brand); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.catalog-intro h1 { max-width: 24ch; margin: 0; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.08; letter-spacing: -.04em; }
.catalog-intro p:last-child { max-width: 72ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.home-hero { padding: 26px 0 0; border: 0; }
.hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid #2d4960;
  border-radius: 24px;
  background: linear-gradient(118deg, #112637 0%, #10202d 51%, #132f42 100%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .2);
}
.hero-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -70px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 216, 255, .25) 0%, rgba(36, 216, 255, 0) 69%);
  pointer-events: none;
}
.hero-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .26;
  background: linear-gradient(155deg, transparent 62%, rgba(36, 216, 255, .13) 62.1%, transparent 62.5%);
  pointer-events: none;
}
.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, .86fr);
  gap: clamp(24px, 4vw, 58px);
  padding: clamp(30px, 4.8vw, 62px);
  min-height: inherit;
}
.hero-copy { min-width: 0; }
.home-hero .hero-eyebrow {
  display: inline-block;
  max-width: none;
  margin: 0 0 15px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.home-hero h1 {
  max-width: 14ch;
  margin: 0 0 18px;
  font-size: clamp(38px, 4.35vw, 62px);
  line-height: 1.04;
  letter-spacing: -.046em;
}
.home-hero h1 span { color: var(--brand); }
.home-hero .hero-lead {
  max-width: 55ch;
  color: #c5d6e3;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.hero-cta--primary { background: var(--brand); color: var(--on-brand); }
.hero-cta--primary:hover { background: #52e4ff; }
.hero-cta--secondary { border-color: #6c8fa4; background: rgba(8, 18, 27, .42); color: var(--text); }
.hero-cta--secondary:hover { border-color: var(--brand); background: rgba(36, 216, 255, .1); }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 6px 17px; margin: 19px 0 0; padding: 0; list-style: none; }
.hero-benefits li { display: flex; align-items: center; gap: 7px; color: #b5c9d8; font-size: 13px; }
.hero-benefits li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.home-hero .hero-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr);
  grid-template-rows: 1fr 1fr;
  height: 270px;
  width: 100%;
  gap: 12px;
  align-self: center;
}
.home-hero .shelf-item {
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 16px;
  background: #dde4eb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}
.home-hero .shelf-item--main { grid-row: 1 / 3; padding: 15px; }
.home-hero .shelf-item picture { display: block; width: 100%; height: 100%; }
.home-hero .shelf-item img { width: 100%; height: 100%; object-fit: contain; }
.home-categories, .home-featured { padding-top: clamp(28px, 3.5vw, 46px); min-width: 0; contain: layout; }
.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 17px; }
.home-section-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.034em; }
.home-section-head .section-kicker { margin: 0 0 4px; color: var(--brand); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.section-more { display: inline-flex; align-items: center; min-height: 24px; color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.section-more:hover { color: #8becff; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; min-width: 0; max-width: 100%; }
.category-card {
  display: grid;
  grid-template-rows: 100px auto;
  min-width: 0;
  min-height: 156px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .16s, background .16s, transform .16s;
}
.category-card:hover { border-color: var(--brand); background: var(--surface-2); transform: translateY(-2px); }
.category-card__image { display: grid; place-items: center; margin: 8px 8px 0; padding: 6px; overflow: hidden; border-radius: 10px; background: var(--plate); }
.category-card__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.category-card__label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 7px 10px; font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.category-card--all { border-color: #326580; background: linear-gradient(160deg, #152c3b, #11202e); }
.category-card__all-icon { display: grid; place-items: center; margin: 8px 8px 0; border-radius: 10px; background: rgba(36, 216, 255, .08); color: var(--brand); }
.category-card__all-icon svg { width: 40px; height: 40px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; max-width: 100%; }
.featured-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
.featured-card__image { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 16px; background: var(--plate); }
.featured-card__image picture { display: block; width: 100%; height: 100%; }
.featured-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .2s; }
.featured-card:hover .featured-card__image img { transform: scale(1.025); }
.featured-card__body { display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 17px; }
.featured-card__category { align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: rgba(36, 216, 255, .11); color: var(--brand); font-size: 12px; font-weight: 750; }
.featured-card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.featured-card h3 a { display: inline-block; min-height: 24px; padding-block: 2px; color: var(--text); text-decoration: none; }
.featured-card h3 a:hover { color: var(--brand); }
.featured-card__price { margin-top: auto; font-size: 23px; line-height: 1.3; font-weight: 800; font-variant-numeric: tabular-nums; }
.featured-card__price small { color: var(--muted); font-size: 12px; font-weight: 600; }
.featured-card__actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: 8px; margin-top: 7px; }
.featured-card__actions a { display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--brand); border-radius: 9px; font-size: 13px; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; }
.featured-card__buy { background: var(--brand); color: var(--on-brand); }
.featured-card__buy:hover { background: #52e4ff; }
.featured-card__actions .featured-card__consult { border-color: var(--line-strong); color: var(--text); }
.featured-card__consult:hover { border-color: var(--brand); color: var(--brand); }
.swipe-hint { display: none; }
.catalog-shell { padding-top: clamp(32px, 4vw, 52px); padding-bottom: 76px; }
.catalog-shell .section-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.catalog-shell .card { border-radius: 16px; box-shadow: 0 10px 22px rgba(0, 0, 0, .1); }
.catalog-shell .price small { font-size: 13px; }
.catalog-shell .category { font-size: 13px; }
@media (min-width: 901px) {
  .top .brand-copy { display: none; }
}
@media (max-width: 1240px) {
  .top .social-link { width: 42px; height: 44px; padding: 0; justify-content: center; }
  .top .social-link > span:not(.header-cart-count) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (max-width: 1050px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); gap: 24px; }
  .home-hero h1 { font-size: clamp(38px, 4.8vw, 52px); }
}
@media (max-width: 900px) {
  .primary-links { display: none; }
  .mobile-menu { display: block; flex: 0 0 auto; order: 4; }
  .mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { border-color: var(--brand); color: var(--brand); }
  .mobile-menu nav { position: absolute; top: calc(100% - 1px); right: clamp(16px, 3vw, 40px); display: grid; gap: 3px; min-width: min(300px, 90vw); padding: 10px; border: 1px solid #3a5268; border-radius: 12px; background: #0c141d; box-shadow: 0 24px 48px rgba(0, 0, 0, .62); z-index: 14; }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 7px; color: var(--text); font-size: 14px; font-weight: 650; text-decoration: none; }
  .mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { background: var(--surface-2); color: var(--brand); }
  .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero .hero-shelf { display: none; }
  .hero-panel { min-height: 0; }
  .home-hero h1 { max-width: 19ch; }
}
@media (max-width: 700px) {
  .top .brand-copy { display: none; }
  .home-hero { padding-top: 14px; }
  .home-hero .hero-grid { padding: clamp(22px, 5vw, 34px); }
  .home-hero h1 { max-width: 18ch; font-size: clamp(34px, 8vw, 46px); }
  .hero-benefits { margin-top: 15px; }
  .home-section-head { align-items: start; }
  .home-section-head .section-more { max-width: 98px; justify-content: flex-end; white-space: normal; text-align: right; line-height: 1.25; }
  .category-grid, .featured-grid { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; padding: 4px 4px 12px; scroll-padding: 4px; }
  .category-grid { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, minmax(0, auto)); grid-auto-columns: clamp(122px, 36vw, 158px); gap: 10px; }
  .category-card { scroll-snap-align: start; min-height: 145px; grid-template-rows: 91px auto; }
  .featured-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(270px, 78vw); gap: 12px; }
  .featured-card { scroll-snap-align: start; }
  .featured-card__image { aspect-ratio: 3 / 1.65; }
  .swipe-hint { display: block; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
  .catalog-main .toolbar { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .catalog-shell { padding-top: 10px; padding-bottom: 64px; }
  .home-main :is(#categorias, #inicio), .catalog-main :is(#catalogo, #search) { scroll-margin-top: calc(var(--home-header-h) + 12px); }
}
@media (max-width: 600px) {
  .top .nav { min-height: 58px; gap: 6px; }
  .top .social-links { gap: 4px; }
  .top .social-link { width: 44px; height: 44px; }
  .top .social-link.instagram, .top .social-link.policy-link { display: none; }
  .top .social-link img, .top .header-search svg { width: 20px; height: 20px; }
  .catalog-intro { padding-top: 10px; padding-bottom: 6px; }
  .catalog-intro .section-kicker { margin-bottom: 3px; }
  .catalog-intro h1 { font-size: clamp(24px, 6.2vw, 30px); margin-bottom: 0; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-cta { min-height: 44px; padding-inline: 14px; }
  .featured-card__body { padding: 14px; }
}
@media (max-width: 380px) {
  .top .logo-img { height: 28px; }
  .home-hero h1 { font-size: 33px; }
  .hero-cta { flex: 1 1 auto; }
  .featured-grid { grid-auto-columns: minmax(265px, 86vw); }
}
@media (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
  .top { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top .nav { min-height: 54px; }
  .catalog-main .toolbar { position: static; }
  .home-hero { padding-top: 10px; }
  .home-hero .hero-grid { padding: 18px 22px; }
  .home-hero h1 { max-width: 25ch; margin-bottom: 8px; font-size: clamp(30px, 4.4vw, 42px); }
  .home-hero .hero-eyebrow { margin-bottom: 6px; }
  .home-hero .hero-lead { max-width: 72ch; font-size: 14px; }
  .home-hero .hero-shelf, .hero-benefits { display: none; }
  .hero-actions { margin-top: 12px; }
  .home-categories, .home-featured { padding-top: 22px; }
  .category-grid { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-columns: auto; overflow: visible; }
  .featured-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .swipe-hint { display: none; }
  .catalog-shell { padding-top: 22px; }
  .home-main :is(#categorias, #inicio), .catalog-main :is(#catalogo, #search) { scroll-margin-top: 12px; }
  .catalog-intro { padding-top: 18px; padding-bottom: 12px; }
}
@media (max-width: 700px) and (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
  .category-grid { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, minmax(0, auto)); grid-auto-columns: 135px; overflow-x: auto; }
  .featured-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(255px, 42vw); overflow-x: auto; }
  .swipe-hint { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .category-card, .featured-card__image img, .hero-cta { transition: none; }
  .category-card:hover { transform: none; }
  .featured-card:hover .featured-card__image img { transform: none; }
  .category-grid, .featured-grid { scroll-snap-type: none; }
}
.featured-card__stock--upcoming{color:#a78bfa}

.category-card__image--illustration{background:linear-gradient(145deg,#102b3a,#101a24);color:#24d8ff}.category-drawing{display:block;width:min(112px,82%);height:68px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.category-drawing .fill{fill:rgba(36,216,255,.09)}.category-drawing .accent{stroke:#a78bfa}.category-drawing .accent-fill{fill:rgba(167,139,250,.16);stroke:#a78bfa}
.category-grid, .featured-grid { scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.category-grid::-webkit-scrollbar, .featured-grid::-webkit-scrollbar { display: block; height: 6px; }
.category-grid::-webkit-scrollbar-thumb, .featured-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.category-card, .featured-card { scroll-snap-align: start; }

.category-card__label { word-break: normal; overflow-wrap: break-word; hyphens: none; }
.delivery-type-badge{display:inline-flex;align-items:center;gap:.3rem;width:max-content;padding:.2rem .45rem;border:1px solid;border-radius:999px;font-size:.72rem;font-weight:700;white-space:nowrap}.delivery-type-badge svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.delivery-type-badge--physical{color:#77d6a5;background:rgba(36,140,89,.13);border-color:rgba(87,196,135,.38)}.delivery-type-badge--digital{color:#35d5f2;background:rgba(30,173,205,.12);border-color:rgba(32,210,239,.36)}
