/* =========================================================
   SSSPI — Sistemas y Servicios de Seguridad Privada Inteligente
   Stylesheet · Brand colors extracted from official logo
   ========================================================= */

:root {
  /* Brand palette */
  --navy:        #0a1d4a;
  --navy-deep:   #061436;
  --navy-soft:   #15265d;
  --navy-light:  #1c3380;
  --cyan:        #3ad4ff;
  --cyan-bright: #5ce5fa;
  --cyan-soft:   #b8eeff;
  --blue:        #1c5cd9;
  --blue-light:  #4a82e8;
  --yellow:      #ffe933;
  --yellow-warm: #ffd400;

  /* Neutrals */
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --gray-50:     #f3f5f9;
  --gray-100:    #e6eaf2;
  --gray-200:    #cdd4e0;
  --gray-400:    #8a93a6;
  --gray-600:    #4a5568;
  --gray-800:    #1f2a3d;
  --text:        #1a2236;
  --muted:       #5b6478;

  /* System */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(10,29,74,0.06);
  --shadow:    0 8px 28px rgba(10,29,74,0.10);
  --shadow-lg: 0 18px 50px rgba(10,29,74,0.18);
  --container:  1200px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(28, 92, 217, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(28,92,217,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(28,92,217,0.45);
  color: var(--white);
}
.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(255,212,0,0.35);
}
.btn-yellow:hover {
  transform: translateY(-2px);
  background: var(--yellow-warm);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(255,212,0,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Top social bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a {
  color: var(--cyan-soft);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}
.topbar-social a:hover {
  background: var(--yellow);
  color: var(--navy);
}
.topbar-info { display: flex; gap: 22px; align-items: center; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info svg { width: 14px; height: 14px; color: var(--yellow); }

@media (max-width: 720px) {
  .topbar-info { display: none; }
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10,29,74,0.07);
  transition: all var(--transition);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo img {
  height: 56px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(28, 92, 217, 0.08);
  color: var(--blue);
}
.nav-cta { margin-left: 14px; }

.nav-toggle {
  display: none;
  background: var(--navy);
  color: var(--white);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 18px;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform var(--transition);
    align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; text-align: left; padding: 14px 16px; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; width: 100%; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(58,212,255,0.18), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(28,92,217,0.25), transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-soft) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 130px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-shield {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 480px;
  opacity: 0.07;
  pointer-events: none;
  filter: drop-shadow(0 0 60px var(--cyan));
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 233, 51, 0.14);
  color: var(--yellow);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 22px;
  border: 1px solid rgba(255,233,51,0.3);
}
.hero-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin-bottom: 22px;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--cyan-bright), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero photo */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,20,54,0.85) 100%);
  z-index: 1;
}
.hero-photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 22px 26px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-photo-badge strong {
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.hero-photo-badge span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

.hero-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
}
.hero-card-list .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  flex-shrink: 0;
  font-size: 0.85rem;
}
.hero-card-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 22px 0;
}
.hero-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.hero-card-foot strong { color: var(--yellow); display: block; font-size: 1.05rem; font-family: var(--font-heading); }

@media (max-width: 880px) {
  .hero { padding: 70px 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 100%; }
  .hero-shield { display: none; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--white);
  padding: 0;
  position: relative;
  margin-top: -60px;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat-item {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--gray-100);
}
.stat-item:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}
/* CAMBIO: variante de 3 columnas (se eliminó el stat de 1,200 elementos) */
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--gray-100); }

  /* Stats de 3: en móvil se apilan en una sola columna para que se lean bien */
  .stats-grid-3 { grid-template-columns: 1fr; }
  .stats-grid-3 .stat-item { border-right: 0; border-bottom: 1px solid var(--gray-100); }
  .stats-grid-3 .stat-item:last-child { border-bottom: 0; }
}

@media (min-width: 721px) and (max-width: 880px) {
  /* Tablet: 3 stats en fila, un poco más compactos */
  .stats-grid-3 .stat-item { padding: 28px 16px; }
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  background: var(--off-white);
}
.intro p {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  color: var(--muted);
}

/* ---------- Service preview cards (Inicio) ---------- */
.services-preview {
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.service-pill {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  padding: 26px 22px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
  cursor: pointer;
}
.service-pill:hover {
  border-color: var(--cyan);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-pill .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.service-pill h4 { color: var(--navy); margin: 0; font-size: 1rem; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ---------- Nosotros / About ---------- */
.about {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}
.about-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}
.about-lead p { color: var(--muted); font-size: 1.05rem; }
.about-lead-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-lead-visual::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  opacity: 0.4;
}
.about-lead-visual h3 {
  color: var(--yellow);
  font-size: 1.6rem;
  position: relative;
}
.about-departments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}
.about-departments li {
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,0.92);
}
.about-departments li::before {
  content: "▸";
  color: var(--cyan-bright);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .about-lead { grid-template-columns: 1fr; gap: 36px; }
  .about-departments { grid-template-columns: 1fr; }
}

/* About: light departments list (when next to a photo) */
.about-departments-light {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.about-departments-light li {
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: center;
}
.about-departments-light li::before {
  content: "▸";
  color: var(--blue);
  font-weight: 700;
}

/* About: photo */
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-photo-tag {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: var(--yellow);
  color: var(--navy);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  font-family: var(--font-heading);
}
.about-photo-tag strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}
.about-photo-tag span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
@media (max-width: 880px) {
  .about-departments-light { grid-template-columns: 1fr; }
}

/* MVP cards */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvp-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}
.mvp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.mvp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.mvp-card:hover::before { transform: scaleX(1); }
.mvp-card .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.5;
  line-height: 1;
}
.mvp-card h3 {
  margin: 14px 0 14px;
  color: var(--navy);
  font-size: 1.4rem;
}
.mvp-card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }

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

/* ---------- Servicios (full) ---------- */
.services {
  background: var(--off-white);
}
.services-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(58,212,255,0.06) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}
.service-card:hover::after { opacity: 1; }

/* Service card with hero image */
.service-card-photo { padding: 0; overflow: hidden; }
.service-card-photo .service-card-img {
  position: relative;
  height: 200px;
  margin-bottom: 22px;
  overflow: hidden;
}
.service-card-photo .service-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,29,74,0.4) 100%);
}
.service-card-photo .service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.service-card-photo:hover .service-card-img img { transform: scale(1.05); }
.service-card-photo .service-icon {
  position: relative;
  margin: -50px 0 18px 30px;
  z-index: 2;
  box-shadow: 0 12px 24px rgba(10,29,74,0.35);
}
.service-card-photo h3,
.service-card-photo p,
.service-card-photo ul { padding-left: 30px; padding-right: 30px; }
.service-card-photo ul { padding-bottom: 30px; }
.service-card-photo p:last-child { padding-bottom: 30px; }
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
  box-shadow: 0 8px 18px rgba(10,29,74,0.25);
}
.service-card h3 { color: var(--navy); margin-bottom: 14px; font-size: 1.25rem; }
.service-card p { color: var(--muted); font-size: 0.97rem; }
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.service-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.93rem;
  color: var(--text);
}
.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.cta-banner {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(58,212,255,0.4) 0%, transparent 70%);
}
.cta-banner h3 {
  color: var(--white);
  font-size: 1.7rem;
  position: relative;
  margin-bottom: 22px;
}
.cta-banner p { color: rgba(255,255,255,0.85); position: relative; max-width: 580px; margin: 0 auto 28px; }

/* ---------- Clientes ---------- */
.clients { background: var(--white); }
.clients-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.zone-card {
  background: var(--off-white);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all var(--transition);
}
.zone-card:hover {
  transform: translateX(4px);
  border-left-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}
.zone-card h4 {
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.zone-card h4::before {
  content: "📍";
  font-size: 1.1rem;
}
.zone-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; margin: 0; }

/* Clientes banner with photo */
.clients-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21 / 9;
  max-height: 380px;
}
.clients-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.clients-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,20,54,0.85) 0%, rgba(6,20,54,0.55) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  color: var(--white);
  max-width: 60%;
}
.clients-banner-overlay h3 {
  color: var(--yellow);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 10px;
}
.clients-banner-overlay p {
  color: rgba(255,255,255,0.92);
  margin: 0;
  font-size: 1.02rem;
}
@media (max-width: 720px) {
  .clients-banner { aspect-ratio: 4 / 3; max-height: none; }
  .clients-banner-overlay { padding: 24px; max-width: 100%; }
}

.gov-banner {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 30px 36px;
  border-radius: var(--radius);
  border-left: 6px solid var(--yellow);
}
.gov-banner .gov-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.gov-banner strong { color: var(--yellow); display: block; font-size: 1.2rem; margin-bottom: 4px; font-family: var(--font-heading); }
.gov-banner p { margin: 0; color: rgba(255,255,255,0.88); }

@media (max-width: 600px) {
  .gov-banner { flex-direction: column; text-align: center; }
}

/* ---------- Valor agregado ---------- */
.value {
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}
.value-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-warm) 100%);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 22px rgba(255,212,0,0.35);
}
.value-card h3 { color: var(--navy); margin-bottom: 14px; font-size: 1.2rem; }
.value-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.value-divider {
  text-align: center;
  margin: 80px 0 50px;
}
.value-divider span {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  padding: 0 30px;
}
.value-divider span::before, .value-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.value-divider span::before { right: 100%; transform: scaleX(-1); }
.value-divider span::after { left: 100%; }

/* ---------- Contacto ---------- */
.contact { background: var(--off-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info { display: grid; gap: 22px; align-content: start; }
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.info-card:hover { box-shadow: var(--shadow); border-color: var(--cyan); }
.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.info-card h4 { color: var(--navy); margin: 0 0 8px; font-size: 1.05rem; }
.info-card p, .info-card a { color: var(--muted); margin: 2px 0; font-size: 0.93rem; }
.info-card a:hover { color: var(--blue); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.contact-form h3 { margin-top: 0; }
.contact-form p { color: var(--muted); margin-bottom: 24px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-100);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(58,212,255,0.15);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 8px;
}
.form-services label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}
.form-services input { width: auto; margin: 0; accent-color: var(--blue); }

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}
.form-feedback.success { display: block; background: rgba(58,212,255,0.12); color: var(--blue); border: 1px solid var(--cyan); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row, .form-services { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

/* Vacantes banner */
.vacancies {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.vacancies::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58,212,255,0.25) 0%, transparent 70%);
  z-index: 1;
}
.vacancies-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}
.vacancies-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}
.vacancies-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.vacancies-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vacancies-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,20,54,0.7) 100%);
}
.vacancies-photo-tag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.vacancies-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
}
.vacancies h2 { color: var(--white); }
.vacancies p { color: rgba(255,255,255,0.85); }
.vacancies-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vacancies-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.vacancies-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
@media (max-width: 880px) {
  .vacancies-inner { grid-template-columns: 1fr; }
  .vacancies-list { grid-template-columns: 1fr; }
}

/* Map placeholder */
.map-wrap {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img { height: 60px; margin-bottom: 18px; background-color: rgba(255,255,255,0.85) }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer h5 {
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 0.92rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--cyan-bright); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--cyan-soft);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
  z-index: 99;
  transition: all var(--transition);
  animation: floatPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
}
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes floatPulse {
  0%,100% { box-shadow: 0 10px 28px rgba(37,211,102,0.45); }
  50%     { box-shadow: 0 10px 36px rgba(37,211,102,0.7); }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   CAMBIO: Franjas de logos (clientes / certificaciones / permisos)
   Reemplazan las antiguas tarjetas de zonas y sirven como marcos
   listos para colocar los logos que envíe el cliente.
   ========================================================= */
.logo-strip {
  margin: 10px 0 30px;
}
.logo-strip-title {
  text-align: center;
  color: var(--navy);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 26px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
/* Variante pequeña para certificaciones/permisos (4 slots por fila) */
.logo-grid-sm {
  grid-template-columns: repeat(4, 1fr);
  max-width: 780px;
  margin: 0 auto;
}
.logo-slot {
  aspect-ratio: 3 / 2;
  background: var(--off-white);
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: all var(--transition);
}
.logo-slot:hover {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
/* Cuando se agregue un <img> dentro del slot, se ajusta en escala de grises
   y toma color al pasar el cursor (estilo típico de "muro de clientes"). */
.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all var(--transition);
}
.logo-slot:hover img {
  filter: grayscale(0);
  opacity: 1;
}
/* Slot vacío (aún sin logo): muestra un guía sutil */
.logo-slot:empty::before {
  content: "LOGO";
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gray-400);
}

@media (max-width: 980px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid-sm { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* =========================================================
   CAMBIO: Refinamiento responsivo adicional
   Cobertura explícita para iPhone, Android, iPad y PC.
   ========================================================= */

/* --- Tablets / iPad (vertical y horizontal) --- */
@media (min-width: 601px) and (max-width: 1024px) {
  .container { padding: 0 28px; }
  section { padding: 72px 0; }
  section.tight { padding: 52px 0; }
  .services-full { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Teléfonos (iPhone / Android) --- */
@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  section { padding: 56px 0; }
  section.tight { padding: 40px 0; }
  .container { padding: 0 18px; }

  .nav-logo img { height: 46px; }

  .hero { padding: 56px 0 70px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-photo { max-width: 100%; }
  .hero-photo img { aspect-ratio: 3 / 4; }

  .stats { margin-top: -40px; }

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

  .cta-banner { padding: 32px 22px; }
  .cta-banner h3 { font-size: 1.35rem; }

  .clients-banner-overlay h3 { font-size: 1.25rem; }

  .contact-form { padding: 24px 20px; }

  .footer-badges { justify-content: center; }

  .whatsapp-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* --- Teléfonos pequeños (iPhone SE / Android compacto) --- */
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .section-head { margin-bottom: 40px; }
}

/* --- Pantallas grandes / PC de escritorio --- */
@media (min-width: 1400px) {
  :root { --container: 1280px; }
}

/* Evita desbordes horizontales en cualquier dispositivo */
html, body { max-width: 100%; overflow-x: hidden; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
