/* ==========================================================================
   Préstamos El Fraile — Estilos
   Colores tomados del logo (índigo + gris) y de las fachadas (rojo + amarillo)
   ========================================================================== */

:root {
  /* Marca */
  --indigo-950: #120c33;
  --indigo-900: #1a1247;
  --indigo-800: #221859;
  --indigo-700: #33246e;
  --indigo-600: #422774;
  --indigo-200: #cfc8ea;
  --indigo-100: #ebe8f6;
  --indigo-50:  #f6f5fb;

  --red-600: #c62b2b;
  --red-700: #a8211f;
  --yellow-400: #f7c21b;
  --yellow-500: #e8b000;
  --gray-logo: #b8bab9;

  --wa: #128c4a;
  --wa-dark: #0e7a40;

  /* Texto y superficies */
  --ink: #1b1838;
  --ink-soft: #46435f;
  --muted: #625f7d;
  --line: #e3e1ee;
  --surface: #f6f5fb;
  --white: #ffffff;

  /* Tipografía */
  --font-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Medidas */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 12, 51, .06), 0 2px 8px rgba(18, 12, 51, .06);
  --shadow-md: 0 4px 12px rgba(18, 12, 51, .08), 0 12px 32px rgba(18, 12, 51, .10);
  --shadow-lg: 0 18px 50px rgba(18, 12, 51, .22);
  --section-y: clamp(64px, 9vw, 120px);
}

/* Monitores grandes: un poco más de espacio y texto */
@media (min-width: 1600px) {
  :root { --container: 1400px; --header-h: 92px; }
  html { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --container: 1560px; }
  html { font-size: 18px; }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--yellow-400);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--yellow-400);
  color: var(--indigo-950);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Franja de las fachadas (amarillo / rojo / blanco / índigo) ---------- */
.stripe {
  height: 18px;
  background:
    linear-gradient(to bottom,
      var(--yellow-400) 0 4px,
      var(--white) 4px 6px,
      var(--red-600) 6px 10px,
      var(--white) 10px 12px,
      var(--indigo-700) 12px 18px);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: .7em 1.25em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .875rem; }

.btn--yellow { background: var(--yellow-400); color: var(--indigo-950); box-shadow: 0 6px 18px rgba(247, 194, 27, .28); }
.btn--yellow:hover { background: #ffd23d; }

.btn--red { background: var(--red-600); color: var(--white); }
.btn--red:hover { background: var(--red-700); }

.btn--indigo { background: var(--indigo-700); color: var(--white); }
.btn--indigo:hover { background: var(--indigo-800); }

.btn--outline { border-color: var(--indigo-200); color: var(--indigo-700); background: var(--white); }
.btn--outline:hover { border-color: var(--indigo-700); }

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

/* ---------- Barra de promoción ---------- */
.promo-bar {
  background: var(--red-600);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
}
.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .6rem 0;
  text-align: center;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: calc(var(--header-h) - 16px); width: auto; mix-blend-mode: multiply; }

.site-nav__list { display: flex; align-items: center; gap: .25rem; }
.site-nav__list a {
  display: block;
  padding: .5rem .8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav__list a:hover { color: var(--indigo-700); background: var(--indigo-50); }
.site-nav__list a.is-active { color: var(--indigo-700); box-shadow: inset 0 -3px 0 var(--yellow-400); border-radius: 8px 8px 2px 2px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--open { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

/* Escritorio */
@media (min-width: 1000px) {
  .site-nav { display: flex; align-items: center; gap: 1rem; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
  .site-nav__list a { padding: .5rem .55rem; font-size: .88rem; }
  .site-nav__cta .btn { padding-inline: 1em; font-size: .85rem; }
}

/* Móvil / tableta: menú desplegable */
@media (max-width: 999.98px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: calc(var(--header-h) - 14px); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .2s, transform .2s;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a { padding: .95rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav__list a.is-active { box-shadow: inset 4px 0 0 var(--yellow-400); padding-left: 1rem; border-radius: 0; }
  .site-nav__cta { margin-top: 1rem; }
  .site-nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Encabezados de sección ---------- */
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark {
  color: var(--white);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(66, 39, 116, .55), transparent 60%),
    linear-gradient(180deg, var(--indigo-900), var(--indigo-950));
}

.section-head { max-width: 760px; margin: 0 auto clamp(2.25rem, 5vw, 3.5rem); text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--yellow-400) 0 50%, var(--red-600) 50%);
}
.eyebrow--light { color: var(--yellow-400); }

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  color: var(--indigo-800);
}
.section--dark .section-title { color: var(--white); }

.section-lead {
  margin-top: 1rem;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--ink-soft);
}
.section--dark .section-lead { color: rgba(255, 255, 255, .8); }

.note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.note--light { color: rgba(255, 255, 255, .75); }
.note .icon { color: var(--yellow-400); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: var(--indigo-950);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 12, 51, .80) 0%, rgba(18, 12, 51, .88) 60%, rgba(18, 12, 51, .96) 100%);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(56px, 9vw, 120px) clamp(96px, 10vw, 140px);
}

.hero__title {
  font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero__title .hl {
  color: var(--yellow-400);
  background: linear-gradient(transparent 78%, rgba(198, 43, 43, .85) 78% 92%, transparent 92%);
}
.hero__lead {
  max-width: 56ch;
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem);
  color: rgba(255, 255, 255, .88);
}
.hero__lead strong { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

@media (max-width: 479.98px) {
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 360px; gap: 4rem; }
  .hero__media::after {
    background: linear-gradient(90deg, rgba(18, 12, 51, .96) 0%, rgba(18, 12, 51, .88) 42%, rgba(18, 12, 51, .45) 100%);
  }
}
@media (min-width: 1600px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 400px; min-height: 640px; }
}

.stripe--hero { position: absolute; left: 0; right: 0; bottom: 0; }

/* Tarjeta de horario */
.hours-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow-lg);
}
@supports (backdrop-filter: blur(8px)) {
  .hours-card { backdrop-filter: blur(14px) saturate(1.3); }
}
.hours-card__head { display: flex; align-items: center; gap: .6rem; color: var(--yellow-400); }
.hours-card__head .icon { width: 1.5rem; height: 1.5rem; }
.hours-card__title { font-size: 1.1rem; font-weight: 800; color: var(--white); }

.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .12);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gray-logo); }
.status.is-open::before { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .25); }
.status.is-closed::before { background: #ff6b6b; }

.hours-list { display: grid; gap: .6rem; margin-top: 1.1rem; }
.hours-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .2);
}
.hours-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list dt { color: rgba(255, 255, 255, .78); }
.hours-list dd { font-weight: 700; text-align: right; }

.hours-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.3rem;
  font-weight: 700;
  color: var(--yellow-400);
  text-decoration: none;
}
.hours-card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 419.98px) {
  .hours-card { padding: 1.25rem 1.1rem; }
  .hours-card .hours-list { font-size: .94rem; }
  .hours-card .hours-list dd { white-space: nowrap; }
  .status { font-size: .8rem; }
}

/* ---------- Datos rápidos ---------- */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.3rem 1.2rem;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n + 3) { border-bottom: 0; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.1;
  color: var(--indigo-700);
}
.stat__label { font-size: .88rem; color: var(--muted); }

@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 1.8rem 1.4rem; border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}

/* La tarjeta de datos se monta sobre la portada; debajo continúa el fondo de la siguiente sección */
.stats { background: linear-gradient(to bottom, transparent 56px, var(--surface) 56px); }
.stats + .section { padding-top: calc(var(--section-y) * .75); }

/* ---------- Qué empeñamos ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.cat {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--indigo-200); }
.cat__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--indigo-50);
  color: var(--indigo-700);
}
.cat__icon .icon { width: 28px; height: 28px; }
.cat__title { font-size: 1.02rem; font-weight: 800; color: var(--indigo-800); }
.cat__text { margin-top: .3rem; font-size: .9rem; line-height: 1.5; color: var(--muted); }

.cat--featured { background: var(--indigo-800); border-color: var(--indigo-800); }
.cat--featured .cat__icon { background: var(--yellow-400); color: var(--indigo-950); }
.cat--featured .cat__title { color: var(--white); }
.cat--featured .cat__text { color: rgba(255, 255, 255, .78); }

@media (min-width: 600px) {
  .cat { flex-direction: row; align-items: flex-start; }
}
@media (min-width: 1100px) {
  .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat { flex-direction: column; }
}
@media (max-width: 380px) {
  .cat { padding: 1rem; }
  .cat__text { font-size: .85rem; }
}

/* ---------- Cómo funciona ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  position: relative;
  padding: 2rem 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.step__num {
  position: absolute;
  top: 1.25rem; right: 1.4rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: rgba(255, 255, 255, .1);
}
.step__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--yellow-400);
  color: var(--indigo-950);
}
.step__icon .icon { width: 28px; height: 28px; stroke-width: 2; }
.step__title { margin-top: 1.2rem; font-size: 1.15rem; font-weight: 800; }
.step__text { margin-top: .5rem; color: rgba(255, 255, 255, .78); font-size: .95rem; }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Sucursales ---------- */
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge--empeno { background: var(--indigo-700); color: var(--white); }
.badge--empeno-bazar { background: var(--red-600); color: var(--white); }
.badge--bazar { background: var(--yellow-400); color: var(--indigo-950); }
.badge--autos { background: var(--indigo-50); color: var(--indigo-700); gap: .35rem; }
.badge--autos .icon { width: 1.1em; height: 1.1em; }

/* Flex (no grid) para que la última fila incompleta quede centrada */
.branches {
  --cols: 1;
  --g: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--g);
}
@media (min-width: 600px)  { .branches { --cols: 2; } }
@media (min-width: 1024px) { .branches { --cols: 3; } }
@media (min-width: 1600px) { .branches { --cols: 4; } }

.branch {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols));
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.branch:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.branch__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--indigo-50);
  overflow: hidden;
}
.branch__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.branch:hover .branch__media img { transform: scale(1.04); }
.branch__media .badge { position: absolute; top: .9rem; left: .9rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

/* Imagen de marca para sucursales sin foto: imita una fachada pintada */
.facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.facade__wall {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 10px solid var(--indigo-700);
  border-bottom: 0;
}
.facade__sign {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  color: var(--red-600);
  text-shadow:
    -2px -2px 0 var(--yellow-400), 2px -2px 0 var(--yellow-400),
    -2px 2px 0 var(--yellow-400), 2px 2px 0 var(--yellow-400),
    0 3px 0 var(--yellow-400);
}
.facade__sign small {
  display: block;
  font-size: .62em;
  text-transform: none;
}
.facade__base { height: 26%; background: linear-gradient(to bottom, var(--yellow-400) 0 10%, var(--white) 10% 16%, var(--red-600) 16% 26%, var(--white) 26% 32%, var(--indigo-700) 32%); }

.branch__body { display: flex; flex-direction: column; gap: .8rem; flex: 1; padding: 1.3rem 1.3rem 1.4rem; }
.branch__title { font-size: 1.2rem; font-weight: 800; color: var(--indigo-800); }
.branch__row { display: flex; gap: .6rem; font-size: .93rem; color: var(--ink-soft); }
.branch__row .icon { margin-top: .15em; color: var(--red-600); }
.branch__hours { display: grid; gap: .1rem; }
.branch__hours span { display: block; }
.branch__hours b { font-weight: 600; color: var(--ink); }
.branch__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.branch__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.branch__actions .btn { flex: 1 1 auto; }

/* Celular: tarjetas más compactas para no hacer tan largo el scroll */
@media (max-width: 599.98px) {
  .branch__media { aspect-ratio: 16 / 9; }
  .branch--sin-foto .branch__media { aspect-ratio: auto; height: 120px; }
  .branch--sin-foto .facade__wall { border-width: 8px; padding: .5rem; }
  .branch--sin-foto .facade__base { height: 30%; }
  .branch--sin-foto .facade__sign { font-size: 1.5rem; }
  .branch__body { padding: 1.1rem 1.1rem 1.2rem; gap: .7rem; }
}

/* ---------- Bazar ---------- */
.bazar__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.bazar__intro .section-lead { margin-bottom: 1.6rem; }
.bazar .section-title, .bazar .eyebrow { text-align: left; }
.bazar .section-title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .45rem .95rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .9rem;
  color: var(--indigo-700);
}

.promo-box {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-top: 1.8rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--yellow-400);
  color: var(--indigo-950);
  font-weight: 700;
}
.promo-box .icon { margin-top: .15em; }

.bazar__list {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--yellow-400);
}
.bazar__list-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--indigo-800);
}
.bazar__list-title .icon { color: var(--red-600); width: 1.5rem; height: 1.5rem; }

.mini-branches { display: grid; }
.mini-branch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.mini-branch:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-branch__name { font-family: var(--font-display); font-weight: 700; color: var(--indigo-800); }
.mini-branch__addr { font-size: .88rem; color: var(--muted); }
.mini-branch__name .badge { margin-left: .4rem; padding: .15rem .55rem; font-size: .68rem; vertical-align: 2px; }
.badge--online { background: var(--indigo-700); color: var(--white); }
.mini-branch__go {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--indigo-50);
  color: var(--indigo-700);
  transition: background-color .2s, color .2s;
}
.mini-branch__go:hover { background: var(--indigo-700); color: var(--white); }

@media (min-width: 1000px) {
  .bazar__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Video ---------- */
.video-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.video-grid__text .section-lead { margin-bottom: 2rem; }
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(255, 255, 255, .15);
}
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

@media (min-width: 1000px) {
  .video-grid { grid-template-columns: 5fr 7fr; }
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin-inline: auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--indigo-200); }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: .5rem;
  border-radius: 14px;
  background: var(--indigo-700);
  color: var(--white);
}
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card--wa .contact-card__icon { background: var(--wa); }
.contact-card__label { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--indigo-800); }

.hours-list--compact > div,
.hours-list--footer > div { flex-direction: column; gap: .1rem; }
.hours-list--compact dd,
.hours-list--footer dd { text-align: left; }
.contact-card .hours-list { margin-top: .3rem; }
.contact-card .hours-list > div { border-bottom-color: var(--line); }
.contact-card .hours-list dt { color: var(--muted); font-size: .92rem; }
.contact-card .hours-list dd { color: var(--indigo-800); font-size: .92rem; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--indigo-950); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.brand--chip {
  padding: .6rem .9rem;
  border-radius: var(--radius);
  background: var(--white);
}
.brand--chip img { height: 52px; width: auto; mix-blend-mode: normal; }
.site-footer__brand p { margin-top: 1.1rem; max-width: 34ch; }

.site-footer__title {
  margin-bottom: 1rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow-400);
}
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__contact li { display: flex; align-items: center; gap: .6rem; }
.site-footer__contact .icon { color: var(--yellow-400); }
.hours-list--footer { margin-top: 0; }
.hours-list--footer > div { border-bottom-color: rgba(255, 255, 255, .12); }
.hours-list--footer dd { color: var(--white); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.4rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(18, 140, 74, .45);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa-dark); }
.wa-float .icon { width: 32px; height: 32px; stroke-width: 1.6; }

/* ---------- Animación al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .wa-float, .hero__media, .video-frame, .nav-toggle { display: none !important; }
  .hero, .section--dark, .site-footer { background: none !important; color: #000 !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
