﻿/* ============================================================
   BRILAZ SHOP — CSS v4
   Palette: White + Blue #2563eb + Dark #1a1a1a + Cool neutrals
   Fonts: Playfair Display (serif) + Inter (sans)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- VARIABLES ---- */
:root {
  --br-coral:       #2563eb;
  --br-coral-dark:  #1d4ed8;
  --br-coral-light: #dbeafe;
  --br-blue:        #2563eb;
  --br-blue-dark:   #1d4ed8;
  --br-blue-light:  #eff6ff;
  --br-dark:        #1a1a1a;
  --br-mid:         #555;
  --br-muted:       #888;
  --br-border:      #e2e8f0;
  --br-cream:       #f1f5f9;
  --br-cream2:      #f8fafc;
  --br-white:       #ffffff;
  --br-font-serif:  'Playfair Display', Georgia, serif;
  --br-font-sans:   'Inter', system-ui, sans-serif;
  --br-r-sm:        6px;
  --br-r-md:        12px;
  --br-r-lg:        20px;
  --br-r-pill:      999px;
  --br-shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --br-shadow-md:   0 4px 20px rgba(0,0,0,0.08);
  --br-shadow-lg:   0 12px 40px rgba(0,0,0,0.12);
  --br-transition:  all 0.25s ease;
  --br-container:   1200px;
  --br-header-h:    72px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--br-font-sans);
  color: var(--br-dark);
  background: var(--br-white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--br-container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--br-border);
  height: var(--br-header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--br-header-h);
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-real { height: 44px; width: auto; object-fit: contain; }
.logo-brand {
  display: flex;
  flex-direction: column;
}
.logo-text {
  font-family: var(--br-font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--br-dark);
  line-height: 1;
}
.logo-eyebrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--br-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--br-mid);
  padding: 8px 12px;
  border-radius: var(--br-r-pill);
  transition: var(--br-transition);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--br-dark);
  background: var(--br-cream);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Search icon */
.search-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--br-dark);
  transition: var(--br-transition);
  background: transparent;
}
.search-btn:hover { background: var(--br-cream); }

/* Cart button */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--br-r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--br-dark);
  transition: var(--br-transition);
  border: 1.5px solid var(--br-border);
}
.cart-btn:hover {
  border-color: var(--br-coral);
  color: var(--br-coral);
}
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--br-coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Login link */
.btn-login {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--br-mid);
  padding: 8px 14px;
  border-radius: var(--br-r-pill);
  transition: var(--br-transition);
}
.btn-login:hover { color: var(--br-dark); background: var(--br-cream); }

.btn-reservar-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--br-blue);
  color: #fff;
  border-radius: var(--br-r-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--br-transition);
}
.btn-reservar-hdr:hover {
  background: var(--br-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.site-nav a.nav-convenios {
  color: var(--br-coral);
  font-weight: 600;
}
.site-nav a.nav-convenios:hover,
.site-nav a.nav-convenios.active {
  color: var(--br-coral-dark);
  background: rgba(37, 99, 235, 0.08);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--br-dark);
  background: transparent;
  transition: var(--br-transition);
}
.mobile-menu-btn:hover { background: var(--br-cream); }

/* Body offset for fixed header */
body > main, body > .marquee-strip + header + main { padding-top: 0; }
body { padding-top: var(--br-header-h); }

/* ================================================================
   MARQUEE STRIP
   ================================================================ */
.marquee-strip {
  position: fixed;
  top: var(--br-header-h);
  left: 0; right: 0;
  z-index: 999;
  background: var(--br-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  height: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-item { padding: 0 28px; }
.marquee-dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--br-coral);
  margin-left: 4px;
  vertical-align: middle;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Push content below both header + marquee strip */
body { padding-top: calc(var(--br-header-h) + 32px); }
body > main, body > .marquee-strip + header + main { padding-top: 0; }

/* ================================================================
   FLASH / ALERTS
   ================================================================ */
.flash-container {
  position: fixed;
  top: calc(var(--br-header-h) + 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
  pointer-events: none;
}
.flash-msg {
  padding: 14px 22px;
  border-radius: var(--br-r-pill);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  pointer-events: auto;
  animation: flashIn 0.3s ease;
  box-shadow: var(--br-shadow-md);
}
@keyframes flashIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.alert-success { background: #1a7a4a; color: #fff; }
.alert-error   { background: #dc2626; color: #fff; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--br-r-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--br-transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--br-coral);
  color: #fff;
  border-color: var(--br-coral);
}
.btn-primary:hover {
  background: var(--br-coral-dark);
  border-color: var(--br-coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--br-dark);
  border-color: var(--br-dark);
}
.btn-outline:hover {
  background: var(--br-dark);
  color: #fff;
}
.btn-outline-coral {
  background: transparent;
  color: var(--br-coral);
  border-color: var(--br-coral);
}
.btn-outline-coral:hover {
  background: var(--br-coral);
  color: #fff;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--br-dark);
}
.btn-white {
  background: #fff;
  color: var(--br-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--br-cream);
}
.btn-dark {
  background: var(--br-dark);
  color: #fff;
  border-color: var(--br-dark);
}
.btn-dark:hover { background: #333; border-color: #333; }

.btn-sm  { padding: 9px 20px; font-size: 0.72rem; }
.btn-lg  { padding: 16px 36px; font-size: 0.84rem; }
.btn-xl  { padding: 17px 40px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ================================================================
   HERO SECTION (Renovatio style: full-width, light bg, carousel)
   ================================================================ */
.hero {
  background: linear-gradient(160deg, #fff 0%, var(--br-cream) 50%, #fce8e3 100%);
  min-height: calc(100vh - var(--br-header-h) - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* decorative bg circles */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: var(--br-r-pill);
  border: 1.5px solid var(--br-coral);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--br-coral);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--br-font-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--br-dark);
  margin-bottom: 12px;
}

.hero-title-accent {
  display: block;
  color: var(--br-coral);
  font-style: italic;
}

.hero-desc {
  font-size: 1rem;
  color: var(--br-mid);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ---- HERO CAROUSEL ---- */
.hero-carousel-wrap {
  width: 100%;
  max-width: 440px;
  position: relative;
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--br-r-lg);
}

.carousel-slide {
  display: none;
  width: 100%;
}
.carousel-slide.active { display: block; }

.carousel-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--br-r-lg);
  overflow: hidden;
  box-shadow: var(--br-shadow-lg);
  position: relative;
}

.carousel-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--br-cream2);
  padding: 24px;
}

.carousel-info {
  padding: 20px 24px 24px;
  text-align: left;
  border-top: 1px solid var(--br-border);
}
.carousel-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--br-r-pill);
  background: var(--br-coral);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.carousel-name {
  font-family: var(--br-font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--br-dark);
  margin-bottom: 4px;
}
.carousel-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--br-coral);
}
.carousel-cta {
  position: absolute;
  bottom: 24px;
  right: 24px;
}

/* carousel nav dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--br-border);
  transition: var(--br-transition);
  cursor: pointer;
  border: none;
}
.carousel-dot.active {
  background: var(--br-coral);
  width: 24px;
  border-radius: var(--br-r-pill);
}

/* carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--br-shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--br-dark);
  transition: var(--br-transition);
  border: none;
  cursor: pointer;
}
.carousel-arrow:hover { background: #fff; box-shadow: var(--br-shadow-md); }
.carousel-arrow.prev { left: -18px; }
.carousel-arrow.next { right: -18px; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.section-cream { background: var(--br-cream2); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 20px;
}
.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--br-coral);
  margin-bottom: 8px;
}
.section-header h2 {
  font-family: var(--br-font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--br-dark);
  line-height: 1.2;
}

/* ================================================================
   GOOGLE REVIEWS
   ================================================================ */
.google-reviews {
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--br-cream2) 100%);
}
.google-reviews__header { align-items: center; }
.google-reviews__summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--br-border);
  border-radius: var(--br-r-md);
  background: #fff;
  box-shadow: var(--br-shadow-sm);
}
.google-reviews__summary strong {
  grid-row: 1 / 3;
  font-family: var(--br-font-serif);
  font-size: 2rem;
  line-height: 1;
}
.google-reviews__summary small { color: var(--br-muted); font-size: .72rem; }
.google-reviews__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.google-review-card {
  min-width: 0;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--br-border);
  border-radius: var(--br-r-lg);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}
.google-review-card:nth-child(n+5) { display: none; }
.google-review-card__author { display: flex; align-items: center; gap: 11px; }
.google-review-card__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
}
.google-review-card__avatar--fallback {
  display: grid;
  place-items: center;
  background: var(--br-blue-light);
  color: var(--br-blue-dark);
  font-weight: 700;
}
.google-review-card__identity { min-width: 0; flex: 1; }
.google-review-card__identity a {
  display: block;
  overflow: hidden;
  color: var(--br-dark);
  font-size: .84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.google-review-card__identity time { display: block; color: var(--br-muted); font-size: .7rem; }
.google-review-card__google {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #5e5e5e;
  font-size: 12px;
  white-space: nowrap;
}
.google-review-card__google svg { width: 18px; height: 18px; }
.google-review__stars { color: #f5a623; font-size: .92rem; letter-spacing: .08em; }
.google-review-card > .google-review__stars { margin: 20px 0 11px; }
.google-review__stars .is-empty { color: #d5dae1; }
.google-review-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--br-mid);
  font-size: .82rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.google-review-card__source {
  margin-top: auto;
  padding-top: 16px;
  color: var(--br-blue);
  font-size: .73rem;
  font-weight: 600;
}
.google-reviews__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}
.google-reviews__footer p { color: var(--br-muted); font-size: .72rem; }

@media (max-width: 760px) {
  .google-reviews__header { align-items: flex-start; }
  .google-reviews__summary { padding: 10px 14px; }
  .google-reviews__track {
    grid-template-columns: none;
    grid-auto-columns: min(84vw, 330px);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    margin: 0 -24px;
    padding: 2px 24px 18px;
    scroll-padding-left: 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .google-reviews__track::-webkit-scrollbar { display: none; }
  .google-review-card,
  .google-review-card:nth-child(n+5) { display: flex; scroll-snap-align: start; }
  .google-reviews__footer { align-items: flex-start; flex-direction: column; }
  .google-reviews__footer .btn { width: 100%; justify-content: center; }
}

/* ================================================================
   TRUST BAND
   ================================================================ */
.trust-band {
  background: var(--br-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.trust-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}
.trust-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* ================================================================
   CATEGORY CARDS
   ================================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--br-r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  cursor: pointer;
  background: var(--br-cream2);
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover img { transform: scale(1.05); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}
.cat-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
}
.cat-card-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.cat-card-name {
  font-family: var(--br-font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}
.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  transition: var(--br-transition);
}
.cat-card:hover .cat-card-link { color: #fff; gap: 12px; }

/* ================================================================
   PRODUCT CARDS
   ================================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--br-white);
  border-radius: var(--br-r-lg);
  overflow: hidden;
  transition: var(--br-transition);
  border: 1px solid var(--br-border);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--br-shadow-lg);
  border-color: transparent;
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--br-cream2);
  overflow: hidden;
}
.product-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.05); }

/* Quick add hover */
.product-card__quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--br-transition);
}
.product-card:hover .product-card__quick-add {
  opacity: 1;
  transform: translateY(0);
}
.btn-add {
  padding: 10px 24px;
  border-radius: var(--br-r-pill);
  background: var(--br-coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--br-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-add:hover { background: var(--br-coral-dark); }

/* Badges */
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--br-r-pill);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}
.badge-sale {
  top: 0;
  left: 0;
  right: 0;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(100deg, var(--br-coral-dark), var(--br-coral));
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
  font-size: 0.68rem;
}
.badge-sale strong {
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.badge-sale span {
  letter-spacing: 0.12em;
}
.badge-featured { background: var(--br-dark); color: #fff; }
.badge-new      { background: #1a7a4a; color: #fff; }

/* Card body */
.product-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--br-muted);
  margin-bottom: 6px;
}
.product-card__name {
  font-family: var(--br-font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--br-dark);
  margin-bottom: 10px;
  flex: 1;
  line-height: 1.3;
}
.product-card__pricing {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-current {
  font-size: 1rem;
  font-weight: 700;
  color: var(--br-coral);
}
.price-compare {
  font-size: 0.82rem;
  color: var(--br-muted);
  text-decoration: line-through;
}

/* Stock badges */
.stock-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--br-r-pill);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.stock-badge.out { background: #dbeafe; color: var(--br-coral); }
.stock-badge.low { background: #fff4e5; color: #9a6000; }

/* ================================================================
   PRODUCT DETAIL PAGE
   ================================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
  align-items: start;
}
.product-gallery-main {
  background: var(--br-cream2);
  border-radius: var(--br-r-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 32px;
}
.product-gallery-main img {
  max-height: 100%;
  object-fit: contain;
}
.product-info__cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--br-coral);
  margin-bottom: 12px;
}
.product-info h1 {
  font-family: var(--br-font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--br-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}
.product-price-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.product-price-main { font-size: 1.8rem; font-weight: 700; color: var(--br-coral); }
.product-price-compare { font-size: 1.1rem; color: var(--br-muted); text-decoration: line-through; }
.product-discount-badge {
  padding: 4px 12px;
  border-radius: var(--br-r-pill);
  background: var(--br-coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.product-description {
  font-size: 0.95rem;
  color: var(--br-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}
.product-add-form { display: flex; flex-direction: column; gap: 12px; }
.quantity-input {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--br-border);
  border-radius: var(--br-r-pill);
  overflow: hidden;
  width: fit-content;
}
.quantity-input button {
  width: 40px; height: 40px;
  font-size: 1.2rem;
  color: var(--br-dark);
  background: var(--br-cream2);
  transition: var(--br-transition);
  border: none;
}
.quantity-input button:hover { background: var(--br-cream); }
.quantity-input input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--br-border);
  border-right: 1.5px solid var(--br-border);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 0;
  outline: none;
}

/* ================================================================
   CART PAGE
   ================================================================ */
.cart-page { padding: 60px 0; }
.cart-page h1 {
  font-family: var(--br-font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 40px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--br-muted);
  padding: 0 0 16px;
  border-bottom: 1.5px solid var(--br-border);
  text-align: left;
}
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--br-border); vertical-align: middle; }
.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--br-r-md);
  object-fit: contain;
  background: var(--br-cream2);
  padding: 6px;
}
.cart-item-name { font-weight: 500; font-size: 0.95rem; }
.cart-item-cat  { font-size: 0.72rem; color: var(--br-muted); margin-top: 2px; }

.cart-summary {
  background: var(--br-cream2);
  border-radius: var(--br-r-lg);
  padding: 28px;
  border: 1px solid var(--br-border);
}
.cart-summary h2 {
  font-family: var(--br-font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--br-border);
  font-size: 0.88rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--br-dark);
}
.summary-total-price { font-weight: 700; font-size: 1.1rem; color: var(--br-coral); }

/* MercadoLibre-style cart and checkout */
.cart-ml-page,
.ml-checkout-page {
  background: #f5f5f5;
}
.cart-ml-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.cart-ml-head h1,
.ml-checkout-main h1 {
  font-family: var(--br-font-sans);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  margin: 0;
}
.cart-ml-head a,
.cart-ml-delivery-preview a,
.cart-ml-link {
  color: #3483fa;
  font-weight: 600;
  text-decoration: none;
}
.cart-ml-layout,
.ml-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.cart-ml-main,
.ml-checkout-main {
  display: grid;
  gap: 18px;
}
.cart-ml-card,
.cart-ml-summary,
.ml-section-card,
.ml-summary {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cart-ml-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #edf0f2;
}
.cart-ml-card__head h2,
.cart-ml-delivery-preview h2,
.cart-ml-summary h2,
.ml-section-card h2,
.ml-summary h2 {
  font-family: var(--br-font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.cart-ml-card__head span {
  color: #6b7280;
  font-size: 0.9rem;
}
.cart-ml-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid #edf0f2;
}
.cart-ml-item:last-child { border-bottom: 0; }
.cart-ml-thumb {
  width: 96px;
  height: 96px;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
  color: #9ca3af;
  font-weight: 700;
}
.cart-ml-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-ml-name {
  display: inline-block;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 5px;
}
.cart-ml-unit {
  display: block;
  color: #6b7280;
  font-size: 0.86rem;
}
.cart-ml-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cart-ml-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-ml-qty label {
  color: #6b7280;
  font-size: 0.84rem;
}
.cart-ml-qty input {
  width: 64px;
  height: 36px;
  border: 1px solid #d9dfe7;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}
.cart-ml-link {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.cart-ml-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}
.cart-ml-delivery-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
}
.cart-ml-delivery-preview p {
  margin: 6px 0 0;
  color: #6b7280;
}
.cart-ml-summary,
.ml-summary {
  position: sticky;
  top: 92px;
}
.cart-ml-summary h2,
.ml-summary h2 {
  padding: 20px 24px;
  border-bottom: 1px solid #edf0f2;
}
.cart-ml-summary__body,
.ml-summary__body {
  padding: 20px 24px 24px;
}
.cart-ml-summary__row,
.ml-summary__row,
.cart-ml-summary__total,
.ml-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: #374151;
}
.cart-ml-summary__total,
.ml-summary__total {
  border-top: 1px solid #e5e7eb;
  margin-top: 12px;
  padding-top: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}
.cart-ml-login,
.ml-secure {
  color: #6b7280;
  font-size: 0.82rem;
  text-align: center;
  margin: 12px 0 0;
}
.cart-ml-login a { color: #3483fa; }
.cart-ml-clear {
  text-align: center;
  margin-top: 14px;
}
.cart-ml-clear button {
  background: none;
  border: 0;
  color: #6b7280;
  cursor: pointer;
  font-weight: 600;
}
.ml-checkout-page {
  padding: 54px 0 72px;
}
.ml-checkout-main h1 {
  margin-bottom: 10px;
}
.ml-delivery-list {
  display: grid;
  gap: 14px;
}
.ml-delivery-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
}
.ml-delivery-card.selected {
  border-color: #3483fa;
  box-shadow: inset 0 0 0 1px #3483fa;
}
.ml-delivery-card input {
  position: absolute;
  opacity: 0;
}
.ml-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #b8bdc4;
  margin-top: 2px;
  position: relative;
}
.ml-delivery-card.selected .ml-radio-dot {
  border-color: #3483fa;
}
.ml-delivery-card.selected .ml-radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #3483fa;
}
.ml-delivery-body {
  display: grid;
  gap: 8px;
}
.ml-delivery-body strong {
  font-size: 1.08rem;
  color: #111827;
}
.ml-delivery-address {
  color: #111827;
  line-height: 1.45;
}
.ml-delivery-muted {
  color: #6b7280;
  font-size: 0.9rem;
}
.ml-delivery-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}
.ml-delivery-edit {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
}
.ml-delivery-edit label,
.ml-section-card label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.ml-section-card {
  padding: 24px;
}
.ml-section-card h2 {
  margin-bottom: 18px;
}
.ml-form-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}
.ml-payment-list {
  display: grid;
  gap: 10px;
}
.ml-pay-info {
  display: none;
  gap: 5px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
}
.ml-pay-info--ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.ml-pay-info--flow {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}
.ml-summary__items {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 12px;
}
.ml-summary-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.ml-summary-item img,
.ml-summary-item > span {
  width: 42px;
  height: 42px;
  border: 1px solid #edf0f2;
  border-radius: 6px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 700;
}
.ml-summary-item strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-summary-item small {
  color: #6b7280;
  font-size: 0.74rem;
}
.ml-summary-item b {
  font-size: 0.82rem;
  white-space: nowrap;
}
.ml-result-page {
  background: #f5f5f5;
  padding: 54px 0 72px;
}
.ml-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.ml-result-main {
  display: grid;
  gap: 18px;
}
.ml-result-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ml-result-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 800;
}
.ml-result-hero--ok .ml-result-icon {
  background: #dcfce7;
  color: #15803d;
}
.ml-result-hero--bad .ml-result-icon {
  background: #fee2e2;
  color: #b91c1c;
}
.ml-result-hero--wait .ml-result-icon {
  background: #eff6ff;
  color: #1d4ed8;
}
.ml-result-hero h1 {
  font-family: var(--br-font-sans);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 6px;
}
.ml-result-hero p {
  color: #6b7280;
  margin: 0;
}
.ml-next-list {
  display: grid;
  gap: 16px;
}
.ml-next-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ml-next-step > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #3483fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}
.ml-next-step strong {
  display: block;
  color: #111827;
  margin-bottom: 3px;
}
.ml-next-step p {
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.ml-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================================================================
   CHECKOUT PAGE
   ================================================================ */
.checkout-page { padding: 60px 0; }
.checkout-page h1 {
  font-family: var(--br-font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 40px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.checkout-card {
  background: var(--br-white);
  border: 1px solid var(--br-border);
  border-radius: var(--br-r-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.checkout-card h2 {
  font-family: var(--br-font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ================================================================
   FORMS
   ================================================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--br-dark);
  margin-bottom: 6px;
}
.form-control,
.form-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 1.5px solid var(--br-border);
  border-radius: var(--br-r-md);
  font-size: 0.9rem;
  font-family: var(--br-font-sans);
  color: var(--br-dark);
  background: var(--br-white);
  transition: var(--br-transition);
  outline: none;
}
.form-control:focus,
.form-input:focus {
  border-color: var(--br-coral);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.form-control.is-invalid,
.form-input.is-invalid { border-color: var(--br-coral); }
.form-error {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--br-coral);
}
.form-hint { font-size: 0.72rem; color: var(--br-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; appearance: none; }

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--br-cream2) 0%, var(--br-cream) 100%);
  padding: 40px 20px;
}
.auth-card {
  background: var(--br-white);
  border-radius: var(--br-r-lg);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--br-shadow-lg);
}
.patient-register-card { max-width: 620px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title {
  font-family: var(--br-font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle { text-align: center; color: var(--br-muted); font-size: 0.88rem; margin-bottom: 32px; }

/* ================================================================
   CAROUSEL ADMIN — image preview
   ================================================================ */
.img-preview {
  width: 100%; max-height: 200px;
  object-fit: contain;
  border-radius: var(--br-r-md);
  border: 1px solid var(--br-border);
  background: var(--br-cream2);
  padding: 8px;
  margin-top: 8px;
}
.slide-thumb {
  width: 80px; height: 60px;
  object-fit: contain;
  border-radius: var(--br-r-sm);
  background: var(--br-cream2);
  border: 1px solid var(--br-border);
  padding: 4px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--br-dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-top: 12px; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 4px 0;
  color: rgba(255,255,255,0.45);
  transition: var(--br-transition);
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.42);
}
.floating-whatsapp svg {
  width: 34px;
  height: 34px;
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 48px 0 0;
  margin: 0;
}

/* ================================================================
   SHOP — TIENDA LAYOUT & FILTROS
   ================================================================ */
.products-page { padding: 48px 0 72px; }
.products-page h1 {
  font-family: var(--br-font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 6px;
}
.text-muted { color: var(--br-muted); }

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.shop-filters {
  background: var(--br-cream2);
  border: 1px solid var(--br-border);
  border-radius: var(--br-r-lg);
  padding: 24px 22px;
  position: sticky;
  top: calc(var(--br-header-h) + 20px);
}
.shop-filters__form { display: flex; flex-direction: column; gap: 22px; }
.shop-filters__clear { width: 100%; justify-content: center; margin-top: -6px; }

.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--br-mid);
}
.filter-group__label svg { color: var(--br-coral); flex-shrink: 0; }

.cat-radios {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--br-white);
  border: 1px solid var(--br-border);
  border-radius: var(--br-r-md);
  padding: 8px;
}
.cat-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--br-r-sm);
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--br-dark);
  transition: var(--br-transition);
}
.cat-radio:hover { background: var(--br-cream); }
.cat-radio input[type="radio"] {
  accent-color: var(--br-coral);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.cat-radio:has(input:checked) {
  background: rgba(37, 99, 235, 0.08);
  color: var(--br-coral-dark);
  font-weight: 600;
}

.filter-select { cursor: pointer; }

.btn-search-full {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.78rem;
  gap: 10px;
}

.shop-results__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-results__filters-label {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--br-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Paginación */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 50%;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1.5px solid var(--br-border);
  color: var(--br-mid);
  background: var(--br-white);
  transition: var(--br-transition);
  text-decoration: none;
}
.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--br-coral);
  color: var(--br-coral);
}
.page-btn.active {
  background: var(--br-coral);
  border-color: var(--br-coral);
  color: #fff;
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* Compat: barra horizontal antigua */
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}
.filter-search { flex: 1; min-width: 200px; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .shop-filters { position: static; }
  .shop-results__filters-label { display: flex; }
}

/* ================================================================
   RESERVAR HORA
   ================================================================ */
.reservar-section { padding-top: 56px; padding-bottom: 80px; }

.reservar-header {
  text-align: center;
  margin-bottom: 40px;
}
.reservar-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--br-blue-light);
  color: var(--br-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reservar-title {
  font-family: var(--br-font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--br-dark);
  margin-bottom: 10px;
}
.reservar-subtitle {
  font-size: 0.95rem;
  color: var(--br-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.reservar-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--br-cream2);
  border: 1px solid var(--br-border);
  border-radius: var(--br-r-lg);
}
.reservar-empty p {
  margin-top: 16px;
  color: var(--br-mid);
  font-size: 1rem;
}

.reservar-step {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.reservar-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--br-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reservar-step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--br-dark);
}

.slots-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.slot-date-group {
  background: var(--br-white);
  border: 1px solid var(--br-border);
  border-radius: var(--br-r-lg);
  overflow: hidden;
}
.slot-date-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 20px;
  background: var(--br-cream2);
  border-bottom: 1px solid var(--br-border);
}
.slot-weekday {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--br-blue);
}
.slot-day {
  font-family: var(--br-font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--br-dark);
}
.slot-month {
  font-size: 0.85rem;
  color: var(--br-muted);
  text-transform: capitalize;
}

.slot-times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
}
.slot-time-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid var(--br-border);
  border-radius: var(--br-r-md);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--br-dark);
  background: var(--br-white);
  transition: var(--br-transition);
}
.slot-time-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.slot-time-card:hover {
  border-color: var(--br-blue);
  background: var(--br-blue-light);
}
.slot-time-card.selected {
  border-color: var(--br-blue);
  background: var(--br-blue-light);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.slot-time-hour { font-weight: 600; }
.slot-time-sep { color: var(--br-muted); }
.slot-time-avail {
  font-size: 0.72rem;
  color: var(--br-muted);
  margin-left: 4px;
}
.slot-time-location {
  flex: 0 0 100%;
  font-size: 0.74rem;
  color: var(--br-muted);
  line-height: 1.25;
}

.reservar-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
@media (max-width: 600px) {
  .reservar-form-grid { grid-template-columns: 1fr; }
}

.btn-reservar-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--br-blue);
  color: #fff;
  border: none;
  border-radius: var(--br-r-pill);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--br-transition);
}
.btn-reservar-submit:hover {
  background: var(--br-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.reservar-section .alert {
  padding: 14px 18px;
  border-radius: var(--br-r-md);
  font-size: 0.9rem;
}
.reservar-section .alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.reservar-section .alert-error p { margin: 4px 0; }

/* Medical booking wizard */
.booking-page {
  --booking-teal: #1d4ed8;
  --booking-teal-soft: #dbeafe;
  --booking-aqua: #2563eb;
  --booking-ink: #172554;
  margin-top: calc(-1 * var(--br-header-h));
  background: #f5f7fb;
  padding: 46px 20px 80px;
}
.booking-shell { width: min(980px, 100%); margin: 0 auto; }
.booking-heading { margin-bottom: 34px; }
.booking-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--booking-aqua);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.booking-heading h1 {
  margin: 0 0 7px;
  color: var(--booking-teal);
  font-family: var(--br-font-sans);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}
.booking-heading p { margin: 0; color: var(--booking-ink); font-size: 1rem; }
.booking-alert { margin-bottom: 22px; }

.booking-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  margin: 0 56px -20px;
  z-index: 2;
}
.booking-progress-line {
  position: absolute;
  top: 19px;
  right: 16.666%;
  left: 16.666%;
  height: 2px;
  background: #d7dfed;
  z-index: -1;
}
.booking-progress-step {
  appearance: none;
  border: 0;
  background: transparent;
  color: #919898;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 7px;
  font: inherit;
}
.booking-progress-step > span {
  width: 40px;
  height: 40px;
  border: 4px solid #f5f7fb;
  border-radius: 50%;
  background: #cbd5e1;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-sizing: border-box;
}
.booking-progress-step small { font-size: 0.75rem; font-weight: 700; }
.booking-progress-step.is-active > span { background: var(--booking-teal); }
.booking-progress-step.is-active { color: var(--booking-teal); }
.booking-progress-step.is-complete > span { background: #60a5fa; }
.booking-progress-step.is-complete > span { font-size: 0; }
.booking-progress-step.is-complete > span::after { content: "✓"; font-size: 0.86rem; }
.booking-progress-step.is-complete { color: #3b82f6; }

.booking-card {
  overflow: hidden;
  border: 1px solid #e2e5e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 48, 49, 0.08);
}
.booking-panel[hidden] { display: none; }
.booking-panel-body { min-height: 430px; padding: 76px 36px 42px; }
.booking-label { margin: 0 0 14px; color: #566263; font-size: 0.85rem; }
.booking-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.booking-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid #d8dddd;
  border-radius: 999px;
  color: #828989;
  font-size: 0.84rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.booking-chip.is-active {
  border-color: #60a5fa;
  background: var(--booking-teal-soft);
  color: var(--booking-teal);
}
.booking-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-summary-field {
  position: relative;
  min-height: 74px;
  padding: 18px 52px 14px 18px;
  border: 1px solid #526061;
  border-radius: 12px;
}
.booking-summary-field > span {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 6px;
  background: #fff;
  color: var(--booking-teal);
  font-size: 0.76rem;
}
.booking-summary-field strong { color: #162b2c; font-size: 0.96rem; font-weight: 500; }
.booking-summary-field > svg { position: absolute; top: 25px; right: 18px; color: var(--booking-teal); }
.booking-address {
  width: calc(50% - 9px);
  min-height: 82px;
  margin-top: 18px;
  padding: 17px 20px;
  border-radius: 16px;
  background: #e8f1ff;
  color: var(--booking-aqua);
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}
.booking-address span { display: block; margin-bottom: 2px; color: #687a7a; font-size: 0.78rem; }
.booking-address strong { display: block; font-size: 0.85rem; font-weight: 500; }
.booking-insurance-strip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
}
.booking-insurance-strip > span {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.booking-insurance-strip > strong {
  color: #1e3a8a;
  font-size: 0.95rem;
}
.booking-insurance-logos,
.home-insurance-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.booking-insurance-logos img,
.home-insurance-badges img {
  width: auto;
  height: 24px;
  max-width: 92px;
  object-fit: contain;
}
.booking-prevision-group {
  grid-column: 1 / -1;
}
.booking-prevision-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.booking-prevision-option {
  display: block;
  cursor: pointer;
}
.booking-prevision-option input {
  position: absolute;
  opacity: 0;
}
.booking-prevision-option span {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.booking-prevision-option img {
  width: auto;
  height: 24px;
  max-width: 86px;
  object-fit: contain;
}
.booking-prevision-option input:checked + span {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
  color: #1d4ed8;
}
.home-insurance-badges {
  margin-top: 16px;
  padding: 10px 12px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.home-insurance-badges span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.home-insurance-badges strong {
  color: #fff;
  font-size: 0.86rem;
}
.nosotros-quotes {
  display: grid;
  gap: 10px;
  margin: 0 0 30px;
}
.nosotros-quotes blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--br-coral);
  background: rgba(255,255,255,0.06);
  border-radius: 0 10px 10px 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  line-height: 1.55;
}
.nosotros-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.nosotros-photo-card {
  margin: 0;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.24);
  position: relative;
}
.nosotros-photo-card:nth-child(2),
.nosotros-photo-card:nth-child(3) {
  transform: translateY(22px);
}
.nosotros-photo-card img,
.nosotros-photo-placeholder {
  width: 100%;
  height: 172px;
}
.nosotros-photo-card img {
  object-fit: cover;
}
.nosotros-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(255,255,255,0.06));
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}
.nosotros-photo-card figcaption {
  padding: 14px 16px 16px;
  display: grid;
  gap: 5px;
}
.nosotros-photo-card strong {
  color: #fff;
  font-size: 0.96rem;
}
.nosotros-photo-card span {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  line-height: 1.45;
}
.nosotros-photo-card small {
  color: rgba(255,255,255,0.28);
  font-size: 0.66rem;
}
.nosotros-page {
  background: linear-gradient(135deg, var(--br-dark) 0%, #2a2a2a 100%);
  padding: 86px 0 96px;
  position: relative;
  overflow: hidden;
}
.nosotros-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(37,99,235,0.1) 0%, transparent 58%);
  pointer-events: none;
}
.nosotros-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 58px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.nosotros-page h1 {
  font-family: var(--br-font-serif);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.08;
  margin: 12px 0 22px;
}
.nosotros-lead,
.nosotros-copy {
  color: rgba(255,255,255,0.62);
  line-height: 1.85;
  max-width: 660px;
}
.nosotros-lead {
  font-size: 1rem;
  margin-bottom: 18px;
}
.nosotros-copy {
  font-size: 0.93rem;
  margin-bottom: 28px;
}
.nosotros-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.nosotros-stats strong {
  display: block;
  font-family: var(--br-font-serif);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--br-coral);
  line-height: 1;
}
.nosotros-stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.38);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  #nosotros .container,
  .nosotros-page-grid {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }
}
.booking-section-heading { margin-bottom: 26px; }
.booking-section-heading > span {
  color: var(--booking-aqua);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.booking-section-heading h2 { margin: 5px 0; color: var(--booking-ink); font-size: 1.5rem; }
.booking-section-heading p { margin: 0; color: #778182; font-size: 0.9rem; }
.booking-field-error { margin: -12px 0 18px; }
.booking-page .slot-date-group { border-radius: 12px; }
.booking-page .slot-date-label { background: #f5f8f8; }
.booking-page .slot-weekday { color: var(--booking-teal); }
.booking-page .slot-time-card:hover,
.booking-page .slot-time-card.selected { border-color: var(--booking-aqua); background: var(--booking-teal-soft); }
.booking-page .slot-time-card.selected { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14); }
.booking-page .form-control:focus { border-color: var(--booking-aqua); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.booking-notes { grid-column: 1 / -1; }
.booking-panel-footer {
  min-height: 94px;
  padding: 22px 28px;
  border-top: 1px solid #e1e4e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.booking-panel-footer--end { justify-content: flex-end; }
.booking-back {
  border: 0;
  background: transparent;
  color: var(--booking-aqua);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
}
.booking-primary {
  min-width: 250px;
  min-height: 44px;
  padding: 11px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--booking-aqua);
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

/* Brilaz Nosotros light refresh */
.nosotros-page {
  background:
    radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.16), transparent 34%),
    radial-gradient(circle at 10% 82%, rgba(34, 197, 94, 0.12), transparent 30%),
    #f8fafc;
  color: #102033;
}
.nosotros-page::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0));
}
.nosotros-page .section-eyebrow {
  color: #2563eb;
}
.nosotros-page h1 {
  color: #102033;
}
.nosotros-lead,
.nosotros-copy {
  color: #475569;
}
.nosotros-care-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 26px;
}
.nosotros-care-list span {
  padding: 10px 14px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.nosotros-quotes blockquote {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #2563eb;
  color: #334155;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}
.nosotros-stats strong {
  color: #2563eb;
}
.nosotros-stats span {
  color: #64748b;
}
.nosotros-photo-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}
.nosotros-photo-placeholder {
  background: linear-gradient(135deg, #e0f2fe, #ecfdf5);
  color: #1d4ed8;
}
.nosotros-photo-card strong {
  color: #102033;
}
.nosotros-photo-card span {
  color: #475569;
}
.nosotros-photo-card small {
  color: #94a3b8;
}

/* Public page popups */
.site-popup[hidden] {
  display: none;
}
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.site-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(5px);
}
.site-popup__dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}
.site-popup.is-open .site-popup__dialog {
  transform: translateY(0) scale(1);
}
.site-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.site-popup__icon {
  width: 120px;
  min-height: 58px;
  border-radius: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.site-popup__icon img {
  max-width: 100%;
  max-height: 38px;
  object-fit: contain;
}
.site-popup__eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-popup h2 {
  margin: 0 42px 12px 0;
  color: #102033;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.12;
}
.site-popup p {
  color: #475569;
  line-height: 1.65;
}
.site-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 22px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .site-popup {
    align-items: flex-end;
    padding: 14px;
  }
  .site-popup__dialog {
    padding: 24px;
    border-radius: 16px;
  }
  .nosotros-photo-card:nth-child(2),
  .nosotros-photo-card:nth-child(3) {
    transform: none;
  }
}
.booking-primary:hover { background: var(--booking-teal); transform: translateY(-1px); }
.booking-primary:disabled { cursor: not-allowed; opacity: 0.4; transform: none; }
.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 (max-width: 700px) {
  .booking-page { padding: 30px 14px 56px; }
  .booking-heading { margin-bottom: 24px; }
  .booking-progress { margin: 0 10px -18px; }
  .booking-progress-step small { display: none; }
  .booking-panel-body { min-height: 0; padding: 64px 18px 30px; }
  .booking-summary-grid { grid-template-columns: 1fr; }
.booking-address { width: 100%; }
.booking-insurance-strip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
}
.booking-insurance-strip > span {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.booking-insurance-strip > strong {
  color: #1e3a8a;
  font-size: 0.95rem;
}
.booking-insurance-logos,
.home-insurance-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.booking-insurance-logos img,
.home-insurance-badges img {
  width: auto;
  height: 24px;
  max-width: 92px;
  object-fit: contain;
}
.booking-prevision-group {
  grid-column: 1 / -1;
}
.booking-prevision-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.booking-prevision-option {
  display: block;
  cursor: pointer;
}
.booking-prevision-option input {
  position: absolute;
  opacity: 0;
}
.booking-prevision-option span {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.booking-prevision-option img {
  width: auto;
  height: 24px;
  max-width: 86px;
  object-fit: contain;
}
.booking-prevision-option input:checked + span {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
  color: #1d4ed8;
}
.home-insurance-badges {
  margin-top: 16px;
  padding: 10px 12px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.home-insurance-badges span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.home-insurance-badges strong {
  color: #fff;
  font-size: 0.86rem;
}
  .booking-panel-footer { min-height: 78px; padding: 16px 18px; }
  .booking-primary { min-width: 0; flex: 1; }
  .booking-panel-footer--end .booking-primary { flex: 1; }
  .booking-notes { grid-column: auto; }
  .booking-prevision-options { grid-template-columns: 1fr; }
}

/* ================================================================
   PRODUCTS FILTER BAR (pills)
   ================================================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-pill {
  padding: 8px 20px;
  border-radius: var(--br-r-pill);
  border: 1.5px solid var(--br-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--br-mid);
  background: transparent;
  transition: var(--br-transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-pill:hover { border-color: var(--br-coral); color: var(--br-coral); }
.filter-pill.active {
  background: var(--br-coral);
  border-color: var(--br-coral);
  color: #fff;
}

/* ================================================================
   MISC
   ================================================================ */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--br-muted); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--br-coral); }
.breadcrumb span { color: var(--br-border); }

.empty-state { text-align: center; padding: 80px 20px; }
.empty-state h2 { font-family: var(--br-font-serif); font-size: 1.8rem; font-weight: 500; margin-bottom: 12px; }
.empty-state p { color: var(--br-muted); margin-bottom: 28px; }

.divider { height: 1px; background: var(--br-border); margin: 24px 0; }

/* Alert inline */
.alert {
  padding: 14px 18px;
  border-radius: var(--br-r-md);
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.alert-success-inline { background: #e8f9ee; border: 1px solid #a3d9b8; color: #1a7a4a; }
.alert-error-inline   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-info           { background: #e8f4ff; border: 1px solid #a3c9f0; color: #0066cc; }
.invalid-feedback     { font-size: 0.76rem; color: var(--br-coral); margin-top: 4px; }

/* Image upload preview */
input[type="file"]::file-selector-button {
  padding: 8px 16px;
  border-radius: var(--br-r-pill);
  border: 1.5px solid var(--br-border);
  background: var(--br-cream2);
  color: var(--br-dark);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--br-font-sans);
  margin-right: 10px;
  transition: var(--br-transition);
}
input[type="file"]::file-selector-button:hover {
  background: var(--br-cream);
  border-color: var(--br-coral);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cart-ml-layout,
  .ml-checkout-grid,
  .ml-result-grid { grid-template-columns: 1fr; }
  .cart-ml-summary,
  .ml-summary { position: static; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .btn-login { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 2.2rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cart-ml-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .cart-ml-thumb {
    width: 78px;
    height: 78px;
  }
  .cart-ml-price {
    grid-column: 2;
    font-size: 1.05rem;
  }
  .cart-ml-delivery-preview,
  .cart-ml-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .ml-delivery-card {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .ml-delivery-price {
    grid-column: 2;
  }
  .ml-form-grid {
    grid-template-columns: 1fr;
  }
  .ml-result-hero {
    align-items: flex-start;
    padding: 22px;
  }
  .nosotros-photo-grid {
    grid-template-columns: 1fr;
  }
  .nosotros-photo-card:nth-child(2),
  .nosotros-photo-card:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .trust-band { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ================================================================
   PAYMENT OPTIONS
   ================================================================ */
.payment-option {
  display: block;
  cursor: pointer;
  border: 1.5px solid var(--br-border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s;
  background: var(--br-white);
}
.payment-option:hover { border-color: var(--br-coral); background: var(--br-blue-light); }
.payment-option.selected { border-color: var(--br-coral); background: var(--br-blue-light); }
.payment-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.payment-option-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.payment-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--br-blue-light);
  color: var(--br-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.payment-option-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--br-dark);
  margin-bottom: 2px;
}
.payment-option-desc {
  font-size: 0.76rem;
  color: var(--br-muted);
  line-height: 1.5;
}
.payment-option-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--br-coral);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================================================================
   USER PROFILE TABS
   ================================================================ */
.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--br-border);
  margin-bottom: 24px;
}
.profile-tab {
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--br-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.profile-tab:hover { color: var(--br-coral); }
.profile-tab.active { color: var(--br-coral); border-bottom-color: var(--br-coral); }
.profile-panel { display: none; }
.profile-panel.active { display: block; }

/* ================================================================
   CONVENIOS PAGE
   ================================================================ */
.convenios-hero {
  background: linear-gradient(150deg, #1a1a1a 0%, #2c1a16 60%, #3a1f1a 100%);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.convenios-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.convenios-hero h1 {
  font-family: var(--br-font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative;
}
.convenios-hero h1 em { color: var(--br-coral); font-style: italic; }
.convenios-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}
.benefit-card {
  background: var(--br-white);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid var(--br-border);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--br-coral);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--br-shadow-lg);
}
.benefit-card-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--br-blue-light);
  color: var(--br-coral);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.benefit-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--br-dark);
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 0.82rem;
  color: var(--br-muted);
  line-height: 1.65;
}
.company-logo-card {
  background: var(--br-white);
  border: 1px solid var(--br-border);
  border-radius: 10px;
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--br-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.company-logo-card:hover {
  box-shadow: var(--br-shadow-md);
  border-color: rgba(37,99,235,0.3);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(16.66% + 24px); right: calc(16.66% + 24px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--br-border) 0, var(--br-border) 8px, transparent 8px, transparent 16px);
}
.step-card {
  text-align: center;
  padding: 28px 20px;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--br-coral);
  color: #fff;
  font-family: var(--br-font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.convenio-form-card {
  background: var(--br-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--br-shadow-lg);
  border: 1px solid var(--br-border);
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .convenio-form-card { padding: 28px 20px; }
}

/* ================================================================
   MOBILE HARDENING
   ================================================================ */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  :root { --br-header-h: 66px; }

  .container,
  .container-sm {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    height: auto;
    min-height: var(--br-header-h);
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    height: var(--br-header-h);
    gap: 8px;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-real {
    height: 36px;
    max-width: min(44vw, 170px);
  }

  .header-actions {
    gap: 4px;
  }

  .search-btn,
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: #fff;
    border: 1px solid var(--br-border);
  }

  .cart-btn {
    width: 40px;
    height: 38px;
    padding: 0;
    justify-content: center;
    background: #fff;
  }

  .cart-btn > span:not(.cart-badge) {
    display: none;
  }

  #mobile-nav {
    position: absolute;
    top: var(--br-header-h);
    left: 0;
    right: 0;
    z-index: 1002;
    display: none;
    padding: 12px 16px 18px !important;
    border-top: 1px solid var(--br-border) !important;
    border-bottom: 1px solid var(--br-border);
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  }

  #mobile-nav a,
  #mobile-nav button {
    border-radius: 10px;
    background: #fff;
  }

  #mobile-nav a:hover,
  #mobile-nav button:hover {
    background: var(--br-cream2);
  }

  .site-header.menu-open {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  }

  .marquee-strip {
    top: var(--br-header-h);
    height: 30px;
  }

  body {
    padding-top: calc(var(--br-header-h) + 30px);
  }

  body > main,
  body > .marquee-strip + header + main {
    padding-top: 0;
  }

  .flash-container {
    width: calc(100% - 28px);
    min-width: 0;
    top: calc(var(--br-header-h) + 38px);
  }

  .hero {
    min-height: auto;
    padding: 42px 16px 34px;
  }

  .hero-eyebrow {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .hero-desc {
    margin-bottom: 26px;
  }

  .hero-actions {
    width: 100%;
    margin-bottom: 34px;
  }

  .hero-actions .btn,
  .btn-xl {
    width: min(100%, 320px);
    white-space: normal;
    text-align: center;
  }

  .hero-carousel-wrap {
    max-width: min(100%, 390px);
  }

  .carousel-card {
    border-radius: 16px;
  }

  .carousel-img {
    padding: 16px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    background: #fff;
  }

  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }

  .section {
    padding: 54px 0;
  }

  .home-booking-cta__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: left;
  }

  .home-booking-cta .btn {
    width: 100%;
    white-space: normal !important;
  }

  .home-insurance-badges {
    width: 100%;
    border-radius: 14px;
  }

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

  .product-card,
  .cat-card,
  .benefit-card,
  .ml-section-card,
  .cart-ml-card,
  .cart-ml-summary,
  .ml-summary,
  .nosotros-photo-card {
    min-width: 0;
  }

  #search-overlay.open {
    display: flex !important;
  }

  #search-overlay {
    padding: 92px 14px 20px !important;
    align-items: flex-start !important;
  }

  #search-overlay > div {
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 14px !important;
  }

  #search-overlay form > div {
    flex-direction: column;
    align-items: stretch !important;
  }

  #search-overlay input,
  #search-overlay button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .products-grid,
  .cat-grid,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2rem, 13vw, 2.65rem);
  }

  .section-header h2,
  .nosotros-page h1,
  .convenios-hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.35rem);
  }

  .cart-ml-item,
  .ml-summary-item,
  .ml-delivery-card,
  .ml-next-step {
    grid-template-columns: 1fr;
  }

  .cart-ml-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 120px;
  }

  .cart-ml-price,
  .ml-delivery-price {
    grid-column: auto;
  }

  .footer-bottom,
  .ml-result-hero,
  .cart-ml-delivery-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-popup {
    padding-bottom: 78px;
  }

  .floating-whatsapp {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
}

/* ================================================================
   BUSINESS CONVENIOS REFRESH
   ================================================================ */
.business-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.16), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef6ff 54%, #ffffff 100%);
  padding: 86px 0 76px;
  border-bottom: 1px solid #e5e7eb;
}
.business-hero__grid,
.business-contact__grid,
.business-process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 48px;
  align-items: center;
}
.business-eyebrow,
.business-section-head > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.business-hero h1,
.business-process h2,
.business-contact h2,
.business-section-head h2 {
  max-width: 760px;
  margin: 16px 0 16px;
  color: #0f172a;
  font-family: var(--br-font-serif);
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.06;
}
.business-process h2,
.business-contact h2,
.business-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}
.business-hero p,
.business-process p,
.business-contact p,
.business-section-head p {
  max-width: 650px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}
.business-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}
.business-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.business-trust span {
  padding: 9px 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 800;
}
.business-hero-card {
  padding: 28px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.13);
}
.business-hero-card__top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.business-hero-card__top span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}
.business-hero-card__top strong {
  color: #0f172a;
  font-size: 1.35rem;
}
.business-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px 0;
}
.business-metrics div {
  padding: 14px 10px;
  border-radius: 14px;
  background: #f8fafc;
  text-align: center;
}
.business-metrics strong {
  display: block;
  color: #2563eb;
  font-size: 1.45rem;
}
.business-metrics span {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.25;
}
.business-checklist {
  display: grid;
  gap: 10px;
}
.business-checklist span {
  position: relative;
  padding-left: 24px;
  color: #334155;
  font-size: 0.9rem;
}
.business-checklist span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
}
.business-section {
  background: #fff;
}
.business-section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}
.business-section-head > span {
  margin: 0 auto;
}
.business-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.business-benefit-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.business-benefit-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #bbf7d0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
}
.business-benefit-card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.business-benefit-card h3 {
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 8px;
}
.business-benefit-card p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.65;
}
.business-process {
  padding: 72px 0;
  background: #f8fafc;
}
.business-steps {
  display: grid;
  gap: 14px;
}
.business-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}
.business-step > strong {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
}
.business-step h3 {
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 1rem;
}
.business-step p {
  margin: 0;
  font-size: 0.86rem;
}
.business-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.business-logo-card {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.business-logo-card img {
  max-width: 138px;
  max-height: 62px;
  object-fit: contain;
}
.business-testimonial {
  padding: 70px 0;
  background: #0f172a;
  color: #fff;
  text-align: center;
}
.business-testimonial blockquote {
  max-width: 780px;
  margin: 0 auto 14px;
  font-family: var(--br-font-serif);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.45;
}
.business-testimonial p {
  color: rgba(255,255,255,0.6);
}
.business-contact {
  padding: 78px 0;
  background: #fff;
}
.business-contact__grid {
  align-items: start;
}
.business-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.business-contact-list a,
.business-contact-list > span {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}
.business-contact-list strong {
  color: #0f172a;
  font-size: 0.86rem;
}
.business-contact-list span span,
.business-contact-list a span {
  color: #64748b;
  font-size: 0.84rem;
}
.business-form-card {
  padding: 30px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}
.business-form-card h3 {
  margin-bottom: 22px;
  color: #0f172a;
  font-size: 1.25rem;
}
.business-form {
  display: grid;
  gap: 16px;
}
.business-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.business-form textarea.form-input {
  min-height: 120px;
  resize: vertical;
}
.business-form .btn {
  width: 100%;
  min-height: 52px;
}
.business-form-note {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  text-align: center;
}
.business-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}

/* ================================================================
   ACCOUNT REFRESH
   ================================================================ */
.account-page {
  padding: 54px 0 78px;
  background: #f8fafc;
}
.account-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.account-hero span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.account-hero h1 {
  margin: 8px 0 6px;
  color: #0f172a;
  font-family: var(--br-font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}
.account-hero p {
  margin: 0;
  color: #64748b;
}
.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.account-sidebar,
.account-profile-card,
.account-order-card,
.account-empty {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}
.account-sidebar {
  padding: 24px;
  text-align: center;
  position: sticky;
  top: 110px;
}
.account-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #fff;
  font-family: var(--br-font-serif);
  font-size: 2rem;
}
.account-sidebar h2 {
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 6px;
}
.account-sidebar p {
  color: #64748b;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.account-side-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}
.account-side-actions a,
.account-side-actions button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 800;
}
.account-main {
  min-width: 0;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.account-stats div {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}
.account-stats strong {
  display: block;
  color: #2563eb;
  font-size: 1.6rem;
}
.account-stats span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.account-tabs {
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
}
.account-tabs .profile-tab {
  flex: 1;
  margin: 0;
  border: 0;
  border-radius: 999px;
}
.account-tabs .profile-tab.active {
  background: #2563eb;
  color: #fff;
}
.account-orders {
  display: grid;
  gap: 14px;
}
.account-order-card {
  overflow: hidden;
}
.account-order-card__head,
.account-order-card__body,
.account-order-card__meta {
  padding: 18px 20px;
}
.account-order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.account-order-card__head strong {
  display: block;
  color: #0f172a;
}
.account-order-card__head span {
  color: #64748b;
  font-size: 0.82rem;
}
.account-status {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.account-status--ok { background: #dcfce7; color: #166534; }
.account-status--wait { background: #eff6ff; color: #1d4ed8; }
.account-status--ship { background: #fef3c7; color: #92400e; }
.account-status--bad { background: #fee2e2; color: #991b1b; }
.account-order-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.account-order-product {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.account-order-product__thumb {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  color: #94a3b8;
  font-weight: 900;
}
.account-order-product strong {
  display: block;
  color: #0f172a;
}
.account-order-product span,
.account-order-total span,
.account-order-card__meta span {
  color: #64748b;
  font-size: 0.82rem;
}
.account-order-total {
  text-align: right;
  white-space: nowrap;
}
.account-order-total strong {
  display: block;
  color: #0f172a;
  font-size: 1.08rem;
}
.account-order-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}
.account-empty {
  padding: 54px 24px;
  text-align: center;
}
.account-empty__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
}
.account-empty h3 {
  color: #0f172a;
  margin-bottom: 8px;
}
.account-empty p {
  max-width: 420px;
  margin: 0 auto 20px;
  color: #64748b;
}
.account-profile-card {
  padding: 26px;
}
.account-card-head {
  margin-bottom: 22px;
}
.account-card-head h3 {
  color: #0f172a;
  font-size: 1.2rem;
}
.account-card-head p {
  color: #64748b;
  font-size: 0.88rem;
}
.account-form {
  display: grid;
  gap: 16px;
}
.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.account-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
}
.account-pagination {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .business-hero__grid,
  .business-contact__grid,
  .business-process__grid,
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
  .business-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .business-hero,
  .business-contact,
  .account-page {
    padding: 42px 0 56px;
  }
  .business-hero__actions,
  .account-hero,
  .account-order-card__body {
    flex-direction: column;
    align-items: stretch;
  }
  .business-hero__actions .btn,
  .business-form .btn,
  .account-hero .btn,
  .account-form .btn {
    width: 100%;
  }
  .business-benefits,
  .business-form__grid,
  .account-form-grid,
  .account-stats {
    grid-template-columns: 1fr;
  }
  .business-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-metrics {
    grid-template-columns: 1fr;
  }
  .account-tabs {
    border-radius: 16px;
    flex-direction: column;
  }
  .account-order-card__head,
  .account-order-total {
    text-align: left;
  }
}

/* ================================================================
   PATIENT PORTAL
   Layout: hero > sidebar navigation + content > cards
   ================================================================ */
.patient-page {
  --patient-navy: #17385f;
  --patient-teal: #0b8f88;
  --patient-ink: #13243c;
  --patient-muted: #66758a;
  --patient-line: #dce5ee;
  --patient-surface: #ffffff;
  --patient-soft: #f2f6fa;
  --patient-radius: 18px;
  padding: 40px 0 80px;
  background: #eef3f8;
  color: var(--patient-ink);
}

/* Header */
.patient-hero {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 30px 36px;
  border-radius: 22px;
  background: linear-gradient(120deg, #132f52 0%, #18466f 64%, #087e82 100%);
  box-shadow: 0 16px 40px rgba(19, 47, 82, 0.18);
  color: #fff;
}
.patient-hero::after {
  content: '';
  width: 260px;
  height: 260px;
  position: absolute;
  top: -140px;
  right: -65px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.035), 0 0 0 84px rgba(255, 255, 255, 0.02);
}
.patient-hero__identity {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.patient-hero .account-avatar {
  flex: 0 0 72px;
  margin: 0;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: var(--avatar-color, #1a73e8);
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 5px 16px rgba(8, 26, 51, 0.22);
}
.patient-kicker,
.patient-card__head > div > span,
.patient-section-head > div > span {
  display: block;
  margin-bottom: 6px;
  color: #38d4c4;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.patient-hero h1 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
}
.patient-hero p { margin: 0; color: #d4e2ef; }
.patient-hero .btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  color: var(--patient-navy);
}
.patient-hero__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(5, 27, 55, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.patient-hero__action:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(5, 27, 55, 0.26); }
.patient-hero__action svg,
.patient-evaluation-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Main shell */
.patient-dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.patient-dashboard__content { min-width: 0; }
.patient-content { min-width: 0; }

/* Sidebar */
.patient-sidebar {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 1px solid var(--patient-line);
  border-radius: var(--patient-radius);
  background: var(--patient-surface);
  box-shadow: 0 8px 24px rgba(30, 51, 75, 0.06);
}
.patient-sidebar__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--patient-line);
}
.patient-sidebar__avatar {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--avatar-color, #1a73e8);
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(19, 47, 82, 0.18);
}
.patient-sidebar__profile strong,
.patient-sidebar__profile span { display: block; }
.patient-sidebar__profile strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--patient-ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.patient-sidebar__profile span {
  margin-top: 3px;
  color: var(--patient-muted);
  font-size: 0.68rem;
}
.patient-tabs {
  display: grid;
  gap: 4px;
  padding: 10px;
}
.patient-tab {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border-radius: 10px;
  background: transparent;
  color: #596a7f;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: left;
  transition: 0.16s ease;
}
.patient-tab > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.patient-tab > span { flex: 1; }
.patient-tab:hover { background: #f2f7f8; color: var(--patient-teal); }
.patient-tab.active {
  background: var(--patient-navy);
  color: #fff;
  box-shadow: 0 5px 14px rgba(23, 56, 95, 0.18);
}
.patient-tab b {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #e7f5f4;
  color: var(--patient-teal);
  font-size: 0.66rem;
  text-align: center;
}
.patient-tab.active b { background: rgba(255, 255, 255, 0.16); color: #fff; }
.patient-sidebar__status {
  margin: 4px 14px 14px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eff7ff, #eafaf8);
}
.patient-sidebar__status strong,
.patient-sidebar__status small { display: block; }
.patient-sidebar__status-icon {
  width: 34px;
  height: 34px;
  display: grid;
  margin-bottom: 11px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--patient-teal);
  box-shadow: 0 5px 14px rgba(11, 143, 136, 0.11);
}
.patient-sidebar__status-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.patient-sidebar__status strong { margin-bottom: 5px; color: var(--patient-navy); font-size: 0.78rem; }
.patient-sidebar__status small { color: var(--patient-muted); font-size: 0.67rem; line-height: 1.45; }

/* Summary metrics */
.patient-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--patient-line);
  border-radius: var(--patient-radius);
  background: var(--patient-surface);
  box-shadow: 0 8px 24px rgba(30, 51, 75, 0.05);
}
.patient-summary article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-right: 1px solid var(--patient-line);
}
.patient-summary article:last-child { border-right: 0; }
.patient-summary span,
.patient-summary strong { display: block; }
.patient-summary span {
  margin-bottom: 6px;
  color: var(--patient-muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.patient-summary strong {
  overflow: hidden;
  color: var(--patient-navy);
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.patient-summary small { display: block; margin-top: 4px; color: #8a98aa; font-size: 0.63rem; line-height: 1.2; }
.patient-summary__icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
}
.patient-summary__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.patient-summary__icon--blue { background: #eaf2ff; color: #1769e0; }
.patient-summary__icon--cyan { background: #eaf9ff; color: #0696c7; }
.patient-summary__icon--teal { background: #e7faf7; color: #0b9e91; }
.patient-summary__icon--indigo { background: #f0edff; color: #6957d9; }
.patient-metric-badge {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff4df;
  color: #b76d00 !important;
  font-weight: 800;
}
.patient-metric-badge.is-ready { background: #e6f8ef; color: #188251 !important; }

/* Panels and cards */
.patient-panel { display: none; }
.patient-panel.active { display: block; }
.patient-grid { display: grid; gap: 18px; }
.patient-grid--record { grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.78fr); }
.patient-stack { display: grid; align-content: start; gap: 18px; }
.patient-card,
.discount-card,
.patient-empty,
.account-order-card {
  border: 1px solid var(--patient-line);
  border-radius: var(--patient-radius);
  background: var(--patient-surface);
  box-shadow: 0 8px 24px rgba(30, 51, 75, 0.055);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.patient-card:hover,
.discount-card:hover,
.account-order-card:hover {
  border-color: #d1dfed;
  box-shadow: 0 13px 32px rgba(30, 51, 75, 0.08);
  transform: translateY(-2px);
}
.patient-card { padding: 24px; }
.patient-card__head,
.patient-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.patient-card__head h2,
.patient-section-head h2 {
  margin: 0;
  color: var(--patient-ink);
  font-size: 1.18rem;
}
.patient-card__head p,
.patient-section-head p {
  margin: 5px 0 0;
  color: var(--patient-muted);
  font-size: 0.82rem;
}
.patient-card__head time {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f6f4;
  color: var(--patient-teal);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Vision summary */
.eye-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eye-result {
  padding: 18px;
  border: 1px solid var(--patient-line);
  border-radius: 14px;
  background: #f6f9fb;
  text-align: center;
}
.eye-result svg {
  width: 76px;
  height: 44px;
  margin-bottom: 7px;
  fill: none;
  stroke: var(--patient-teal);
  stroke-width: 3;
}
.eye-result span,
.eye-result small { display: block; color: var(--patient-muted); font-size: 0.7rem; font-weight: 700; }
.eye-result strong { display: block; margin: 3px 0; color: var(--patient-ink); font-size: 1.9rem; }
.prescription-values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--patient-line);
  border-radius: 12px;
  background: var(--patient-line);
}
.prescription-values div { padding: 11px 8px; background: #fff; text-align: center; }
.prescription-values span { display: block; color: var(--patient-muted); font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }
.prescription-values strong { color: var(--patient-navy); font-size: 0.86rem; }
.patient-muted { margin: 13px 0 0; color: var(--patient-muted); font-size: 0.76rem; }

/* Details, empty states and history */
.patient-detail-list { display: grid; margin: 0; }
.patient-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #e9eef3;
}
.patient-detail-list div:last-child { border-bottom: 0; }
.patient-detail-list dt { color: var(--patient-muted); font-size: 0.76rem; }
.patient-detail-list dt { display: inline-flex; align-items: center; gap: 7px; }
.patient-detail-list dt svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--patient-teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.patient-detail-list dd { margin: 0; color: var(--patient-navy); font-size: 0.78rem; font-weight: 800; text-align: right; }
.patient-empty { padding: 44px 22px; text-align: center; }
.patient-card .patient-empty { padding: 32px 10px; border: 0; box-shadow: none; }
.patient-empty h3 { margin: 0 0 8px; color: var(--patient-ink); }
.patient-empty p { max-width: 480px; margin: 0 auto 18px; color: var(--patient-muted); }
.patient-empty--vision { padding-top: 14px !important; }
.patient-eye-illustration {
  width: 124px;
  height: 96px;
  display: grid;
  position: relative;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 48% 52% 46% 54%;
  background: radial-gradient(circle at 50% 45%, #fff 0 20%, #e5f7fb 21% 52%, #eff6ff 53% 100%);
}
.patient-eye-illustration::before,
.patient-eye-illustration::after,
.patient-eye-illustration span::before {
  content: '';
  width: 5px;
  height: 5px;
  position: absolute;
  border-radius: 50%;
  background: #20c7c7;
  box-shadow: 0 0 0 5px rgba(32, 199, 199, 0.1);
}
.patient-eye-illustration::before { top: 15px; right: 6px; }
.patient-eye-illustration::after { bottom: 16px; left: 2px; }
.patient-eye-illustration span::before { top: 7px; left: 13px; background: #2563eb; }
.patient-eye-illustration svg { width: 84px; height: 54px; fill: none; stroke: #1769e0; stroke-width: 3; }
.patient-evaluation-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2156f3, #2684ff);
  box-shadow: 0 9px 22px rgba(33, 86, 243, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.patient-evaluation-btn:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(33, 86, 243, 0.31); }
.vision-timeline__item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  position: relative;
  padding: 20px 0 20px 22px;
  border-top: 1px solid #e7edf3;
}
.vision-timeline__item::before {
  content: '';
  width: 9px;
  height: 9px;
  position: absolute;
  top: 29px;
  left: 1px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--patient-teal);
  box-shadow: 0 0 0 2px var(--patient-teal);
}
.vision-timeline__date strong,
.vision-timeline__date span { display: block; }
.vision-timeline__date strong { color: var(--patient-navy); font-size: 1.35rem; }
.vision-timeline__date span { color: var(--patient-muted); font-size: 0.67rem; text-transform: uppercase; }
.vision-timeline__eyes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vision-timeline__eyes div { padding: 12px 14px; border-radius: 10px; background: var(--patient-soft); }
.vision-timeline__eyes span,
.vision-timeline__eyes small { display: block; color: var(--patient-muted); font-size: 0.68rem; }
.vision-timeline__eyes strong { color: var(--patient-teal); font-size: 1.12rem; }
.vision-timeline__item > p { grid-column: 2; margin: 0; color: #58687c; font-size: 0.8rem; }

/* Purchases and discounts */
.purchase-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid #edf1f5;
}
.purchase-line span { display: block; color: var(--patient-muted); font-size: 0.74rem; }
.discount-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.discount-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-left: 4px solid var(--patient-teal);
}
.discount-card__amount {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #e8f6f4;
  color: var(--patient-teal);
  font-size: 2.35rem;
  font-weight: 900;
}
.discount-card__amount small { font-size: 0.95rem; }
.discount-card span { color: var(--patient-teal); font-size: 0.64rem; font-weight: 900; text-transform: uppercase; }
.discount-card h3 { margin: 4px 0 7px; color: var(--patient-ink); }
.discount-card p,
.discount-card small { display: block; margin: 0 0 9px; color: var(--patient-muted); font-size: 0.74rem; }
.discount-card code {
  display: inline-block;
  margin: 2px 0 9px;
  padding: 6px 10px;
  border: 1px dashed var(--patient-teal);
  border-radius: 7px;
  background: #f0fbfa;
  color: var(--patient-teal);
  font-weight: 900;
  letter-spacing: 0.08em;
}
.discount-card--inactive { border-left-color: #94a3b8; filter: grayscale(1); opacity: 0.65; }

/* Profile form and map */
.patient-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.patient-profile-layout .patient-card { display: grid; gap: 16px; }
.patient-check { display: flex; align-items: center; gap: 10px; color: #334155; font-size: 0.8rem; font-weight: 700; }
.patient-check input { width: 18px; height: 18px; accent-color: var(--patient-teal); }
.patient-location-btn { border: 1px solid #b7dfda; background: #edf9f7; color: var(--patient-teal); }
.patient-map {
  min-height: 250px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--patient-line);
  border-radius: 14px;
  background: var(--patient-soft);
  color: var(--patient-muted);
  text-align: center;
}
.patient-map iframe { width: 100%; height: 270px; border: 0; }
.patient-map span { display: block; margin-top: 5px; font-size: 0.74rem; }
.patient-address-card hr { width: 100%; border: 0; border-top: 1px solid var(--patient-line); }

/* Medical advice */
.patient-health-tip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #d9efef;
  border-radius: var(--patient-radius);
  background: linear-gradient(110deg, #f5fbff, #eefbf9);
  box-shadow: 0 8px 24px rgba(30, 51, 75, 0.045);
}
.patient-health-tip__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--patient-teal);
  box-shadow: 0 6px 16px rgba(11, 143, 136, 0.12);
}
.patient-health-tip__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.patient-health-tip strong { display: block; margin-bottom: 4px; color: var(--patient-navy); font-size: 0.88rem; }
.patient-health-tip p { margin: 0; color: var(--patient-muted); font-size: 0.76rem; line-height: 1.5; }
.patient-health-tip__link {
  padding: 9px 14px;
  border: 1px solid #64cfc8;
  border-radius: 999px;
  color: #087f7a;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.2s ease;
}
.patient-health-tip__link:hover { background: var(--patient-teal); color: #fff; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 1050px) {
  .patient-dashboard { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .patient-grid--record,
  .patient-profile-layout { grid-template-columns: 1fr; }
  .prescription-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .patient-page { padding-top: 24px; }
  .patient-dashboard { grid-template-columns: 1fr; }
  .patient-sidebar { position: static; overflow: visible; }
  .patient-sidebar__profile,
  .patient-sidebar__status { display: none; }
  .patient-tabs {
    display: flex;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
  }
  .patient-tabs::-webkit-scrollbar { display: none; }
  .patient-tab { flex: 0 0 auto; padding: 0 15px; white-space: nowrap; }
  .patient-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .patient-summary article:nth-child(2) { border-right: 0; }
  .patient-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--patient-line); }
}
@media (max-width: 620px) {
  .patient-hero { min-height: 0; align-items: flex-start; flex-direction: column; padding: 24px; }
  .patient-hero .account-avatar { display: none; }
  .patient-hero .btn { width: 100%; }
  .patient-card { padding: 19px; }
  .eye-pair,
  .vision-timeline__eyes,
  .discount-grid,
  .account-form-grid { grid-template-columns: 1fr; }
  .prescription-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vision-timeline__item { grid-template-columns: 56px minmax(0, 1fr); gap: 9px; padding-left: 18px; }
  .discount-card { grid-template-columns: 74px minmax(0, 1fr); padding: 17px; }
  .discount-card__amount { min-height: 72px; font-size: 1.9rem; }
  .purchase-line { grid-template-columns: 42px minmax(0, 1fr); }
  .purchase-line > strong { grid-column: 2; }
  .patient-health-tip { grid-template-columns: 44px minmax(0, 1fr); padding: 17px; }
  .patient-health-tip__link { grid-column: 2; width: fit-content; }
}

/* ================================================================
   PRODUCT DETAIL MERCADOLIBRE STYLE
   ================================================================ */
.ml-product-page {
  padding: 34px 0 76px;
  background: #f5f5f5;
}
.ml-product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #8b95a1;
  font-size: 0.86rem;
}
.ml-product-breadcrumb a {
  color: #3483fa;
}
.ml-product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.88fr) 330px;
  gap: 28px;
  align-items: start;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.ml-product-gallery {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.ml-product-thumbs {
  display: grid;
  gap: 10px;
}
.ml-product-thumbs button {
  width: 58px;
  height: 58px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.ml-product-thumbs button.active {
  border-color: #3483fa;
  box-shadow: inset 0 0 0 1px #3483fa;
}
.ml-product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ml-product-image {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
}
.ml-product-image img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}
.ml-product-placeholder {
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 2rem;
  font-weight: 900;
}
.ml-product-info {
  min-width: 0;
  padding: 2px 0;
}
.ml-product-store {
  color: #3483fa;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.ml-product-condition {
  color: #777;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.ml-product-category {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #fff3e8;
  color: #f26b21;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.ml-product-info h1 {
  margin: 0 0 14px;
  color: #222;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.16;
}
.ml-product-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: #777;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.ml-product-stars {
  color: #3483fa;
  display: inline-flex;
  gap: 2px;
}
.ml-product-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.ml-product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}
.ml-product-price strong {
  color: #222;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
}
.ml-product-price span {
  color: #999;
  text-decoration: line-through;
}
.ml-product-price em {
  color: #00a650;
  font-style: normal;
  font-size: 0.9rem;
}
.ml-product-pay {
  color: #00a650;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.ml-product-about {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.ml-product-about h2,
.ml-product-details h2,
.ml-related h2 {
  margin: 0 0 14px;
  color: #222;
  font-size: 1.12rem;
}
.ml-product-about p,
.ml-product-details div {
  color: #555;
  line-height: 1.7;
}
.ml-product-buybox {
  position: sticky;
  top: 118px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.ml-delivery-highlight {
  display: grid;
  gap: 5px;
  margin-bottom: 22px;
}
.ml-delivery-highlight strong {
  color: #00a650;
  font-size: 1rem;
}
.ml-delivery-highlight span {
  color: #777;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ml-product-stock {
  display: grid;
  gap: 3px;
  margin-bottom: 18px;
}
.ml-product-stock strong {
  color: #222;
  font-size: 1rem;
}
.ml-product-stock.available span {
  color: #00a650;
}
.ml-product-stock.out span {
  color: #dc2626;
}
.ml-product-actions {
  display: grid;
  gap: 11px;
}
.ml-qty-label {
  color: #555;
  font-size: 0.88rem;
  font-weight: 700;
}
.ml-qty-control {
  width: fit-content;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d9dfe7;
  border-radius: 8px;
}
.ml-qty-control button {
  width: 36px;
  height: 36px;
  color: #3483fa;
  font-size: 1rem;
}
.ml-qty-control input {
  width: 56px;
  height: 36px;
  border: 0;
  border-left: 1px solid #d9dfe7;
  border-right: 1px solid #d9dfe7;
  text-align: center;
  font-weight: 700;
}
.ml-product-actions .btn,
.ml-product-buybox > .btn {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}
.ml-add-cart {
  background: #e8f0fe;
  color: #3483fa;
}
.ml-whatsapp {
  min-height: 48px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
}
.ml-buybox-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #777;
  font-size: 0.84rem;
}
.ml-product-details,
.ml-related {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 1180px) {
  .ml-product-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .ml-product-info {
    grid-column: 1;
  }
  .ml-product-buybox {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 860px) {
  .ml-product-page {
    padding-top: 22px;
  }
  .ml-product-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .ml-product-gallery {
    grid-template-columns: 1fr;
  }
  .ml-product-thumbs {
    display: flex;
    order: 2;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .ml-product-image {
    min-height: 300px;
  }
  .ml-product-buybox {
    position: static;
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .ml-product-breadcrumb {
    font-size: 0.78rem;
  }
  .ml-product-shell,
  .ml-product-details,
  .ml-related {
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .ml-product-image {
    min-height: 260px;
  }
  .ml-product-info h1 {
    font-size: 1.45rem;
  }
}

/* ================================================================
   MOBILE EXPERIENCE — unified storefront overrides
   Desktop remains unchanged; these rules only affect small screens.
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --br-header-h: 64px;
    --mobile-gutter: 16px;
    --mobile-radius: 14px;
    --mobile-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--br-header-h) + 42px);
  }

  body {
    min-width: 320px;
    color: #172033;
    font-size: 1rem;
    line-height: 1.55;
    background: #fff;
  }

  main {
    min-height: 45vh;
  }

  .container,
  .container-sm {
    padding-inline: var(--mobile-gutter);
  }

  h1, h2, h3, h4,
  p, li, label, a, button, input, select, textarea {
    overflow-wrap: break-word;
  }

  p {
    text-wrap: pretty;
  }

  button,
  .btn,
  input,
  select,
  textarea {
    font-size: 1rem;
  }

  button,
  .btn,
  [role="button"],
  .search-btn,
  .cart-btn,
  .mobile-menu-btn {
    min-height: 44px;
  }

  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
  }

  svg {
    flex: 0 0 auto;
    shape-rendering: geometricPrecision;
  }

  .site-header {
    border-bottom-color: #dfe3e8;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }

  .site-header .container {
    padding-inline: 12px;
  }

  .header-inner {
    gap: 6px;
  }

  .logo-real {
    height: 35px;
    max-width: min(42vw, 156px);
  }

  .header-actions {
    gap: 6px;
  }

  .search-btn,
  .cart-btn,
  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border: 1px solid #e1e5ea;
    border-radius: 50%;
    color: #334155;
    box-shadow: none;
  }

  .search-btn svg,
  .cart-btn svg,
  .mobile-menu-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
  }

  .cart-badge {
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border: 2px solid #fff;
    font-size: 0.67rem;
  }

  #mobile-nav {
    max-height: calc(100dvh - var(--br-header-h));
    overflow-y: auto;
    padding: 10px 12px calc(18px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  }

  #mobile-nav a,
  #mobile-nav button {
    min-height: 46px;
    display: flex !important;
    align-items: center;
    padding: 11px 12px !important;
    font-size: 0.95rem !important;
    line-height: 1.35;
  }

  #mobile-nav a + a,
  #mobile-nav form {
    border-top: 1px solid #f1f3f5;
  }

  .marquee-strip {
    font-size: 0.7rem;
    letter-spacing: 0.07em;
  }

  .marquee-item {
    padding-inline: 18px;
  }

  .flash-msg,
  .alert {
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .section,
  .section-lg,
  .section-sm {
    padding-block: 44px;
  }

  .section-header {
    margin-bottom: 24px;
    gap: 8px;
  }

  .section-header h2,
  .business-section-head h2,
  .booking-section-heading h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .section-eyebrow,
  .business-eyebrow,
  .business-section-head > span,
  .booking-kicker {
    letter-spacing: 0.09em;
  }

  .btn {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.25;
    letter-spacing: 0.035em;
    white-space: normal;
    text-align: center;
  }

  .btn:hover,
  .product-card:hover,
  .benefit-card:hover {
    transform: none;
  }

  .hero {
    padding: 40px var(--mobile-gutter) 34px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.08;
  }

  .hero-desc {
    max-width: 36rem;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 360px;
  }

  .carousel-img {
    aspect-ratio: 1 / 0.82;
  }

  .carousel-info {
    padding: 16px 18px 18px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item {
    min-height: 88px;
    padding: 16px;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .trust-icon,
  .benefit-card-ico,
  .business-benefit-card__icon {
    display: grid;
    place-items: center;
  }

  .trust-icon {
    font-size: 1.35rem;
  }

  .trust-label {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .trust-desc {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .cat-grid {
    gap: 12px;
  }

  .cat-card {
    min-height: 220px;
    border-radius: var(--mobile-radius);
  }

  .cat-card-body {
    padding: 18px;
  }

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

  .product-card {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }

  .product-card__img-wrap img {
    padding: 10px;
  }

  .product-card__quick-add {
    display: none;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-card__cat {
    margin-bottom: 4px;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .product-card__name {
    min-height: 2.6em;
    margin-bottom: 8px;
    font-family: var(--br-font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .product-card__pricing {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .price-current {
    font-size: 1.05rem;
  }

  .price-compare {
    font-size: 0.76rem;
  }

  .badge-sale {
    min-height: 32px;
    padding: 5px 8px;
    gap: 5px;
    font-size: 0.55rem;
  }

  .badge-sale strong {
    font-size: 0.8rem;
  }

  .product-card__body > a[target="_blank"] {
    min-height: 42px;
    margin-top: 10px !important;
    padding: 10px 4px 0 !important;
    font-size: 0.78rem !important;
  }

  .shop-layout {
    gap: 18px;
  }

  .shop-filters,
  .shop-results,
  .checkout-card,
  .auth-card,
  .business-form-card,
  .account-profile-card {
    border-radius: var(--mobile-radius);
  }

  .shop-filters {
    padding: 18px;
    box-shadow: var(--mobile-shadow);
  }

  .shop-results__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .form-row,
  .reservar-form-grid,
  .booking-summary-grid,
  .booking-prevision-options,
  .business-form__grid,
  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .form-label,
  .ml-delivery-edit label,
  .ml-section-card label {
    font-size: 0.84rem;
    font-weight: 700;
  }

  .form-control,
  .form-input,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
  }

  textarea {
    min-height: 112px;
  }

  .auth-page {
    min-height: auto;
    padding: 28px var(--mobile-gutter) 48px;
  }

  .auth-card {
    padding: 26px 20px;
    box-shadow: var(--mobile-shadow);
  }

  .auth-title {
    font-size: 1.55rem;
  }

  .cart-page,
  .checkout-page,
  .cart-ml-page,
  .ml-checkout-page,
  .ml-result-page,
  .ml-product-page,
  .account-page {
    padding-block: 28px 52px;
  }

  .cart-ml-layout,
  .ml-checkout-grid,
  .ml-result-grid,
  .product-detail,
  .ml-product-shell {
    gap: 16px;
  }

  .cart-ml-card__head,
  .cart-ml-delivery-preview,
  .cart-ml-summary h2,
  .ml-summary h2,
  .cart-ml-summary__body,
  .ml-summary__body,
  .ml-section-card {
    padding: 16px;
  }

  .cart-ml-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .cart-ml-thumb {
    width: 82px;
    height: 82px;
  }

  .cart-ml-price {
    grid-column: 2;
  }

  .cart-ml-actions {
    gap: 12px;
    margin-top: 14px;
  }

  .cart-ml-qty input {
    width: 58px;
    min-height: 44px;
  }

  .cart-ml-summary,
  .ml-summary,
  .ml-product-buybox {
    position: static;
  }

  .ml-delivery-card {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .ml-delivery-price {
    grid-column: 2;
  }

  .payment-option {
    min-height: 64px;
    padding: 12px;
  }

  .payment-option-icon {
    width: 44px;
    height: 44px;
  }

  .payment-option-icon svg,
  .benefit-card-ico svg,
  .booking-address svg,
  .business-benefit-card__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
  }

  .ml-product-shell,
  .ml-product-details,
  .ml-related {
    padding: 16px;
    border-radius: var(--mobile-radius);
  }

  .ml-product-image {
    min-height: 280px;
  }

  .ml-product-info h1 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .ml-product-price strong {
    font-size: 2rem;
  }

  .ml-product-buybox {
    padding: 18px;
    border-radius: var(--mobile-radius);
  }

  .ml-product-actions .btn,
  .ml-product-buybox > .btn,
  .ml-whatsapp {
    min-height: 50px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .booking-page {
    margin-top: 0;
    padding: 30px var(--mobile-gutter) 54px;
  }

  .booking-heading {
    margin-bottom: 24px;
  }

  .booking-progress {
    margin: 0 8px -18px;
  }

  .booking-progress-step {
    min-height: 58px;
  }

  .booking-progress-step > span {
    width: 42px;
    height: 42px;
  }

  .booking-progress-step small {
    font-size: 0.69rem;
  }

  .booking-card {
    border-radius: var(--mobile-radius);
  }

  .booking-panel-body {
    min-height: 0;
    padding: 62px 16px 28px;
  }

  .booking-address {
    width: 100%;
    padding: 14px;
  }

  .booking-prevision-option span,
  .slot-time-card {
    min-height: 48px;
  }

  .slot-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .slot-time-card {
    justify-content: center;
    padding: 10px;
  }

  .booking-panel-footer {
    min-height: 0;
    padding: 16px;
    gap: 10px;
  }

  .booking-back,
  .booking-primary {
    min-height: 48px;
  }

  .booking-back {
    padding-inline: 12px;
  }

  .booking-primary {
    min-width: 0;
    flex: 1;
    padding-inline: 16px;
  }

  .business-hero,
  .business-process,
  .business-contact,
  .business-testimonial,
  .nosotros-page {
    padding-block: 46px;
  }

  .business-hero-card,
  .business-form-card,
  .business-benefit-card {
    padding: 20px;
    border-radius: var(--mobile-radius);
  }

  .business-metrics {
    gap: 8px;
  }

  .business-metrics div {
    padding: 12px 6px;
  }

  .business-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .business-step > strong {
    width: 42px;
    height: 42px;
  }

  .account-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .account-sidebar,
  .account-profile-card,
  .account-order-card,
  .account-empty {
    border-radius: var(--mobile-radius);
  }

  .account-sidebar,
  .account-profile-card {
    padding: 20px;
  }

  .account-tabs {
    border-radius: 12px;
    flex-direction: row;
    overflow-x: auto;
  }

  .account-tabs .profile-tab {
    min-width: max-content;
    min-height: 44px;
  }

  .account-order-card__head,
  .account-order-card__body,
  .account-order-card__meta {
    padding: 14px;
  }

  .site-footer {
    padding: 42px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    gap: 24px;
    margin-bottom: 32px;
  }

  .footer-col h4 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 0.9rem;
  }

  .footer-col a {
    min-height: 40px;
    display: flex;
    align-items: center;
    font-size: 0.88rem;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  }

  .pagination {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .page-btn {
    min-width: 42px;
    min-height: 42px;
  }
}

@media (max-width: 480px) {
  :root {
    --mobile-gutter: 14px;
  }

  .header-actions {
    gap: 4px;
  }

  .search-btn,
  .cart-btn,
  .mobile-menu-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    flex-basis: 42px;
  }

  .logo-real {
    max-width: 35vw;
  }

  .cat-grid,
  .trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-card {
    min-height: 200px;
    aspect-ratio: 3 / 4;
  }

  .cat-card-body {
    padding: 14px;
  }

  .cat-card-name {
    font-size: 1.05rem;
  }

  .cat-card-link {
    font-size: 0.7rem;
  }

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

  .product-card__body {
    padding: 10px;
  }

  .product-card__name {
    font-size: 0.82rem;
  }

  .product-card__body > a[target="_blank"] {
    justify-content: flex-start !important;
    font-size: 0.74rem !important;
  }

  .badge-sale span {
    display: none;
  }

  .cart-ml-head,
  .cart-ml-delivery-preview,
  .ml-result-hero,
  .account-order-card__head,
  .account-order-card__body,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

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

  .cart-ml-thumb {
    width: 72px;
    height: 72px;
  }

  .ml-summary-item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .ml-next-step {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .ml-product-shell,
  .ml-product-details,
  .ml-related {
    margin-inline: 0;
  }

  .ml-product-image {
    min-height: 240px;
  }

  .slots-grid {
    gap: 16px;
  }

  .slot-times {
    grid-template-columns: 1fr;
  }

  .booking-panel-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .booking-back,
  .booking-primary {
    width: 100%;
  }

  .business-benefits,
  .account-stats {
    grid-template-columns: 1fr;
  }

  .business-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) and (pointer: coarse) {
  .product-card:hover img,
  .cat-card:hover img {
    transform: none;
  }

  .product-card__quick-add {
    opacity: 0;
    pointer-events: none;
  }
}

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

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

/* ================================================================
   CUSTOMER LOGIN — modern account access
   ================================================================ */
body.customer-login-standalone {
  min-height: 100svh;
  padding: 0;
  background: #f4f7fb;
}
body.customer-login-standalone > main {
  padding-top: 0;
}
.customer-login-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 54px 0 72px;
  background:
    radial-gradient(circle at 10% 10%, rgba(37,99,235,.08), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(14,165,233,.08), transparent 28%),
    #f4f7fb;
}
.customer-login-page > .container { width: 100%; }
.customer-login-shell {
  max-width: 1020px;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(340px,.88fr) minmax(430px,1.12fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.12);
}
.customer-login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 42px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 15%, rgba(96,165,250,.3), transparent 30%),
    linear-gradient(145deg,#172554,#1d4ed8);
  color: #fff;
}
.customer-login-showcase::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  right: -145px;
  bottom: 80px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025),0 0 0 90px rgba(255,255,255,.02);
}
.customer-login-showcase__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.customer-login-showcase__brand > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: rgba(255,255,255,.11);
}
.customer-login-showcase__brand svg { width: 23px; height: 23px; }
.customer-login-showcase__brand strong {
  font-family: var(--br-font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.customer-login-showcase__copy { margin: auto 0; padding: 64px 0 42px; }
.customer-login-kicker {
  display: inline-flex;
  margin-bottom: 17px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.customer-login-showcase__copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--br-font-sans);
  font-size: clamp(2rem,3.5vw,3.35rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.06;
  text-wrap: balance;
}
.customer-login-showcase__copy p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: .9rem;
  line-height: 1.7;
}
.customer-login-benefits { display: grid; gap: 9px; }
.customer-login-benefits > div { display: flex; align-items: center; gap: 12px; }
.customer-login-benefits > div > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #bfdbfe;
}
.customer-login-benefits svg { width: 18px; height: 18px; }
.customer-login-benefits p { margin: 0; }
.customer-login-benefits strong { display: block; color: rgba(255,255,255,.94); font-size: .78rem; }
.customer-login-benefits small { display: block; margin-top: 2px; color: rgba(255,255,255,.45); font-size: .68rem; }
.customer-login-access { display: grid; place-items: center; padding: 50px; }
.customer-login-card { width: min(100%,400px); }
.customer-login-heading { margin-bottom: 26px; }
.customer-login-heading > span {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.customer-login-heading h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-family: var(--br-font-sans);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.15;
}
.customer-login-heading p { margin: 0; color: #64748b; font-size: .86rem; }
.customer-login-alert {
  display: grid;
  grid-template-columns: 20px minmax(0,1fr);
  gap: 9px;
  margin-bottom: 18px;
  padding: 12px 13px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: .78rem;
  line-height: 1.4;
}
.customer-login-alert svg { width: 20px; height: 20px; }
.customer-login-form { display: grid; gap: 17px; }
.customer-login-field label { display: block; margin-bottom: 7px; color: #334155; font-size: .76rem; font-weight: 700; }
.customer-login-input {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1.5px solid #dce2e9;
  border-radius: 10px;
  background: #fff;
  color: #94a3b8;
  transition: border-color .18s,box-shadow .18s,color .18s;
}
.customer-login-input:focus-within { border-color: #2563eb; color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.customer-login-input.is-invalid { border-color: #ef4444; }
.customer-login-input > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.customer-login-input input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: 500 .88rem var(--br-font-sans);
}
.customer-login-input input::placeholder { color: #a7b0bd; font-weight: 400; }
.customer-password-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
}
.customer-password-toggle:hover { background: #f1f5f9; color: #2563eb; }
.customer-password-toggle svg { width: 18px; height: 18px; }
.customer-password-toggle .icon-eye-off,
.customer-password-toggle[aria-pressed="true"] .icon-eye { display: none; }
.customer-password-toggle[aria-pressed="true"] .icon-eye-off { display: block; }
.customer-login-check { width: fit-content; display: inline-flex; align-items: center; gap: 9px; color: #475569; font-size: .76rem; cursor: pointer; }
.customer-login-check input { position: absolute; opacity: 0; pointer-events: none; }
.customer-login-check > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  color: transparent;
}
.customer-login-check svg { width: 13px; height: 13px; }
.customer-login-check input:checked + span { border-color: #2563eb; background: #2563eb; color: #fff; }
.customer-login-submit,
.customer-google-login {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-family: var(--br-font-sans);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}
.customer-login-submit {
  padding: 12px 18px;
  border: 0;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,99,235,.22);
}
.customer-login-submit:hover { background: #1d4ed8; }
.customer-login-submit svg { width: 18px; height: 18px; }
.customer-login-divider { display: flex; align-items: center; gap: 11px; margin: 23px 0 13px; color: #94a3b8; font-size: .68rem; }
.customer-login-divider::before,
.customer-login-divider::after { content: ''; height: 1px; flex: 1; background: #e2e8f0; }
.customer-google-login { border: 1.5px solid #dce2e9; background: #fff; color: #1e293b; }
.customer-google-login:hover { border-color: #b9c2cf; background: #f8fafc; }
.customer-google-login svg { width: 19px; height: 19px; }
.customer-login-register { margin: 22px 0 0; color: #64748b; font-size: .76rem; text-align: center; }
.customer-login-register a { color: #2563eb; font-weight: 800; }
.customer-login-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 17px 0 0; color: #94a3b8; font-size: .65rem; }
.customer-login-security svg { width: 14px; height: 14px; }

/* Reference-inspired framed login: shared visual language with private portals. */
body.customer-login-standalone {
  background: #1e3a8a;
}
.customer-login-page {
  padding: 32px;
  background:
    radial-gradient(circle at 8% 12%, rgba(125,211,252,.28), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(45,212,191,.18), transparent 30%),
    linear-gradient(135deg,#172554 0%,#1d4ed8 56%,#0369a1 100%);
}
.customer-login-page > .container { max-width: 1240px; padding: 0; }
.customer-login-shell {
  max-width: 1160px;
  min-height: 680px;
  grid-template-columns: minmax(480px,1.08fr) minmax(430px,.92fr);
  border: 8px solid rgba(255,255,255,.7);
  outline: 1px solid rgba(255,255,255,.5);
  outline-offset: 9px;
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(5,20,55,.34);
}
.customer-login-showcase {
  padding: 34px 42px 30px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.95), transparent 28%),
    linear-gradient(145deg,#edf7ff,#dbeafe);
  color: #123b61;
}
.customer-login-showcase::before {
  width: 230px;
  height: 230px;
  right: -120px;
  bottom: -80px;
  border-color: rgba(37,99,235,.1);
  box-shadow: 0 0 0 42px rgba(37,99,235,.035),0 0 0 84px rgba(37,99,235,.025);
}
.customer-login-showcase__brand { color: #123b61; }
.customer-login-showcase__brand > span {
  border-color: rgba(37,99,235,.13);
  background: #fff;
  color: #2563eb;
  box-shadow: 0 8px 22px rgba(37,99,235,.12);
}
.customer-login-visual { width: min(100%,380px); margin: 2px auto -8px; }
.customer-login-visual svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 18px 24px rgba(37,99,235,.13)); }
.login-illustration__blob--one { fill: #bfdbfe; }
.login-illustration__blob--two { fill: #99f6e4; }
.login-illustration__device { fill: #183b63; }
.login-illustration__device .login-illustration__screen { fill: #fff; }
.login-illustration__device .login-illustration__camera { fill: #60a5fa; }
.login-illustration__device .login-illustration__stand { fill: #0f2e50; }
.login-illustration__profile { fill: #f59e0b; }
.login-illustration__profile .login-illustration__profile-mark { fill: #fff; }
.login-illustration__lock circle { fill: #fb7185; stroke: #fff; stroke-width: 6; }
.login-illustration__lock rect { fill: #fff; }
.login-illustration__lock path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; }
.login-illustration__lock circle:last-child { fill: #fb7185; stroke: none; }
.login-illustration__eye-card rect { fill: #fff; stroke: #bfdbfe; stroke-width: 2; }
.login-illustration__eye-card path { fill: none; stroke: #2563eb; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.login-illustration__eye-card circle { fill: #7dd3fc; }
.login-illustration__eye-card .login-illustration__eye-dot { fill: #183b63; }
.login-illustration__spark { fill: #38bdf8; }
.login-illustration__line { fill: none; stroke: #60a5fa; stroke-width: 5; stroke-linecap: round; }
.customer-login-showcase__copy { margin: 0; padding: 0 0 20px; text-align: center; }
.customer-login-kicker {
  margin-bottom: 10px;
  border-color: rgba(37,99,235,.14);
  background: rgba(255,255,255,.68);
  color: #2563eb;
}
.customer-login-showcase__copy h2 {
  max-width: 470px;
  margin: 0 auto 10px;
  color: #123b61;
  font-size: clamp(1.75rem,2.5vw,2.35rem);
  line-height: 1.08;
}
.customer-login-showcase__copy p { max-width: 440px; margin: 0 auto; color: #557089; line-height: 1.55; }
.customer-login-benefits { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.customer-login-benefits > div {
  min-width: 0;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(37,99,235,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}
.customer-login-benefits > div > span {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-color: rgba(37,99,235,.1);
  background: #fff;
  color: #2563eb;
}
.customer-login-benefits strong { color: #183b63; font-size: .69rem; }
.customer-login-benefits small { display: none; }
.customer-login-access { padding: 50px 54px; background: #fff; }
.customer-login-card { width: min(100%,390px); }

@media (max-width: 850px) {
  .customer-login-page { padding: 28px; }
  .customer-login-shell { grid-template-columns: 1fr; max-width: 590px; min-height: 0; }
  .customer-login-showcase { min-height: 270px; padding: 26px 32px; }
  .customer-login-visual { position: absolute; right: 12px; bottom: -8px; width: 245px; opacity: .9; }
  .customer-login-showcase__copy { position: relative; z-index: 1; max-width: 55%; margin-top: auto; padding: 25px 0 4px; text-align: left; }
  .customer-login-showcase__copy h2 { font-size: 1.75rem; text-align: left; }
  .customer-login-kicker { margin-left: 0; }
  .customer-login-showcase__copy p,
  .customer-login-benefits { display: none; }
  .customer-login-access { padding: 42px 32px; }
}
@media (max-width: 520px) {
  .customer-login-page { padding: 0; background: #fff; }
  .customer-login-shell { border: 0; outline: 0; border-radius: 0; box-shadow: none; }
  .customer-login-showcase { min-height: 150px; padding: 20px; }
  .customer-login-visual { width: 150px; right: 0; bottom: -10px; }
  .customer-login-showcase__copy { max-width: 67%; padding-top: 20px; }
  .customer-login-showcase__copy h2 { font-size: 1.32rem; }
  .customer-login-kicker { display: none; }
  .customer-login-access { padding: 30px 20px; }
  .customer-login-heading h1 { font-size: 1.65rem; }
}

/* ================================================================
   CONVENIOS — LANDING + REGISTRO INDEPENDIENTE
   ================================================================ */
.agreements-page { --ag-navy: #081a33; --ag-blue: #2563eb; --ag-sky: #eaf2ff; color: var(--ag-navy); }
.agreements-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
  background: linear-gradient(125deg, #f8fbff 0%, #eef5ff 52%, #f9fcff 100%);
  border-bottom: 1px solid #dfe9f7;
}
.agreements-hero::before,
.agreements-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.agreements-hero::before { width: 520px; height: 520px; right: -180px; top: -230px; background: rgba(37,99,235,.08); }
.agreements-hero::after { width: 280px; height: 280px; left: 43%; bottom: -230px; border: 64px solid rgba(37,99,235,.045); }
.agreements-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.93fr) minmax(440px,.8fr); gap: 72px; align-items: center; }
.agreements-kicker { display: inline-flex; align-items: center; gap: 8px; color: #2563eb; font-size: .71rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.agreements-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.12); }
.agreements-hero h1 { max-width: 680px; margin: 22px 0 22px; font-family: var(--br-font-serif); font-size: clamp(3rem,5.4vw,5.25rem); font-weight: 500; line-height: .99; letter-spacing: -.035em; color: var(--ag-navy); }
.agreements-hero h1 em { display: block; color: var(--ag-blue); font-weight: 400; }
.agreements-lead { max-width: 620px; color: #52647c; font-size: 1.05rem; line-height: 1.75; }
.agreements-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 32px 0 27px; }
.agreements-actions .btn { min-height: 54px; padding-inline: 27px; box-shadow: 0 14px 30px rgba(37,99,235,.22); }
.agreements-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ag-navy); font-size: .86rem; font-weight: 800; border-bottom: 1px solid #a9b9cf; padding: 6px 0; transition: .2s ease; }
.agreements-text-link:hover { color: var(--ag-blue); border-color: var(--ag-blue); }
.agreements-assurances { display: flex; flex-wrap: wrap; gap: 12px 22px; color: #53657b; font-size: .78rem; font-weight: 650; }
.agreements-assurances li { display: flex; align-items: center; gap: 7px; }
.agreements-assurances span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: .68rem; font-weight: 900; }

.agreements-portal-preview { position: relative; border: 1px solid #d6e2f1; border-radius: 24px; background: #fff; box-shadow: 0 36px 75px rgba(8,26,51,.17); transform: rotate(1deg); }
.agreements-portal-preview__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 54px; padding: 0 20px; border-bottom: 1px solid #e7edf5; color: #718096; font-size: .7rem; }
.agreements-portal-preview__bar > span { display: flex; gap: 5px; }
.agreements-portal-preview__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d4deea; }
.agreements-portal-preview__bar strong { color: #26384e; font-size: .72rem; }
.agreements-portal-preview__bar small { justify-self: end; }
.agreements-portal-preview__body { padding: 25px; }
.agreements-portal-welcome { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.agreements-portal-welcome div { display: grid; }
.agreements-portal-welcome small { color: #8b9aae; font-size: .67rem; }
.agreements-portal-welcome strong { color: #142a45; font-size: 1.02rem; }
.agreements-portal-welcome > span { padding: 5px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .64rem; font-weight: 800; }
.agreements-portal-stats { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.agreements-portal-stats article { display: grid; padding: 17px; border: 1px solid #e4ebf3; border-radius: 14px; background: #f9fbfe; }
.agreements-portal-stats span,.agreements-portal-link > span { color: #718096; font-size: .65rem; }
.agreements-portal-stats strong { margin: 4px 0 1px; color: #132b48; font-size: 1.65rem; line-height: 1; }
.agreements-portal-stats small { color: #22a06b; font-size: .6rem; }
.agreements-portal-link { margin-top: 12px; padding: 15px; border: 1px solid #dce7f5; border-radius: 14px; }
.agreements-portal-link > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; padding: 9px 10px; border-radius: 8px; background: #edf4ff; }
.agreements-portal-link code { overflow: hidden; color: #446180; font-family: var(--br-font-sans); font-size: .61rem; white-space: nowrap; text-overflow: ellipsis; }
.agreements-portal-link b { padding: 5px 9px; border-radius: 6px; background: #2563eb; color: #fff; font-size: .58rem; }
.agreements-portal-people { margin-top: 12px; border: 1px solid #e4ebf3; border-radius: 14px; overflow: hidden; }
.agreements-portal-people > span { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; min-height: 44px; padding: 6px 12px; border-bottom: 1px solid #edf1f6; }
.agreements-portal-people > span:last-child { border-bottom: 0; }
.agreements-portal-people i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #dbeafe; color: #2563eb; font-size: .55rem; font-style: normal; font-weight: 800; }
.agreements-portal-people b { color: #32465e; font-size: .67rem; }
.agreements-portal-people small { color: #1f9d68; font-size: .58rem; }
.agreements-floating-card { position: absolute; right: -38px; bottom: 48px; display: grid; padding: 13px 18px; border-radius: 14px; background: #081a33; color: #fff; box-shadow: 0 16px 34px rgba(8,26,51,.24); transform: rotate(-1deg); }
.agreements-floating-card strong { color: #79a7ff; font-size: 1.1rem; }.agreements-floating-card span { font-size: .62rem; opacity: .75; }

.agreements-proof { background: #081a33; color: #fff; }
.agreements-proof__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.agreements-proof__grid > div { display: grid; align-content: center; min-height: 116px; padding: 22px 28px; border-right: 1px solid rgba(255,255,255,.1); }
.agreements-proof__grid > div:first-child { padding-left: 0; }.agreements-proof__grid > div:last-child { border-right: 0; }
.agreements-proof strong { font-family: var(--br-font-serif); color: #fff; font-size: 1.85rem; font-weight: 500; }
.agreements-proof span { color: rgba(255,255,255,.55); font-size: .69rem; }

.agreements-benefits { padding-block: 92px; background: #fff; }
.agreements-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 46px; }
.agreements-heading h2,.agreements-process h2,.agreements-cta h2 { max-width: 760px; margin-top: 13px; font-family: var(--br-font-serif); color: #0c203b; font-size: clamp(2rem,3.8vw,3.35rem); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.agreements-heading > p { max-width: 440px; color: #66778c; font-size: .92rem; line-height: 1.7; }
.agreements-heading--center { justify-content: center; text-align: center; }.agreements-heading--center h2 { max-width: 690px; }
.agreements-benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #dce5ef; border-left: 1px solid #dce5ef; }
.agreements-benefit-card { position: relative; min-height: 260px; padding: 30px; border-right: 1px solid #dce5ef; border-bottom: 1px solid #dce5ef; background: #fff; transition: background .2s ease,transform .2s ease; }
.agreements-benefit-card:hover { z-index: 1; background: #f7faff; transform: translateY(-3px); box-shadow: 0 18px 44px rgba(16,42,74,.08); }
.agreements-benefit-card__number { position: absolute; top: 23px; right: 25px; color: #becbda; font-size: .65rem; font-weight: 800; }
.agreements-benefit-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 23px; border-radius: 14px; background: #eaf2ff; color: #2563eb; }
.agreements-benefit-card__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agreements-benefit-card h3 { margin-bottom: 10px; color: #122943; font-size: 1rem; }.agreements-benefit-card p { color: #6d7d90; font-size: .83rem; line-height: 1.7; }

.agreements-process { padding: 98px 0; background: #f1f6fc; }
.agreements-process__grid { display: grid; grid-template-columns: .8fr 1.1fr; gap: 90px; align-items: start; }
.agreements-process__intro { position: sticky; top: 130px; }.agreements-process__intro p { max-width: 510px; margin: 19px 0 24px; color: #66778c; line-height: 1.7; }
.agreements-steps { counter-reset: step; border-top: 1px solid #cbd8e7; }
.agreements-step { display: grid; grid-template-columns: 75px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid #cbd8e7; }
.agreements-step > strong { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #b9cce3; border-radius: 50%; color: #2563eb; font-family: var(--br-font-serif); font-size: 1rem; }
.agreements-step h3 { margin: 2px 0 7px; color: #122943; font-size: 1.08rem; }.agreements-step p { max-width: 510px; color: #697b90; font-size: .86rem; line-height: 1.65; }

.agreements-logos-section { padding-block: 88px; background: #fff; }
.agreements-logos { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.agreements-logo-card { display: grid; place-items: center; height: 100px; padding: 15px; border: 1px solid #e2e8f0; background: #fff; transition: .2s ease; }
.agreements-logo-card:hover { border-color: #b7cae4; box-shadow: 0 12px 26px rgba(15,38,66,.08); }.agreements-logo-card img { width: auto; max-width: 145px; max-height: 58px; object-fit: contain; filter: saturate(.85); }

.agreements-quote { padding: 82px 0; background: #0c203b; color: #fff; text-align: center; }
.agreements-quote__inner > span { display: block; height: 52px; color: #6397ed; font-family: Georgia,serif; font-size: 5rem; line-height: 1; }
.agreements-quote blockquote { max-width: 870px; margin: 0 auto 18px; font-family: var(--br-font-serif); font-size: clamp(1.6rem,3vw,2.55rem); line-height: 1.35; }.agreements-quote p { color: rgba(255,255,255,.52); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.agreements-cta { padding: 76px 0; background: #eef4fb; }
.agreements-cta__card { display: grid; grid-template-columns: 1.1fr .75fr; gap: 64px; align-items: center; padding: 58px 64px; border-radius: 26px; background: linear-gradient(135deg,#174ba9,#2563eb); color: #fff; box-shadow: 0 25px 55px rgba(37,99,235,.2); }
.agreements-cta .agreements-kicker { color: #b9d2ff; }.agreements-cta h2 { color: #fff; }.agreements-cta p { max-width: 600px; margin-top: 13px; color: rgba(255,255,255,.72); }
.agreements-cta__actions { display: grid; gap: 10px; }.agreements-cta__actions .btn { width: 100%; min-height: 51px; }.agreements-cta__actions small { margin-top: 4px; color: rgba(255,255,255,.64); text-align: center; }.agreements-cta__actions small a { color: #fff; font-weight: 800; text-decoration: underline; }

/* Registro de empresa separado de landing */
.agreement-register-page { min-height: 780px; padding: 43px 0 85px; background: linear-gradient(145deg,#f2f7fd,#fff 58%); }
.agreement-register-breadcrumb { display: flex; gap: 9px; margin-bottom: 28px; color: #8795a7; font-size: .76rem; }.agreement-register-breadcrumb a { color: #2563eb; font-weight: 700; }
.agreement-register-layout { display: grid; grid-template-columns: minmax(300px,.68fr) minmax(560px,1fr); gap: 72px; align-items: start; max-width: 1120px; margin: 0 auto; }
.agreement-register-intro { position: sticky; top: 130px; padding-top: 33px; }
.agreement-register-intro h1 { margin: 19px 0 16px; color: #0b203b; font-family: var(--br-font-serif); font-size: clamp(2.5rem,4vw,3.7rem); font-weight: 500; line-height: 1.06; }.agreement-register-intro > p { color: #63758b; font-size: .94rem; line-height: 1.75; }
.agreement-register-intro ol { display: grid; gap: 0; margin: 34px 0; }.agreement-register-intro li { position: relative; display: grid; grid-template-columns: 39px 1fr; gap: 14px; padding-bottom: 22px; }.agreement-register-intro li:not(:last-child)::after { content: ''; position: absolute; left: 18px; top: 38px; bottom: 0; width: 1px; background: #cbd9e9; }
.agreement-register-intro li > b { z-index: 1; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #e3edfb; color: #2563eb; font-size: .72rem; }.agreement-register-intro li > span { display: grid; }.agreement-register-intro li strong { color: #1b334e; font-size: .86rem; }.agreement-register-intro li small { color: #7a899b; font-size: .72rem; }
.agreement-register-help { display: grid; gap: 3px; padding: 16px 18px; border-left: 3px solid #2563eb; background: #eaf2ff; }.agreement-register-help span { color: #66798f; font-size: .7rem; }.agreement-register-help a { color: #174ba9; font-size: .81rem; font-weight: 800; }
.agreement-register-card { overflow: hidden; border: 1px solid #dce5ef; border-radius: 22px; background: #fff; box-shadow: 0 24px 65px rgba(14,42,75,.12); }
.agreement-register-card > header { padding: 30px 34px 25px; border-bottom: 1px solid #e6ecf3; }.agreement-register-card > header > span { color: #2563eb; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.agreement-register-card > header h2 { margin: 5px 0 3px; color: #102944; font-family: var(--br-font-serif); font-size: 1.75rem; font-weight: 500; }.agreement-register-card > header p { color: #8794a5; font-size: .74rem; }
.agreement-register-alert { display: grid; gap: 2px; margin: 24px 34px 0; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 10px; background: #fff7f7; color: #991b1b; font-size: .78rem; }
.agreement-register-form { display: grid; gap: 27px; padding: 29px 34px; }.agreement-register-section > h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: #263c55; font-size: .82rem; }.agreement-register-section > h3 span { color: #2563eb; font-size: .62rem; }
.agreement-register-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.agreement-register-full { grid-column: 1/-1; }.agreement-register-form .form-group { margin: 0; }.agreement-register-form .form-label { margin-bottom: 6px; color: #42556c; font-size: .74rem; }.agreement-register-form .form-label span { color: #95a1af; font-weight: 400; }.agreement-register-form .form-input { width: 100%; min-height: 47px; border-color: #d5dee9; border-radius: 9px; background: #fbfcfe; font-size: .82rem; }.agreement-register-form textarea.form-input { min-height: 94px; resize: vertical; }.agreement-register-form .form-input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.agreement-password-field { position: relative; }.agreement-password-field input { padding-right: 65px; }.agreement-password-field button { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #2563eb; font-size: .68rem; font-weight: 800; }.agreement-register-hint { display: block; margin-top: 4px; color: #95a1af; font-size: .65rem; }
.agreement-register-submit { width: 100%; min-height: 52px; border-radius: 10px; }.agreement-register-legal { margin: -15px auto 0; max-width: 520px; color: #8995a5; font-size: .65rem; line-height: 1.55; text-align: center; }
.agreement-register-card > footer { padding: 18px 34px; border-top: 1px solid #e6ecf3; background: #f8fafc; color: #6e7e91; font-size: .75rem; text-align: center; }.agreement-register-card > footer a { color: #2563eb; font-weight: 800; }

@media (max-width: 980px) {
  .agreements-hero__grid { grid-template-columns: 1fr; gap: 58px; }.agreements-hero__copy { max-width: 720px; }.agreements-portal-preview { width: min(100%,620px); margin: 0 auto; }.agreements-floating-card { right: -20px; }
  .agreements-proof__grid { grid-template-columns: repeat(2,1fr); }.agreements-proof__grid > div:nth-child(2) { border-right: 0; }.agreements-proof__grid > div:first-child { padding-left: 28px; }
  .agreements-benefit-grid { grid-template-columns: repeat(2,1fr); }.agreements-process__grid { grid-template-columns: 1fr; gap: 40px; }.agreements-process__intro,.agreement-register-intro { position: static; }.agreements-logos { grid-template-columns: repeat(4,1fr); }.agreements-cta__card { grid-template-columns: 1fr; gap: 32px; }
  .agreement-register-layout { grid-template-columns: 1fr; gap: 24px; max-width: 720px; }.agreement-register-intro { padding-top: 0; }.agreement-register-intro ol { grid-template-columns: repeat(3,1fr); gap: 10px; }.agreement-register-intro li { grid-template-columns: 34px 1fr; }.agreement-register-intro li::after { display: none; }
}
@media (max-width: 640px) {
  .agreements-hero { padding: 55px 0 58px; }.agreements-hero__grid { gap: 44px; }.agreements-hero h1 { font-size: clamp(2.55rem,13vw,3.5rem); }.agreements-lead { font-size: .94rem; }.agreements-actions { align-items: stretch; flex-direction: column; gap: 11px; }.agreements-actions .btn,.agreements-text-link { justify-content: center; width: 100%; }.agreements-assurances { display: grid; gap: 9px; }
  .agreements-portal-preview { border-radius: 16px; transform: none; }.agreements-portal-preview__body { padding: 14px; }.agreements-portal-preview__bar { padding: 0 14px; }.agreements-portal-preview__bar small { display: none; }.agreements-portal-preview__bar { grid-template-columns: 1fr auto; }.agreements-portal-stats { grid-template-columns: 1fr 1fr; }.agreements-floating-card { display: none; }
  .agreements-proof__grid { grid-template-columns: 1fr 1fr; }.agreements-proof__grid > div { min-height: 95px; padding: 17px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }.agreements-proof__grid > div:first-child { padding-left: 12px; }.agreements-proof strong { font-size: 1.45rem; }
  .agreements-benefits,.agreements-process,.agreements-logos-section,.agreements-quote,.agreements-cta { padding-block: 55px; }.agreements-heading { align-items: start; flex-direction: column; gap: 18px; margin-bottom: 28px; }.agreements-heading h2,.agreements-process h2 { font-size: 2rem; }.agreements-benefit-grid { grid-template-columns: 1fr; }.agreements-benefit-card { min-height: 225px; padding: 24px; }.agreements-step { grid-template-columns: 54px 1fr; gap: 12px; }.agreements-step > strong { width: 45px; height: 45px; }.agreements-logos { grid-template-columns: repeat(2,1fr); }.agreements-logo-card { height: 86px; }.agreements-cta__card { padding: 34px 22px; border-radius: 18px; }
  .agreement-register-page { padding: 27px 0 55px; }.agreement-register-breadcrumb { margin-bottom: 20px; }.agreement-register-intro h1 { font-size: 2.35rem; }.agreement-register-intro ol { grid-template-columns: 1fr; gap: 0; margin: 25px 0; }.agreement-register-intro li { padding-bottom: 14px; }.agreement-register-card { border-radius: 16px; }.agreement-register-card > header,.agreement-register-form { padding: 23px 19px; }.agreement-register-alert { margin: 18px 19px 0; }.agreement-register-grid { grid-template-columns: 1fr; }.agreement-register-full { grid-column: auto; }.agreement-register-card > footer { padding-inline: 19px; }
}
