/* 
  DISEÑO MULTIPÁGINA OPTIMIZADO - DRENASOL 24/7 CDMX
  Ajustes: Transiciones con desvanecido estructural (cero solapamiento) y contraste 100% en zonas oscuras.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap');

:root {
  /* Paleta Corporativa */
  --blue-corporate: #0B4F8A;
  --blue-dark: #072E54;
  --blue-gradient-end: #0D3E6E;

  --red-emergency: #D92525;
  --orange-action: #FF5500;
  --yellow-glow: #FFD600;

  --emerald-whatsapp: #25D366;
  --emerald-hover: #1DA851;

  --gray-dark: #0F172A;
  --gray-medium: #4B5563;
  --gray-light: #F4F6F9;
  --gray-soft: #EBF0F5;
  --white: #FFFFFF;

  /* Tipografía */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sombras */
  --shadow-sm: 0 4px 6px -1px rgba(7, 46, 84, 0.05);
  --shadow-md: 0 10px 20px -3px rgba(7, 46, 84, 0.1);
  --shadow-lg: 0 20px 30px -5px rgba(7, 46, 84, 0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Sistema de Animación de Aparición al Desplazarse (Scroll Reveal / Fade Up) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

/* ANIMACIONES ÚNICAS PARA BOTONES DEL HERO */

/* 1. Botón Llamar Ahora (Rojo): Pulso de Alerta + Vibración de Teléfono + Destello */
.btn-hero-call {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.5);
  animation: heroCallPulse 2s infinite ease-in-out;
}

@keyframes heroCallPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6), 0 10px 25px -5px rgba(220, 38, 38, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(220, 38, 38, 0), 0 14px 30px -3px rgba(220, 38, 38, 0.6);
  }
}

.btn-hero-call:hover .icon-call-ring {
  animation: phoneRing 0.45s ease-in-out infinite alternate;
}

@keyframes phoneRing {
  0% {
    transform: rotate(-14deg) scale(1.18);
  }

  100% {
    transform: rotate(14deg) scale(1.18);
  }
}

.btn-hero-call::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease-in-out;
}

.btn-hero-call:hover::before {
  left: 150%;
}

/* 2. Botón Agendar Visita Previa (Verde WhatsApp): Elevación Rebotante + Giro de Ícono + Resplandor Esmeralda */
.btn-hero-whatsapp {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-hero-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px -4px rgba(16, 185, 129, 0.6), 0 0 22px rgba(37, 211, 102, 0.6);
}

.btn-hero-whatsapp:hover .icon-whatsapp-bounce {
  animation: whatsappBounce 0.6s ease-in-out infinite alternate;
}

@keyframes whatsappBounce {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.25) rotate(-12deg);
  }

  100% {
    transform: scale(1.25) rotate(12deg);
  }
}

/* 2.5 Botón Urgencias CDMX en el Header: Elevación, Transición a Rojo Intenso, Vibración e Iluminación */
.btn-urgencias-header {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, #fef2f2 0%, #ffe4e4 100%);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.btn-urgencias-header:hover {
  transform: translateY(-3px) scale(1.04);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #dc2626;
  box-shadow: 0 14px 30px -4px rgba(220, 38, 38, 0.55), 0 0 25px rgba(220, 38, 38, 0.35);
}

.btn-urgencias-header:hover .urgencias-title {
  color: rgba(255, 255, 255, 0.95) !important;
}

.btn-urgencias-header:hover .urgencias-phone {
  color: #ffffff !important;
}

.btn-urgencias-header:hover .urgencias-icon-box {
  background-color: #ffffff !important;
  color: #dc2626 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.btn-urgencias-header:hover .icon-urgencias-shake {
  animation: phoneShake 0.4s ease-in-out infinite alternate;
}

@keyframes phoneShake {
  0% {
    transform: rotate(-16deg) scale(1.2);
  }

  50% {
    transform: rotate(16deg) scale(1.2);
  }

  100% {
    transform: rotate(-16deg) scale(1.2);
  }
}

/* Transición Animada Fluida para el Menú Móvil Desplegable */
#mobile-menu-dropdown {
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease, padding 0.35s ease;
  transform-origin: top;
  overflow: hidden;
}

#mobile-menu-dropdown.is-closed {
  max-height: 0 !important;
  opacity: 0;
  transform: scaleY(0.95);
  pointer-events: none;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
}

#mobile-menu-dropdown.is-open {
  max-height: 500px !important;
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}

/* Acordeón de Servicios Principales */
.service-accordion-item {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
}

.service-accordion-item:hover {
  border-color: rgba(11, 79, 138, 0.4);
  box-shadow: 0 10px 25px -5px rgba(7, 46, 84, 0.08);
}

.service-accordion-item.is-open {
  border-color: #0B4F8A;
  box-shadow: 0 14px 30px -5px rgba(7, 46, 84, 0.14);
  background-color: #FFFFFF;
}

.service-accordion-header {
  user-select: none;
}

.service-accordion-item.is-open .service-accordion-arrow {
  transform: rotate(180deg);
  background-color: #072E54;
  color: #FFFFFF;
}

.service-accordion-item.is-open .service-accordion-icon {
  background-color: #072E54;
  color: #FFFFFF;
}

/* Acordeón de Servicios Principales: Desplegable EXCLUSIVO para Móvil (< 768px) */
@media (max-width: 767px) {
  .service-accordion-body {
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.35s ease;
    transform-origin: top;
  }

  .service-accordion-body.is-closed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .service-accordion-body.is-open {
    max-height: 900px !important;
    opacity: 1;
    pointer-events: auto;
  }
}

/* En Escritorio (>= 768px): Mostrar siempre todas las tarjetas expandidas */
@media (min-width: 768px) {
  .service-accordion-header {
    cursor: default !important;
    pointer-events: none !important;
  }

  .service-accordion-arrow {
    display: none !important;
  }

  .service-accordion-body,
  .service-accordion-body.is-closed,
  .service-accordion-body.is-open {
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}


.btn-urgencias-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease-in-out;
}

.btn-urgencias-header:hover::before {
  left: 150%;
}

/* ==========================================================================
   ANIMACIONES EXCLUSIVAS PARA BANNER DE CIERRE CTA (LLAMAR Y WHATSAPP)
   ========================================================================== */

/* 1. Botón Llamar al 55 1234 5678 (Rojo): Pulso Radar + Giro 3D Y-Axis + Resplandor Neón Fuego */
.btn-closing-call {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 1.5px solid rgba(248, 113, 113, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px -4px rgba(220, 38, 38, 0.5);
  animation: ctaRadarPulse 2.8s infinite ease-in-out;
}

@keyframes ctaRadarPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6), 0 8px 25px -4px rgba(220, 38, 38, 0.5);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(220, 38, 38, 0), 0 12px 30px -2px rgba(220, 38, 38, 0.7);
  }
}

.btn-closing-call:hover {
  transform: translateY(-5px) scale(1.04);
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-color: #fca5a5;
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.7), 0 16px 36px -4px rgba(185, 28, 28, 0.8);
}

.btn-closing-call:hover .icon-closing-phone {
  animation: phoneFlipY 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes phoneFlipY {
  0% {
    transform: rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateY(180deg) scale(1.35);
    color: #fef08a;
  }

  100% {
    transform: rotateY(360deg) scale(1.2);
    color: #ffffff;
  }
}

.btn-closing-call::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.6s ease-out;
  pointer-events: none;
}

.btn-closing-call:hover::before {
  transform: scale(1);
}

/* 2. Botón Agendar por WhatsApp (Verde Esmeralda): Onda Elástica Jelly + Giro Neón 360° + Láser Diagonal */
.btn-closing-whatsapp {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border: 1.5px solid rgba(110, 231, 183, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px -4px rgba(16, 185, 129, 0.5);
  animation: ctaEmeraldWave 3s infinite ease-in-out;
}

@keyframes ctaEmeraldWave {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 8px 25px -4px rgba(16, 185, 129, 0.5);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), 0 12px 30px -2px rgba(16, 185, 129, 0.7);
  }
}

.btn-closing-whatsapp:hover {
  animation: jellyStretch 0.55s ease-in-out;
  transform: translateY(-5px) scale(1.04);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  border-color: #a7f3d0;
  box-shadow: 0 0 35px rgba(52, 211, 153, 0.8), 0 16px 36px -4px rgba(4, 120, 87, 0.8);
}

@keyframes jellyStretch {
  0% {
    transform: scale(1, 1) translateY(0);
  }

  30% {
    transform: scale(1.12, 0.88) translateY(-3px);
  }

  50% {
    transform: scale(0.92, 1.08) translateY(-6px);
  }

  75% {
    transform: scale(1.05, 0.95) translateY(-4px);
  }

  100% {
    transform: scale(1.04, 1.04) translateY(-5px);
  }
}

.btn-closing-whatsapp:hover .icon-closing-whatsapp {
  animation: iconSpinPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes iconSpinPop {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.35);
    color: #ecfdf5;
  }

  100% {
    transform: rotate(360deg) scale(1.2);
    color: #ffffff;
  }
}

.btn-closing-whatsapp::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.4) 50%, transparent 55%);
  transition: transform 0.7s ease-in-out;
  transform: translate(-100%, -100%);
}

.btn-closing-whatsapp:hover::before {
  transform: translate(100%, 100%);
}

/* 3. Botón Catálogo de Servicios (Azul/Cristal): Resplandor Neón Cian + Giro de Ícono + Cristal Gloss */
.btn-hero-catalog {
  position: relative;
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-catalog:hover {
  transform: translateY(-4px);
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45), inset 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-hero-catalog:hover .icon-catalog-spin {
  transform: rotate(180deg) scale(1.18);
  color: #38bdf8;
}

.btn-hero-catalog .icon-catalog-spin {
  transition: transform 0.5s ease, color 0.3s ease;
}

/* 4. Botón Ver Detalle del Servicio (Tarjetas): Barrido de Luz + Desplazamiento de Flecha + Resplandor Azul */
.btn-card-detail {
  position: relative;
  overflow: hidden;
  background-color: var(--blue-dark);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.btn-card-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease-in-out;
}

.btn-card-detail:hover::before,
.group:hover .btn-card-detail::before {
  left: 150%;
}

.btn-card-detail:hover,
.group:hover .btn-card-detail {
  background-color: var(--blue-corporate);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 6px 20px -2px rgba(11, 79, 138, 0.45);
}

.group:hover .icon-arrow-slide,
.btn-card-detail:hover .icon-arrow-slide {
  transform: translateX(6px) scale(1.2);
  color: #38bdf8;
}

.icon-arrow-slide {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

/* 5. Botón Consultar Cobertura en las 16 Alcaldías CDMX: Pulso de Onda + Rebote de Pin + Destello Rojo */
.btn-coverage-cta {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(217, 37, 37, 0.45);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: coveragePulse 2.5s infinite ease-in-out;
}

@keyframes coveragePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 37, 37, 0.5), 0 10px 25px -5px rgba(217, 37, 37, 0.4);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(217, 37, 37, 0), 0 16px 32px -3px rgba(217, 37, 37, 0.55);
  }
}

.btn-coverage-cta:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 35px -5px rgba(217, 37, 37, 0.65), 0 0 25px rgba(255, 85, 0, 0.4);
}

.btn-coverage-cta:hover .icon-location-bounce {
  animation: locationBounce 0.6s ease-in-out infinite alternate;
}

@keyframes locationBounce {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-5px) scale(1.25);
  }
}

.btn-coverage-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease-in-out;
}

.btn-coverage-cta:hover::before {
  left: 150%;
}

/* ==========================================================================
   ANIMACIÓN INTERACTIVA DE HOVER PARA RECUADROS / TARJETAS DE SERVICIO
   ========================================================================== */
.service-card-interactive {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s ease;
  will-change: transform, box-shadow;
}

/* Línea superior neón/gradiente deslizante al hacer hover */
.service-card-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0B4F8A 0%, #0284c7 50%, #38bdf8 100%);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 10;
}

.service-card-interactive:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(11, 79, 138, 0.45) !important;
  box-shadow: 0 25px 50px -12px rgba(11, 79, 138, 0.22),
    0 0 30px rgba(2, 132, 199, 0.15) !important;
}

.service-card-interactive:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Zoom progresivo y suave de la imagen con máxima nitidez y calidad */
.service-card-interactive img,
.service-slider-slide img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  image-rendering: -webkit-optimize-contrast;
  object-fit: cover;
  object-position: center;
}

.service-card-interactive:hover img {
  transform: scale(1.07);
}

/* Título sobresaliente */
.service-card-interactive h2,
.service-card-interactive h3 {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.service-card-interactive:hover h2,
.service-card-interactive:hover h3 {
  color: var(--blue-corporate);
  transform: translateX(4px);
}

/* Íconos de palomita (Checkmarks) con rotación y pulso */
.service-card-interactive .fa-check {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  display: inline-block;
}

.service-card-interactive:hover .fa-check {
  transform: scale(1.35) rotate(6deg);
  color: #0284c7 !important;
}

/* Botón interno con elevación y resplandor */
.service-card-interactive a[href^="tel"] {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, background-color 0.3s ease;
}

.service-card-interactive:hover a[href^="tel"] {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px -3px rgba(220, 38, 38, 0.5);
}

/* ==========================================================================
   ANIMACIÓN SOBRESALIENTE Y ACORDEÓN PARA PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    background-color 0.4s ease;
  border: 1px solid #e2e8f0;
  border-left: 4px solid transparent;
  will-change: transform, box-shadow;
}

/* Ocultar respuesta por defecto con desvanecido y acordeón suave */
.faq-item .faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    padding 0.35s ease;
  padding-top: 0;
  padding-bottom: 0;
}

/* Estado ABIERTO / ACTIVO: El recuadro SOBRESALE con elevación 3D, sombra y resplandor */
.faq-item.active {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(11, 79, 138, 0.5) !important;
  border-left: 5px solid var(--blue-corporate) !important;
  box-shadow: 0 20px 40px -10px rgba(11, 79, 138, 0.22),
    0 0 25px rgba(2, 132, 199, 0.15) !important;
  background-color: #ffffff;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding-top: 0.25rem;
  padding-bottom: 1.25rem;
}

/* Animación y giro del ícono de flecha */
.faq-item .faq-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg) scale(1.25);
  color: #0284c7 !important;
}

/* Resaltar encabezado de la pregunta cuando está activa */
.faq-item .faq-question {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question {
  background: linear-gradient(90deg, rgba(240, 247, 255, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
  color: var(--blue-corporate) !important;
}

/* Hover sutil sobre recuadros cerrados */
.faq-item:hover:not(.active) {
  transform: translateY(-2px);
  border-color: rgba(11, 79, 138, 0.3);
  box-shadow: 0 8px 20px -4px rgba(7, 46, 84, 0.08);
}

/* Filtro de Transparencia e Inversión de Logotipo */
.logo-white-transparent {
  mix-blend-mode: screen;
}

.logo-inverted-clean {
  filter: invert(1);
}

/* Animación Exclusiva de Contorno en Hover (Solo el borde resplandece) */
.cert-border-animated {
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-border-animated:hover {
  animation: contourBorderGlow 1.6s infinite alternate ease-in-out;
}

@keyframes contourBorderGlow {
  0% {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.45), 0 0 16px rgba(251, 191, 36, 0.3);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.65), 0 0 26px rgba(56, 189, 248, 0.45);
  }

  100% {
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.85), 0 0 34px rgba(251, 191, 36, 0.55);
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 75px;
  animation: pageFadeIn 0.35s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--blue-dark);
}

.highlight-red {
  color: var(--red-emergency);
}

.highlight-blue {
  color: var(--blue-corporate);
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Botón Flotante de WhatsApp 24/7 (Siempre visible fijo en pantalla al hacer scroll) */
.whatsapp-float {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 999999 !important;
  background-color: #25D366 !important;
  color: #FFFFFF !important;
  border-radius: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  padding: 0.85rem 1.4rem !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  font-family: var(--font-heading) !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: whatsappPulse 2s infinite !important;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 80px !important;
    right: 16px !important;
    padding: 0.75rem 1.15rem !important;
    font-size: 0.95rem !important;
  }
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05) !important;
  background-color: #1DA851 !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.8) !important;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Navegación Principal */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 79, 138, 0.15);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue-dark);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue-corporate), var(--blue-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(11, 79, 138, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  color: rgba(226, 232, 240, 0.85);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease-in-out;
  padding: 0.75rem 0.25rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  border-radius: 9999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Botones Principales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 800;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-urgent {
  background: linear-gradient(135deg, var(--red-emergency), #B71C1C);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(217, 37, 37, 0.35);
}

.btn-urgent:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #B71C1C, var(--red-emergency));
  box-shadow: 0 8px 25px rgba(217, 37, 37, 0.5);
}

.btn-whatsapp {
  background: var(--emerald-whatsapp);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: var(--emerald-hover);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-corporate {
  background: var(--blue-corporate);
  color: #FFFFFF;
}

.btn-corporate:hover {
  background: var(--blue-dark);
}

/* HERO SECTION - Background Carousel & Fluid Centered Layout */
.hero-slider-section {
  position: relative;
  min-height: 600px;
  padding: 5.5rem 0 4.5rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--blue-dark);
}

.hero-bg-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
  z-index: 1;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(135deg,
      rgba(7, 46, 84, 0.93) 0%,
      rgba(11, 79, 138, 0.85) 50%,
      rgba(7, 46, 84, 0.95) 100%);
  backdrop-filter: blur(2px);
}

.hero-container-fluid {
  position: relative;
  z-index: 4;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content-centered {
  max-width: 960px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title-fluid {
  font-size: 3.1rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.highlight-yellow {
  color: var(--yellow-glow);
}

.hero-subtitle-fluid {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 2.2rem auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-phone-box-centered {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
}

.phone-box-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.phone-box-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.btn-lg {
  padding: 0.95rem 1.85rem !important;
  font-size: 1rem !important;
}

.hero-actions-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-corporate-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-corporate-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.hero-bg-dots {
  display: flex;
  gap: 0.6rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.hero-bg-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-bg-dot.active {
  background: var(--yellow-glow);
  border-color: #FFFFFF;
  width: 34px;
}

/* DIVISORES ESTRUCTURALES CON DESVANECIDO ULTRASUAVE (CERO CORTE) */
.divider-fade-dark-to-white {
  height: 90px;
  background: linear-gradient(180deg, var(--blue-dark) 0%, rgba(7, 46, 84, 0.75) 30%, rgba(255, 255, 255, 0.4) 70%, var(--white) 100%);
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.divider-fade-white-to-gray {
  height: 90px;
  background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0.75) 30%, rgba(244, 246, 249, 0.5) 70%, var(--gray-light) 100%);
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.divider-fade-gray-to-white {
  height: 90px;
  background: linear-gradient(180deg, var(--gray-light) 0%, rgba(244, 246, 249, 0.75) 30%, rgba(255, 255, 255, 0.5) 70%, var(--white) 100%);
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.divider-fade-white-to-dark {
  height: 90px;
  background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(7, 46, 84, 0.75) 70%, var(--blue-dark) 100%);
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

/* ANIMACIÓN SUAVE AL DESPLAZARSE (SCROLL REVEAL) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* SUBPAGE BANNER */
.page-banner {
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-corporate) 100%);
  color: #FFFFFF;
  padding: 4rem 0 3rem 0;
}

.page-banner-title {
  font-size: 2.7rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.page-banner-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
}

/* SECCIONES Y CONTENIDOS */
.section-white {
  background-color: var(--white);
  padding: 4.5rem 0;
}

.section-gray {
  background-color: var(--gray-light);
  padding: 4.5rem 0;
}

.section-dark-closing {
  background: var(--blue-dark);
  color: #FFFFFF;
  padding: 4.5rem 0;
}

.section-dark-closing h2 {
  color: #FFFFFF;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-medium);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

/* SERVICIOS CLÁSICOS EN CUADRÍCULA */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-corporate);
}

.service-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--blue-dark);
}

.service-text {
  font-size: 0.93rem;
  color: var(--gray-medium);
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

/* FOOTER CLÁSICO - Contraste 100% Garantizado */
.footer {
  background: var(--blue-dark);
  color: #FFFFFF;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.8rem;
  margin-bottom: 2.8rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.8rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

/* STICKY MÓVIL DE EMERGENCIA */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(7, 46, 84, 0.98);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.35);
  border-top: 2px solid var(--orange-action);
}

.mobile-bar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* MEDIA QUERIES RESPONSIVAS */
@media (max-width: 1024px) {
  .hero-title-fluid {
    font-size: 2.4rem;
  }

  .hero-phone-box-centered {
    justify-content: center;
    text-align: center;
  }

  .phone-box-info {
    align-items: center;
    text-align: center;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-slider-section {
    min-height: auto;
    padding: 3.5rem 0 3rem 0;
  }

  .hero-title-fluid,
  .page-banner-title {
    font-size: 1.95rem;
  }

  .hero-subtitle-fluid {
    font-size: 1rem;
  }

  .hero-phone-box-centered {
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
  }

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

  .mobile-sticky-bar {
    display: block;
  }
}

/* SECTORES ATENDIDOS */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-corporate);
  box-shadow: var(--shadow-md);
}

.sector-icon {
  width: 56px;
  height: 56px;
  background: rgba(11, 79, 138, 0.08);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-corporate);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.sector-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 0.35rem;
}

.sector-desc {
  font-size: 0.88rem;
  color: var(--gray-medium);
}

/* BANNER REPSE Y FACTURACIÓN */
.repse-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-corporate));
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  margin: 3rem 0;
  border-left: 6px solid var(--yellow-glow);
}

.repse-badge-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.repse-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* AVISO OBLIGATORIO DE COTIZACIÓN Y VISITA PREVIA */
.visit-quote-notice {
  background: #FFF8E6;
  border: 1px solid #FFE082;
  border-left: 5px solid var(--orange-action);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.visit-quote-notice i {
  color: var(--orange-action);
  font-size: 1.4rem;
  margin-top: 0.2rem;
}

.visit-quote-title {
  font-weight: 800;
  color: #B78103;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.visit-quote-text {
  font-size: 0.92rem;
  color: #4A3B10;
  line-height: 1.45;
}

/* CARRUSEL DE FOTOS */
.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-soft);
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 46, 84, 0.9) 100%);
  color: #FFFFFF;
  padding: 2rem 1.5rem 1.25rem 1.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(7, 46, 84, 0.75);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--blue-corporate);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--gray-soft);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--blue-corporate);
  width: 28px;
}

/* FAQ ACCORDION */
.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-dark);
  text-align: left;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--gray-light);
  color: var(--blue-corporate);
}

.faq-icon {
  color: var(--blue-corporate);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--gray-light);
  padding: 0 1.5rem;
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.25rem 1.5rem;
}

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

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

  .repse-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-slide img {
    height: 280px;
  }
}

/* FORMULARIOS Y CONTROLES DE CONTACTO UI/UX HIGH-END */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-dark);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: #0F172A;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-control::placeholder {
  color: #94A3B8;
  font-size: 0.9rem;
}

.form-control:focus {
  border-color: var(--blue-corporate);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(11, 79, 138, 0.12);
}

select.form-control {
  cursor: pointer;
  appearance: auto;
  padding-right: 1.5rem;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

/* Alerta Corporativa de Valoración Presencial (Ultra Limpia & Discreta) */
.visit-quote-notice-soft {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 5px solid var(--blue-corporate);
  padding: 1.1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.visit-quote-notice-soft i {
  color: var(--blue-corporate);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.visit-quote-notice-soft .visit-quote-title {
  font-weight: 800;
  color: var(--blue-dark);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.visit-quote-notice-soft .visit-quote-text {
  font-size: 0.91rem;
  color: #334155;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ==========================================================================
   LIGHTBOX EXPANDABLE IMAGE MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(7, 20, 38, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  padding: 1.5rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: #dc2626;
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(7, 46, 84, 0.85);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
  z-index: 10000;
}

.lightbox-nav-btn:hover {
  background: #0284c7;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 1.5rem;
}

.lightbox-nav-btn.next {
  right: 1.5rem;
}

.service-slider-slide img,
.service-card-interactive img,
.carousel-slide img,
img.expandable {
  cursor: zoom-in;
}

/* ==========================================================================
   DISEÑO PREMIUM PARA MENÚ DESPLEGABLE (SELECT) Y ANIMACIONES DE WHATSAPP
   ========================================================================== */

/* Custom Styled Select Dropdown */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-styled {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%201d4ed8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.25rem 1.25rem;
  padding: 0.85rem 3rem 0.85rem 1.15rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 0.925rem;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.custom-select-styled:hover {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.custom-select-styled:focus {
  outline: none;
  border-color: #1d4ed8;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25), 0 8px 24px rgba(29, 78, 216, 0.2);
  transform: translateY(-1px);
}

.custom-select-styled option {
  background-color: #ffffff;
  color: #0f172a;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Custom UI Floating Dropdown Menu Component */
.custom-dropdown-container {
  position: relative;
  width: 100%;
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.18), 0 10px 15px -5px rgba(15, 23, 42, 0.08);
  z-index: 999;
  padding: 0.5rem 0;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

.custom-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.custom-dropdown-option:hover {
  background-color: #eff6ff;
  color: #1e40af;
  border-left-color: #2563eb;
  padding-left: 1.35rem;
}

.custom-dropdown-option.is-selected {
  background-color: #dbeafe;
  color: #1e3a8a;
  border-left-color: #1d4ed8;
}

/* ==========================================================================
   ANIMACIÓN VIBRANTE PARA BOTÓN DE WHATSAPP Y SUBMIT FORM
   ========================================================================== */

.btn-whatsapp-submit {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid rgba(167, 243, 208, 0.6);
  color: #ffffff;
  font-weight: 900;
  border-radius: 0.95rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: whatsappPulseRadar 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
  cursor: pointer;
}

.btn-whatsapp-submit::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: whatsappShimmer 3.2s infinite ease-in-out;
}

@keyframes whatsappShimmer {
  0% {
    left: -75%;
  }

  30%,
  100% {
    left: 140%;
  }
}

@keyframes whatsappPulseRadar {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7), 0 8px 25px rgba(16, 185, 129, 0.45);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0), 0 12px 35px rgba(5, 150, 105, 0.65);
  }
}

.btn-whatsapp-submit:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
  border-color: #ffffff;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.85), 0 14px 35px rgba(4, 120, 87, 0.75);
}

.btn-whatsapp-submit:hover .icon-whatsapp-pulse {
  animation: whatsappIconWiggle 0.6s ease-in-out infinite alternate;
}

.icon-whatsapp-pulse {
  display: inline-block;
  flex-shrink: 0;
  margin-right: 0.35rem;
  animation: whatsappIconHeartbeat 2s infinite ease-in-out;
}


@keyframes whatsappIconHeartbeat {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  15% {
    transform: scale(1.3) rotate(-10deg);
  }

  30% {
    transform: scale(1.1) rotate(10deg);
  }

  45% {
    transform: scale(1.25) rotate(-5deg);
  }
}

@keyframes whatsappIconWiggle {
  0% {
    transform: rotate(-15deg) scale(1.3);
  }

  100% {
    transform: rotate(15deg) scale(1.3);
  }
}

/* Carrusel Horizontal de Zonas y Alcaldías */
.zones-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #072e54 #f1f5f9;
}

.zones-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.zones-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.zones-scroll-container::-webkit-scrollbar-thumb {
  background: #072e54;
  border-radius: 9999px;
  border: 2px solid #f1f5f9;
}

.zones-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #0b4f8a;
}