/**
 * MAES PERÚ - Stylesheet Principal
 * Paleta corporativa: Naranja MAES (#FF8700), Azul Petróleo/Marino (#1B273D), Blanco y Neutros
 */

:root {
  --maes-orange: #FF8700;
  --maes-orange-hover: #E07200;
  --maes-orange-light: #FFF4E6;
  --maes-orange-glow: rgba(255, 135, 0, 0.25);
  
  --maes-navy: #1B273D;
  --maes-navy-dark: #121B2B;
  --maes-dark: #0F172A;
  --maes-charcoal: #1E242B;
  
  --maes-gray-bg: #F8FAFC;
  --maes-gray-border: #E2E8F0;
  --maes-text-muted: #64748B;
  --maes-text-body: #334155;
  
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --shadow-orange: 0 10px 25px rgba(255, 135, 0, 0.35);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Smooth Scroll con Lenis & Fallback Nativo */
html {
  scroll-behavior: smooth;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  color: var(--maes-text-body);
  background-color: #FFFFFF;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--maes-charcoal);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--maes-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--maes-orange-hover);
}

/* ==========================================================================
   Preloader Cinemático MAES (Corte Angular Dinámico a -6° con Estela Neón Naranja)
   ========================================================================== */
body:not(.loaded) {
  overflow: hidden !important;
}

.maes-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  pointer-events: all;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: visibility 0s ease 0.95s;
}

/* Telón Principal con Degradado Arquitectónico Profundo */
.preloader-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, #1c2a44 0%, #0c1424 75%, #070c16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  /* Curva Quintic/Expo limpia y sofisticada: arranca con presencia y se desliza con suavidad */
  transition: transform 0.82s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* Resplandor ambiental de fondo */
.preloader-ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 135, 0, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* Haz Láser Neón en el Borde Inferior que viaja con el telón */
.preloader-bottom-laser {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 135, 0, 0.3) 15%, 
    #FF8700 40%, 
    #FFD269 50%, 
    #FF8700 60%, 
    rgba(255, 135, 0, 0.3) 85%, 
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(255, 135, 0, 0.9), 0 0 45px rgba(255, 182, 0, 0.6);
  z-index: 10;
}

/* Contenido Central del Preloader */
.preloader-content {
  position: relative;
  z-index: 5;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.preloader-logo-wrap {
  position: relative;
  display: inline-block;
  width: 95px;
  height: 95px;
}

.preloader-logo {
  width: 68px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 20px rgba(255, 135, 0, 0.8));
  animation: preloader-pulse 1.8s infinite ease-in-out;
}

.preloader-ring-outer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-top-color: var(--maes-orange);
  border-right-color: var(--maes-orange);
  border-radius: 50%;
  animation: preloader-spin 1.4s linear infinite;
}

.preloader-ring-inner {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  bottom: 9px;
  border: 2px dashed rgba(255, 182, 0, 0.65);
  border-radius: 50%;
  animation: preloader-spin-reverse 2s linear infinite;
}

.preloader-brand {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 4px;
  margin-top: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.preloader-tagline {
  color: var(--maes-orange);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  font-weight: 700;
}

.preloader-counter-wrap {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #FFFFFF;
  font-size: 1.9rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.preloader-percent {
  color: var(--maes-orange);
  font-size: 1.15rem;
  margin-left: 2px;
}

.preloader-loader-bar {
  width: 170px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin: 14px auto 0 auto;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--maes-orange) 0%, #FFB600 100%);
  box-shadow: 0 0 10px rgba(255, 135, 0, 0.8);
  transition: width 0.08s linear;
}

/* ==========================================================================
   Salida Cinemática: Architectural Horizon Lift (Elevación Limpia de Telón)
   ========================================================================== */
body.loaded .preloader-counter-wrap {
  color: var(--maes-orange);
  text-shadow: 0 0 35px rgba(255, 135, 0, 1), 0 0 70px rgba(255, 182, 0, 0.8);
  transform: scale(1.08);
}

/* El contenido se desvanece de forma limpia hacia arriba */
body.loaded .preloader-content {
  opacity: 0;
  transform: translateY(-28px);
}

/* El telón completo se eleva suavemente con una aceleración inicial y frenado perfecto */
body.loaded .preloader-backdrop {
  transform: translateY(-101%);
}

body.loaded .maes-preloader {
  visibility: hidden;
  pointer-events: none;
}

@keyframes preloader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloader-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes preloader-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 12px rgba(255,135,0,0.5)); }
  50% { transform: translate(-50%, -50%) scale(1.12); filter: drop-shadow(0 0 28px rgba(255,135,0,0.9)); }
}

/* ==========================================================================
   Cursor Interactivo (Puntos siguiendo al cursor - Estilo sunkuu.com)
   ========================================================================== */
.mouse-cursor {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.15s ease-out;
}

.cursor-inner {
  width: 8px;
  height: 8px;
  background-color: var(--maes-orange);
  box-shadow: 0 0 10px rgba(255, 135, 0, 0.8);
}

.cursor-outer {
  width: 38px;
  height: 38px;
  border: 2px solid var(--maes-orange);
  background-color: rgba(255, 135, 0, 0.08);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.mouse-cursor.cursor-visible {
  opacity: 1;
}

.mouse-cursor.cursor-hover {
  width: 58px;
  height: 58px;
  background-color: rgba(255, 135, 0, 0.18);
  border-color: #FFB600;
}

.mouse-cursor.cursor-active {
  transform: translate(-50%, -50%) scale(0.7);
  background-color: rgba(255, 135, 0, 0.4);
}

@media (hover: none) and (pointer: coarse) {
  .mouse-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.topbar {
  background-color: var(--maes-navy);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar a {
  color: #E2E8F0;
}

.topbar a:hover {
  color: var(--maes-orange);
}

.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: rgba(255,255,255,0.2);
  margin: 0 12px;
  vertical-align: middle;
}

/* Main Navbar */
.navbar-main {
  background-color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 14px 0;
  transition: var(--transition);
}

.navbar-main.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.navbar-brand img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.navbar-main.scrolled .navbar-brand img {
  height: 42px;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--maes-navy);
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--maes-orange) !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background-color: var(--maes-orange);
  border-radius: 2px;
}

/* Custom Buttons */
.btn-maes-primary {
  background: linear-gradient(135deg, var(--maes-orange) 0%, #FF9E2C 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 135, 0, 0.3);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-maes-primary:hover {
  background: linear-gradient(135deg, var(--maes-orange-hover) 0%, var(--maes-orange) 100%);
  box-shadow: 0 6px 22px rgba(255, 135, 0, 0.45);
  transform: translateY(-2px);
}

.btn-maes-outline {
  background: transparent;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-maes-outline:hover {
  background-color: #FFFFFF;
  color: var(--maes-navy) !important;
  transform: translateY(-2px);
}

.btn-maes-dark {
  background-color: var(--maes-navy);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-maes-dark:hover {
  background-color: var(--maes-navy-dark);
  box-shadow: 0 6px 20px rgba(27, 39, 61, 0.35);
  transform: translateY(-2px);
}

/* Badges */
.badge-maes-orange {
  background-color: var(--maes-orange-light);
  color: var(--maes-orange-hover);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-maes-dark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 135, 0, 0.42);
  border-radius: 50px;
  padding: 6px 18px 6px 10px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.18),
              0 0 18px rgba(255, 135, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Efecto de barrido de luz metálico */
.badge-maes-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.badge-maes-dark:hover::before {
  left: 170%;
}

.badge-maes-dark:hover {
  border-color: var(--maes-orange);
  background: rgba(27, 39, 61, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 135, 0, 0.45);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* Punto de estado activo con pulso radar */
.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--maes-orange);
  box-shadow: 0 0 8px var(--maes-orange);
  animation: badge-dot-pulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes badge-dot-pulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
    box-shadow: 0 0 4px var(--maes-orange);
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 14px rgba(255, 135, 0, 0.95), 0 0 22px rgba(255, 182, 0, 0.6);
  }
}

/* Chip circular iluminado para el icono temático del badge */
.badge-maes-dark i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 135, 0, 0.3) 0%, rgba(255, 182, 0, 0.15) 100%);
  border: 1px solid rgba(255, 135, 0, 0.5);
  color: #FFB600 !important;
  font-size: 0.82rem;
  box-shadow: 0 0 10px rgba(255, 135, 0, 0.35);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}

.badge-maes-dark:hover i {
  transform: scale(1.12) rotate(6deg);
  background: linear-gradient(135deg, var(--maes-orange) 0%, #FF9E2C 100%);
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(255, 135, 0, 0.85);
}

/* ==========================================================================
   Hero Slider Section (Carousel Interactivo)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background-color: var(--maes-navy-dark);
  overflow: hidden;
}

.hero-slide-item {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 130px 0 100px 0;
}

.hero-slide-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(27, 39, 61, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.hero-title span.highlight {
  color: var(--maes-orange);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #E2E8F0;
  max-width: 650px;
  margin-bottom: 36px;
  font-weight: 400;
}

/* ==========================================================================
   Hero Slider 3D (Swiper Creative Effect con Profundidad 3D)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  background-color: var(--maes-navy-dark);
}

.hero-swiper-3d {
  width: 100%;
  position: relative;
  perspective: 1400px;
  transform: scale(1);
  filter: blur(0px);
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

body:not(.loaded) .hero-swiper-3d {
  transform: scale(1.05);
  filter: blur(4px);
}

.hero-swiper-3d .swiper-slide {
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Botones de Navegación Swiper 3D Glassmorphism */
.hero-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 1.4rem;
  z-index: 25;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.hero-swiper-prev {
  left: 35px;
}

.hero-swiper-next {
  right: 35px;
}

.hero-swiper-btn:hover {
  background: var(--maes-orange);
  border-color: var(--maes-orange);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px var(--maes-orange-glow);
}

.hero-swiper-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Paginación Dinámica Swiper 3D */
.hero-swiper-pagination {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 25;
}

.hero-3d-bullet {
  display: inline-block;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-3d-bullet:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-3d-bullet-active {
  background: var(--maes-orange);
  width: 64px;
  box-shadow: 0 0 14px rgba(255, 135, 0, 0.85);
}

/* Compatibilidad con Carousel clásico */
.carousel-control-prev,
.carousel-control-next {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition);
  z-index: 10;
}

.carousel-control-prev {
  left: 25px;
}

.carousel-control-next {
  right: 25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--maes-orange);
  opacity: 1;
  box-shadow: 0 4px 15px var(--maes-orange-glow);
}

.hero-carousel-indicators {
  bottom: 20px;
  z-index: 11;
}

.hero-carousel-indicators button {
  width: 45px !important;
  height: 4px !important;
  border-radius: 2px;
  border: none !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
  transition: var(--transition);
}

.hero-carousel-indicators button.active {
  background-color: var(--maes-orange) !important;
  width: 65px !important;
}

/* Stats Box */
.hero-stats-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  z-index: 2;
}

.hero-stats-box .stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats-box .stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--maes-orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ==========================================================================
   Hero Entrance Animation Post-Preloader (Animación de Entrada de Elementos)
   ========================================================================== */
.hero-content .badge-maes-dark,
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-cta-group {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.hero-stats-box {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-swiper-btn {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.hero-swiper-pagination {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Entrada inicial de elementos en el slide activo cuando se retira el preloader */
body.loaded .hero-swiper-3d .swiper-slide-active .hero-content .badge-maes-dark {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

body.loaded .hero-swiper-3d .swiper-slide-active .hero-content .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

body.loaded .hero-swiper-3d .swiper-slide-active .hero-content .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.65s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.65s;
}

body.loaded .hero-swiper-3d .swiper-slide-active .hero-content .hero-cta-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.8s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

body.loaded .hero-stats-box {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.95s;
}

body.loaded .hero-swiper-btn {
  opacity: 1;
  transition-delay: 1.05s;
}

body.loaded .hero-swiper-pagination {
  opacity: 1;
  transition-delay: 1.05s;
}

/* Transición fluida al navegar entre diapositivas en Swiper */
body.loaded .hero-swiper-3d .swiper-slide:not(.swiper-slide-active) .hero-content .badge-maes-dark,
body.loaded .hero-swiper-3d .swiper-slide:not(.swiper-slide-active) .hero-content .hero-title,
body.loaded .hero-swiper-3d .swiper-slide:not(.swiper-slide-active) .hero-content .hero-subtitle,
body.loaded .hero-swiper-3d .swiper-slide:not(.swiper-slide-active) .hero-content .hero-cta-group {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Page Header (Internal pages) */
.page-header {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(27, 39, 61, 0.85) 100%),
              url('../../img/fotos/3D-1536x864.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 90px 0 65px 0;
}

.page-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFFFFF;
}

.breadcrumb-maes {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.breadcrumb-maes a {
  color: #CBD5E1;
}

.breadcrumb-maes a:hover {
  color: var(--maes-orange);
}

.breadcrumb-maes .active {
  color: var(--maes-orange);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-padding {
  padding: 90px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--maes-navy);
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--maes-text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   Services Cards
   ========================================================================== */
.service-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--maes-gray-border);
  box-shadow: var(--shadow-sm);
  padding: 35px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: transparent;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 135, 0, 0.4);
}

.service-card:hover::before {
  background: linear-gradient(90deg, var(--maes-orange) 0%, #FF9E2C 100%);
}

.service-icon-wrapper {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  background-color: var(--maes-orange-light);
  color: var(--maes-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--maes-orange);
  color: #FFFFFF;
  transform: scale(1.05);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--maes-navy);
}

.service-text {
  color: var(--maes-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--maes-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link i {
  transition: transform 0.2s ease;
}

.service-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   Methodology (Las 5 Fases MAES)
   ========================================================================== */
.methodology-step-card {
  background: #FFFFFF;
  border: 1px solid var(--maes-gray-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.methodology-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--maes-orange);
  box-shadow: var(--shadow-md);
}

.methodology-step-card.featured {
  border-left: 6px solid var(--maes-orange);
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maes-orange) 0%, #FF9E2C 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px var(--maes-orange-glow);
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--maes-navy);
  margin-bottom: 14px;
}

.step-desc {
  font-size: 0.98rem;
  color: var(--maes-text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Projects Gallery & Filters
   ========================================================================== */
.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: #FFFFFF;
  color: var(--maes-navy);
  border: 1px solid var(--maes-gray-border);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--maes-orange);
  color: #FFFFFF;
  border-color: var(--maes-orange);
  box-shadow: var(--shadow-orange);
}

.project-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--maes-gray-border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 135, 0, 0.4);
}

.project-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  background-color: var(--maes-dark);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-zoom-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--maes-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transform: scale(0.8);
  transition: var(--transition);
  border: none;
}

.project-card:hover .project-zoom-btn {
  transform: scale(1);
}

.project-badge-cat {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(27, 39, 61, 0.85);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.project-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--maes-navy);
  margin-bottom: 8px;
}

.project-client {
  font-size: 0.85rem;
  color: var(--maes-orange);
  font-weight: 600;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--maes-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-footer {
  border-top: 1px solid var(--maes-gray-border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--maes-text-muted);
}

/* ==========================================================================
   Pillars of Value (Por qué elegirnos)
   ========================================================================== */
.pillar-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--maes-gray-border);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--maes-orange);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background-color: var(--maes-orange-light);
  color: var(--maes-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
  background-color: var(--maes-orange);
  color: #FFFFFF;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--maes-navy);
  margin-bottom: 10px;
}

.pillar-text {
  font-size: 0.9rem;
  color: var(--maes-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Clients Carousel / Logo Grid
   ========================================================================== */
.client-logo-box {
  background: #FFFFFF;
  border: 1px solid var(--maes-gray-border);
  border-radius: var(--radius-sm);
  height: 100px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.client-logo-box img {
  max-height: 55px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.client-logo-box:hover {
  border-color: var(--maes-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.client-logo-box:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   Home Clients Showcase Mejorado (Grilla Interactiva, Filtros y Confianza)
   ========================================================================== */
.home-clients-section {
  background-color: #F8FAFC;
  position: relative;
}

.client-filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

.client-filter-btn {
  background-color: #FFFFFF;
  color: var(--maes-navy);
  border: 1px solid var(--maes-gray-border);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.client-filter-btn:hover,
.client-filter-btn.active {
  background-color: var(--maes-orange);
  color: #FFFFFF;
  border-color: var(--maes-orange);
  box-shadow: 0 4px 15px var(--maes-orange-glow);
}

.home-client-card {
  background: #FFFFFF;
  border: 1px solid var(--maes-gray-border);
  border-radius: var(--radius-md);
  padding: 22px 18px 18px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-client-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--maes-orange) 0%, #FFB600 100%);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.home-client-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 135, 0, 0.4);
}

.home-client-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-client-highlight {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--maes-orange);
  background-color: var(--maes-orange-light);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-transform: uppercase;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-client-logo-wrap {
  height: 72px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.home-client-logo-wrap img {
  max-height: 54px;
  max-width: 82%;
  object-fit: contain;
  filter: grayscale(15%);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.home-client-card:hover .home-client-logo-wrap img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.home-client-info {
  margin-top: 12px;
  width: 100%;
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
}

.home-client-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--maes-navy);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-client-category {
  font-size: 0.78rem;
  color: var(--maes-text-muted);
  font-weight: 500;
  display: block;
}

/* Trust Banner Below Clients */
.home-clients-trust-bar {
  background: #FFFFFF;
  border: 1px solid var(--maes-gray-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.trust-item-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--maes-orange-light);
  color: var(--maes-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.trust-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--maes-navy);
  margin-bottom: 2px;
}

.trust-item-desc {
  font-size: 0.82rem;
  color: var(--maes-text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Quotation / Contact CTA Section
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--maes-navy) 0%, #0B111E 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 135, 0, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  max-width: 580px;
}

/* Contact Form */
.contact-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--maes-gray-border);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maes-navy);
  margin-bottom: 6px;
}

.form-control, .form-select {
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--maes-charcoal);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--maes-orange);
  box-shadow: 0 0 0 4px var(--maes-orange-glow);
  outline: none;
}

/* Info Box */
.info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--maes-orange-light);
  color: var(--maes-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--maes-navy);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-val {
  font-size: 0.95rem;
  color: var(--maes-text-muted);
  line-height: 1.5;
}

.info-val a {
  color: var(--maes-charcoal);
}

.info-val a:hover {
  color: var(--maes-orange);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-main {
  background-color: var(--maes-navy-dark);
  color: #94A3B8;
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--maes-orange);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--maes-orange);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--maes-orange);
  transform: translateX(4px);
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--transition);
}

.footer-social-link:hover {
  background-color: var(--maes-orange);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Widget Flotante Interactivo de WhatsApp Mejorado
   ========================================================================== */
.whatsapp-widget-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-whatsapp-btn {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #25D366 0%, #1EBE5B 100%);
  color: #FFFFFF;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  outline: none;
  animation: pulse-whatsapp 2.5s infinite;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #EF4444;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.whatsapp-popup-card {
  width: 320px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--maes-gray-border);
  margin-bottom: 16px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.whatsapp-popup-card.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.whatsapp-popup-header {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  color: #FFFFFF;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-avatar-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.whatsapp-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background-color: #25D366;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.whatsapp-agent-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.whatsapp-agent-status {
  font-size: 0.75rem;
  opacity: 0.85;
}

.whatsapp-close-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.8;
  cursor: pointer;
  padding: 0;
}

.whatsapp-close-btn:hover {
  opacity: 1;
}

.whatsapp-popup-body {
  padding: 16px;
  background: #ECE5DD;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

.whatsapp-chat-bubble {
  background: #FFFFFF;
  padding: 12px 14px;
  border-radius: 10px 10px 10px 0;
  font-size: 0.88rem;
  color: #111827;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

.whatsapp-chat-time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: #6B7280;
  margin-top: 4px;
}

.whatsapp-popup-footer {
  padding: 12px 16px;
  background: #FFFFFF;
  border-top: 1px solid var(--maes-gray-border);
}

.whatsapp-send-btn {
  background: #25D366;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.whatsapp-send-btn:hover {
  background: #1EBE5B;
  transform: translateY(-2px);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-slide-item {
    min-height: 70vh;
    padding: 100px 0 70px 0;
  }
  .hero-stats-box .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  .hero-stats-box .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .cta-banner {
    padding: 40px 25px;
  }
  .cta-title {
    font-size: 1.7rem;
  }
  .carousel-control-prev,
  .carousel-control-next,
  .hero-swiper-btn {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .topbar {
    display: none;
  }
  .whatsapp-widget-container {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-popup-card {
    width: 290px;
  }
  .floating-whatsapp-btn {
    width: 54px;
    height: 54px;
    font-size: 1.8rem;
  }
}
