/* =============================================
   ORBIT SEGURIDAD SPA — styles.css
   Sistema de diseño: Navy + Soft Gold + Warm Beige
   Tipografía: Montserrat
   ============================================= */

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

/* ─── PRELOADER ─── */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Fondo elegante usando una de tus fotos muy oscurecida para que no moleste */
  background: linear-gradient(rgba(20, 28, 48, 0.9), rgba(20, 28, 48, 0.9)), url('../img/hero/Slide_1.webp') center/cover no-repeat;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-content {
  text-align: center;
  width: 100%;
  max-width: 300px;
  padding: 0 20px;
}
.preloader-logo {
  width: 250px;
  max-width: 100%;
  margin-bottom: 2rem;
}
/* Barra de progreso fina y elegante */
.preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15); /* Fondo base sutil */
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.preloader-progress {
  height: 100%;
  width: 0;
  background: #fff; /* Color blanco de carga */
  border-radius: 4px;
  animation: fillProgress 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fillProgress {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ─── Variables ─── */
:root {
  --navy:        #1F2A44;
  --navy-dark:   #141C30;
  --navy-deep:   #111827;
  --accent:      #D4AF37;   /* Soft Gold */
  --accent-dark: #B8960C;
  --accent-soft: #E8DCC8;   /* Warm Beige */
  --bg:          #FFFFFF;
  --bg-soft:     #F8F5EE;
  --text:        #1F2A44;
  --muted:       #4A4A4A;
  --border:      #E5E1D6;
  --shadow-sm:   0 4px 12px rgba(31,42,68,.06);
  --shadow-md:   0 10px 30px rgba(31,42,68,.10);
  --shadow-lg:   0 20px 50px rgba(31,42,68,.18);
  --radius:      6px;
  --radius-lg:   12px;
  --trans:       all .35s cubic-bezier(.4,0,.2,1);

  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Montserrat', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ─── */
* { box-sizing: border-box; margin: 0; padding: 0; font-weight: 400 !important; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.35), transparent);
  margin: 0;
  border: none;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--text); line-height: 1.2; }
p { font-size: 1.15rem; color: #555; line-height: 1.8; }
a { color: inherit; text-decoration: none; transition: var(--trans); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Container ─── */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ─── Utilities ─── */
.section { padding: 6rem 0; }
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 32px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: #000;
  transform: translateY(-50%);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.section-title em { color: #000; font-style: normal; }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.text-center { text-align: center; }
.text-center .section-tag { padding-left: 0; }
.text-center .section-tag::before { display: none; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── Botones ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.8rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--trans);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: #fff; color: var(--navy); border: 2px solid #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(31,42,68,.3); border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(31,42,68,.3); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ─── SITE HEADER WRAPPER ─── */
#site-header { 
  position: fixed; 
  top: 0; left: 0; width: 100%; 
  z-index: 1000; 
  transition: all 0.3s ease; 
  pointer-events: none; /* Let clicks pass to background elements outside nav */
}

/* ─── HEADER / NAV (Píldora Moderna Flotante) ─── */
header {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto; /* Enable clicks on the nav itself */
  z-index: 1000;
  
  /* Estado inicial: blanco siempre */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  
  width: 90%;
  max-width: 1100px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled State */
#site-header.scrolled header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.85);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  top: 0.8rem;
  width: 94%;
}

#site-header:not(.scrolled) .nav-link { color: var(--navy-dark); border-color: transparent; font-weight: 600; }
#site-header:not(.scrolled) .nav-link:hover { color: #000; border-color: transparent; opacity: 1; }
#site-header:not(.scrolled) .nav-logo { filter: none; }
#site-header:not(.scrolled) .hamburger span { background: var(--navy-dark); }

#site-header.scrolled .nav-link { color: var(--navy-dark); border-color: transparent; font-weight: 600; }
#site-header.scrolled .nav-link:hover { color: #000; border-color: transparent; opacity: 1; text-shadow: none; }
#site-header.scrolled .nav-logo { filter: none; } /* Logo en sus colores originales sobre fondo blanco */
#site-header.scrolled .hamburger span { background: var(--navy-dark); }

/* ─── NAV CONTENEDOR INTERNO ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem 0.6rem 2.2rem;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center;
  transition: var(--trans);
}
.nav-logo:hover { transform: translateY(-1px); }
.site-logo {
  height: 55px; 
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  transform: scale(2.2); /* Hace el logo gigante visualmente */
  transform-origin: left center; /* Asegura que crezca hacia la derecha y arriba/abajo, anclado a la izquierda */
}

/* Menú */
.nav-menu { display: flex; align-items: center; gap: 2.2rem; list-style: none; margin-left: auto; margin-right: 1.5rem; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none; /* Quitamos uppercase para más legibilidad */
  color: #fff;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s ease;
  position: relative;
}

/* Animación subrayado links */
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #000;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-item:hover > .nav-link::after { width: 100%; }

/* Dropdown Submenú */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  background: rgba(12, 12, 12, 0.95); /* Color neutro oscuro en vez del azul fuerte */
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  min-width: 250px;
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; pointer-events: all; transform: translateX(-50%) translateY(0) scale(1); }
.nav-dropdown::before { content: ""; position: absolute; top: -15px; left: 0; width: 100%; height: 15px; }
.nav-dropdown a { 
  display: block; padding: 0.7rem 1.2rem; 
  font-size: 0.85rem; color: rgba(255,255,255,0.7); 
  font-weight: 500; transition: all 0.2s ease; 
  border-radius: 6px; 
  border-left: none; /* Quitamos el borde clásico */
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; padding-left: 1.5rem; }

/* Botón CTA del Navbar */
.nav-cta { margin-left: 0.5rem; }
.nav-cta .btn { 
  padding: 0.65rem 1.5rem; 
  font-size: 0.8rem; 
  font-weight: 600;
  border-radius: 100px; /* Completamente redondo */
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}
.nav-cta .btn:hover { box-shadow: 0 6px 20px rgba(31, 42, 68, 0.4); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 1000; }
.hamburger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.is-active span { background: #fff !important; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO (Swiper) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}
.hero-swiper { width: 100%; height: 100vh; }
.hero-slide {
  position: relative;
  display: flex !important; /* Swiper sets display:block on .swiper-slide — override it */
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  padding: 110px 0 80px; /* espacio header fijo arriba + respiro abajo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  /* Capa de protección muy fina, manteniendo la imagen totalmente visible */
  background: rgba(17, 24, 39, 0.45);
  z-index: 1;
}
.hero-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Centrado absoluto descartando márgenes extraños */
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center; gap: .6rem;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(0,0,0,.6);
  padding: .4rem 1.2rem;
  border-radius: 50px;
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #000;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,.7); }
  50% { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
}
.hero-title {
  font-family: var(--font-heading);
  /* Tamaños más proporcionales y compactos */
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7);
}
.hero-title em { color: #fff; font-style: normal; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.hero-sub {
  /* Subtexto más refinado y legible */
  font-size: 1.05rem;
  color: #fff;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Swiper overrides */
.swiper-pagination-bullet {
  background: #fff !important;
  opacity: .35 !important;
  width: 30px !important;
  height: 3px !important;
  border-radius: 0 !important;
  transition: var(--trans);
}
.swiper-pagination-bullet-active {
  background: #fff !important;
  opacity: 1 !important;
  width: 50px !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  transition: var(--trans);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy) !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.1rem !important;
  font-weight: 800;
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  opacity: .7;
}
.hero-scroll-line {
  width: 2px; height: 50px;
  background: linear-gradient(to bottom, #fff, transparent);
  margin: 0 auto 10px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Hero corto para páginas internas ─── */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 8rem 0 4rem;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,42,68,.88), rgba(20,28,48,.82));
}
.page-hero .container { position: relative; z-index: 2; text-align: center; }
.page-hero .hero-tag { background: rgba(0,0,0,.15); }
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
}
.page-hero h1 em { color: #fff; font-style: normal; }
.page-hero p {
  color: #fff;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
}

/* ─── STATS BAND ─── */
.stats-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 2.5rem 0;
  position: relative;
}
.stats-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border-top: 3px solid #fff;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #000;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-item:hover .stat-num {
  transform: scale(1.05);
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ─── SERVICES GRID (Home) — MODERN REDESIGN ─── */
.services-section { 
  padding: 7rem 0; 
  background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('../img/fondos/fondoquienessomos.webp') center/cover fixed;
  position: relative;
}
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #000, transparent);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.4);
  opacity: 0.75;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.service-card {
  background: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(31, 42, 68, 0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: #000;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.service-card:hover {
  box-shadow: 0 15px 35px rgba(31, 42, 68, 0.08), 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img img {
  transform: scale(1.08) rotate(1deg);
}

.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,42,68,0.2) 0%, transparent 100%);
  transition: opacity 0.5s ease;
}

.service-card:hover .service-card-img::after {
  opacity: 0;
}

.service-card-body {
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}
}

.service-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.service-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card-body p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  display: inline-flex;
  align-items: center;
  position: relative;
  width: fit-content;
  transition: color 0.3s ease;
}

.service-card-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 1px;
  background: #000;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-link::after {
  width: 100%;
}

  text-transform: uppercase;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.service-card-link:hover { color: #000; gap: 1rem; }

/* ─── VALORES Y PROPUESTA (MODERN BENTO GRID) ─── */
.orbit-values-section {
  padding: 6rem 0;
  background: var(--navy-dark);
  color: #fff;
}
.orbit-values-section .section-title { color: #ffffff; }
.orbit-values-section .section-title em { color: #fff; }
.orbit-values-section .section-sub {
  color: rgba(255,255,255,0.6);
  max-width: 650px;
  margin: 1.2rem auto 0;
  font-size: 1.05rem;
}
.values-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.values-bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.value-card {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-dark);
  background-image: 
    linear-gradient(135deg, rgba(20, 28, 48, 0.85) 0%, rgba(20, 28, 48, 0.95) 100%),
    url('../img/hero/Slide_2.webp');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  padding: 2.2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Unique Modern Glow Backgrounds for each card */
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.5s ease, transform 0.5s ease;
  mix-blend-mode: screen;
}

.value-card:nth-child(1)::before {
  background: radial-gradient(circle at top left, rgba(0,0,0,0.15) 0%, transparent 50%),
              linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}
.value-card:nth-child(2)::before {
  background: radial-gradient(circle at bottom right, rgba(0,0,0,0.15) 0%, transparent 60%),
              linear-gradient(315deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}
.value-card:nth-child(3)::before {
  background: radial-gradient(circle at bottom left, rgba(0,0,0,0.15) 0%, transparent 65%),
              linear-gradient(45deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}
.value-card:nth-child(4)::before {
  background: radial-gradient(circle at top right, rgba(0,0,0,0.15) 0%, transparent 65%),
              linear-gradient(225deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}
.value-card:nth-child(5)::before {
  background: radial-gradient(circle at center, rgba(0,0,0,0.12) 0%, transparent 70%);
}

.value-card:hover {
  border-color: rgba(0,0,0,0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.value-card:hover::before {
  opacity: 0.8;
  transform: scale(1.05); /* Expands the glow slightly */
}
.v-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.v-step {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}
.v-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
}
.v-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: #000;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.value-card:hover .v-line::after {
  width: 100%;
}
.v-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.v-content p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.v-list-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  list-style: none;
  padding: 0; margin: 0;
}
.v-list-2col li {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  padding-left: 1.2rem;
  position: relative;
}
.v-list-2col li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.4rem;
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff;
}

/* Perfect Horizontal Layout Mappings */
.v-card-top { grid-column: span 3; }
.v-card-bottom { grid-column: span 2; }

@media (max-width: 992px) {
  .values-bento-grid { grid-template-columns: 1fr; }
  .v-card-top, .v-card-bottom { grid-column: 1 / -1; }
  .v-list-2col { grid-template-columns: 1fr; }
}

/* ─── ABOUT (2 cols con imagen) ─── */
.about-section { 
  padding: 7rem 0; 
  background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('../img/fondos/fondoquienessomos.webp') center/cover fixed;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img {
  position: relative;
  border: 2px solid #000;
  border-radius: 1.25rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  will-change: transform, box-shadow;
}
.about-img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), 0 15px 40px rgba(0, 0, 0, 0.4);
}

.about-swiper {
  width: 100%;
  height: 100%;
}
.about-swiper .swiper-pagination-bullet {
  background: #000;
}

.about-img img { 
  width: 100%; 
  aspect-ratio: 4/5; 
  object-fit: cover; 
  display: block; 
  transition: transform 0.7s ease;
}
.about-img:hover img {
  transform: scale(1.05);
}
.about-content p { 
  color: #555; 
  margin-bottom: 1.5rem; 
  line-height: 1.8; 
  font-size: 1.05rem;
  font-weight: 300;
}
.about-content p:first-of-type {
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.about-content p:last-child { margin-bottom: 3rem; }

/* ─── CTA BANNER ─── */
.cta-banner {
  position: relative;
  padding: 6rem 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/hero/Slide_2.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: grayscale(20%);
}
.cta-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,42,68,0.7), rgba(20,28,48,0.65));
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner h2 em { color: #fff; font-style: normal; font-weight: 700; }
.cta-banner p {
  color: #fff;
  max-width: 650px;
  margin: 0 auto 2rem;
  font-weight: 300;
  font-size: 1.05rem;
}

/* ─── CLIENTES (Grid) ─── */
.clients-section { padding: 8rem 0; background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('../img/fondos/fondoquienessomos.webp') center/cover fixed; border-top: 1px solid var(--border); }
.clients-section .text-center { margin-bottom: 5rem; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem 3rem;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

.client-logo {
  height: 90px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(100%) opacity(.65);
  transition: var(--trans);
}
.client-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.08); }

/* ─── CONTENT SECTION (páginas internas) ─── */
.content-section { padding: 6rem 0; }
.content-section.bg-beige { background: var(--accent-soft); }
.content-section.bg-soft { background: var(--bg-soft); }
.content-block { max-width: 820px; margin: 0 auto; }
.content-block p { color: var(--muted); line-height: 1.85; margin-bottom: 1.3rem; }
.content-block h2 { margin-bottom: 1.5rem; }
.content-block h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2rem 0 1rem;
}
.benefit-list { margin: 1.5rem 0 2rem; }
.benefit-list li {
  padding: .8rem 0 .8rem 2.2rem;
  position: relative;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: .85rem;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
}

/* Service mini cards grid (internal pages) */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.mini-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--trans);
}
.mini-card:hover {
  transform: translateY(-5px);
  border-color: #000;
  box-shadow: var(--shadow-md);
}
.mini-card-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.08);
  color: #000;
  border-radius: 50%;
  font-size: 1.4rem;
}
.mini-card h4 { font-family: var(--font-body); font-weight: 600; color: var(--navy); font-size: 1rem; }

/* ─── CONTACTO ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.contact-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border-top: 4px solid #000;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.05);
  color: #000;
  border-radius: 50%;
  font-size: 1.4rem;
  transition: var(--trans);
}
.contact-card:hover .contact-card-icon {
  background: #000; color: #fff;
  transform: scale(1.08);
}
.contact-card h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .75rem;
  font-weight: 600;
}
.contact-card a, .contact-card p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.contact-card a:hover { color: #000; }

/* Form */
.contact-form {
  background: #fff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .5rem;
}
.form-control {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--bg-soft);
  color: var(--text);
  transition: var(--trans);
}
.form-control:focus {
  outline: none;
  border-color: #000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.1);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #2e7d32; }
.alert-error { background: #fdecea; color: #7f1d1d; border-left: 4px solid #c62828; }

.map-wrap {
  margin-top: 4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding-top: 5rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.footer-logo-accent {
  color: #fff;
  font-weight: 400;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  background: #fff;
  color: var(--navy-deep);
  transform: translateY(-3px);
  border-color: #fff;
}

/* Footer Columns */
.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-menu, .footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-menu a:hover {
  color: #fff;
  padding-left: 5px;
}

/* Contact Info */
.footer-contact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.fc-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: #fff;
}

.fc-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.fc-link:hover {
  color: #fff;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  background: rgba(11, 18, 32, 0.9);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fb-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.fb-inner p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.fb-inner strong {
  color: #fff;
  font-weight: 500;
}

.fb-dev a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.fb-dev a:hover {
  color: #fff;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-fade-up.revealed { opacity: 1; transform: translateY(0); }

.reveal-drop {
  opacity: 0;
  transform: translateY(-60px) scale(.95);
  transition: opacity .7s ease, transform .7s cubic-bezier(.34,1.56,.64,1);
  transition-delay: var(--delay, 0s);
}
.reveal-drop.revealed { opacity: 1; transform: translateY(0) scale(1); }

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.reveal-slide-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-slide-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.reveal-slide-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-bento {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.reveal-bento.revealed { opacity: 1; transform: translateY(0) scale(1); }

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .services-grid, .features-2col, .capacitamos-grid, .footer-top-grid,
  .contact-grid, .about-grid, .stats-grid, .form-row, .values-bento-grid {
    grid-template-columns: 1fr;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,.15); padding-bottom: 1.5rem; }
  .about-img img { height: 360px; }
  .about-grid { gap: 2.5rem; }
  .footer-top-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  /* ─── HEADER MÓVIL ─── */
  #site-header header {
    width: 92%;
    top: 0.6rem;
    padding: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
  }
  #site-header:not(.scrolled) .nav-link { color: #fff; }
  #site-header:not(.scrolled) .hamburger span { background: #fff; }

  #site-header.scrolled header {
    width: 95%;
    top: 0.4rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  #site-header.scrolled .nav-link { color: var(--navy-dark); }
  #site-header.scrolled .hamburger span { background: var(--navy-dark); }
  .nav { padding: 0.3rem 0.8rem 0.3rem 1.8rem; overflow: visible; }
  .nav-logo { overflow: visible; }
  .site-logo {
    transform: scale(1.7);
    transform-origin: left center;
    height: 44px;
    width: auto;
  }
  .hamburger {
    display: flex;
    z-index: 1002;
    position: relative;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
  }
  .hamburger span { width: 20px; height: 2px; }

  /* ─── MENÚ MÓVIL (Dropdown bajo la Píldora) ─── */
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    max-height: calc(100vh - 100px);
    background: rgba(12, 18, 30, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1.2rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hamburger.is-active span {
    background: var(--navy-dark) !important; /* Mantener oscuro en móvil para que se vea sobre la píldora blanca */
  }

  .nav-item {
    border-bottom: none;
    width: 100%;
    max-width: 320px;
    flex-direction: column;
    text-align: center;
    margin-bottom: 0;
  }
  .nav-link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.15rem;
    color: #fff !important;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-link::after { display: none; }

  /* Dropdown: oculto por defecto en móvil, se abre con JS */
  .nav-item:hover .nav-dropdown {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
  .nav-dropdown {
    position: static;
    transform: none !important;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 10px;
    padding: 0.4rem 0;
    margin: 0.3rem 0 0.5rem;
    min-width: auto;
    text-align: center;
    display: none;
    flex-direction: column;
    gap: 0;
    pointer-events: all;
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown.mobile-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .nav-dropdown a {
    color: rgba(255,255,255,0.6) !important;
    border-left: none;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    display: block;
    border-radius: 6px;
  }
  .nav-dropdown a:active {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
  }

  .nav-cta { margin-top: 1.5rem; width: 100%; display: flex; justify-content: center; }
  .nav-cta .btn { width: 80%; }

  /* ─── SECCIONES GENERALES ─── */
  .container { padding: 0 16px; }
  .section, .services-section, .capacitamos-section, .about-section, .content-section { padding: 3.5rem 0; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 1rem; }
  .section-sub { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .section-tag { font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 0.75rem; }

  /* ─── HERO MÓVIL ─── */
  .hero-swiper { height: 100svh; }
  .hero { min-height: 100svh; }
  .hero-slide {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    padding: 90px 1.5rem 70px;
    min-height: 100svh;
    overflow: hidden;
    box-sizing: border-box;
  }
  .hero-slide-inner { padding: 0 1.5rem; max-width: 100%; width: 100%; box-sizing: border-box; text-align: center; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1.15; margin-bottom: 0.9rem; }
  .hero-title em { display: inline; }
  .hero-sub { font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; padding: 0; max-width: 100%; }
  .hero-actions { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; max-width: 280px; margin: 0 auto; align-items: stretch; box-sizing: border-box; }
  .hero-actions .btn { width: 100%; padding: 0.85rem 1rem; font-size: 0.9rem; font-weight: 500; border-radius: 50px; text-align: center; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .swiper-button-next, .swiper-button-prev { display: none !important; }
  .hero-scroll-hint { bottom: 15px; }
  .hero-scroll-line { height: 30px; }

  /* ─── PAGE HERO (internas) ─── */
  .page-hero { min-height: 35vh; padding: 7rem 1rem 2.5rem; } /* ajustado para header */
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.2rem); margin-bottom: 0.8rem; }
  .page-hero p { font-size: 0.95rem; }

  /* ─── ABOUT ─── */
  .about-section { padding: 2.5rem 1rem; }
  .about-grid { gap: 2rem; }
  .about-content p:first-of-type { font-size: 1rem; margin-bottom: 1rem; }
  .about-content p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; }
  .about-img img { height: auto; max-height: 250px; object-fit: cover; border-radius: 1rem; }

  /* ─── SERVICES ─── */
  .services-section { padding: 2.5rem 1rem; }
  .services-grid { grid-template-columns: 1fr !important; gap: 1.2rem; margin-top: 2rem; }
  .service-card { border-radius: 1rem; }
  .service-card-img { height: 180px; }
  .service-card-body { padding: 1.5rem 1.2rem; }
  .service-card-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
  .service-card-body p { font-size: 0.9rem; margin-bottom: 1.2rem; line-height: 1.5; }

  /* ─── VALUES BENTO ─── */
  .orbit-values-section { padding: 2.5rem 1rem; }
  .values-header { margin-bottom: 2rem; }
  .values-header h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .values-bento-grid { gap: 1rem; display: flex; flex-direction: column; }
  .value-card { padding: 1.8rem 1.2rem; border-radius: 1rem; }
  .v-content h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
  .v-content p { font-size: 0.9rem; line-height: 1.5; }
  .v-list-2col { grid-template-columns: 1fr; gap: 0.6rem; }
  .v-list-2col li { font-size: 0.9rem; }

  /* ─── CLIENTS ─── */
  .clients-section { padding: 2.5rem 1rem; }
  .clients-section .text-center { margin-bottom: 2rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem 1rem; }
  .client-logo { height: 50px; max-width: 120px; }

  /* ─── CTA BANNER ─── */
  .cta-banner { padding: 3rem 1.5rem; margin: 1.5rem 1rem; border-radius: 1.2rem; box-sizing: border-box; }
  .cta-banner h2 { font-size: clamp(1.4rem, 6vw, 2rem); margin-bottom: 0.8rem; }
  .cta-banner p { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }
  .cta-banner .btn { font-size: 0.9rem; padding: 0.85rem 1.5rem; width: auto; max-width: 100%; box-sizing: border-box; white-space: normal; word-break: break-word; display: inline-block; }

  /* ─── FORMULARIOS ─── */
  .contact-form { padding: 1.5rem 1rem !important; border-radius: 1rem !important; }
  .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
  .form-group { margin-bottom: 1.2rem; }
  .form-group label { font-size: 0.8rem; margin-bottom: 0.4rem; }
  .form-control { padding: 0.75rem 1rem; font-size: 0.9rem; border-radius: 8px; }
  .contact-grid { gap: 1.5rem; }
  .contact-card { padding: 1.5rem 1.2rem; border-radius: 1rem; margin-bottom: 1rem; }

  /* ─── FOOTER ─── */
  .site-footer { padding-top: 2rem; }
  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .footer-brand-col { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-brand-col .site-logo { height: 55px !important; margin-bottom: 0.8rem; }
  .footer-desc { font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.5; }
  .footer-socials { margin-top: 0; }
  .footer-heading { margin-bottom: 0.6rem; font-size: 0.85rem; }
  .footer-menu, .footer-contact-list { gap: 0.6rem; }
  .footer-menu a { font-size: 0.85rem; }
  .footer-contact-list li { font-size: 0.85rem; gap: 0.6rem; align-items:flex-start; }
  .fb-inner { flex-direction: column; text-align: center; gap: 0.4rem; }
  .fb-inner p { font-size: 0.75rem; line-height: 1.4; }
  .footer-bottom-bar { padding: 1rem 0; }

  /* ─── CONTENT SECTIONS (internas) ─── */
  .content-block { padding: 0 0.5rem; }
  .content-block h2 { font-size: 1.5rem; }
  .content-block h3 { font-size: 1.25rem; }
  .mini-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* ─── STATS BAND ─── */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .stat-num { font-size: 1.6rem; }

  /* ─── INLINE STYLES OVERRIDE (páginas PHP) ─── */
  /* Flex containers en páginas internas -> columna en móvil */
  .service-horizontal-card,
  [style*="display: flex"][style*="gap: 2rem"],
  [style*="display: flex"][style*="gap: 5rem"] {
    flex-direction: column !important;
  }
  /* Grids inline -> 1 columna */
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }
  /* Heights fijas en grids de imágenes */
  [style*="height: 350px"],
  [style*="height: 280px"],
  [style*="height: 220px"] {
    height: auto !important;
    min-height: 200px;
  }
  /* min-width en flex items */
  [style*="min-width: 350px"],
  [style*="min-width: 300px"],
  [style*="min-width: 280px"],
  [style*="min-width: 400px"] {
    min-width: 100% !important;
  }
  /* Padding más compacto en secciones internas */
  [style*="padding: 8rem"],
  [style*="padding: 7rem"],
  [style*="padding: 6rem"],
  [style*="padding: 5rem"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  /* Títulos grandes inline */
  [style*="font-size: 3rem"],
  [style*="font-size: 2.5rem"] {
    font-size: 1.6rem !important;
  }
  [style*="font-size: 2rem"] {
    font-size: 1.4rem !important;
  }
  [style*="font-size: 5rem"] {
    font-size: 3rem !important;
  }
  /* Gaps grandes en flex layouts de internas */
  [style*="gap: 5rem"],
  [style*="gap: 4rem"],
  [style*="gap: 3rem"] {
    gap: 1.5rem !important;
  }
  /* Padding grande en cards y columnas internas */
  [style*="padding: 4rem 3rem"] {
    padding: 2rem 1.5rem !important;
  }
  [style*="padding: 3rem"] {
    padding: 1.5rem !important;
  }
  [style*="padding: 2.5rem"] {
    padding: 1.5rem !important;
  }
  /* Max-widths que son demasiado estrechos en mobile */
  [style*="max-width: 900px"],
  [style*="max-width: 1000px"],
  [style*="max-width: 1100px"],
  [style*="max-width: 950px"],
  [style*="max-width: 800px"] {
    max-width: 100% !important;
  }
  /* Imágenes en cards horizontales */
  .service-horizontal-card [style*="height: 220px"],
  .k9-image-side {
    min-height: 220px !important;
    height: 220px !important;
  }
  /* Bento grid internas */
  .bento-grid {
    grid-template-columns: 1fr !important;
  }
  .bento-item-wide,
  .bento-item-tall {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .bento-item { padding: 2rem 1.5rem; }
  .bento-title { font-size: 1.2rem; }
  /* K9 features */
  .k9-features-wrapper {
    grid-template-columns: 1fr !important;
  }
  /* Modern grid (guardias-empresas) */
  .modern-grid {
    grid-template-columns: 1fr !important;
  }
  .modern-card { padding: 2rem 1.5rem; }
  /* Gallery grids */
  [style*="grid-template-columns: repeat(2, 1fr)"][style*="height:"] {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  /* Border-right en stats */
  [style*="border-right: 1px solid"] {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding-bottom: 1rem !important;
  }
  /* Formularios en layout de 2 columnas (contacto/trabaja) */
  [style*="flex: 1.5"][style*="padding: 4rem 3rem"],
  [style*="flex: 1.5"][style*="min-width: 350px"] {
    padding: 2rem 1.5rem !important;
    min-width: 100% !important;
  }
  /* Map */
  .map-wrap iframe { height: 280px; }
}

/* ─── EXTRA SMALL (< 480px) ─── */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 1.5rem; }
  .hero-sub { font-size: 0.85rem; }
  .hero-actions { max-width: 240px; }
  .hero-actions .btn { font-size: 0.8rem; padding: 0.7rem 0.8rem; }
  .page-hero { min-height: 40vh; padding: 6rem 0 2.5rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero p { font-size: 0.85rem; }
  .section-title { font-size: 1.3rem; }
  .btn { padding: 0.75rem 1.2rem; font-size: 0.8rem; letter-spacing: 0.5px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem 1rem; }
  .client-logo { height: 50px; }
  .about-img img { height: 250px; }
  .service-card-img { height: 140px; }
  .footer-socials { justify-content: center; }
  [style*="font-size: 1.6rem"] { font-size: 1.3rem !important; }
  [style*="grid-auto-rows: 250px"] { grid-auto-rows: 180px !important; }
  /* Stats en 2 columnas compactas */
  [style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }
  [style*="font-size: 2.5rem"][style*="line-height: 1"] {
    font-size: 1.8rem !important;
  }
}





/* ── WhatsApp Flotante ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 9999;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
