/* ==========================================================================
   Branco S.R.L. Construcciones — landing v2
   Se carga DESPUÉS de bootstrap.min.css.
   Paleta tomada del Brochure Corporativo.
   ========================================================================== */

:root {
  --br-red: #B7001B;
  --br-red-dark: #8E0015;
  --br-red-light: #FF3B53;
  --br-ink: #151D25;
  --br-ink-2: #2B2F36;
  --br-light: #F4F4F2;
  --br-line: #E0E0E2;

  --bs-body-font-family: "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: #202832;
  --bs-body-bg: #ffffff;

  /* Botones y links de Bootstrap con el rojo de marca */
  --bs-primary: #B7001B;
  --bs-primary-rgb: 183, 0, 27;
  --bs-link-color: #B7001B;
  --bs-link-color-rgb: 183, 0, 27;
  --bs-link-hover-color: #8E0015;

  --br-section-y: 11rem;
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

body { -webkit-font-smoothing: antialiased; }

/* El navbar es fijo: el ancla se frena justo debajo de su borde inferior.
   --br-nav-h la mide el JS; el valor de reserva es la altura real en desktop. */
section[id], header[id] { scroll-margin-top: var(--br-nav-h, 75px); }

/* ---------- Botones ---------- */
.btn-primary {
  --bs-btn-bg: var(--br-red);
  --bs-btn-border-color: var(--br-red);
  --bs-btn-hover-bg: var(--br-red-dark);
  --bs-btn-hover-border-color: var(--br-red-dark);
  --bs-btn-active-bg: var(--br-red-dark);
  --bs-btn-active-border-color: var(--br-red-dark);
  --bs-btn-focus-shadow-rgb: 183, 0, 27;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: .02em;
}
.btn-outline-light, .btn-outline-dark, .btn-outline-primary { border-radius: 2px; font-weight: 600; }
.btn-outline-primary {
  --bs-btn-color: var(--br-red);
  --bs-btn-border-color: var(--br-red);
  --bs-btn-hover-bg: var(--br-red);
  --bs-btn-hover-border-color: var(--br-red);
  --bs-btn-focus-shadow-rgb: 183, 0, 27;
}

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

/* ---------- Secciones ---------- */
.section { padding-top: var(--br-section-y); padding-bottom: var(--br-section-y); }
.section--alt { background-color: var(--br-light); }
.section--dark { background-color: var(--br-ink); color: #fff; }
.section--dark .text-secondary { color: rgba(255,255,255,.65) !important; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Etiqueta de sección: ¿QUIÉNES SOMOS? */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--br-red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--br-red); display: inline-block; }
/* Ocupa el mismo espacio que un eyebrow, sin dibujar nada */
.eyebrow--hueco { visibility: hidden; }

.section--dark .eyebrow { color: #ff3b53; }
.section--dark .eyebrow::before { background: #ff3b53; }

.title { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

/* Detalle en punta roja, como el brochure */
.corner-flag { position: relative; }
.corner-flag::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  border-style: solid; border-width: 0 34px 34px 0;
  border-color: transparent transparent var(--br-red) transparent;
}

/* ---------- Navbar ---------- */
.navbar-branco {
  background: rgba(21, 29, 37, .96);
  backdrop-filter: saturate(140%) blur(6px);
  transition: background-color .25s ease;
}
.navbar-branco .navbar-brand img { height: 34px; width: auto; }
.navbar-branco .nav-link { color: #fff; font-size: 1.02rem; font-weight: 600; }
@media (min-width: 992px) {
  .navbar-branco .navbar-nav .nav-item + .nav-item { margin-left: 1.4rem; }
  .navbar-branco .nav-link { padding-left: .95rem; padding-right: .95rem; }
}
.navbar-branco .nav-link:hover, .navbar-branco .nav-link:focus { color: var(--br-red-light); }
.navbar-branco .navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-branco .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  color: #fff;
  background: var(--br-ink);
  padding: 7rem 0 4.5rem;
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
  background: radial-gradient(120% 90% at 60% 45%, #1c2530 0%, var(--br-ink) 60%, #0e141a 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21,29,37,.92) 0%, rgba(21,29,37,.72) 42%, rgba(21,29,37,.18) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.15rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.hero__lead { max-width: 70ch; font-size: 1.1rem; color: rgba(255,255,255,.82); }

/* ---------- Métricas ---------- */
.metrics {
  background: #0E1319; color: #fff;
  padding-top: 3rem; padding-bottom: 3rem;
}
@media (min-width: 992px) {
  .metrics { padding-top: 4rem; padding-bottom: 4rem; }
}
.metric__value { font-size: clamp(2.28rem, 4.08vw, 3.3rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.metric__plus { color: var(--br-red); }
.metric__value.is-typing::after {
  content: "";
  display: inline-block;
  width: .06em; height: .85em;
  margin-left: .06em;
  vertical-align: -.06em;
  background: var(--br-red);
  animation: br-caret .75s steps(1) infinite;
}
@keyframes br-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.metric__label {
  font-size: 1.02rem; color: rgba(255,255,255,.65);
  letter-spacing: .06em; text-transform: uppercase;
  margin-top: .65rem; margin-bottom: .75rem; line-height: 1.35;
}
.metric + .metric { border-left: 1px solid rgba(255,255,255,.14); }
@media (max-width: 767.98px) { .metric:nth-child(odd) { border-left: 0; } }

/* ---------- Sección con imagen de fondo ---------- */
.section--bg {
  position: relative;
  background-color: var(--br-light);
  background-image: url("../img/fondo-servicios.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.section--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244,244,242,.70) 0%, rgba(244,244,242,.66) 100%);
  z-index: -1;
}
.section--bg > .container { position: relative; }

@media (min-width: 992px) {
  .section--bg { background-attachment: fixed; }
}

/* ---------- Tarjetas ---------- */
.card-branco {
  height: 100%; border: 1px solid var(--br-line); border-radius: 3px;
  background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-branco:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(21,29,37,.10); border-color: #c9c9cc; }
.card-branco .num {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--br-red);
}
.section--dark .card-branco { background: var(--br-ink-2); border-color: rgba(255,255,255,.12); color: #fff; }
.section--dark .card-branco:hover { border-color: rgba(255,255,255,.28); }

/* ---------- Proceso (5 pasos) ---------- */
.step { position: relative; padding: 1.6rem 1.25rem; background: #fff; border: 1px solid var(--br-line); height: 100%; border-radius: 3px; }
.step__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .9rem;
}
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 2px; flex: 0 0 auto;
  background: var(--br-red); color: #fff; font-weight: 700;
}
.step__icon {
  width: 28px; height: 28px; flex: 0 0 auto;
  color: rgba(21,29,37,.28);
  transition: color .2s ease;
}
.section--dark .step__icon { color: rgba(255,255,255,.34); }
.step:hover .step__icon { color: var(--br-red); }
.section--dark .step { background: var(--br-ink-2); border-color: rgba(255,255,255,.12); color: #fff; }

/* Un solo tamaño para el nombre de todas las obras (antes mezclaba h5 y h6),
   a la misma escala que el nombre en los testimonios. */
.work__nombre {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
  color: #fff;
}

/* ---------- Tarjeta de obra con foto de fondo ---------- */
.work-tile {
  position: relative;
  min-height: 220px;
  border-radius: 3px;
  overflow: hidden;
  color: #fff;
  background: var(--br-ink) url("../img/changomas-walmart.jpg") center/cover no-repeat;
}
/* Velo oscuro: la foto sola no da contraste suficiente para el texto */
.work-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,19,25,.35) 0%, rgba(14,19,25,.85) 100%);
}
.work-tile__texto { position: relative; }
.work-tile .k {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: #ff5f74; font-weight: 700;
}

/* ---------- Lista con check ---------- */
.check-list { list-style: none; padding-left: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .85rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; background: var(--br-red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Chips de disciplinas ---------- */
.chip {
  display: inline-block; padding: .45rem .9rem; margin: 0 .4rem .55rem 0;
  border: 1px solid rgba(255,255,255,.22); border-radius: 2px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

/* ---------- Galería de obras ---------- */
.work { position: relative; overflow: hidden; border-radius: 3px; display: block; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,29,37,0) 32%, rgba(21,29,37,.55) 62%, rgba(21,29,37,.94) 100%);
}
.work:hover img { transform: scale(1.05); }
.work__caption { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1.25rem; color: #fff; }
.work__caption .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #ff5f74; font-weight: 700; }
.work--tall { aspect-ratio: 3 / 4; }
@media (min-width: 992px) {
  /* En escritorio los tiles verticales igualan la altura de la fila */
  .work--tall { aspect-ratio: auto; height: 100%; min-height: 260px; }
}
.work--wide { aspect-ratio: 16 / 9; }

/* ---------- Testimonios ---------- */
/* El cinturón de logos viene pegado abajo: sin esto, la sección arrastra los
   11rem globales y deja un hueco enorme entre las tarjetas y los logos. */
.testimonios { padding-bottom: 0; }

/* La foto sobresale por encima de la tarjeta: la fila necesita ese aire arriba. */
.testi-row { padding-top: 8.5rem; }

.testi {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--br-line);
  border-radius: 16px;
  padding: 6.5rem 1.75rem 2rem;   /* el tope deja lugar a la parte baja de la foto */
  text-align: center;
  box-shadow: 0 10px 30px rgba(21,29,37,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testi:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(21,29,37,.12); }

/* Los PNG vienen recortados y con fondo transparente: se muestran enteros,
   sin máscara circular ni color detrás. La sombra la da el filtro, que sigue
   la silueta en vez de dibujar un rectángulo. */
.testi__foto {
  position: absolute;
  top: -8.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 12.5rem;
}
.testi__foto img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(21,29,37,.22));
}

.testi__nombre { font-size: 1.35rem; font-weight: 700; margin: 1.75rem 0 .25rem; }
.testi__rol {
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--br-red); font-weight: 700; margin: 0 0 1.1rem;
}
.testi__texto {
  margin: 0 0 1.25rem;
  font-size: .98rem; line-height: 1.6; color: #4a5561;
  quotes: "\201C" "\201D";
}
.testi__texto::before { content: open-quote; }
.testi__texto::after  { content: close-quote; }

/* El enlace se ancla abajo para que las tarjetas cierren parejas
   aunque alguna no tenga Instagram. */
.testi__ig {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  color: var(--br-ink);
  font-size: .92rem; font-weight: 600;
  text-decoration: none;
}
.testi__ig:hover { color: var(--br-red); text-decoration: underline; }
.testi__ig svg { width: 18px; height: 18px; flex: 0 0 auto; }

@media (max-width: 767.98px) {
  .testi-row { padding-top: 7rem; }
  .testi { padding: 5.5rem 1.35rem 1.75rem; }
  .testi__foto { width: 10.5rem; top: -7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .testi { transition: none; }
  .testi:hover { transform: none; }
}

/* ---------- Valores ---------- */
.value { padding: 1.6rem; border: 1px solid rgba(255,255,255,.12); background: var(--br-ink-2); height: 100%; border-radius: 3px; }
.value__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .5rem;
}
.value h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.value__icon {
  width: 28px; height: 28px; flex: 0 0 auto;
  color: rgba(255,255,255,.34);
  transition: color .2s ease;
}
.value:hover .value__icon { color: var(--br-red-light); }

/* ---------- Cinturón de logos ---------- */
.logos-belt {
  background: #fff;
  overflow: hidden;
  /* Mismo aire vertical que la banda de cifras, no el de las secciones largas */
  /* Arriba, la mitad del aire que deja abajo */
  padding-top: calc(var(--br-section-y) / 2);
  /* Mismo aire que deja Testimoniales por arriba (var --br-section-y) */
  padding-bottom: var(--br-section-y);
}

.cinta {
  display: flex;
  width: 100%;
  /* Los extremos se desvanecen: los logos entran y salen sin cortarse de golpe */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.cinta__pista {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 2rem;
  list-style: none;
  animation: cinta-correr 45s linear infinite;
}
/* Dos pistas idénticas una al lado de la otra: cuando la primera termina de
   salir, la segunda ya ocupa su lugar, así el ciclo no tiene costura. */
@keyframes cinta-correr { to { transform: translateX(-100%); } }

.cinta:hover .cinta__pista { animation-play-state: paused; }

.cinta__item { flex: 0 0 auto; display: flex; align-items: center; }
.cinta__item img {
  height: 62px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  /* Escala de grises: unifica logos de colores y formatos muy distintos */
  filter: grayscale(1);
  opacity: .55;
  transition: filter .25s ease, opacity .25s ease;
}
.cinta__item img:hover { filter: none; opacity: 1; }

@media (max-width: 767.98px) {
  .cinta__pista { gap: 2.5rem; padding: 0 1.25rem; animation-duration: 32s; }
  .cinta__item img { height: 48px; max-width: 150px; }
}

/* Sin movimiento: los logos se acomodan centrados en varias filas */
@media (prefers-reduced-motion: reduce) {
  .cinta { flex-wrap: wrap; }
  .cinta__pista { animation: none; flex-wrap: wrap; justify-content: center; gap: 2.5rem 3rem; width: 100%; }
  .cinta__pista[aria-hidden="true"] { display: none; }
}

/* ---------- Ekodom ---------- */
.ekodom { background: linear-gradient(120deg, #0f3b34 0%, #14514a 100%); color: #fff; }
.ekodom .eyebrow { color: #7fd6c4; }
.ekodom .eyebrow::before { background: #7fd6c4; }

/* ---------- Acordeón ---------- */
/* Bootstrap abre el panel activo en celeste (#cfe2ff con texto #0c63e4) y pinta
   el chevron y el foco del mismo azul. Se reemplaza por el rojo de marca. */
.accordion {
  --bs-accordion-border-color: var(--br-line);
  --bs-accordion-border-radius: 3px;
  --bs-accordion-inner-border-radius: 3px;
  --bs-accordion-btn-color: var(--br-ink);
  --bs-accordion-active-bg: rgba(183, 0, 27, .06);
  --bs-accordion-active-color: var(--br-red);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(183, 0, 27, .15);
  /* chevron gris en reposo, rojo al abrir */
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232B2F36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B7001B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
}
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { box-shadow: inset 0 -1px 0 var(--br-line); }

/* ---------- Contacto ---------- */
/* Última sección de la página: si entre ella y el pie no hay alto suficiente,
   el navegador llega al final del scroll antes de poder alinearla bajo el
   navbar y asoma la sección anterior. Asegurarle el alto del viewport lo evita. */
#contacto {
  min-height: calc(100vh - var(--br-nav-h, 75px));
  min-height: calc(100svh - var(--br-nav-h, 75px));
  display: flex;
  align-items: center;
}
#contacto > .container { width: 100%; }

.form-control { border-radius: 2px; }
/* Bootstrap pinta de verde TODO lo válido al validar, incluidos los campos
   opcionales vacíos: un tilde en "Teléfono" sin completar confunde.
   Se neutraliza el estado válido cuando el campo es opcional y está vacío. */
.was-validated .form-control:not([required]):placeholder-shown {
  border-color: var(--br-line);
  background-image: none;
  padding-right: .75rem;
}
.was-validated .form-control:not([required]):placeholder-shown:focus {
  border-color: var(--br-red);
  box-shadow: 0 0 0 .2rem rgba(183,0,27,.15);
}
.form-control:focus { border-color: var(--br-red); box-shadow: 0 0 0 .2rem rgba(183,0,27,.15); }
.contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-item a { color: #fff; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* Redes debajo del teléfono */
.contact-redes { display: flex; gap: .75rem; margin-top: 1.5rem; }
.contact-redes a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.contact-redes a:hover { background: var(--br-red); border-color: var(--br-red); color: #fff; }
.contact-redes a:focus-visible { outline: 3px solid var(--br-red-light); outline-offset: 3px; }
.contact-redes svg { width: 21px; height: 21px; }

/* ---------- Footer ---------- */
.footer { background: #0E141A; color: rgba(255,255,255,.62); }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer img { height: 40px; width: auto; }
.footer__credito { margin-top: .9rem; }
.footer__credito a { color: rgba(255,255,255,.55); }
.footer__credito a:hover { color: rgba(255,255,255,.85); }


/* ---------- ODS ---------- */
.ods-destacado {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .9rem;
}
.ods-destacado__marca { width: 190px; height: auto; }
.ods-destacado__iconos { display: flex; gap: .75rem; }
.ods-destacado__iconos img { width: 78px; height: auto; border-radius: 3px; }

@media (max-width: 991.98px) {
  .ods-destacado { align-items: flex-start; }
  .ods-destacado__marca { width: 165px; }
  .ods-destacado__iconos img { width: 68px; }
}


/* ---------- Botones flotantes ---------- */
.float-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.float-btn:hover, .float-btn:focus { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.32); }
.float-btn:focus-visible { outline: 3px solid var(--br-red); outline-offset: 3px; }
.float-btn__icon { width: 32px; height: 32px; display: block; }

.float-btn--wa { background: #25D366; color: #fff; }
.float-btn--wa:hover, .float-btn--wa:focus { background: #1EBE5A; color: #fff; }
.float-btn--wa:focus-visible { outline-color: #fff; }

.float-btn--ekodom { background: #fff; border: 1px solid var(--br-line); }

/* "Volver arriba": misma familia de botones, del lado opuesto */
.float-stack--izq { right: auto; left: 1.25rem; }
.float-btn--top {
  background: var(--br-ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  /* Arranca oculto: arriba de todo no tiene sentido ofrecerlo */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.float-btn--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-btn--top:hover { background: var(--br-red); border-color: var(--br-red); color: #fff; }
.float-btn--top.is-visible:hover { transform: translateY(-2px); }
.float-btn--ekodom img { width: 32px; height: auto; display: block; }

@media (max-width: 575.98px) {
  .float-stack { right: 1rem; bottom: 1rem; gap: .6rem; }
  .float-stack--izq { right: auto; left: 1rem; }
  .float-btn { width: 52px; height: 52px; }
  .float-btn__icon { width: 29px; height: 29px; }
  .float-btn--ekodom img { width: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .float-btn { transition: none; }
  .float-btn:hover, .float-btn:focus { transform: none; }
}

@media print { .float-stack { display: none !important; } }

/* ---------- Modales de servicios ---------- */
.modal-serv .modal-content {
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(21,29,37,.35);
}
.modal-serv .serv-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  background-color: rgba(255,255,255,.85);
  border-radius: 50%;
  padding: .75rem;
  opacity: .9;
}
.modal-serv .serv-close:hover { opacity: 1; background-color: #fff; }

.serv-col-text { padding: 3rem 2.75rem; }
.serv-title { font-weight: 700; letter-spacing: -.02em; }
.serv-rule { display: block; width: 44px; height: 3px; background: var(--br-red); margin: 1.25rem 0 1.75rem; }
.serv-col-text p { font-size: 1.02rem; }
.serv-col-text p:last-of-type { margin-bottom: 0; }

.serv-lists { margin-top: 1.75rem; }
.serv-lists__title { font-size: .92rem; font-weight: 700; margin-bottom: .4rem; }
.serv-lists ul { padding-left: 1.1rem; margin-bottom: 1.1rem; }
.serv-lists ul:last-child { margin-bottom: 0; }

.serv-stat__value {
  color: var(--br-red);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
}
.serv-stat__label { font-weight: 700; font-size: .95rem; margin-top: .35rem; }

/* Galería */
.serv-col-media { background: var(--br-light); padding: 1.5rem; }
.serv-gallery { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.serv-gallery__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.serv-shot { position: relative; border-radius: 8px; overflow: hidden; }
.serv-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.serv-shot--lg img { aspect-ratio: 4 / 3; }
.serv-shot--sm img { aspect-ratio: 1 / 1; }
.serv-shot__caption {
  position: absolute;
  left: .5rem;
  bottom: .5rem;
  max-width: calc(100% - 1rem);
  background: rgba(255,255,255,.92);
  color: var(--br-ink);
  font-size: .7rem;
  line-height: 1.25;
  padding: .2rem .45rem;
  border-radius: 2px;
}

@media (max-width: 991.98px) {
  .serv-col-text { padding: 2.5rem 1.5rem 2rem; }
  .serv-col-media { padding: 0 1.5rem 2rem; }
  .serv-stat { padding-top: 2rem !important; }
}

/* ---------- Detalle desplegable de cada paso ---------- */
.step__toggle { --bs-btn-padding-y: .2rem; --bs-btn-padding-x: .6rem; font-size: .78rem; }
.step__toggle .step__toggle-less { display: none; }
.step__toggle[aria-expanded="true"] .step__toggle-less { display: inline; }
.step__toggle[aria-expanded="true"] .step__toggle-more { display: none; }

.step__detail-inner {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.72);
}
.step__detail-inner p { font-size: .84rem; line-height: 1.55; }

/* Alturas parejas con las cajas cerradas, sin estirar al abrir una */
@media (min-width: 992px) {
  .step > p { min-height: 4.5em; }
}

/* ---------- Banda de video institucional ---------- */
.video-band {
  position: relative;
  width: 100%;
  /* Distinto del --br-ink de #metodo: si no, mientras el video carga la banda
     se funde con la sección anterior y parece un hueco vacío gigante. */
  background: #0E1319 url("../img/proyecto-prisma.jpg") center/cover no-repeat;
  aspect-ratio: 21 / 9;
  max-height: 62vh;
  overflow: hidden;
  line-height: 0;
}
/* El iframe de YouTube siempre viene en 16/9: se lo agranda y se lo centra para
   que cubra la banda (más panorámica) sin franjas negras ni deformación. */
.video-band__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;          /* 100 / (16/9) */
  min-height: 100%;
  min-width: 177.78%;       /* alto * (16/9) */
  border: 0;
  pointer-events: none;     /* decorativo: no intercepta el scroll ni el clic */
}
@media (max-width: 767.98px) {
  .video-band { aspect-ratio: 16 / 9; max-height: 50vh; }
}
