/* ==========================================================================
   VISIÓN POR MÉXICO — hoja de estilos
   Sistema: blanco/carbón como base, marfil en zonas editoriales,
   verde pino sólo como acento funcional. Tipografía: Barlow Condensed + DM Sans.
   ========================================================================== */

:root {
  --carbon: #171918;
  --white: #FFFFFF;
  --ivory: #F6F5F1;
  --stone: #E9E9E5;
  --gray: #626762;
  --pine: #47574D;
  --pine-dark: #334138;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --container: 1400px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 2px;

  --ease: cubic-bezier(.2, .6, .2, 1);
  --t-fast: 180ms;
  --t-base: 280ms;
  --t-slow: 480ms;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 56px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
html.smooth { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--carbon);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.gate-open,
body.menu-open,
body.dialog-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--ivory { background: var(--ivory); }
.section--carbon { background: var(--carbon); color: var(--white); }

/* Tipografía --------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pine);
}
.eyebrow--light { color: var(--stone); }

.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: .98;
  letter-spacing: -.005em;
  margin-top: 14px;
  text-wrap: balance;
}
.section__lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--gray);
  max-width: 60ch;
}
.section--carbon .section__lead { color: var(--stone); }
.section__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray);
}
.section__note::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--pine);
  vertical-align: middle;
  margin-right: 10px;
}

/* Botones ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.btn--primary { background: var(--pine); color: var(--white); border-color: var(--pine); }
.btn--primary:hover { background: var(--pine-dark); border-color: var(--pine-dark); }
.btn--primary:disabled { background: var(--stone); border-color: var(--stone); color: var(--gray); cursor: not-allowed; transform: none; }

.btn--outline { background: transparent; color: var(--carbon); border-color: var(--carbon); }
.btn--outline:hover { background: var(--carbon); color: var(--white); }

.btn--ghost { background: transparent; color: var(--gray); border-color: var(--stone); }
.btn--ghost:hover { color: var(--carbon); border-color: var(--carbon); }

.btn--light { background: var(--white); color: var(--carbon); border-color: var(--white); }
.btn--light:hover { background: var(--ivory); border-color: var(--ivory); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

.icon-wa { flex: none; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-height: 44px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--pine);
  text-decoration: none;
  position: relative;
}
.link-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(.35);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.link-btn:hover::after, .link-btn:focus-visible::after { transform: scaleX(1); }
.link-btn:hover { color: var(--pine-dark); }

/* --------------------------------------------------------------------------
   Acceso por estado (gate)
   -------------------------------------------------------------------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ivory);
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 32px var(--gutter);
  opacity: 1;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow);
}
.gate[hidden] { display: none; }
.gate.is-leaving { opacity: 0; visibility: hidden; }

.gate__inner {
  width: 100%;
  max-width: 520px;
  margin: auto;
  text-align: left;
}
.gate__logo { width: 96px; height: auto; margin-bottom: 36px; }
.gate__eyebrow { margin-bottom: 14px; }
.gate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 60px);
  line-height: .98;
  text-wrap: balance;
}
.gate__desc { margin-top: 18px; color: var(--gray); font-size: 17px; max-width: 48ch; }
.gate__form { margin-top: 36px; }

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--carbon);
  margin-bottom: 10px;
}
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--carbon);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 17px;
  color: var(--carbon);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field__input::placeholder { color: var(--gray); opacity: 1; }
.field__input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(71,87,77,.18); }

.combobox { position: relative; }
.combobox__clear {
  position: absolute;
  right: 6px; top: 6px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; background: none; color: var(--gray);
  border-radius: var(--radius);
}
.combobox__clear:hover { color: var(--carbon); background: var(--ivory); }

.listbox {
  position: absolute;
  left: 0; right: 0; top: calc(100% - 1px);
  max-height: 272px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--carbon);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 5;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 150ms var(--ease), transform 150ms var(--ease);
}
.listbox.is-open { opacity: 1; transform: none; pointer-events: auto; }
.listbox__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--stone);
  font-size: 16px;
}
.listbox__item:last-child { border-bottom: 0; }
.listbox__item mark { background: none; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--pine); text-underline-offset: 3px; }
.listbox__item:hover,
.listbox__item.is-active { background: var(--ivory); }
.listbox__item[aria-selected="true"] { color: var(--pine); font-weight: 600; }
.listbox__item[aria-selected="true"]::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pine);
  flex: none;
}
.listbox__empty { padding: 14px 16px; color: var(--gray); font-size: 15px; }

.gate__status { min-height: 24px; margin-top: 10px; font-size: 14px; color: var(--gray); }
.gate__status strong { color: var(--pine); font-weight: 600; }

.gate__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.gate__actions .btn { flex: 1 1 200px; }
.gate__note { margin-top: 16px; font-size: 14px; color: var(--gray); }
.gate__help {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--stone);
  font-size: 14px;
  color: var(--gray);
}
.gate__help a { color: var(--carbon); font-weight: 500; text-decoration-color: var(--pine); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  transition: box-shadow var(--t-base) var(--ease);
}
.header.is-stuck { box-shadow: 0 1px 0 var(--stone), 0 6px 18px -14px rgba(23,25,24,.35); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.header__brand { display: inline-flex; align-items: center; flex: none; }
.header__brand img { width: auto; height: 44px; }
@media (min-width: 768px) { .header__brand img { height: 50px; } }

.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--carbon);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 7px;
  height: 2px;
  background: var(--pine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--pine-dark); }

.nav__mobile-extra { display: none; }

.header__tools { display: flex; align-items: center; gap: 8px; }

.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 260px;
  padding: 0 12px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.state-chip:hover { border-color: var(--carbon); }
.state-chip__icon { color: var(--pine); flex: none; }
.state-chip__label { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state-chip__action { color: var(--pine); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.state-chip.is-empty .state-chip__label { color: var(--gray); }
.state-chip.is-empty .state-chip__action { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle__bar {
  width: 22px; height: 2px;
  background: var(--carbon);
  transition: transform var(--t-base) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--stone);
    padding: 20px var(--gutter) 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    width: 100%;
    height: 56px;
    padding: 0;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    border-bottom: 1px solid var(--stone);
  }
  .nav__link::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .nav__mobile-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
  .nav__contact { color: var(--gray); font-size: 15px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
  .menu-toggle { display: inline-flex; }
  .header__wa span { display: none; }
  .header__wa { padding: 0 11px; }
  .state-chip { max-width: 160px; padding: 0 10px; }
  .state-chip__action { display: none; }
}
@media (max-width: 479px) {
  .state-chip { max-width: 128px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 42fr 58fr; gap: clamp(40px, 5vw, 80px); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(50px, 6.6vw, 96px);
  line-height: .94;
  letter-spacing: -.01em;
  margin-top: 18px;
  text-wrap: balance;
}
.hero__title:focus { outline: none; }
.hero__sub { margin-top: 24px; font-size: clamp(17px, 1.4vw, 19px); color: var(--gray); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__figure {
  position: relative;
  background: var(--ivory);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
@media (min-width: 900px) { .hero__figure { aspect-ratio: 5 / 4; } }
.hero__figure img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* el fondo blanco de la foto se funde con el marfil sin alterar el armazón */
}
.hero__caption {
  position: absolute;
  left: 20px; bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}
@media (max-width: 899px) {
  .hero__figure { aspect-ratio: auto; display: block; padding-bottom: 6px; }
  .hero__figure img { aspect-ratio: 4 / 3; }
  .hero__caption { position: static; padding: 0 16px; }
}
.hero__caption-sep { width: 14px; height: 1px; background: var(--gray); }
.hero__caption-link {
  border: 0; background: none; padding: 0; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--pine); font-weight: 600; font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px;
}
.hero__caption-link:hover { color: var(--pine-dark); }

/* Entrada inicial */
[data-enter] { opacity: 0; transform: translateY(14px); }
.is-ready [data-enter] {
  animation: enter var(--t-slow) var(--ease) forwards;
}
.is-ready [data-enter]:nth-child(1) { animation-delay: 60ms; }
.is-ready [data-enter]:nth-child(2) { animation-delay: 140ms; }
.is-ready [data-enter]:nth-child(3) { animation-delay: 220ms; }
.is-ready [data-enter]:nth-child(4) { animation-delay: 300ms; }
.is-ready .hero__figure[data-enter] { animation-delay: 180ms; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* Franja */
.strip { border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 48px;
  padding-block: 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
}
.strip__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--pine); }
@media (max-width: 479px) { .strip__inner > span:not(:first-child) { display: none; } }

/* --------------------------------------------------------------------------
   Revelado al desplazarse
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Filtros
   -------------------------------------------------------------------------- */
.filters {
  display: grid;
  gap: 20px 32px;
  align-items: end;
  padding-block: 20px;
  border-top: 1px solid var(--carbon);
  border-bottom: 1px solid var(--stone);
  margin-bottom: 1px;
}
@media (min-width: 900px) {
  .filters { grid-template-columns: minmax(200px, 300px) 1fr auto auto; }
}
.filters__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.filters__input,
.filters__select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--carbon);
  transition: border-color var(--t-fast) var(--ease);
}
.filters__input:hover, .filters__select:hover { border-color: var(--gray); }
.filters__input:focus, .filters__select:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(71,87,77,.16); }
.filters__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.filters__select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171918' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 190px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--carbon);
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:hover span { border-color: var(--carbon); }
.chip input:checked + span { background: var(--carbon); border-color: var(--carbon); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--pine); outline-offset: 3px; }

.filters__count {
  font-size: 14px;
  color: var(--gray);
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Catálogo
   -------------------------------------------------------------------------- */
.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--stone); /* líneas finas entre tarjetas */
  border-bottom: 1px solid var(--stone);
  transition: opacity 150ms var(--ease);
}
.catalog__grid.is-updating { opacity: .55; }
@media (min-width: 600px) { .catalog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog__grid { grid-template-columns: repeat(3, 1fr); } }

.catalog__loading,
.catalog__error { grid-column: 1 / -1; background: var(--white); padding: 40px 0; color: var(--gray); }
.catalog__error { color: var(--carbon); }
.catalog__error a { color: var(--pine); }
.catalog__empty { padding: 40px 0; color: var(--gray); }

.card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.card.is-visible { opacity: 1; transform: none; }
.card__media {
  display: block;
  width: 100%;
  padding: clamp(16px, 3vw, 32px);
  border: 0;
  background: var(--white);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card__media:focus-visible { outline-offset: -4px; }
.card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 280ms var(--ease);
}
.card:hover .card__img { transform: scale(1.02); }

.card__meta {
  padding: 6px clamp(16px, 3vw, 28px) clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__brand { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.card__model {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  margin-top: 6px;
}
.card__cat { margin-top: 6px; font-size: 14px; color: var(--gray); }
.card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--stone);
}
.card__specs dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.card__specs dd { margin-top: 3px; font-size: 14px; font-weight: 500; }
.card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  min-height: 44px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--carbon);
}
.card__cta svg { transition: transform 240ms var(--ease); }
.card__cta span { position: relative; }
.card__cta span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--pine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.card:hover .card__cta span::after,
.card__cta:focus-visible span::after { transform: scaleX(1); }
.card:hover .card__cta svg { transform: translateX(4px); }

/* Celda de cierre cuando la última fila queda incompleta */
.catalog__fill {
  background: var(--ivory);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 220px;
}
.catalog__fill p { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.05; max-width: 22ch; }
.catalog__fill .link-btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   Tipos de lentes
   -------------------------------------------------------------------------- */
.lenses__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--carbon);
}
@media (min-width: 768px) {
  .lenses__list { grid-template-columns: repeat(3, 1fr); }
}
.lenses__item {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--stone);
}
@media (min-width: 768px) {
  .lenses__item { padding: 32px 28px 40px 0; border-bottom: 0; border-right: 1px solid var(--stone); }
  .lenses__item + .lenses__item { padding-left: 28px; }
  .lenses__item:last-child { border-right: 0; padding-right: 0; }
}
.lenses__num { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .1em; color: var(--pine); }
.lenses__name { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1; margin-top: 14px; }
.lenses__desc { margin-top: 14px; color: var(--gray); font-size: 16px; max-width: 34ch; }
.lenses__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
}
.lenses__foot .section__note { margin-top: 0; }

/* Módulo de tarifas (desactivado por configuración; ver script.js) */
.lens-pricing { margin-top: 40px; }
.lens-pricing table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lens-pricing th, .lens-pricing td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.lens-pricing th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.lens-pricing caption { text-align: left; font-weight: 600; margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   Cómo cotizar
   -------------------------------------------------------------------------- */
.steps__list {
  display: grid;
  gap: 1px;
  background: var(--stone);
  border-top: 1px solid var(--carbon);
  border-bottom: 1px solid var(--stone);
}
@media (min-width: 768px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }
.steps__item {
  background: var(--white);
  padding: 28px 0 28px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .steps__item { padding: 36px 32px 36px 0; }
  .steps__item + .steps__item { padding-left: 32px; }
}
.steps__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--stone);
  -webkit-text-stroke: 1px var(--carbon);
}
.steps__name { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; margin-top: 18px; }
.steps__desc { margin-top: 12px; color: var(--gray); max-width: 34ch; flex: 1; }
.steps__link { margin-top: 14px; }

/* --------------------------------------------------------------------------
   Visítanos / mapa
   -------------------------------------------------------------------------- */
.visit__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 55fr 45fr; gap: clamp(40px, 5vw, 80px); } }

.visit__data { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.visit__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
  overflow-wrap: anywhere;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: 15px;
}
@media (min-width: 480px) { .visit__row { grid-template-columns: 96px 1fr; } }
.visit__row dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); padding-top: 3px; }
.visit__row dd a { color: var(--white); text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.visit__row dd a:hover { text-decoration-color: var(--white); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.map {
  position: relative;
  background: var(--stone);
  height: 300px;
  border: 1px solid rgba(255,255,255,.14);
}
@media (min-width: 480px) { .map { height: 340px; } }
@media (min-width: 900px) { .map { height: 440px; } }
.map__frame { display: block; width: 100%; height: 100%; border: 0; }
.map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  background: var(--ivory);
  color: var(--carbon);
}
.map__fallback[hidden] { display: none; }
.map__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--stone);
}
.map__legend a { color: var(--white); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.map__legend a:hover { text-decoration-color: var(--white); }

/* --------------------------------------------------------------------------
   Contacto final
   -------------------------------------------------------------------------- */
.contact { padding-block: clamp(56px, 8vw, 96px); }
.contact__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr auto; gap: 48px; } }
.contact__title { margin-top: 0; font-size: clamp(34px, 4.4vw, 54px); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--carbon); padding-top: clamp(40px, 6vw, 72px); }
.footer__inner {
  display: grid;
  gap: 32px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; } }
.footer__brand img { width: 84px; height: auto; }
.footer__tagline { margin-top: 16px; font-size: 14px; color: var(--gray); }
.footer__heading { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; }
.footer__col li { font-size: 15px; line-height: 1.4; margin-bottom: 10px; overflow-wrap: anywhere; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pine); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: 20px;
  border-top: 1px solid var(--stone);
  font-size: 13px;
  color: var(--gray);
}
.footer__line { height: 10px; background: var(--carbon); }

/* --------------------------------------------------------------------------
   Ficha rápida (dialog): panel lateral en escritorio, modal en móvil
   -------------------------------------------------------------------------- */
.product {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--carbon);
  display: none;
  pointer-events: none;
}
.product[open] { display: block; pointer-events: auto; }
.product::backdrop { background: rgba(23,25,24,.42); }
.product::backdrop { opacity: 0; transition: opacity 240ms var(--ease); }
.product.is-shown::backdrop { opacity: 1; }

.product__panel {
  position: absolute;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* móvil: hoja inferior */
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}
.product.is-shown .product__panel { transform: none; opacity: 1; }
@media (min-width: 900px) {
  .product__panel {
    top: 0; right: 0; bottom: 0; left: auto;
    width: min(560px, 92vw);
    max-height: none;
    border-left: 1px solid var(--stone);
    transform: translateX(32px);
  }
}
.product__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 28px;
  border-bottom: 1px solid var(--stone);
  flex: none;
}
.product__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; background: none;
  border-radius: var(--radius);
}
.product__close:hover { background: var(--ivory); }
.product__body { overflow-y: auto; padding: 0 28px 32px; }

.product__figure {
  background: var(--white);
  margin-inline: -28px;
  padding: 24px 40px;
  border-bottom: 1px solid var(--stone);
}
.product__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.product__brand { margin-top: 24px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.product__model { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; margin-top: 6px; }
.product__cat { margin-top: 8px; color: var(--gray); font-size: 15px; }
.product__specs { margin-top: 24px; border-top: 1px solid var(--carbon); }
.product__specs div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--stone);
  font-size: 15px;
}
.product__specs dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); padding-top: 2px; }
.product__specs dd small { display: block; color: var(--gray); font-size: 12px; margin-top: 2px; }
.product__desc { margin-top: 20px; color: var(--gray); font-size: 15px; }
.product__alt { margin-top: 18px; }
.product__alt .link-btn { font-size: 14px; }
.product__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.product__actions .btn { width: 100%; }
.product__state { font-size: 13px; color: var(--gray); text-align: center; margin-top: 4px; }
.product__state strong { color: var(--carbon); font-weight: 600; }

/* --------------------------------------------------------------------------
   Utilidades y accesibilidad
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.smooth { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-enter], [data-reveal], .card { opacity: 1; transform: none; }
  .card:hover .card__img { transform: none; }
  .product__panel, .product.is-shown .product__panel { transform: none; }
}
