/* ===================================================================
   Montalvo — páginas internas (Nosotros, Servicios, Salones, Contacto)
   Se carga después de styles.css y reutiliza sus variables, botones,
   tipografías y animaciones. No modifica nada de la landing.
   =================================================================== */

/* ---------- Cabecera de página (equivale al hero de la landing) ---------- */

.page-hero {
  position: relative;
  min-height: clamp(360px, 54vh, 540px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-graphite);
}

.page-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.8);
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 8, 0.55) 0%,
    rgba(10, 9, 8, 0.3) 40%,
    rgba(10, 9, 8, 0.7) 100%
  );
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 150px 60px 56px;
}

.page-hero h1 {
  font-size: clamp(36px, 5.2vw, 66px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-hero p {
  margin-top: 16px;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

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

.page-section {
  padding: 100px 0;
}

.page-section.alt {
  background: #f7f6f4;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-black);
}

.section-lead {
  max-width: 680px;
  margin: 16px auto 56px;
  text-align: center;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-muted);
}

.btn-outline-dark {
  border: 1px solid var(--color-black);
  color: var(--color-black);
}

.btn-outline-dark:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 15px;
}

/* Botones añadidos a la portada */
.about-more {
  align-self: center;
}

.services-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- Salones ---------- */

.city-block + .city-block {
  margin-top: 72px;
}

.city-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-white);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.branch-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.branch-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.branch-meta {
  display: grid;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-ink);
}

.branch-meta dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.branch-meta dd {
  margin: 2px 0 0;
}

.branch-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.branch-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.empty-note {
  padding: 48px 24px;
  border: 1px dashed var(--color-line);
  border-radius: 20px;
  text-align: center;
  color: var(--color-muted);
}

/* ---------- Servicios ---------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  scroll-margin-top: 96px;
}

.service-row-photo {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  margin: 0;
}

.service-row-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding: 72px clamp(32px, 7vw, 110px);
}

.service-row:nth-child(even) .service-row-photo {
  order: 2;
}

.service-row:nth-child(even) .service-row-text {
  background: #f7f6f4;
}

.service-row-text h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.service-row-text p {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-muted);
}

.service-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* ---------- Nosotros ---------- */

.about-text {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.about-text p {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px 96px;
  margin-top: 8px;
}

.brand-grid img {
  height: 44px;
  width: auto;
}

.brand-grid .brand-logo-tall {
  height: 72px;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-white);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.contact-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
}

.contact-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Portada: salones y tienda ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.split-photo {
  position: relative;
  margin: 0;
  min-height: 340px;
  overflow: hidden;
}

.split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding: 72px clamp(32px, 7vw, 110px);
  background: #f7f6f4;
}

.split-text h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.split-text p {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-muted);
}

.shop-teaser {
  padding: 110px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: #f1efec;
}

.product-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-photo img {
  transform: scale(1.05);
}

.product-card-type {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.product-card-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.product-card-price {
  font-size: 16px;
  font-weight: 500;
}

.shop-teaser-more {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

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

.footer-nav {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 24px 40px 0;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  font-size: 14px;
  color: var(--color-muted);
}

.footer-nav a:hover {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Íconos de cuenta y carrito en el header ---------- */

.site-header .icon-btn {
  position: relative;
}

.site-header .icon-btn svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}

.site-header .cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.site-header .cart-badge[hidden] {
  display: none;
}

/* ---------- Texto libre (páginas legales) ---------- */

.rich-text {
  max-width: 820px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-ink);
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 2em 0 0.6em;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rich-text h2 {
  font-size: clamp(26px, 2.6vw, 34px);
}

.rich-text h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.rich-text p {
  margin: 0 0 1.1em;
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.rich-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Formularios de la plataforma ---------- */

.site-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  max-width: 720px;
  margin-inline: auto;
  font-family: var(--font-heading);
}

.site-form > * {
  grid-column: 1 / -1;
}

.site-form > .is-half {
  grid-column: span 1;
}

.site-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-form-field > span {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-graphite);
}

.site-form input[type='text'],
.site-form input[type='email'],
.site-form input[type='number'],
.site-form textarea,
.site-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cfccc8;
  border-radius: 6px;
  background: var(--color-white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.site-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.site-form select {
  height: 50px;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.site-form input::placeholder,
.site-form textarea::placeholder {
  color: #a9a6a2;
}

.site-form input:hover,
.site-form textarea:hover,
.site-form select:hover {
  border-color: #8f8c88;
}

.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.site-form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-graphite);
  cursor: pointer;
}

.site-form-check input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid #8f8c88;
  border-radius: 4px;
  background: var(--color-white);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-form-check input[type='checkbox']::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.12s ease;
}

.site-form-check input[type='checkbox']:checked {
  background: var(--color-black);
  border-color: var(--color-black);
}

.site-form-check input[type='checkbox']:checked::after {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.site-form-check input[type='checkbox']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.15);
}

.site-form .btn {
  justify-self: start;
  font-family: var(--font-heading);
  cursor: pointer;
}

@media (max-width: 640px) {
  .site-form {
    grid-template-columns: 1fr;
  }

  .site-form > .is-half {
    grid-column: 1 / -1;
  }
}

.site-form-error {
  color: #b42318;
  font-size: 15px;
}

.site-form-done {
  max-width: 640px;
  margin-inline: auto;
  padding: 28px 32px;
  border-radius: 20px;
  background: #f7f6f4;
  text-align: center;
  line-height: 1.6;
}

/* ---------- Enlace activo del menú ---------- */

.main-nav a[aria-current='page'] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .page-hero-inner {
    padding-inline: 32px;
  }

  .branch-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .site-header .icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .page-hero-inner {
    padding: 120px 22px 40px;
  }

  .page-section {
    padding: 64px 0;
  }

  .section-lead {
    margin-bottom: 36px;
  }

  .branch-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-row,
  .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .service-row:nth-child(even) .service-row-photo {
    order: 0;
  }

  .service-row-photo,
  .split-photo {
    min-height: 280px;
  }

  .service-row-text,
  .split-text {
    padding: 48px 22px;
  }

  /* "Encuentra tu salón": en celular el texto y el botón van centrados */
  .split-text {
    align-items: center;
    text-align: center;
  }

  .shop-teaser {
    padding: 72px 0;
  }

  .product-grid {
    gap: 14px;
  }

  .brand-grid {
    gap: 40px 56px;
  }

  .footer-nav {
    padding-inline: 22px;
  }
}

@media (max-width: 480px) {
  /* Con los íconos de cuenta y carrito ya no cabe "Reservar cita" en el header móvil */
  .site-header .header-cta {
    display: none;
  }

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

  .product-card-name {
    font-size: 16px;
  }
}

/* ---------- Nosotros: fundador, propósito y grupo ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.founder-photo {
  position: relative;
  margin: 0;
}

.founder-photo-frame {
  overflow: hidden;
  border-radius: 24px;
  background: #eef0f4;
}

.founder-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Cita sobre la foto, en la paleta de la landing (grafito y blanco) */
.founder-quote {
  position: absolute;
  left: -6%;
  bottom: -9%;
  width: min(300px, 70%);
  margin: 0;
  padding: 28px 28px 26px;
  border-radius: 24px 24px 24px 4px;
  background: var(--color-graphite);
  color: var(--color-white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.founder-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.founder-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.founder-text h2 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.founder-text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-muted);
}

.founder-text p + p {
  margin-top: 20px;
}

.founder-name {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--color-black);
}

.founder-name strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--color-black);
}

.founder-name span {
  font-size: 14px;
  color: var(--color-muted);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  padding: 36px 32px;
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.pillar-card p,
.pillar-card li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-muted);
}

.pillar-card ul {
  margin: 0;
  padding-left: 20px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.group-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 30px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-white);
}

.group-card.is-current {
  background: var(--color-graphite);
  border-color: var(--color-graphite);
  color: var(--color-white);
}

.group-card .group-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.group-card.is-current .group-tag,
.group-card.is-current p {
  color: rgba(255, 255, 255, 0.75);
}

.group-card h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.group-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-muted);
}

.source-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

@media (max-width: 1024px) {
  .pillar-grid,
  .group-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .founder-quote {
    left: 12px;
    right: 12px;
    bottom: -48px;
    width: auto;
  }

  .founder-text p {
    font-size: 16px;
  }
}

/* ---------- Buscador de salones + carrusel ---------- */

.bf-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 16px;
  margin: 8px 0 20px;
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bf-field > span {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-graphite);
}

.bf-field select,
.bf-field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #cfccc8;
  border-radius: 6px;
  background-color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-ink);
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bf-field select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.bf-field input::placeholder {
  color: #a9a6a2;
}

.bf-field select:hover,
.bf-field input:hover {
  border-color: #8f8c88;
}

.bf-field select:focus,
.bf-field input:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.bf-count {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--color-muted);
}

.bf-clear {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bf-empty {
  padding: 56px 24px;
  border: 1px dashed var(--color-line);
  border-radius: 12px;
  text-align: center;
  color: var(--color-muted);
}

.bf-carousel {
  position: relative;
}

.bf-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-white);
}

.bf-track::-webkit-scrollbar {
  display: none;
}

.bf-track:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

.bf-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 420px;
  scroll-snap-align: start;
}

.bf-media {
  position: relative;
  min-height: 320px;
  background: #1c1c1c;
}

.bf-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bf-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2b2b2d, #111);
}

.bf-placeholder img {
  position: static;
  width: 180px;
  height: auto;
  opacity: 0.85;
}

.bf-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e9e7e3;
}

.bf-view {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.bf-view button {
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--color-ink);
  cursor: pointer;
}

.bf-view button[aria-pressed='true'] {
  background: var(--color-black);
  color: var(--color-white);
}

.bf-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 44px;
}

.bf-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-services li {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: #f1efec;
  font-size: 13px;
  color: var(--color-ink);
}

.bf-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.bf-place {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.bf-name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bf-info .branch-meta {
  gap: 16px;
  font-size: 16px;
}

.bf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.bf-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-black);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.bf-arrow:hover:not(:disabled) {
  background: var(--color-black);
  color: var(--color-white);
}

.bf-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.bf-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 50%;
}

.bf-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfccc8;
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.bf-dots.is-hidden {
  display: none;
}

.bf-dots button.is-active {
  width: 26px;
  background: var(--color-black);
}

.bf-counter {
  min-width: 44px;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .bf-filters {
    grid-template-columns: 1fr 1fr;
  }

  .bf-field--search {
    grid-column: 1 / -1;
  }

  .bf-slide {
    grid-template-columns: 1fr;
  }

  .bf-media {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .bf-info {
    padding: 28px 24px 32px;
  }
}

@media (max-width: 560px) {
  .bf-filters {
    grid-template-columns: 1fr;
  }

  .bf-dots {
    display: none;
  }
}


/* ---------- Páginas legales (Términos, Política de privacidad) ---------- */
/* Menú "Información legal" a la izquierda y el texto en acordeón a la derecha (ver src/site/LegalPage.tsx) */

.legal-band {
  height: 96px;
  background: var(--color-black);
}

.legal {
  max-width: 1280px;
  margin-inline: auto;
  padding: 28px 60px 110px;
  color: var(--color-ink);
}

.legal-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.legal-crumbs a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-crumbs [aria-current] {
  color: var(--color-ink);
  font-weight: 500;
}

.legal-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  margin-top: 36px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 120px;
}

.legal-nav__title {
  padding: 0 22px 18px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  border-bottom: 1px solid var(--color-line);
}

.legal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-nav > ul > li {
  border-bottom: 1px solid var(--color-line);
}

.legal-nav a {
  display: block;
  padding: 18px 22px;
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease;
}

.legal-nav a:hover {
  background: #f6f5f3;
}

.legal-nav a.is-current {
  background: #f6f5f3;
  border-left-color: var(--color-black);
  font-weight: 600;
}

.legal-nav__sub {
  background: #f6f5f3;
  padding-bottom: 8px !important;
}

.legal-nav__sub a {
  padding: 10px 22px 10px 46px;
  font-size: 14px;
  color: #444;
}

.legal-nav__sub a:hover {
  text-decoration: underline;
}

.legal-main h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-subtitle {
  margin-top: 10px;
  font-size: 17px;
  color: var(--color-muted);
}

.legal-text {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}

.legal-text p + p,
.legal-text p + ul,
.legal-text ul + p {
  margin-top: 14px;
}

.legal-text ul,
.legal-text ol {
  padding-left: 22px;
  list-style: disc;
}

.legal-text ol {
  list-style: decimal;
}

.legal-text li + li {
  margin-top: 6px;
}

.legal-text strong {
  font-weight: 600;
  color: var(--color-ink);
}

.legal-text a {
  color: inherit;
  text-decoration: underline;
}

.legal-intro {
  margin-top: 28px;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 44px;
}

.legal-item {
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: #f7f7f6;
}

.legal-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 30px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.legal-item summary::-webkit-details-marker {
  display: none;
}

.legal-item summary:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.legal-chevron {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6f6f6f;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.legal-chevron::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 13px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.legal-item summary:hover .legal-chevron {
  background: var(--color-black);
}

.legal-item[open] .legal-chevron {
  transform: rotate(180deg);
}

.legal-item__body {
  padding: 0 30px 28px;
}

@media (max-width: 960px) {
  .legal-band {
    height: 72px;
  }

  .legal {
    padding: 20px 20px 80px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }

  /* En celular el menú va arriba y no se queda fijo */
  .legal-nav {
    position: static;
  }

  .legal-item summary {
    padding: 18px 18px;
    font-size: 16px;
  }

  .legal-chevron {
    width: 30px;
    height: 30px;
  }

  .legal-chevron::before {
    top: 9px;
    left: 10px;
    width: 8px;
    height: 8px;
  }

  .legal-item__body {
    padding: 0 18px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-chevron {
    transition: none;
  }
}
