/* ==========================================================================
   Footer: enlaces del sitio, legales y logo.
   ========================================================================== */

.f-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
.f-grid h4 {
  font: 600 0.875rem/1.2 var(--f-display);
  margin: 0 0 14px;
}
.f-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.f-grid a {
  text-decoration: none;
  color: var(--ink-2);
}
@media (hover: hover) {
  .f-grid a:hover {
    color: var(--ink);
  }
}
.f-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  color: var(--ink-3);
  font-size: 0.8125rem;
}
@media (max-width: 960px) {
  .f-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .f-grid > :first-child {
    grid-column: 1/-1;
  }
}

/* ==========================================================================
   Boomit v2: footer del sitio. Bloque navy con los datos del footer actual
   (menus "Footer New 1-5" con sus titulos, redes y oficinas de Domus, de las
   Opciones del footer), con la estetica de la home: resplandores de marca,
   tarjetas de vidrio y la palabra "boomit" de marca de agua.
   ========================================================================== */
.bv2-footer {
  --logo-ink: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(24px, 4vw, 48px);
  padding: 0;
  border: 0;
  border-radius: 32px 32px 0 0;
  color: rgba(244, 244, 246, 0.78);
  background:
    radial-gradient(55% 60% at 100% 0%, color-mix(in srgb, var(--brand-violet) 38%, transparent), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, color-mix(in srgb, var(--brand-coral) 18%, transparent), transparent 70%),
    var(--brand-navy);
}
.bv2-footer a {
  color: inherit;
  text-decoration: none;
}
.bv2-footer a:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Arriba: marca + columnas. */
.bv2-f-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2.4fr;
  gap: clamp(36px, 6vw, 96px);
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
}
.bv2-f-marca .brand svg {
  width: 150px;
  height: auto;
}
.bv2-f-claim {
  max-width: 30ch;
  margin: 22px 0 0;
  font: 600 1.25rem/1.35 var(--f-display);
  letter-spacing: -0.01em;
  color: #fff;
}
.bv2-f-claim s {
  text-decoration-color: var(--brand-coral);
  text-decoration-thickness: 2px;
}
.bv2-f-cta {
  margin-top: 26px;
}
.bv2-f-cta .btn {
  background: #fff;
  color: var(--brand-navy);
}
.bv2-f-redes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
/* Los iconos del panel son glifos blancos: van dentro de un anillo fino que
   se pinta de coral al pasar el mouse. */
.bv2-f-redes a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition:
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 250ms ease,
    box-shadow 250ms ease;
}
.bv2-f-redes a:hover {
  transform: translate3d(0, -3px, 0);
  background: var(--brand-coral);
  box-shadow: inset 0 0 0 1px var(--brand-coral);
}
.bv2-f-redes img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.bv2-f-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}
.bv2-f-col h3 {
  margin: 0 0 18px;
  font: 700 0.75rem/1.3 var(--f-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-lime);
}
.bv2-f-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bv2-f-col a {
  display: inline;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(244, 244, 246, 0.78);
  background: linear-gradient(var(--brand-coral), var(--brand-coral)) 0 100% / 0 1.5px no-repeat;
  transition:
    color 200ms ease,
    background-size 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bv2-f-col a:hover {
  color: #fff;
  background-size: 100% 1.5px;
}

/* Destacados (Blog, Casos de exito, Playbook): tarjetas con flecha. */
.bv2-f-dest ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: 0;
  list-style: none;
}
.bv2-f-dest a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px 56px 18px 22px;
  border-radius: 18px;
  font: 700 0.9375rem/1.3 var(--f-display);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition:
    background-color 250ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 250ms ease;
}
.bv2-f-dest a::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand-lime);
  border-top: 2px solid var(--brand-lime);
  transform: translate3d(0, -50%, 0) rotate(45deg);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bv2-f-dest a:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(232, 251, 140, 0.35);
  transform: translate3d(0, -2px, 0);
}
.bv2-f-dest a:hover::after {
  transform: translate3d(4px, -50%, 0) rotate(45deg);
}

/* Oficinas de Domus. */
.bv2-f-ofis-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.bv2-f-ofis-head h3 {
  margin: 0;
  font: 700 0.75rem/1.3 var(--f-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-lime);
}
.bv2-f-ofis-head span {
  font-size: 0.8125rem;
  color: rgba(244, 244, 246, 0.56);
}
.bv2-f-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.bv2-f-ofi {
  position: relative;
  padding: 18px 18px 18px 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.bv2-f-ofi::before,
.bv2-f-ofi::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-coral);
}
.bv2-f-ofi strong {
  display: block;
  margin-bottom: 6px;
  font: 700 0.875rem/1.3 var(--f-display);
  color: #fff;
}
.bv2-f-ofi p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(244, 244, 246, 0.66);
}
@media (prefers-reduced-motion: no-preference) {
  .bv2-f-ofi::after {
    animation: bv2-f-pulso 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
    animation-delay: calc(var(--i, 0) * 180ms);
  }
}
@keyframes bv2-f-pulso {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

/* Pie: paises, copyright y volver arriba. */
.bv2-f-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-block: 22px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(244, 244, 246, 0.56);
}
.bv2-f-marcas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bv2-f-marcas a,
.bv2-f-marcas span {
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background-color 200ms ease;
}
.bv2-f-marcas a:hover {
  background: rgba(255, 255, 255, 0.14);
}
.bv2-f-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.bv2-f-arriba {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
}
.bv2-f-arriba::after {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate3d(0, 2px, 0) rotate(45deg);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bv2-f-arriba:hover::after {
  transform: translate3d(0, -2px, 0) rotate(45deg);
}

/* Marca de agua: "boomit" gigante, cortada por el borde inferior. */
.bv2-f-agua {
  margin: 8px 0 -0.2em;
  font: 700 clamp(5.5rem, 21vw, 21rem)/0.8 var(--f-display);
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1100px) {
  .bv2-f-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .bv2-f-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .bv2-f-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .bv2-footer {
    border-radius: 24px 24px 0 0;
  }
  /* Oficinas en dos columnas compactas (sin scroll lateral). */
  .bv2-f-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bv2-f-ofi {
    padding: 14px 12px 14px 30px;
  }
  .bv2-f-ofi::before,
  .bv2-f-ofi::after {
    left: 12px;
    top: 20px;
  }
  .bv2-f-pie {
    flex-direction: column;
    align-items: flex-start;
  }
}
