/* ==========================================================================
   TU ZONA TECNOLÓGICA — Hoja de estilos principal
   Enfoque: mobile-first, sin dependencias, alto contraste y carga ligera.
   ========================================================================== */

:root {
  --ink: #0B1F33;
  --navy: #071321;
  --blue: #0F5BD8;
  --blue-dark: #0B47A8;
  --blue-soft: #EAF2FF;
  --teal: #00A38F;
  --teal-bright: #7DE3D4;
  --amber: #FFB020;
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --line: #DDE7F3;
  --text: #23384D;
  --muted: #52667B;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.05);
  --shadow-md: 0 12px 30px rgba(11, 31, 51, 0.09);
  --shadow-lg: 0 26px 60px rgba(7, 19, 33, 0.28);
  --max-width: 1180px;
  --header-offset: 132px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1, h2, h3, p, dl, dd, dt, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #F59E0B;
  outline-offset: 2px;
  /* Anillo exterior oscuro: garantiza 3:1 también sobre fondos claros,
     donde el ámbar por sí solo no alcanza el mínimo. */
  box-shadow: 0 0 0 6px rgba(7, 19, 33, 0.95);
  border-radius: 6px;
}

::selection {
  background: #CDE4FF;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Barra de demostración ---------- */

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--navy);
  color: #C9D7E6;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.01em;
}

.demo-bar__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber);
  color: #3B2400;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand__logo {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.035em;
  color: var(--ink);
}

.brand__slogan {
  margin-top: 3px;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  background: #EEF4FB;
  color: var(--blue);
}

.header-cta {
  flex: none;
}

.cart-button {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.cart-button:hover {
  border-color: #B9D2EA;
  background: #F0F6FD;
}

.cart-button.has-items {
  border-color: #B9D2EA;
  box-shadow: 0 4px 14px rgba(15, 91, 216, 0.1);
}

.cart-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-button__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--blue-dark);
}

.cart-button__icon svg {
  width: 20px;
  height: 20px;
}

.cart-button__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(15, 91, 216, 0.22);
}

.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--light {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.btn--light:hover {
  background: #F1F7FF;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.13);
}

.btn--small {
  min-height: 40px;
  padding: 9px 17px;
  font-size: 13.5px;
}

.btn--outline {
  border-color: #C9DCF0;
  background: #F5FAFF;
  color: var(--blue-dark);
}

.btn--outline:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.btn--link {
  min-height: auto;
  padding: 7px 2px;
  border: 0;
  background: none;
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--link:hover {
  background: none;
  color: var(--blue);
  transform: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- Hero ---------- */

.hero-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  overflow: hidden;
  padding: clamp(28px, 5.6vw, 62px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 193, 170, 0.28), transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(31, 111, 235, 0.34), transparent 46%),
    linear-gradient(135deg, #071321 0%, #0B2A4A 56%, #0A3B4A 100%);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}

.hero__content {
  position: relative;
  z-index: 2;
  min-width: 0;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(125, 227, 212, 0.26);
  border-radius: 999px;
  background: rgba(125, 227, 212, 0.08);
  color: #B8FFF4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(125, 227, 212, 0.14);
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.05rem, 5.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--teal-bright);
}

.hero__lead {
  max-width: 50ch;
  margin-top: 18px;
  color: #C9DCEC;
  font-size: clamp(0.95rem, 1.8vw, 1.06rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 430px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stats div {
  min-width: 0;
}

.hero__stats dt {
  color: #93AEC6;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__stats dd {
  margin-top: 3px;
  color: #FFFFFF;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 520px;
  margin: 0 auto;
}

.hero__visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 38px rgba(2, 11, 22, 0.35));
}

.hero__badge {
  position: absolute;
  right: 4px;
  bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 19, 33, 0.78);
  color: #E7F3FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

/* ---------- Franja de características ---------- */

.trust {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 0;
}

.trust__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
}

.trust__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.trust__icon svg {
  width: 20px;
  height: 20px;
}

.trust__item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.trust__item span:not(.trust__icon) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* ---------- Secciones ---------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 74px) 20px 0;
}

#inicio,
#categorias,
#catalogo,
#contacto {
  scroll-margin-top: var(--header-offset);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 22px;
}

.section__eyebrow {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section__lead {
  max-width: 64ch;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Categorías ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #C2D8EF;
  box-shadow: var(--shadow-md);
}

.category-card[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 1px var(--blue) inset;
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #EEF4FB;
  color: var(--blue);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.category-card[aria-pressed="true"] .category-card__icon {
  background: var(--blue);
  color: #FFFFFF;
}

.category-card__icon svg {
  width: 20px;
  height: 20px;
}

.category-card__name {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.category-card__count {
  margin-top: auto;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

/* ---------- Franja promocional ---------- */

.promo-strip {
  max-width: var(--max-width);
  margin: clamp(34px, 5vw, 58px) auto 0;
  padding: 0 20px;
}

.promo-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 176, 32, 0.3), transparent 36%),
    linear-gradient(120deg, #0B47A8 0%, #0F5BD8 48%, #008C8C 100%);
  box-shadow: var(--shadow-md);
  color: #FFFFFF;
}

.promo-strip__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #FFF4D6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-strip h2 {
  max-width: 24ch;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.promo-strip p:not(.promo-strip__tag) {
  max-width: 62ch;
  margin-top: 9px;
  color: #D7E7FF;
  font-size: 13.5px;
}

.promo-strip .btn {
  flex: none;
}

/* ---------- Catálogo ---------- */

.section--catalog {
  padding-bottom: clamp(48px, 7vw, 84px);
}

.results-count {
  flex: none;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* ---------- Buscador, filtros y orden ---------- */

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-field__icon {
  position: absolute;
  left: 15px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-field__icon svg {
  width: 18px;
  height: 18px;
}

.search-field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 50px 12px 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-field__input::placeholder {
  color: #7C8FA3;
}

.search-field__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 91, 216, 0.14);
}

.search-field__input::-webkit-search-cancel-button,
.search-field__input::-ms-clear {
  display: none;
}

.search-field__clear {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #EEF4FB;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.search-field__clear:hover {
  background: #E1ECF9;
  color: var(--ink);
}

.search-field__clear svg {
  width: 16px;
  height: 16px;
}

.search-field__clear[hidden] {
  display: none;
}

.sort-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.sort-field label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sort-field select {
  width: 100%;
  min-height: 50px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352667B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 13px;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: var(--shadow-sm);
}

.chips {
  display: flex;
  gap: 8px;
  margin: 0 -20px;
  padding: 3px 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chip:hover {
  border-color: #B9D2EA;
  background: #F0F6FD;
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}

.chips--collections {
  padding-top: 0;
  padding-bottom: 10px;
}

.chips--categories {
  padding-top: 0;
}

.chip--collection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 91, 216, 0.1);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
}

.chip[aria-pressed="true"] .chip__count {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #C2D8EF;
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #EAF2FA;
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card--agotado .product-card__media img {
  filter: grayscale(0.72);
  opacity: 0.78;
}

.demo-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(7, 19, 33, 0.82);
  color: #FFE7B8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.product-card__photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(7, 19, 33, 0.78);
  color: #EAF2FF;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.badge-stack {
  position: absolute;
  top: 11px;
  right: 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge--disponible {
  background: rgba(15, 118, 110, 0.94);
  color: #FFFFFF;
}

.badge--disponible::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7DF3DF;
  content: "";
}

.badge--agotado {
  background: rgba(76, 91, 106, 0.94);
  color: #FFFFFF;
}

.badge--bajo-pedido {
  background: rgba(154, 71, 7, 0.95);
  color: #FFFFFF;
}

.badge--nuevo {
  background: #D8FBF5;
  color: #005A4E;
}

.badge--oferta {
  background: #FFE7B8;
  color: #6B3A00;
}

.badge--destacado {
  background: #E7EDFF;
  color: #16307A;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px 15px;
}

.product-card__cat {
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.product-card h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.product-card__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card__variants {
  overflow: hidden;
  color: #64788C;
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-card__variants strong {
  color: var(--text);
  font-weight: 600;
}

.product-card__promo {
  display: -webkit-box;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid #F0CF8A;
  border-radius: 8px;
  background: #FFF8E6;
  color: #6B3A00;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__stock {
  color: #9A4707;
  font-size: 10.5px;
  font-weight: 700;
}

.product-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.price {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.price-old {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.price-discount {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #FFE7B8;
  color: #6B3A00;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.price-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-card__availability {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.product-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.btn-card-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: #FFFFFF;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-card-add:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.btn-card-add:disabled {
  border-color: #D5E1EE;
  background: #E6EDF5;
  color: #52667B;
  cursor: not-allowed;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #C9DCF0;
  border-radius: 10px;
  background: #F5FAFF;
  color: var(--blue-dark);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-detail:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

/* ---------- Detalle de producto ---------- */

.product-dialog {
  width: min(940px, calc(100% - 28px));
  max-width: 940px;
  max-height: min(90dvh, 780px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.product-dialog:not([open]) {
  display: none;
}

.product-dialog[open] {
  animation: dialog-in 0.18s ease-out both;
}

.product-dialog::backdrop {
  background: rgba(7, 19, 33, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.product-dialog__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  max-height: min(90dvh, 780px);
  overflow-y: auto;
}

.product-dialog__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #EAF2FA;
}

.product-dialog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-dialog__thumbs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product-dialog__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(7, 19, 33, 0.24);
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.product-dialog__thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.product-dialog__thumb.is-active {
  border-color: var(--blue);
  outline: 2px solid #FFFFFF;
  opacity: 1;
}

.product-dialog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 31, 51, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(7, 19, 33, 0.18);
  cursor: pointer;
}

.product-dialog__close:hover {
  background: #FFFFFF;
}

.product-dialog__close svg {
  width: 18px;
  height: 18px;
}

.product-dialog__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.product-dialog__cat {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-dialog h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.product-dialog__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-dialog__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.product-dialog__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-dialog__price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.product-dialog__price {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-dialog__price-line .price-old {
  font-size: 13px;
}

.product-dialog__price-row .price-note {
  margin: 0;
}

.product-dialog__promo {
  padding: 9px 12px;
  border: 1px solid #F0CF8A;
  border-radius: 12px;
  background: #FFF8E6;
  color: #6B3A00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.product-dialog__facts {
  display: grid;
  gap: 10px;
}

.product-dialog__facts div {
  display: grid;
  gap: 2px;
}

.product-dialog__facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-dialog__facts dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.product-dialog__notice {
  padding: 11px 13px;
  border: 1px solid #F0CF8A;
  border-radius: 12px;
  background: #FFF8E6;
  color: #6B3A00;
  font-size: 11.5px;
  line-height: 1.5;
}

.product-dialog__variant-wrap {
  display: grid;
  gap: 5px;
}

.product-dialog__variant-wrap label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-dialog__variant-wrap select {
  width: 100%;
  min-height: 46px;
  padding: 10px 38px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352667B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 13px;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.product-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-dialog__actions .btn {
  flex: 1 1 180px;
  font-size: 13.5px;
  white-space: nowrap;
}

.product-dialog__back {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 12.5px;
}

body.dialog-open {
  overflow: hidden;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Carrito ---------- */

.cart-dialog {
  width: min(980px, calc(100% - 24px));
  max-width: 980px;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.cart-dialog:not([open]) {
  display: none;
}

.cart-dialog[open] {
  animation: dialog-in 0.18s ease-out both;
}

.cart-dialog::backdrop {
  background: rgba(7, 19, 33, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.cart-dialog__panel {
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 820px);
  overflow: hidden;
}

.cart-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-dialog__eyebrow {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-dialog h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cart-dialog__description {
  max-width: 58ch;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.cart-dialog__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #F5FAFF;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.cart-dialog__close:hover {
  border-color: #B9D2EA;
  background: var(--blue-soft);
}

.cart-dialog__close svg {
  width: 18px;
  height: 18px;
}

.cart-persistence {
  margin: 14px 22px 0;
  padding: 10px 12px;
  border: 1px solid #F0CF8A;
  border-radius: 10px;
  background: #FFF8E6;
  color: #6B3A00;
  font-size: 11px;
  line-height: 1.45;
}

.cart-empty {
  padding: 42px 24px 48px;
  text-align: center;
}

.cart-empty__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.cart-empty__icon svg {
  width: 30px;
  height: 30px;
}

.cart-empty h3 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-empty p {
  max-width: 46ch;
  margin: 7px auto 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-items {
  display: flex;
  flex-direction: column;
  padding: 4px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item__media {
  position: relative;
  align-self: start;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #EAF2FA;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__demo {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(7, 19, 33, 0.82);
  color: #FFE7B8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item__titles {
  min-width: 0;
}

.cart-item h3 {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cart-item__meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cart-item__remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #FFFFFF;
  color: #7A4A4A;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cart-item__remove:hover {
  border-color: #F1B5B5;
  background: #FFF2F2;
  color: #8A1C1C;
}

.cart-item__remove svg {
  width: 15px;
  height: 15px;
}

.cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
}

.cart-qty__button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: #F5FAFF;
  color: var(--blue-dark);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.cart-qty__button:hover:not(:disabled) {
  background: var(--blue-soft);
}

.cart-qty__button:disabled {
  background: #F8FAFD;
  color: #A9B8C8;
  cursor: not-allowed;
}

.cart-qty__value {
  min-width: 30px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.cart-item__field {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cart-item__label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-item__select {
  width: 100%;
  max-width: 210px;
  min-height: 34px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352667B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.cart-item__single {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.cart-item__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 11px;
}

.cart-item__subtotal {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cart-item__note {
  padding: 7px 9px;
  border: 1px solid #F0CF8A;
  border-radius: 9px;
  background: #FFF8E6;
  color: #6B3A00;
  font-size: 10.5px;
  line-height: 1.45;
}

.cart-item--issue .cart-item__note {
  border-color: #F1B5B5;
  background: #FFF2F2;
  color: #8A1C1C;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: #F7FAFE;
}

.cart-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.cart-summary__row strong {
  color: var(--ink);
  font-size: 13.5px;
}

.cart-summary__row--total {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
}

.cart-summary__row--total strong {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-summary__note {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.cart-issues {
  padding: 10px 12px;
  border: 1px solid #F1B5B5;
  border-radius: 11px;
  background: #FFF2F2;
  color: #8A1C1C;
  font-size: 11px;
}

.cart-issues__title {
  margin-bottom: 4px;
  font-weight: 800;
}

.cart-issues ul {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 16px;
  list-style: disc;
}

.cart-checkout-note {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.cart-checkout {
  width: 100%;
}

.cart-checkout[aria-disabled="true"] {
  border-color: #C9D6E6;
  background: #C9D6E6;
  color: #43566B;
  opacity: 1;
  cursor: not-allowed;
}

.cart-copy {
  width: 100%;
  min-height: 42px;
  font-size: 12.5px;
}

.cart-copy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-copy-box {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.cart-copy-box label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-copy-box textarea {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 11.5px;
  line-height: 1.45;
  resize: vertical;
}

.cart-demo-note {
  padding-top: 2px;
  color: #52667B;
  font-size: 9.5px;
  line-height: 1.4;
}

/* ---------- Aviso flotante ---------- */

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100% - 28px));
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 18px 40px rgba(7, 19, 33, 0.35);
  font-size: 12.5px;
  line-height: 1.4;
  transform: translateX(-50%);
}

.toast__text {
  flex: 1;
  min-width: 0;
}

.toast__action {
  flex: none;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #FFFFFF;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.toast__action:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- Estado vacío / error ---------- */

.empty-state {
  padding: 48px 24px;
  border: 1px dashed #C9D9EA;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 1.1rem;
}

.empty-state p {
  margin: 8px auto 18px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 14px;
}

.app-error {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 16px 20px;
  border: 1px solid #F1B5B5;
  border-radius: var(--radius-sm);
  background: #FFF2F2;
  color: #8A1C1C;
  font-size: 14px;
}

.noscript-note {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 16px 20px;
  border: 1px solid #F0CF8A;
  border-radius: var(--radius-sm);
  background: #FFF8E6;
  color: #6B3A00;
  font-size: 14px;
}

.noscript-note strong {
  display: block;
  margin-bottom: 4px;
}

.noscript-note p {
  margin: 0;
}

.app-error strong {
  display: block;
  margin-bottom: 6px;
}

.app-error ul {
  padding-left: 20px;
  list-style: disc;
}

/* ---------- Pie de página ---------- */

.footer {
  margin-top: clamp(48px, 7vw, 84px);
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 91, 216, 0.24), transparent 32%),
    var(--navy);
  color: #C3D3E5;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 62px) 20px 32px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer__logo img {
  width: 42px;
  height: 42px;
}

.footer__slogan {
  margin-top: 14px;
  color: #E4EEF9;
  font-size: 14px;
  font-weight: 600;
}

.footer__note {
  max-width: 46ch;
  margin-top: 10px;
  color: #93A8BF;
  font-size: 12px;
  line-height: 1.6;
}

.footer__col h3 {
  margin-bottom: 12px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer__links button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: #C3D3E5;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 0.16s ease;
}

.footer__links button:hover {
  color: #FFFFFF;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact li {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer__contact span {
  color: #93A8BF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__contact strong {
  color: #E4EEF9;
  font-size: 13px;
  font-weight: 600;
}

.footer__small {
  margin-top: 14px;
  max-width: 42ch;
  color: #93A8BF;
  font-size: 11.5px;
  line-height: 1.55;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8EA3BA;
  font-size: 11px;
}

/* ---------- Animaciones ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card,
.category-card {
  animation: fade-up 0.35s ease both;
}

.product-grid.is-ready .product-card {
  animation: none;
}

/* ---------- Adaptación a pantallas ---------- */

@media (min-width: 620px) {
  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: end;
    gap: 10px;
  }

  .trust__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust__item {
    padding: 10px;
  }

  .promo-strip__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
  }
}

@media (min-width: 760px) {
  .product-dialog__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    overflow: hidden;
  }

  .product-dialog__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .product-dialog__body {
    max-height: min(90dvh, 780px);
    padding: 28px;
    overflow-y: auto;
  }

  .cart-dialog__panel {
    max-height: min(88dvh, 820px);
  }

  .cart-content {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
    align-items: start;
  }

  .cart-summary {
    position: sticky;
    top: 0;
    min-height: 100%;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 900px) {
  :root {
    --header-offset: 96px;
  }

  .header__inner {
    flex-wrap: nowrap;
    padding: 12px 20px;
  }

  .brand__slogan {
    display: block;
  }

  .chips {
    flex-wrap: wrap;
    margin: 0;
    padding: 3px 0 16px;
    overflow: visible;
  }

  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 12px;
  }

  .hero__visual {
    margin: 0;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
  }

  .product-grid {
    gap: 16px;
  }
}

@media (max-width: 899px) {
  .header__inner {
    padding-bottom: 8px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .header-cta {
    display: none;
  }

  .nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    margin: 0 -4px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    padding: 8px 11px;
    font-size: 13.5px;
  }

  .hero {
    padding: clamp(26px, 5vw, 42px);
  }

  .hero__visual {
    max-width: 470px;
  }

  .hero__stats {
    max-width: none;
  }

  .category-card {
    min-height: 124px;
  }

  .section__head {
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  .brand__slogan {
    display: none;
  }

  .product-dialog {
    width: calc(100% - 16px);
    max-height: 92dvh;
    border-radius: 20px;
  }

  .product-dialog__panel {
    max-height: 92dvh;
  }

  .product-dialog__body {
    padding: 18px;
  }

  .product-dialog__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .cart-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .cart-dialog__panel {
    height: 100dvh;
    max-height: 100dvh;
  }

  .cart-dialog__head {
    padding: 16px;
  }

  .cart-dialog__description {
    font-size: 11px;
  }

  .cart-dialog__close {
    width: 38px;
    height: 38px;
  }

  .cart-persistence {
    margin: 12px 16px 0;
  }

  .cart-items {
    padding: 2px 16px;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .cart-summary {
    padding: 16px;
  }

  .brand__name {
    font-size: 13.5px;
  }

  .demo-bar {
    font-size: 11px;
  }

  .hero-wrap,
  .trust,
  .section,
  .promo-strip {
    padding-right: 14px;
    padding-left: 14px;
  }

  .chips {
    margin: 0 -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero {
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(1.92rem, 8.2vw, 2.6rem);
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__stats dd {
    font-size: 1.16rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .category-card {
    min-height: 118px;
    padding: 12px;
  }

  .category-card__name {
    font-size: 12.5px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card__desc {
    -webkit-line-clamp: 2;
  }

  .results-count {
    order: 3;
  }

  .footer__bottom {
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .cart-button__label {
    display: none;
  }

  .cart-button {
    padding: 7px 10px;
  }
}

@media (max-width: 380px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .nav a {
    padding: 8px 7px;
    font-size: 12.5px;
  }
}

/* ---------- Preferencias de movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Impresión ---------- */

@media print {
  .demo-bar,
  .site-header,
  .cart-button,
  .hero__actions,
  .catalog-toolbar,
  .chips,
  .product-card__actions,
  .product-dialog,
  .cart-dialog,
  .toast,
  .footer__links {
    display: none;
  }

  body {
    background: #FFFFFF;
  }

  .footer {
    background: #FFFFFF;
    color: var(--ink);
  }
}
