/* ==========================================================================
   Grupo Franco Abogados — Sistema de Diseño Corporativo (Vanilla CSS)
   Identidad: Azul oscuro institucional + Azul corporativo + Blanco.
   Verde (#25d366) exclusivo para botones e interacciones de WhatsApp.
   Ubicación: Bucaramanga, Santander, Colombia
   ========================================================================== */

:root {
  --azul-900: #052445;
  --azul-800: #083461;
  --azul-700: #0c437a;
  --azul-600: #0f4f89;
  --azul-500: #1566af;
  --azul-100: #e6f0fa;
  --azul-050: #f4f8fc;
  --blanco: #ffffff;
  --gris-texto: #6d6d6c;
  --gris-borde: #dce3e8;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --whatsapp-texto: #043017;

  --fuente-titulo: "Montserrat", sans-serif;
  --fuente-texto: "Montserrat", sans-serif;
  --fuente-secundaria: "Poppins", sans-serif;

  --radio: 16px;
  --radio-sm: 10px;
  --sombra: 0 10px 30px rgba(11, 31, 63, 0.08);
  --sombra-alta: 0 20px 48px rgba(11, 31, 63, 0.16);
  --sombra-video: 0 24px 60px rgba(0, 0, 0, 0.35);
  --contenedor: 1220px;
  --transicion: 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fuente-texto);
  color: var(--azul-900);
  background: var(--blanco);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--fuente-titulo);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; color: var(--gris-texto); }

.contenedor {
  width: 100%;
  max-width: var(--contenedor);
  margin: 0 auto;
  padding: 0 24px;
}

.seccion {
  padding: clamp(60px, 8.5vw, 108px) 0;
}
.seccion--claro {
  background: var(--azul-050);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--azul-600);
  margin-bottom: 14px;
}
.eyebrow--luz {
  color: #a4c6f5;
}

.cabecera-seccion {
  max-width: 740px;
  margin: 0 auto 52px;
  text-align: center;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.96rem;
  font-weight: 600;
  font-family: var(--fuente-texto);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transicion), background var(--transicion),
    color var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primario {
  background: var(--azul-700);
  color: var(--blanco);
  box-shadow: var(--sombra);
}
.btn--primario:hover {
  background: var(--azul-600);
}
.btn--contorno {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.05);
}
.btn--contorno:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--blanco);
}
.btn--wa {
  background: var(--whatsapp);
  color: var(--whatsapp-texto);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}
.btn--wa:hover {
  background: var(--whatsapp-dark);
  color: var(--blanco);
  box-shadow: 0 12px 28px rgba(29, 168, 81, 0.35);
}
.btn--grande {
  padding: 16px 34px;
  font-size: 1.03rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gris-borde);
  transition: background var(--transicion);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 85px;
  padding: 8px 0;
}
.marca {
  display: flex;
  align-items: center;
  gap: 12px;
}
.marca__logo {
  height: 95px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.marca__escudo {
  width: 36px;
  height: 40px;
  flex: none;
  color: var(--azul-800);
}
.marca__nombre {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--azul-900);
}
.marca__tagline {
  display: block;
  font-family: var(--fuente-texto);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--azul-600);
  font-weight: 700;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.menu__link {
  padding: 10px 15px;
  border-radius: var(--radio-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--azul-900);
  transition: background var(--transicion), color var(--transicion);
}
.menu__link:hover, .menu__link.activo {
  background: var(--azul-100);
  color: var(--azul-700);
}

.dropdown {
  position: relative;
}
.dropdown__boton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.dropdown__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: min(720px, 92vw);
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra-alta);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}
.dropdown.abierto .dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown__item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radio-sm);
  transition: background var(--transicion);
}
.dropdown__item:hover, .dropdown__item.activo {
  background: var(--azul-050);
}
.dropdown__item svg {
  width: 22px;
  height: 22px;
  color: var(--azul-600);
  flex: none;
  margin-top: 2px;
}
.dropdown__item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--azul-900);
}
.dropdown__item span {
  font-size: 0.8rem;
  color: var(--gris-texto);
}

.nav-acciones {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hamburguesa {
  display: none;
  background: none;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-sm);
  padding: 9px;
  cursor: pointer;
}
.hamburguesa svg {
  width: 22px;
  height: 22px;
}

/* Panel móvil */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}
.drawer.abierto {
  visibility: visible;
  pointer-events: auto;
}
.drawer__fondo {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 63, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 280ms ease;
}
.drawer.abierto .drawer__fondo {
  opacity: 1;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 88vw);
  background: var(--blanco);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.abierto .drawer__panel {
  transform: translateX(0);
}
.drawer__cerrar {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--azul-800);
}
.drawer__titulo {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul-600);
  margin: 24px 0 10px;
  font-weight: 700;
}
.drawer a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radio-sm);
  font-size: 0.96rem;
  font-weight: 500;
}
.drawer a:hover, .drawer a.activo {
  background: var(--azul-050);
  color: var(--azul-700);
}

/* ---------- Hero Principal (Con Video Integrado) ---------- */
.hero {
  position: relative;
  background: url("images/home/fotofondo_home.jpeg") center/cover no-repeat;
  color: var(--blanco);
  overflow: hidden;
  padding: clamp(40px, 6vw, 60px) 0;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 36, 69, 0.85);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__inner .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  display: inline-block;
}
.hero__inner h1 {
  color: var(--blanco);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__inner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero__dato strong {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--blanco);
}
.hero__dato span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
}

/* Marco de Video Hero */
.hero__video-marco {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 168, 204, 0.15);
  width: auto;
  height: 85vh;
  max-height: 800px;
  aspect-ratio: 9 / 16;
  margin-left: auto;
}
.hero__video-contenedor {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--azul-900);
}
.hero__video-elemento {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Banner-Slider grande (Servicios / Clientes y Aliados) ---------- */
.banner-slider {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-alta);
  background: var(--azul-900);
}
.banner-slider__viewport {
  position: relative;
  width: 100%;
  height: clamp(440px, 52vw, 560px);
}
.banner-slider__pista {
  position: relative;
  width: 100%;
  height: 100%;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 700ms ease, transform 900ms ease, visibility 700ms;
  display: flex;
  align-items: center;
}
.banner-slide.activo {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}
.banner-slide__enlace-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  z-index: 2;
  cursor: pointer;
}
.banner-slide__fondo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.banner-slide__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 36, 69, 0.94) 0%, rgba(5, 36, 69, 0.82) 34%, rgba(5, 36, 69, 0.42) 62%, rgba(5, 36, 69, 0.18) 100%);
}
.banner-slide__contenido {
  position: relative;
  z-index: 2;
  width: 100%;
}
.banner-slide__texto {
  max-width: 560px;
  color: var(--blanco);
}
.banner-slide__texto .eyebrow--luz {
  color: #a4c6f5;
}
.banner-slide__icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radio-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
  margin-bottom: 14px;
}
.banner-slide__icono svg {
  width: 22px;
  height: 22px;
}
.banner-slide__logo {
  display: block;
  max-height: 52px;
  max-width: 200px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}
.banner-slide__texto h3 {
  color: var(--blanco);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}
.banner-slide__texto p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 480px;
}
.banner-slide__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.banner-slider__flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(5, 36, 69, 0.4);
  color: var(--blanco);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--transicion), border-color var(--transicion), transform var(--transicion);
}
.banner-slider__flecha:hover {
  background: rgba(5, 36, 69, 0.75);
  border-color: var(--blanco);
}
.banner-slider__flecha svg {
  width: 20px;
  height: 20px;
}
.banner-slider__flecha--izq {
  left: 20px;
}
.banner-slider__flecha--der {
  right: 20px;
}

.banner-slider__puntos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.banner-slider__punto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transicion);
}
.banner-slider__punto.activo {
  background: var(--blanco);
  width: 26px;
  border-radius: 999px;
}

/* ---------- Grillas Genéricas ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.bloque {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.bloque:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-alta);
}
.bloque h3 {
  margin-bottom: 8px;
  color: var(--azul-900);
}
.bloque p {
  margin: 0;
  font-size: 0.94rem;
}
.bloque__icono {
  width: 40px;
  height: 40px;
  border-radius: var(--radio-sm);
  background: var(--azul-100);
  color: var(--azul-700);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.bloque__icono svg {
  width: 21px;
  height: 21px;
}

.lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.lista li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--gris-texto);
  font-size: 0.98rem;
}
.lista li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--azul-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163b70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.imagen-marco {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-alta);
  border: 1px solid var(--gris-borde);
}
.imagen-marco img,
.imagen-marco video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Galería Institucional ---------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.galeria-item {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sombra);
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}
.galeria-item:hover img {
  transform: scale(1.08);
}
.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 31, 63, 0.88) 100%);
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--blanco);
  transition: opacity var(--transicion);
}
.galeria-overlay h4 {
  color: var(--blanco);
  margin: 0 0 4px;
}
.galeria-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  margin: 0;
}

/* ---------- Testimonios ---------- */
.testimonio {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonio p {
  font-style: italic;
  font-size: 0.96rem;
}
.testimonio strong {
  font-size: 0.92rem;
  color: var(--azul-900);
}
.testimonio span {
  display: block;
  font-size: 0.82rem;
  color: var(--gris-texto);
}

/* ---------- FAQ ---------- */
.faq {
  border-bottom: 1px solid var(--gris-borde);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--azul-900);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--azul-600);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq[open] summary::after {
  content: "–";
}
.faq p {
  padding-bottom: 20px;
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- CTA Final ---------- */
.cta {
  background: linear-gradient(135deg, var(--azul-900) 0%, var(--azul-700) 100%);
  color: var(--blanco);
  border-radius: 24px;
  padding: clamp(40px, 7vw, 72px) 24px;
  text-align: center;
  box-shadow: var(--sombra-alta);
  position: relative;
  overflow: hidden;
}
.cta h2 {
  color: var(--blanco);
  margin-bottom: 14px;
}
.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.06rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--azul-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer h4 {
  font-family: var(--fuente-texto);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blanco);
  margin: 0 0 16px;
}
.footer a:hover {
  color: var(--blanco);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}
.footer__lista {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}
.footer__legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer .marca__nombre, .footer .marca__escudo {
  color: var(--blanco);
}
.footer__redes {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer__redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--blanco);
  transition: all var(--transicion);
}
.footer__redes a:hover {
  background: var(--azul-700);
  border-color: var(--blanco);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.footer__redes svg {
  width: 20px;
  height: 20px;
}
.drawer__redes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer__redes a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radio-sm);
  color: var(--azul-900);
  transition: background var(--transicion);
}
.drawer__redes a svg {
  width: 18px;
  height: 18px;
  color: var(--azul-600);
}
.drawer__redes a:hover {
  background: var(--azul-050);
  color: var(--azul-700);
}

/* ---------- Botones Flotantes (WhatsApp + Redes Sociales) ---------- */
.flotantes-contenedor {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.flotante-item {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}
.flotante-item svg {
  width: 22px;
  height: 22px;
}
.flotante-item:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Tooltips informativos al pasar el mouse */
.flotante-item::before,
.wa-flotante::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(11, 31, 63, 0.92);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.flotante-item:hover::before,
.wa-flotante:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Estilos de Marca */
.flotante-item--ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.flotante-item--fb {
  background: #1877F2;
}
.flotante-item--tk {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* WhatsApp Flotante */
.wa-flotante {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--whatsapp-texto);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.25s ease;
  animation: flotar 6s ease-in-out infinite;
}
.wa-flotante:hover {
  transform: scale(1.1);
  background: var(--whatsapp-dark);
  color: var(--blanco);
}
.wa-flotante svg {
  width: 30px;
  height: 30px;
}
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Página de Servicio (Interna) ---------- */
.hero-servicio {
  position: relative;
  overflow: hidden;
  background-color: var(--azul-900);
  color: var(--blanco);
}
.seccion-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.seccion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 36, 69, 0.88);
  z-index: 1;
}
.hero-servicio .migas {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}
.hero-servicio .migas a:hover {
  color: var(--blanco);
}
.hero-servicio__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: clamp(52px, 7.5vw, 96px) 0;
}
.hero-servicio h1 {
  color: var(--blanco);
  margin-bottom: 18px;
}
.hero-servicio p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.06rem;
  margin-bottom: 28px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__video-marco {
    max-width: 640px;
    margin: 0 auto;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu {
    display: none;
  }
  .hamburguesa {
    display: inline-flex;
  }
  .nav-acciones .btn {
    display: none;
  }
  .hero-servicio__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid-3, .grid-2, .footer__grid, .galeria-grid {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    gap: 28px;
  }
  .hero__datos {
    gap: 20px;
  }
  .hero__acciones {
    flex-direction: column;
  }
  .hero__acciones .btn {
    width: 100%;
  }
  .flotantes-contenedor {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }
  .flotante-item {
    width: 44px;
    height: 44px;
  }
  .flotante-item svg {
    width: 20px;
    height: 20px;
  }
  .wa-flotante {
    width: 52px;
    height: 52px;
  }
  .wa-flotante svg {
    width: 26px;
    height: 26px;
  }
  .flotante-item::before,
  .wa-flotante::before {
    display: none;
  }

  /* Banner-Slider: composición vertical en móvil, no solo el banner reducido */
  .banner-slider__viewport {
    height: auto;
  }
  .banner-slide {
    position: relative;
    inset: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .banner-slide.activo {
    display: flex;
  }
  .banner-slide__fondo {
    position: relative;
    height: 240px;
  }
  .banner-slide__velo {
    background: linear-gradient(180deg, rgba(5, 36, 69, 0.15) 0%, rgba(5, 36, 69, 0.55) 70%, var(--azul-900) 100%);
  }
  .banner-slide__contenido {
    padding: 28px 0 64px;
  }
  .banner-slide__texto {
    max-width: none;
  }
  .banner-slide__texto p {
    max-width: none;
  }
  .banner-slider__flecha {
    top: 120px;
    width: 42px;
    height: 42px;
  }
  .banner-slider__flecha--izq {
    left: 12px;
  }
  .banner-slider__flecha--der {
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 1ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   AJUSTES FINOS DE LOS BANNER SLIDERS + TESTIMONIOS EN VIDEO
   ========================================================= */
.banner-slide__icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--blanco);
  margin: 0 0 16px;
}
.banner-slide__icono svg { width: 24px; height: 24px; }
.banner-slide__texto .eyebrow { display: block; }
.banner-slide__velo {
  background: linear-gradient(90deg, rgba(5, 36, 69, 0.96) 0%, rgba(5, 36, 69, 0.9) 38%, rgba(5, 36, 69, 0.55) 68%, rgba(5, 36, 69, 0.25) 100%);
}
.banner-slider__flecha,
.banner-slider__flecha:hover {
  position: absolute;
  top: auto;
  bottom: 28px;
  transform: none;
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(5, 36, 69, 0.45);
  backdrop-filter: blur(6px);
  color: var(--blanco);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transicion);
}
.banner-slider__flecha:hover { background: var(--azul-700); }
.banner-slider__flecha svg { width: 22px; height: 22px; }
.banner-slider__flecha--izq { left: auto; right: 84px; }
.banner-slider__flecha--der { right: 24px; }

/* Testimonios en video */
.testimonio-video {
  background: var(--blanco);
  border: 1px solid rgba(5, 36, 69, 0.08);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-suave, 0 12px 30px rgba(5, 36, 69, 0.08));
  display: flex;
  flex-direction: column;
}
.testimonio-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--azul-900);
  display: block;
}
.testimonio-video__placeholder {
  aspect-ratio: 9 / 16;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--azul-800), var(--azul-600));
  color: var(--blanco);
}
.testimonio-video__placeholder span { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.testimonio-video__placeholder p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin: 0; }
.testimonio-video__info { padding: 20px 22px 24px; display: grid; gap: 6px; }
.testimonio-video__info strong { color: var(--azul-900); font-size: 1.05rem; }
.testimonio-video__info span { color: var(--azul-600); font-weight: 600; font-size: 0.92rem; }
.testimonio-video__info p { margin: 6px 0 0; color: #4b5b6b; font-size: 0.96rem; }

@media (max-width: 720px) {
  .banner-slider__flecha, .banner-slider__flecha:hover { bottom: 20px; width: 42px; height: 42px; }
  .banner-slider__flecha--izq { right: 72px; }
  .banner-slide__acciones .btn { width: 100%; }
}
