/* Óptica Magnora — Manual de marca: Riviera Blue + Soft Ivory, Archivo / Poppins */

:root {
  --navy: #12324f;
  --navy-deep: #0d2438;
  --ivory: #ebe2cf;
  --sage: #75985f;
  --terracotta: #d26934;
  --sand: #cea87c;
  --ink: #12324f;
  --muted: #5d6b76;
  --line: #ddd4c2;
  --surface: #ebe2cf;
  --wash: #f4eee2;
  --sale: #d26934;
  --wa: #25d366;
  --max: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-ui: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

.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;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Top bar —— */
.topbar {
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  gap: 1rem;
}

.topbar__link {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.topbar__link:hover {
  opacity: 1;
}

.topbar__link--right {
  justify-self: end;
}

.topbar__promo {
  text-align: center;
  opacity: 0.9;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.78rem;
}

.topbar__promo a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .topbar__link {
    display: none;
  }
  .topbar__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 0.45rem;
  }
}

/* —— Header —— */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ivory);
}

.header {
  position: relative;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-chrome.is-scrolled,
.header.is-scrolled {
  box-shadow: 0 8px 30px rgba(8, 28, 46, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.25rem 0.2rem;
}

.logo__full {
  width: 96px;
  height: auto;
}

.logo__mark {
  display: none;
  width: 44px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 1.2rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  color: var(--navy);
}

.nav a:hover::after,
.nav a.is-current::after {
  transform: scaleX(1);
}

.nav a.is-current {
  color: var(--navy);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.nav-pill:hover {
  background: transparent;
  color: var(--navy);
  transform: translateY(-1px);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--wash);
  border-color: var(--sand);
}

.icon-btn--wa {
  color: var(--wa);
  border-color: rgba(37, 211, 102, 0.35);
}

.icon-btn--wa:hover {
  background: rgba(37, 211, 102, 0.08);
  border-color: var(--wa);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--ivory);
  box-shadow: 0 16px 32px rgba(18, 50, 79, 0.08);
  z-index: 81;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.9rem 0;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .nav,
  .nav-pill {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header__inner {
    gap: 0.75rem;
  }
  .header__actions {
    margin-left: auto;
    gap: 0.45rem;
  }
  .container {
    width: min(100% - 1.5rem, var(--max));
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--light {
  background: var(--ivory);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--wash);
}

.btn--dark {
  background: var(--navy);
  color: #fff;
}

.btn--dark:hover {
  background: var(--navy-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* —— Eye chart (used inside booking) —— */
.chart {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2.35rem 1.6rem 1.5rem;
}

.chart__row {
  display: grid;
  grid-template-columns: 64px 1fr 22px;
  align-items: center;
  gap: 0.4rem;
}

.chart__acuity,
.chart__n {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.chart__n {
  text-align: right;
}

.chart__letters {
  font-family: var(--font-display);
  color: var(--navy);
  text-align: center;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chart__row--1 { padding: 0.1rem 0 0.5rem; }
.chart__row--1 .chart__letters { font-size: 5.2rem; letter-spacing: 0; }
.chart__row--2 { padding: 0.15rem 0 0.5rem; }
.chart__row--2 .chart__letters { font-size: 2.7rem; }
.chart__row--3 { padding: 0.35rem 0; }
.chart__row--3 .chart__letters { font-size: 1.65rem; }
.chart__row--4 { padding: 0.35rem 0; }
.chart__row--4 .chart__letters { font-size: 1.3rem; }
.chart__row--5 { padding: 0.35rem 0; }
.chart__row--5 .chart__letters { font-size: 1.08rem; }
.chart__row--6 { padding: 0.4rem 0; }
.chart__row--6 .chart__letters { font-size: 0.9rem; letter-spacing: 0.04em; }
.chart__row--7 { padding: 0.4rem 0 0.1rem; }
.chart__row--7 .chart__letters { font-size: 0.84rem; letter-spacing: 0.05em; }

.chart__bar {
  display: flex;
  height: 6px;
  margin: 1.4rem 0.1rem 0;
  overflow: hidden;
}

.chart__bar span:first-child {
  flex: 1;
  background: var(--navy);
}

.chart__bar span:last-child {
  flex: 1;
  background: var(--line);
}

@media (max-width: 860px) {
  .chart {
    max-width: 420px;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .chart {
    padding: 1.75rem 1rem 1.25rem;
  }
  .chart__row {
    grid-template-columns: 48px 1fr 16px;
  }
  .chart__row--1 .chart__letters { font-size: 4rem; }
  .chart__row--2 .chart__letters { font-size: 2.1rem; }
  .chart__row--3 .chart__letters { font-size: 1.3rem; }
  .chart__row--4 .chart__letters { font-size: 1.08rem; }
  .chart__row--5 .chart__letters { font-size: 0.95rem; }
  .chart__row--6 .chart__letters { font-size: 0.76rem; }
  .chart__row--7 .chart__letters { font-size: 0.72rem; }
}

/* —— Hero (slim commercial banner) —— */
.hero {
  position: relative;
  height: clamp(360px, 46vw, 520px);
  overflow: hidden;
  background: #fff;
}

.hero__slider {
  position: relative;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  transition: transform 6s linear;
  filter: saturate(1.05) contrast(1.02);
}

.hero__slide.is-active .hero__img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 50, 79, 0.58) 0%, rgba(18, 50, 79, 0.3) 50%, rgba(18, 50, 79, 0.42) 100%),
    linear-gradient(180deg, rgba(18, 50, 79, 0.1) 0%, transparent 45%, rgba(18, 50, 79, 0.32) 100%);
}

.hero__slide--banner {
  background: #fff;
}

.hero__slide--banner .hero__img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: right center;
  background: #fff;
  filter: none;
  transform: none;
}

.hero__slide--banner.is-active .hero__img {
  transform: none;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  padding: 2rem 0 5.75rem;
  box-sizing: border-box;
}

.hero__content .btn {
  pointer-events: auto;
}

.hero__brand {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5.4vw, 4.15rem);
  line-height: 1.02;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__copy h1 em {
  font-style: italic;
  font-weight: 500;
}

.hero__sub {
  margin-top: 1rem;
  margin-bottom: 1.55rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  max-width: 32ch;
  font-weight: 400;
  line-height: 1.55;
}

.hero__offer {
  text-align: right;
  color: #fff;
  align-self: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.hero__offer-label,
.hero__offer-note {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 500;
}

.hero__price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 3.7rem);
  font-weight: 700;
  line-height: 1;
  margin: 0.25rem 0;
  letter-spacing: 0;
}

.hero__price--sm {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.hero__arrow {
  position: absolute;
  top: 42%;
  z-index: 3;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero__arrow--prev {
  left: 1rem;
}

.hero__arrow--next {
  right: 1rem;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 5.4rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.hero__dot.is-active {
  background: #fff;
}

@media (max-width: 700px) {
  .hero__slide--banner .hero__img {
    object-fit: cover;
    object-position: right 20%;
  }
  .hero {
    height: 460px;
  }
  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem 0 5.5rem;
    gap: 1.25rem;
  }
  .hero__offer {
    text-align: left;
    align-self: flex-start;
  }
  .hero__copy h1 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }
  .hero__price {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .hero__arrow {
    display: none;
  }
}

/* Entrance animation for active slide copy */
.hero__slide.is-active .hero__copy,
.hero__slide.is-active .hero__offer {
  animation: rise 0.8s var(--ease) both;
}

.hero__slide.is-active .hero__offer {
  animation-delay: 0.12s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— After hero —— */
.after-hero {
  position: relative;
  margin-top: -48px;
  z-index: 4;
  padding-bottom: 0;
}

.agenda-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
  padding: 1.35rem 1.75rem;
  box-shadow: 0 12px 40px rgba(8, 28, 46, 0.1);
  border: 1px solid var(--line);
}

.agenda-bar__actions,
.book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.agenda-bar__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
}

.agenda-bar__text p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
  font-weight: 400;
}

.benefits {
  margin-top: 1.5rem;
  background: var(--navy);
  color: #fff;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1.35;
}

.benefit:last-child {
  border-right: none;
}

.benefit svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}

.benefit span {
  display: block;
  opacity: 0.65;
  font-size: 0.75rem;
  margin-top: 0.15rem;
  font-weight: 300;
}

@media (max-width: 900px) {
  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }
  .benefit:nth-child(2) {
    border-right: none;
  }
  .benefit:nth-child(1),
  .benefit:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 600px) {
  .agenda-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .benefits__grid {
    grid-template-columns: 1fr;
  }
  .benefit {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .benefit:last-child {
    border-bottom: none;
  }
}

/* —— Products —— */
.products {
  padding: 4.5rem 0 3.5rem;
  background: #fff;
}

.section-head {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 1.15rem;
  line-height: 1.1;
}

.section-lead {
  color: var(--muted);
  max-width: 44ch;
  font-weight: 400;
  font-size: 1.05rem;
  margin-top: -0.35rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.section-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
}

.tabs {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.tab {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.85rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab.is-active,
.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  border-bottom-color: var(--navy);
}

.link-more {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

button.link-more {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.link-more:hover {
  color: var(--navy);
}

.product-grid {
  --product-min: 220px;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(var(--product-min), 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  padding-top: 1.75rem;
}

.product-grid.is-active,
.product-grid.shop-grid {
  display: grid;
}

/* Tablet: cards un poco más angostas → caben 3 con aire */
@media (max-width: 1100px) {
  .product-grid {
    --product-min: 200px;
  }
}

/* Tablet chica / phablet: prioriza 2–3 según ancho real */
@media (max-width: 900px) {
  .product-grid {
    --product-min: 180px;
  }
}

/* Celular: siempre 2 por fila (pedido comercial) */
@media (max-width: 640px) {
  .product-grid.is-active,
  .product-grid.shop-grid {
    --product-min: calc(50% - 0.4rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .product__media img {
    max-height: 100px;
  }

  .product__info {
    padding: 0 0.65rem 0.8rem;
  }

  .product__info p {
    font-size: 0.75rem;
  }

  .product__info strong {
    font-size: 0.85rem;
    margin-bottom: 0.55rem;
  }

  .btn--sm {
    padding: 0.55rem 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .badge {
    font-size: 0.55rem;
  }

  .whatsapp-float {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 50px;
    height: 50px;
  }
}

.product {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
}

.product:hover {
  border-color: #c9d0d8;
  box-shadow: 0 16px 40px rgba(8, 28, 46, 0.07);
  transform: translateY(-3px);
}

.product__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.85rem 0.85rem 0;
  min-height: 2.4rem;
}

.badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  padding: 0.3rem 0.45rem;
}

.badge--muted {
  background: var(--ivory);
  color: var(--muted);
}

.badge--sale {
  background: var(--terracotta);
  color: #fff;
}

.product__media {
  aspect-ratio: 1 / 0.9;
  display: grid;
  place-items: center;
  padding: 1.1rem 1rem 0.5rem;
  overflow: hidden;
  background: #fff;
}

.product__media img {
  max-height: 150px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}

.product:hover .product__media img {
  transform: scale(1.04);
}

.product__info {
  padding: 0 1rem 1.15rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product__info h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.product__info p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.15rem 0 0.45rem;
  font-weight: 400;
}

.product__info strong {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product__variant {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  margin: -0.15rem 0 0.4rem;
}

.product__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
}

.product__swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #c9d0d8;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.product__swatch.is-active {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.product__add {
  width: 100%;
}

.btn--sm {
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
}

/* —— Look mosaic (vista, no clickable) —— */
.styles {
  padding: 4.5rem 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.look-mosaic {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
  height: min(44rem, 78vw);
}

.look-mosaic__cell {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #f4efe4;
  pointer-events: none;
  min-height: 0;
}

.look-mosaic__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.look-mosaic__cell--a {
  grid-column: 1;
  grid-row: 1;
}

.look-mosaic__cell--a img {
  object-position: 52% 44%;
}

.look-mosaic__cell--d {
  grid-column: 3;
  grid-row: 1;
}

.look-mosaic__cell--d img {
  object-position: 42% 30%;
}

.look-mosaic__cell--lentes {
  grid-column: 2;
  grid-row: 1 / 3;
  background: #fff;
}

.look-mosaic__cell--lentes img {
  object-fit: cover;
  object-position: center;
}

.look-mosaic__cell--c {
  grid-column: 1;
  grid-row: 2;
}

.look-mosaic__cell--c img {
  object-position: 48% 28%;
}

.look-mosaic__cell--b {
  grid-column: 3;
  grid-row: 2;
}

.look-mosaic__cell--b img {
  object-position: 50% 28%;
}

@media (max-width: 700px) {
  .look-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.55rem;
    height: auto;
  }
  .look-mosaic__cell--a {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 3 / 4;
  }
  .look-mosaic__cell--d {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 3 / 4;
  }
  .look-mosaic__cell--lentes {
    grid-column: 1 / -1;
    grid-row: 2;
    aspect-ratio: 4 / 3;
  }
  .look-mosaic__cell--c {
    grid-column: 1;
    grid-row: 3;
    aspect-ratio: 3 / 4;
  }
  .look-mosaic__cell--b {
    grid-column: 2;
    grid-row: 3;
    aspect-ratio: 3 / 4;
  }
  .agenda-bar .btn {
    width: 100%;
  }
  .section-head__row {
    align-items: flex-start;
  }
  .shop-toolbar {
    align-items: flex-start;
  }
  .shop-toolbar .tabs,
  .section-head__row .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
  }
  .tab {
    white-space: nowrap;
    font-size: 0.68rem;
  }
}

/* —— Store —— */
.store {
  padding: 5rem 0;
}

.store__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.store__address {
  font-size: 1.15rem;
  margin: 1.25rem 0 1.75rem;
  line-height: 1.55;
  color: var(--ink);
}

.store__address a {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}

.hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hours dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.hours dd {
  font-size: 0.95rem;
  line-height: 1.55;
}

.store__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store__social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.store__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.store__social a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.store__map {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--wash);
}

.store__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

.store__map-link {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  background: #fff;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 6px 20px rgba(8, 28, 46, 0.12);
  transition: background 0.2s, color 0.2s;
}

.store__map-link:hover {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 860px) {
  .store__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .store__map {
    order: -1;
    min-height: 280px;
  }
  .store__map iframe {
    min-height: 280px;
  }
  .hours {
    grid-template-columns: 1fr;
  }
}

/* —— Order tracking —— */
.track {
  background: var(--wash);
  padding: 5rem 0 5.5rem;
  text-align: center;
}

.track__inner {
  max-width: 640px;
}

.track .section-title {
  margin-bottom: 0.85rem;
}

.track__lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 auto 1.75rem;
  max-width: 42ch;
}

.track__form {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.track__form input {
  flex: 1 1 260px;
  max-width: 340px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.92rem 1.2rem;
  border-radius: 999px;
}

.track__form input:focus {
  outline: 1px solid var(--navy);
  border-color: var(--navy);
}

.track__form .btn {
  border-radius: 999px;
  padding-inline: 1.55rem;
}

.track__note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.track__result {
  margin-top: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.35rem 1.5rem;
  text-align: left;
}

.track__result h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.track__kind {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.track__result p {
  color: var(--muted);
  line-height: 1.5;
}

.track__result.is-error {
  border-color: #d9c7c7;
}

.track__result.is-error p {
  color: var(--navy);
}

@media (max-width: 700px) {
  .track {
    padding: 3.5rem 0 4rem;
  }
  .track__form .btn {
    width: 100%;
  }
  .track__form input {
    max-width: none;
  }
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
  background: var(--ivory);
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo nav social"
    "copy copy copy";
  align-items: center;
  gap: 1rem 1.5rem;
}

.logo--footer {
  grid-area: logo;
}

.logo--footer .logo__full {
  width: 88px;
}

.logo--footer .logo__mark {
  display: none;
}

.footer__nav {
  grid-area: nav;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--navy);
}

.footer__social {
  grid-area: social;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__social a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer__social a:hover {
  opacity: 0.65;
}

.footer__copy {
  grid-area: copy;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.footer__staff {
  margin-left: 0.7rem;
  color: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  opacity: 0.45;
  text-decoration: none;
}

.footer__staff:hover {
  opacity: 0.9;
  color: var(--navy);
}

@media (max-width: 700px) {
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "nav"
      "social"
      "copy";
    justify-items: start;
  }
  .footer__nav,
  .footer__social {
    justify-content: flex-start;
  }
}

/* —— WhatsApp float —— */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(31, 170, 85, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 34px rgba(31, 170, 85, 0.45);
}

body.cart-open .whatsapp-float {
  opacity: 0;
  pointer-events: none;
}

/* —— Cart —— */
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.icon-btn {
  position: relative;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 28, 46, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 80;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(8, 28, 46, 0.12);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}

.cart-drawer__items {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.35rem;
}

.cart-empty,
.shop-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 0 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--wash);
  border: 1px solid var(--line);
}

.cart-item__info h4 {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.cart-item__info p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.15rem 0 0.35rem;
}

.cart-item__info strong {
  font-size: 0.92rem;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  border: 1px solid var(--line);
  padding: 0.2rem 0.35rem;
}

.cart-item__qty button {
  width: 24px;
  height: 24px;
  color: var(--navy);
  font-size: 1rem;
}

.cart-item__remove {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.cart-drawer__foot {
  padding: 1.15rem 1.35rem 1.5rem;
  border-top: 1px solid var(--line);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.95rem;
  font-size: 0.95rem;
}

.cart-drawer__total strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.cart-drawer__foot .btn {
  width: 100%;
}

.cart-note {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* —— Shop page —— */
.shop-hero {
  padding: 2.5rem 0 1.25rem;
  background: #fff;
}

.shop-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.shop-hero .section-title {
  margin-bottom: 0.35rem;
}

.shop-hero .section-lead {
  margin: 0;
}

.shop-count {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.shop {
  padding: 2rem 0 4.5rem;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
}

.shop-toolbar__side {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-sort select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2312324f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0.45rem 1.85rem 0.45rem 0.7rem;
  cursor: pointer;
}

.shop-filters {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem 1.2rem;
  margin-bottom: 0.35rem;
}

.shop-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.shop-filters__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.shop-filters__clear {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.shop-filters__clear:hover {
  text-decoration: underline;
}

.shop-filters__groups {
  display: grid;
  gap: 0.85rem;
}

.shop-filter {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}

.shop-filter__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.4rem;
}

.shop-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.shop-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.38rem 0.72rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.shop-chip:hover {
  border-color: var(--navy);
}

.shop-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (max-width: 700px) {
  .shop-filter {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .shop-filter__label {
    padding-top: 0;
  }
  .shop-toolbar__side {
    width: 100%;
    justify-content: space-between;
  }
}

/* —— Booking —— */
.book {
  padding: 4.5rem 0 5rem;
  background: var(--wash);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h, 72px) + 8px);
}

.book__top .chart {
  padding: 1.85rem 1.25rem 1.2rem;
}

.book__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 3rem;
  align-items: center;
}

.book__intro .section-title {
  margin-bottom: 0.85rem;
}

.book__intro .section-lead {
  margin-bottom: 1.5rem;
}

.book-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 28, 46, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
}

.book-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.book-modal {
  position: fixed;
  z-index: 110;
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 820px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s, transform 0.35s var(--ease);
}

.book-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.book-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.book-modal__head h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.book-modal__head .eyebrow {
  margin-bottom: 0;
}

.book-modal__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy);
}

.book-modal .book__panel {
  border: none;
  overflow: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

@media (min-width: 761px) {
  .book-modal {
    top: 50%;
    left: 50%;
    width: min(720px, calc(100vw - 2.5rem));
    transform: translate(-50%, calc(-50% + 16px));
    box-shadow: 0 24px 60px rgba(8, 28, 46, 0.2);
  }

  .book-modal.is-open {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 760px) {
  .book-modal {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: min(94vh, 100%);
    transform: translateY(110%);
    border-top: 1px solid var(--line);
  }

  .book-modal.is-open {
    transform: translateY(0);
  }
}

body.book-open {
  overflow: hidden;
}

.book__panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.5rem;
  display: grid;
  gap: 1.35rem;
  min-width: 0;
}

.book__slot {
  min-width: 0;
  display: grid;
  gap: 0.9rem;
}

.book__days-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.book__nav {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
}

.book__days {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.15rem 0 0.4rem;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}

.book__days::-webkit-scrollbar {
  display: none;
}

.day-chip {
  flex: 0 0 72px;
  width: 72px;
  padding: 0.7rem 0.45rem;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--ink);
}

.day-chip span,
.day-chip em {
  font-size: 0.68rem;
  text-transform: capitalize;
  color: var(--muted);
  font-style: normal;
}

.day-chip strong {
  font-size: 1.25rem;
  font-weight: 700;
}

.day-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.day-chip.is-active span,
.day-chip.is-active em {
  color: rgba(255, 255, 255, 0.75);
}

.book__times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
}

.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.book__hint,
.book__empty {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  flex: 1 0 100%;
}

.book-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}

.book-card__summary {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.book__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.field--wide,
.book__submit {
  grid-column: 1 / -1;
}

.book__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.book__submit .btn {
  min-width: 200px;
}

.book__submit .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.field span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--navy);
  border-color: var(--navy);
}

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
}

.check input {
  margin-top: 0.2rem;
}

.book__feedback {
  min-height: 1.2em;
  font-size: 0.85rem;
}

.book__feedback.is-ok {
  color: #1f7a45;
}

.book__feedback.is-error {
  color: #b42318;
}

.book-card .btn {
  width: 100%;
}

.book-card .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 860px) {
  .book__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book__fields {
    grid-template-columns: 1fr;
  }

  .book__submit .btn {
    width: 100%;
  }
}

/* —— Admin —— */
.admin {
  padding: 3.5rem 0 5rem;
  min-height: calc(100vh - var(--header-h));
}

.admin-login {
  max-width: 380px;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.btn--google {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn--google:hover {
  background: var(--ivory);
}

.admin-staff {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-card {
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
  background: #fff;
}

.admin-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.admin-card__meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.admin-card__actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.status {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
}

.status--pending {
  background: var(--wash);
  color: var(--muted);
}

.status--accepted {
  background: var(--navy);
  color: #fff;
}

.status--rejected {
  background: #f3e8e8;
  color: #8a2b2b;
}

/* —— Marcas —— */
.brand-names {
  padding: 3.5rem 0 3.25rem;
  background: var(--navy);
  scroll-margin-top: calc(var(--header-h) + 42px);
}

.brand-names .section-title,
.brand-names .eyebrow {
  color: #fff;
}

.brand-names .section-lead {
  color: rgba(235, 226, 207, 0.78);
}

.brand-names .eyebrow {
  opacity: 0.72;
}

.brand-slider {
  --brand-gap: 1.15rem;
  --brand-per: 3;
  position: relative;
}

.brand-slider__viewport {
  overflow: hidden;
  container-type: inline-size;
}

.brand-slider__track {
  display: flex;
  gap: var(--brand-gap);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.brand-tile {
  flex: 0 0 calc((100cqw - (var(--brand-per) - 1) * var(--brand-gap)) / var(--brand-per));
  min-width: 0;
}

.brand-slider__arrow {
  position: absolute;
  top: calc(50% - 1.4rem);
  z-index: 2;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border-radius: 50%;
  background: rgba(235, 226, 207, 0.94);
  border: 1px solid var(--line);
  transition: background 0.2s, transform 0.2s;
}

.brand-slider__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.brand-slider__arrow--prev {
  left: -0.35rem;
}

.brand-slider__arrow--next {
  right: -0.35rem;
}

.brand-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.brand-slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(235, 226, 207, 0.35);
}

.brand-slider__dot.is-active {
  background: var(--ivory);
}

@media (max-width: 700px) {
  .brand-slider {
    --brand-per: 1;
  }
  .brand-slider__arrow--prev {
    left: 0.35rem;
  }
  .brand-slider__arrow--next {
    right: 0.35rem;
  }
}

.brand-tile__photo {
  overflow: hidden;
  aspect-ratio: 1134 / 850;
  background: #fff;
}

.brand-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.55s var(--ease);
}

.brand-tile:hover img {
  transform: scale(1.035);
}

.brand-tile__name {
  margin-top: 0.7rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Panel profesional —— */
body.clinic {
  background: #e7eef1;
  min-height: 100vh;
  color: #12324f;
}

.clinic-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.clinic-gate__card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #d4e0e6;
  padding: 2.1rem 1.7rem 1.6rem;
}

.clinic-gate__logo {
  width: 84px;
  height: auto;
  margin-bottom: 1.1rem;
}

.clinic-gate__card h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0.2rem 0 0.55rem;
}

.clinic-gate__card > p {
  color: #5d6b76;
  margin-bottom: 1.2rem;
}

.clinic-gate__card .btn--google {
  width: 100%;
}

.clinic-gate__back {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5d6b76;
}

.clinic-app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.clinic-aside {
  background: #12324f;
  color: #ebe2cf;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1rem 1.1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.clinic-aside__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #ebe2cf;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.clinic-aside__brand img {
  width: 32px;
  height: auto;
}

.clinic-aside__role {
  margin: 1.15rem 0 1.3rem;
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: capitalize;
}

.clinic-aside__nav {
  display: grid;
  gap: 0.35rem;
}

.clinic-aside__nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.72rem 0.8rem;
  border-radius: 2px;
  background: transparent;
  color: rgba(235, 226, 207, 0.78);
  font-size: 0.82rem;
  font-weight: 500;
}

.clinic-aside__nav button.is-active,
.clinic-aside__nav button:hover {
  background: rgba(235, 226, 207, 0.12);
  color: #fff;
}

.clinic-badge {
  min-width: 1.3rem;
  padding: 0.05rem 0.35rem;
  border-radius: 99px;
  background: #d26934;
  color: #fff;
  font-size: 0.68rem;
  text-align: center;
}

.clinic-aside__foot {
  margin-top: auto;
  display: grid;
  gap: 0.55rem;
  padding-top: 1.2rem;
}

.clinic-aside__foot a,
.clinic-aside__foot button {
  color: rgba(235, 226, 207, 0.65);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  background: none;
}

.clinic-aside__foot a:hover,
.clinic-aside__foot button:hover {
  color: #fff;
}

.clinic-main {
  padding: 1.5rem 1.6rem 2.6rem;
}

.clinic-head {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-end;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.clinic-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.15rem 0 0.35rem;
}

.clinic-head p {
  color: #5d6b76;
  max-width: 42rem;
}

.clinic-sub {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.6rem 0 0.8rem;
}

.clinic-weeknav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.clinic-weeknav strong {
  min-width: 10rem;
  text-align: center;
  font-size: 0.9rem;
}

.clinic-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #c5d4db;
  background: #fff;
  color: #12324f;
  font-size: 1.2rem;
  line-height: 1;
}

.clinic-cal {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.clinic-day {
  min-height: 280px;
  background: #fff;
  border: 1px solid #d4e0e6;
  padding: 0.6rem 0.55rem 0.75rem;
}

.clinic-day.is-today {
  border-color: #3d7a7a;
  box-shadow: inset 0 0 0 1px #3d7a7a;
}

.clinic-day header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
  color: #5d6b76;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.clinic-day header strong {
  font-size: 1.05rem;
  color: #12324f;
  letter-spacing: 0;
  text-transform: none;
}

.clinic-event {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.5rem;
  background: #f3f8f8;
  border-left: 3px solid #3d7a7a;
  font-size: 0.74rem;
}

.clinic-event.is-pending {
  background: #fff6f0;
  border-left-color: #d26934;
}

.clinic-event em {
  font-style: normal;
  color: #5d6b76;
}

.clinic-empty {
  color: #8a9aa3;
  font-size: 0.75rem;
  margin-top: 1.2rem;
}

.clinic-staff-form {
  max-width: 420px;
  margin-bottom: 1.2rem;
}

.inv-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.clinic-subnav {
  border: 1px solid #d4e0e6;
  background: #fff;
  color: #12324f;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.clinic-subnav.is-active {
  background: #12324f;
  color: #ebe2cf;
  border-color: #12324f;
}

.inv-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.inv-toolbar input,
.inv-toolbar select {
  width: 100%;
  border: 1px solid #d4e0e6;
  background: #fff;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
}

.inv-table-wrap {
  overflow-x: auto;
  border: 1px solid #d4e0e6;
  background: #fff;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.inv-table th,
.inv-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e6eef1;
  vertical-align: middle;
}

.inv-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7c86;
  font-weight: 600;
}

.inv-table tr.is-hidden {
  opacity: 0.55;
}

.inv-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.inv-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f4f7f8;
}

.inv-item strong,
.inv-item span,
.inv-item em {
  display: block;
}

.inv-item strong {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.inv-item em {
  color: #8a9aa3;
  font-style: normal;
  font-size: 0.75rem;
}

.inv-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.inv-stock button {
  width: 28px;
  height: 28px;
  border: 1px solid #d4e0e6;
  background: #fff;
}

.inv-stock span.is-low {
  color: #b45309;
  font-weight: 700;
}

.inv-stock span.is-out {
  color: #9b3b2e;
  font-weight: 700;
}

.inv-actions {
  white-space: nowrap;
}

.inv-form {
  max-width: 920px;
}

.inv-form__head h2 {
  margin: 0 0 0.3rem;
}

.inv-form__head p {
  margin: 0 0 1rem;
  color: #5d6b76;
  font-size: 0.9rem;
}

.inv-form__grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
}

.inv-form__grid--attrs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0;
}

.inv-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.inv-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f4f7f8;
  border: 1px solid #d4e0e6;
  margin: 0.4rem 0;
}

.inv-photo input[type="file"] {
  font-size: 0.8rem;
}

.inv-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 0.8rem 0 1rem;
}

.inv-check {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.88rem;
}

.inv-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inv-stock-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  color: #6b7c86;
}

.inv-variants {
  margin: 1.2rem 0 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid #d4e0e6;
}

.inv-variants__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.inv-variants__head h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.inv-variants__head p {
  margin: 0;
  color: #5d6b76;
  font-size: 0.85rem;
}

.inv-variant {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e6eef1;
  align-items: start;
}

.inv-variant__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f4f7f8;
  border: 1px solid #d4e0e6;
}

.inv-variant__photo input {
  margin-top: 0.35rem;
  font-size: 0.75rem;
}

.inv-variant__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.inv-form input::placeholder,
.inv-form textarea::placeholder {
  color: #9aa8b0;
}

.product__add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.rx-card {
  background: #fff;
  border: 1px solid #d4e0e6;
  overflow: hidden;
}

.rx-card__preview {
  display: block;
  aspect-ratio: 4 / 3;
  background: #dfe8ec;
}

.rx-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rx-card__file {
  display: block;
  padding: 1.4rem 1rem;
  background: #eef4f6;
  font-size: 0.85rem;
}

.rx-card__body {
  padding: 0.95rem 1rem 1.05rem;
}

.rx-file {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border: 1px dashed #c5b9a2;
  background: #f7f3ea;
  cursor: pointer;
  text-align: center;
  padding: 0.9rem;
  font-size: 0.88rem;
  color: #5d6b76;
}

.field.rx-file input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  z-index: 1;
}

.field.rx-file span {
  pointer-events: none;
}

.clinic .admin-card,
.clinic .book-card {
  border-color: #d4e0e6;
}

.clinic .status--accepted,
.clinic .status--ready {
  background: #3d7a7a;
  color: #fff;
}

.clinic button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  .inv-variant {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .inv-variant__fields {
    grid-template-columns: 1fr 1fr;
  }
  .inv-variant [data-variant-remove] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .inv-toolbar,
  .inv-form__grid,
  .inv-form__grid--attrs,
  .inv-form__fields,
  .inv-variant__fields {
    grid-template-columns: 1fr;
  }
  .inv-variant {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .inv-variant [data-variant-remove] {
    grid-column: 1 / -1;
  }
  .clinic-app {
    grid-template-columns: 1fr;
  }
  .clinic-aside {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
  }
  .clinic-aside__nav {
    display: flex;
    flex: 1;
  }
  .clinic-aside__role,
  .clinic-aside__foot {
    margin: 0;
    padding: 0;
  }
  .clinic-aside__foot {
    display: flex;
    gap: 1rem;
  }
  .clinic-cal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .clinic-day {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .clinic-cal {
    grid-template-columns: 1fr 1fr;
  }
  .inv-variant {
    grid-template-columns: 1fr;
  }
}
