:root {
  --zalo-red: #ff1616;
  /* Rojo oscuro para paneles/nav: blanco sobre este tono pasa WCAG AA */
  --zalo-red-panel: #c40e0e;
  --zalo-red-dark: #9f0a0a;
  --zalo-yellow: #ffd400;
  /* Texto sobre amarillo marca: rojo de marca (buen contraste AA) */
  --zalo-on-yellow: #b00000;
  --zalo-ink: #1a1a1a;
  --zalo-muted: #333333;
  --zalo-bg: #ffffff;
  --zalo-soft: #f5f5f5;
  --zalo-footer: #1c1c1c;
  --header-h: 78px;
  --font: 'Open Sans', system-ui, sans-serif;
  --max: 1400px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--zalo-ink);
  background: var(--zalo-bg);
  line-height: 1.5;
}

::selection {
  background: var(--zalo-yellow);
  color: #111;
}
::-moz-selection {
  background: var(--zalo-yellow);
  color: #111;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--zalo-red); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip:focus { left: 0; }

/* —— Header —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--zalo-red-panel);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: .55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  height: 52px;
  width: auto;
  background: linear-gradient(180deg, #fff8c8 0%, #fff 55%);
  border-radius: 6px;
  padding: 4px 8px;
}

.socials {
  display: flex;
  gap: .45rem;
}
.socials a {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  display: grid; place-items: center;
  font-size: 13px;
  color: #fff;
}
.socials a:hover { background: #fff; color: var(--zalo-red); }

.nav {
  display: flex;
  gap: 1.1rem;
  margin-left: .5rem;
  flex: 1;
}
.nav a {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
/* Amarillo solo como subrayado: el texto sigue blanco (mejor contraste en rojo) */
.nav a.active,
.nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--zalo-yellow);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  min-width: 220px;
  max-width: 320px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.search-ico {
  display: grid; place-items: center;
  width: 40px; color: #64748b;
  font-size: .95rem;
}
.search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: .7rem .9rem .7rem 0;
  font: inherit;
  color: #333;
  min-width: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.account summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.account summary::-webkit-details-marker { display: none; }
.account summary::after { content: none; }
.account { position: relative; }
.account-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #fff; color: #222;
  min-width: 160px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: .4rem 0;
  z-index: 20;
}
.account-menu a {
  display: block;
  padding: .55rem 1rem;
  color: #222;
}
.account-menu a:hover { background: #f2f2f2; color: var(--zalo-red); }

.cart {
  position: relative;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.cart span {
  position: absolute;
  top: -6px; right: -10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.burger {
  display: none;
  width: 34px;
  padding: 4px;
  color: #fff;
  font-size: 1.25rem;
  place-items: center;
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  min-height: clamp(320px, 42vw, 520px);
  overflow: hidden; /* clips slides only; info-strip is a sibling */
  color: #fff;
  display: grid;
  place-items: center;
  padding-bottom: 4.5rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 7s linear;
}
.hero-slide.on {
  opacity: 1;
  transform: scale(1);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 92%);
  text-align: left;
  padding: 2rem 0 3.5rem;
  animation: heroIn .7s ease both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-kicker {
  margin: 0 0 .35rem;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  letter-spacing: .04em;
  text-shadow:
    0 0 2px rgba(0,0,0,.9),
    0 2px 8px rgba(0,0,0,.75);
  border-left: 4px solid var(--zalo-yellow);
  padding-left: .55rem;
}

.hero-title {
  margin: 0 0 1.4rem;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0,0,0,.85),
    0 6px 18px rgba(0,0,0,.55);
}

.search-lg {
  max-width: 640px;
  min-width: 0;
  width: 100%;
  border-radius: 12px;
}
.search-lg input { padding: 1rem .9rem 1rem 0; font-size: 1.05rem; }

.hero-dots {
  position: absolute;
  left: 1.5rem;
  bottom: 6.75rem; /* encima del solape del cuadro rojo */
  z-index: 10;
  display: flex;
  gap: .55rem;
}
.hero-dots button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  opacity: .85;
}
.hero-dots button::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}
.hero-dots button.on::after {
  background: transparent;
  box-shadow: inset 0 0 0 2px #fff;
}

.hero-arrows {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.hero-arrows button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background .25s ease;
  display: grid;
  place-items: center;
}
.hero-arrows button:hover {
  background: var(--zalo-red);
  border-color: var(--zalo-red);
}

/* —— Info strip: rectángulo rojo centrado, se sobrepone al hero —— */
/* Band pulls up; transparent so hero photo shows beside the red card. */
.info-band {
  background: transparent;
  overflow: visible;
  margin-top: -7.5rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 2.25rem;
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: min(1140px, 92vw);
  width: 100%;
  margin: 0 auto;
  background: var(--zalo-red-panel);
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.info-strip ::selection {
  background: rgba(255, 212, 0, .45);
  color: #fff;
}
.info-strip ::-moz-selection {
  background: rgba(255, 212, 0, .45);
  color: #fff;
}
.info-card {
  padding: 2.25rem 1.75rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.22);
  text-align: center;
}
.info-card:last-child { border-right: 0; }
.info-ico {
  width: 68px;
  height: 68px;
  margin: 0 auto .85rem;
  background-color: var(--zalo-yellow);
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.info-ico img {
  /* La máscara usa el SVG; la img solo aporta la forma vía CSS mask */
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}
.info-ico-horarios {
  -webkit-mask-image: url(images/icons/horarios.svg);
  mask-image: url(images/icons/horarios.svg);
}
.info-ico-quienes {
  -webkit-mask-image: url(images/icons/quienes.svg);
  mask-image: url(images/icons/quienes.svg);
}
.info-ico-contacto {
  -webkit-mask-image: url(images/icons/contacto.svg);
  mask-image: url(images/icons/contacto.svg);
}
.info-checks {
  display: grid;
  gap: .65rem;
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}
.info-checks li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}
.info-checks .fa-check {
  color: var(--zalo-yellow);
  margin-top: .2rem;
  flex-shrink: 0;
}
.info-phones a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  /* Sublíneas blancas: amarillo sobre rojo panel no aporta contraste al texto */
  border-bottom: 2px solid rgba(255, 255, 255, .92);
  padding-bottom: .15rem;
  line-height: 1.2;
}
.info-phones .fa-whatsapp {
  color: #fff;
  font-size: 1.25rem;
  border: 0;
}
.info-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}
.info-card > p:not(.info-badge) {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}
.info-badge {
  display: inline-block !important;
  margin: .35rem 0 .7rem !important;
  padding: .45rem 1rem !important;
  background: #ffd400 !important;
  color: #b00000 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  line-height: 1.3;
  max-width: 100%;
  -webkit-text-fill-color: #b00000;
}
.info-phones {
  display: grid;
  gap: .65rem;
  margin: 0 0 1.15rem;
  justify-items: center;
}
.info-phones a:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.info-phones a:hover .fa-whatsapp { color: #fff; }
.info-phones a:focus-visible {
  outline: 3px solid var(--zalo-yellow);
  outline-offset: 4px;
}

/* —— Categories —— */
.cats,
.products {
  background: #fff;
  padding: 2.75rem 1.25rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: .06em;
}

.section-rule {
  width: 72px;
  height: 3px;
  background: var(--zalo-red);
  margin: .75rem auto 1.75rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}

.cat-tile {
  position: relative;
  min-height: 170px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  color: #fff;
  transition: transform .3s ease;
}
.cat-tile:hover { transform: translateY(-2px); color: #fff; }
.cat-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 35%, rgba(0,0,0,.78) 100%),
    rgba(0,0,0,.28);
  transition: background .3s ease;
}
.cat-tile:hover .cat-overlay {
  background:
    linear-gradient(180deg, rgba(196,14,14,.35) 20%, rgba(196,14,14,.88) 100%),
    rgba(196,14,14,.45);
}
.cat-label {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}

.seg-row {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.seg-card {
  background: var(--zalo-red-panel);
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
  transition: filter .25s ease, transform .25s ease;
}
.seg-card:hover { filter: brightness(1.05); transform: translateY(-1px); }
.seg-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.seg-ico img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

/* —— Products —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem 1rem 1.25rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.product-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.product-media {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-bottom: .75rem;
}
.product-media img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}
.product-cat {
  margin: 0;
  color: #595959;
  font-size: .8rem;
  font-weight: 600;
}
.product-card h3 {
  margin: .35rem 0 .75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.product-more {
  color: #b00000;
  font-weight: 700;
  font-size: .9rem;
}

/* —— Brands marquee —— */
.brands {
  background: var(--zalo-soft);
  padding: 2.5rem 0 2.75rem;
  overflow: hidden;
}
.brands-title {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .02em;
}
.brands-track-wrap { overflow: hidden; }
.brands-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 45s linear infinite;
  align-items: center;
  padding: 0 1rem;
}
.brand-item {
  width: 120px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #0f172a;
  border-radius: 8px;
  padding: .5rem .75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.brand-item img {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
}
.brands-empty {
  margin: 0;
  padding: 1rem 1.25rem;
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  width: min(420px, 90vw);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Footer —— */
.footer {
  background: var(--zalo-footer);
  color: #ddd;
  padding: 3rem 1.25rem 0;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
.footer-about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-about img {
  width: 72px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}
.footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: .05em;
  font-size: 1.05rem;
  font-weight: 700;
}
.footer-subheading {
  margin: 1rem 0 .4rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}
.footer li,
.footer p {
  font-size: .92rem;
  color: #bdbdbd;
  margin-bottom: .35rem;
}
.footer a:hover { color: #fff; }
.footer-socials {
  display: flex;
  gap: .75rem;
  font-size: 1.15rem;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #555;
  display: grid;
  place-items: center;
  color: #ddd;
}
.footer-socials a:hover { color: #fff; border-color: #fff; }
.footer-contact {
  display: grid;
  gap: .45rem;
  margin: 0 0 .75rem;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .92rem;
  color: #bdbdbd;
}
.footer-contact i {
  color: var(--zalo-yellow);
  margin-top: .2rem;
  width: 1rem;
  text-align: center;
}
.footer-links a {
  color: #bdbdbd;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.footer-links i { color: var(--zalo-red); width: .85rem; }
.footer-copy {
  margin-top: 2.5rem;
  border-top: 1px solid #333;
  padding: 1rem 0;
  text-align: center;
  font-size: .85rem;
  color: #888;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .top-search { display: none; }
  .cat-grid,
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .socials { display: none; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: var(--header-h);
    background: var(--zalo-red-dark);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: .75rem;
  }
  .nav.open { display: flex; }
  .burger { display: grid; }
  .info-band {
    margin-top: -5rem;
    padding: 0 1rem 1.75rem;
  }
  .info-strip {
    margin: 0 auto;
  }
  .info-strip,
  .seg-row,
  .footer-grid { grid-template-columns: 1fr; }
  .info-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .info-card:last-child { border-bottom: 0; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.6rem); }
}

@media (max-width: 520px) {
  .cat-grid,
  .product-grid { grid-template-columns: 1fr; }
  .account { display: none; }
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 1rem;
  pointer-events: none;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: #1c1c1c;
  color: #f5f5f5;
  border-top: 4px solid var(--zalo-yellow);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.85rem;
}
.cookie-banner-inner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.cookie-banner-inner a {
  color: var(--zalo-yellow);
  text-decoration: underline;
}
.cookie-banner-inner code {
  font-size: 0.85em;
  color: #fff;
}
.cookie-banner-detail {
  font-size: 0.85rem !important;
  color: #ccc;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}
.cookie-btn {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 1.1rem;
}
.cookie-btn-ok {
  background: var(--zalo-yellow);
  color: var(--zalo-on-yellow);
}
.cookie-btn-ok:hover { filter: brightness(1.05); }
.cookie-btn-ghost {
  background: transparent;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cookie-btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}
