/* CID Negocios — Soluciones Industriales · Design system */

:root {
  --navy: #0f2a5c;
  --navy-dark: #0a1f45;
  --navy-deep: #050e22;
  --red: #c8102e;
  --red-dark: #a20d24;
  --red-glow: #ff2a4d;
  --gray-900: #14181f;
  --gray-800: #23272f;
  --gray-700: #3a404b;
  --gray-500: #6c7280;
  --gray-300: #d5d8de;
  --gray-100: #f2f4f8;
  --white: #ffffff;
  --shadow-sm: 0 2px 6px rgba(6, 22, 51, .08);
  --shadow-md: 0 8px 24px rgba(6, 22, 51, .12);
  --shadow-lg: 0 20px 60px rgba(6, 22, 51, .22);
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 84px;
  --container: 1240px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

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

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(200,16,46,.28);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(200,16,46,.35);
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  border-color: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--navy) !important;
  border-color: #fff;
}
.btn-secondary {
  background: var(--navy);
  color: #fff !important;
}
.btn-secondary:hover { background: var(--navy-dark); color: #fff !important; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff !important; }

/* -------- Header / Nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-300);
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(6,22,51,.06);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 8px 0;
}
.nav-logo img {
  height: 60px;
  width: auto;
  mix-blend-mode: multiply;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a,
.nav-menu > li > .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, background .2s;
}
.nav-menu > li:not(.cta) > a:hover,
.nav-menu > li:not(.cta) > .nav-toggle:hover,
.nav-menu > li.active:not(.cta) > a {
  color: var(--red);
  background: var(--gray-100);
}

/* CTA button in nav — never inherit link/active styles */
.nav-menu li.cta > a.btn-primary,
.nav-menu li.cta.active > a.btn-primary {
  color: #fff !important;
  background: var(--red) !important;
  padding: 12px 22px;
}
.nav-menu li.cta > a.btn-primary:hover {
  background: var(--red-dark) !important;
}

.nav-toggle .caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}
.has-dropdown.open .nav-toggle .caret,
.has-dropdown:hover .nav-toggle .caret {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 280px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  list-style: none;
  margin: 0;
  border: 1px solid var(--gray-300);
  z-index: 200;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #ffffff;
  border-left: 1px solid var(--gray-300);
  border-top: 1px solid var(--gray-300);
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 6px;
  color: var(--navy) !important;
  font-weight: 500;
  font-size: 0.94rem;
  background: transparent;
}
.dropdown a:hover {
  background: var(--gray-100);
  color: var(--red) !important;
}
.dropdown a .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -------- Hero (redesigned) -------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
  padding-bottom: 180px; /* space for stats bar */
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img, .hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
/* Multi-layer visual overlay */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    /* Red glow accent - top right */
    radial-gradient(ellipse 70% 60% at 88% 8%, rgba(255,42,77,.35) 0%, transparent 55%),
    /* Blue glow - bottom left */
    radial-gradient(ellipse 60% 55% at 5% 100%, rgba(15,42,92,.75) 0%, transparent 60%),
    /* Diagonal dark gradient */
    linear-gradient(120deg, rgba(5,14,34,.94) 0%, rgba(5,14,34,.78) 35%, rgba(5,14,34,.55) 65%, rgba(5,14,34,.85) 100%),
    /* Bottom vignette */
    linear-gradient(180deg, transparent 40%, rgba(5,14,34,.75) 100%);
}
/* Subtle animated grid overlay */
.hero-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 60% 55% at 60% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 60% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 60px 0 40px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-glow);
  margin-bottom: 20px;
}
.hero-tag .bar {
  width: 40px; height: 2px;
  background: var(--red-glow);
  border-radius: 2px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 22px;
  font-weight: 800;
}
.hero h1 .accent {
  color: var(--red-glow);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, var(--red-glow), transparent);
  border-radius: 2px;
}
.hero p.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  color: rgba(255,255,255,.9);
  margin-bottom: 34px;
  max-width: 640px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Floating decorative shapes */
.hero-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: .12;
  filter: blur(0.5px);
}
.hero-shape.gear {
  top: 15%; right: 6%;
  width: 220px; height: 220px;
  animation: rotate 30s linear infinite;
}
.hero-shape.circle {
  bottom: 30%; right: 20%;
  width: 100px; height: 100px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}

/* Hero stats — separate bar, not overlapping */
.hero-stats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(5,14,34,.92) 0%, rgba(10,31,69,.92) 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 26px 0;
  backdrop-filter: blur(8px);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  color: #fff;
  align-items: center;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-left: 20px;
}
.hero-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--red);
  border-radius: 2px;
}
.hero-stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat .num .plus { color: var(--red-glow); }
.hero-stat .label {
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 600;
}

/* -------- Sections -------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-dark {
  background: linear-gradient(180deg, var(--navy-deep), #0a1f45);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-gray { background: var(--gray-100); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--gray-700);
  font-size: 1.05rem;
}
.section-dark .section-head p { color: rgba(255,255,255,.8); }

/* -------- Values -------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  border: 1px solid var(--gray-300);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.value-card:hover::before { transform: scaleX(1); }
.value-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.value-icon svg { width: 30px; height: 30px; }
.value-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.value-card p { color: var(--gray-700); font-size: .95rem; margin: 0; }

/* -------- Services grid -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.service-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .5s;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,51,.15) 0%, rgba(6,22,51,.45) 55%, rgba(6,22,51,.95) 100%);
  z-index: 1;
  transition: opacity .3s;
}
.service-card:hover img { transform: scale(1.06); }
.service-card .card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px;
  z-index: 2;
  color: #fff;
}
.service-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.service-card .cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.service-card:hover .cta-arrow {
  opacity: 1; transform: translateY(0);
}

/* -------- Interactive map -------- */
.map-section {
  padding: 90px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(200,16,46,.10), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(15,42,92,.15), transparent 40%),
    #061633;
  color: #fff;
}
.map-section h2 { color: #fff; }
.map-section .section-head p { color: rgba(255,255,255,.8); }

.interactive-map {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 1536 / 1024;
  overflow: visible; /* allow tooltips to escape */
}
.interactive-map > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.map-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 5%;
  aspect-ratio: 1;
  min-width: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  padding: 0;
}
.map-hotspot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  animation: hotspot-pulse 2.4s infinite;
  border: 2px solid rgba(255,255,255,.75);
}
.map-hotspot::after {
  content: "";
  position: absolute; inset: 25%;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid transparent;
  transition: background .2s, border-color .2s, transform .2s;
}
.map-hotspot:hover::after,
.map-hotspot:focus::after,
.map-hotspot.active::after {
  background: rgba(200,16,46,.35);
  border-color: var(--red);
  transform: scale(1.15);
}
@keyframes hotspot-pulse {
  0%   { transform: scale(.85); opacity: .9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.map-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 260px;
  max-width: 320px;
  background: #fff;
  color: var(--gray-900);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  pointer-events: none;
  border-top: 4px solid var(--red);
}
.map-hotspot:hover + .map-tooltip,
.map-hotspot:focus + .map-tooltip,
.map-hotspot.active + .map-tooltip,
.map-tooltip:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.map-tooltip h4 {
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.map-tooltip p {
  margin: 0 0 12px;
  font-size: .88rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.map-tooltip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: .85rem;
}

.map-hint {
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin-top: 22px;
}

/* -------- Service page hero (FIXED: white titles) -------- */
.svc-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}
.svc-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
  filter: saturate(1.05);
}
.svc-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(200,16,46,.25) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5,14,34,.35) 0%, rgba(5,14,34,.85) 60%, rgba(5,14,34,.98) 100%);
  z-index: 1;
}
.svc-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0 44px;
  width: 100%;
}
.svc-hero h1,
.svc-hero h2,
.svc-hero h3,
.svc-hero p {
  color: #ffffff !important;
}
.svc-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
  margin-bottom: 12px;
}
.svc-hero p.lead {
  color: rgba(255,255,255,.9) !important;
  max-width: 720px;
  font-size: 1.1rem;
}
.breadcrumb {
  display: flex; gap: 8px; font-size: .88rem;
  color: rgba(255,255,255,.75); margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.9); font-weight: 500; }
.breadcrumb a:hover { color: #fff; }

.svc-body { padding: 80px 0; }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.svc-grid .intro {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 30px;
}
.svc-grid h3 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-300);
}
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.svc-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.svc-list li::before {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: 8px;
  background: var(--red);
  border-radius: 2px;
  transform: rotate(45deg);
}

.svc-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
}
.svc-side::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(200,16,46,.35), transparent 70%);
  border-radius: 50%;
}
.svc-side h4 { color: #fff; margin-top: 0; position: relative; }
.svc-side p { color: rgba(255,255,255,.8); font-size: .95rem; position: relative; }
.svc-side .btn { width: 100%; justify-content: center; position: relative; }

.svc-other { background: var(--gray-100); padding: 60px 0; }
.svc-other .chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px;
}
.svc-other .chip {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-weight: 600;
  color: var(--navy);
  font-size: .92rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.svc-other .chip:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-2px);
}

/* -------- Nosotros -------- */
.nosotros-intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.nosotros-intro img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.nosotros-intro p { color: var(--gray-700); font-size: 1.05rem; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.mv-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--red);
}
.mv-card .mv-tag {
  color: var(--red);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  display: block;
  margin-bottom: 8px;
}
.mv-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.mv-card p { color: var(--gray-700); margin: 0; }

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strength-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
.strength-card:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--red);
  transform: translateY(-4px);
}
.strength-card .n {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  color: var(--red);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}
.strength-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.15rem; }
.strength-card p { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0; }

/* -------- Contacto (rediseñado, sin formulario) -------- */
.contact-page { max-width: 1080px; margin: 0 auto; }

.contact-intro { text-align: center; margin-bottom: 60px; }
.contact-intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.contact-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  color: var(--navy);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-align: left;
}
.quick-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: var(--navy);
}
.quick-action .qa-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.quick-action .qa-icon svg { width: 26px; height: 26px; }
.quick-action.wa .qa-icon { background: #25D366; }
.quick-action.phone .qa-icon { background: var(--navy); }
.quick-action.mail .qa-icon { background: var(--red); }
.quick-action .qa-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.quick-action .qa-text span {
  font-size: .88rem;
  color: var(--gray-700);
}
.quick-action:hover .qa-text span { color: var(--red); }

.contact-details {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--gray-300);
  align-items: center;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-list .ci-icon svg { width: 22px; height: 22px; }
.contact-list .ci-body strong { display: block; color: var(--navy); font-size: 1rem; }
.contact-list .ci-body span, .contact-list .ci-body a {
  color: var(--gray-700); font-size: .95rem;
}
.contact-list .ci-body a:hover { color: var(--red); }

/* Highlighted CTA banner in contact page */
.contact-cta {
  margin-top: 70px;
  background: linear-gradient(135deg, #050e22 0%, #0f2a5c 100%);
  border-radius: 20px;
  padding: 40px 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(37,211,102,.28), transparent 70%);
  border-radius: 50%;
}
.contact-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact-cta h3 { color: #fff; margin: 0 0 6px; font-size: 1.35rem; }
.contact-cta p { color: rgba(255,255,255,.85); margin: 0; }
.contact-cta .btn-primary {
  background: #25D366 !important;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  padding: 16px 28px;
  font-size: 1rem;
}
.contact-cta .btn-primary:hover { background: #1eb85c !important; }

form.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-300);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-weight: 600; margin-bottom: 6px;
  font-size: .9rem; color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: #fff;
  font-family: inherit;
  font-size: .98rem;
  color: var(--gray-900);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #e6f4ea;
  color: #14582c;
  border: 1px solid #a8dcbb;
  display: none;
}
.form-status.show { display: block; }

/* -------- CTA banner (redesigned) -------- */
.cta-banner {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(255,42,77,.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(15,42,92,.6) 0%, transparent 55%),
    linear-gradient(135deg, #050e22 0%, #0a1f45 60%, #1a2f5c 100%);
  color: #fff;
  padding: 90px 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  z-index: 0;
}
.cta-banner .container {
  position: relative;
  z-index: 1;
}
.cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red-glow), var(--red));
  border-radius: 0 4px 4px 0;
}
.cta-icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 12px 30px rgba(200,16,46,.4);
  position: relative;
}
.cta-icon::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 26px;
  border: 2px solid rgba(255,42,77,.3);
  animation: pulse-cta 2.5s infinite;
}
@keyframes pulse-cta {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}
.cta-icon svg { width: 40px; height: 40px; }
.cta-text h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
}
.cta-text p {
  color: rgba(255,255,255,.85);
  margin: 0;
  font-size: 1rem;
  max-width: 520px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.cta-actions .btn { justify-content: center; }
.cta-actions .contact-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  justify-content: center;
}
.cta-actions .contact-quick a {
  color: #fff;
  font-weight: 600;
}

/* -------- Footer -------- */
.site-footer {
  background: #050e22;
  color: rgba(255,255,255,.75);
  padding: 60px 0 24px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .04em; }

/* Text-based footer brand (replaces image logo) */
.footer-brand {
  display: inline-block;
  margin-bottom: 18px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-left: 4px solid var(--red);
  border-radius: 4px;
}
.footer-brand .brand-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  letter-spacing: .02em;
}
.footer-brand .brand-name .cid { color: #fff; }
.footer-brand .brand-name .neg { color: var(--red-glow); }
.footer-brand .brand-sub {
  display: block;
  margin-top: 6px;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 600;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-contact li {
  color: rgba(255,255,255,.75);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--red-glow); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px;
  font-size: .9rem;
}
.footer-contact li svg {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px;
  color: var(--red-glow);
}
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
}

/* -------- Responsive -------- */
@media (max-width: 1100px) {
  .hero-stats-grid { gap: 20px; }
}
@media (max-width: 980px) {
  .values-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .contacto-grid, .nosotros-intro, .mv-grid { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-side { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 28px;
  }
  .cta-inner::before { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 4px; }
  .cta-icon { margin: 0 auto; }
  .cta-text { text-align: center; }
  .cta-text p { margin: 0 auto; }
  .hero-shape { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .container { padding: 0 24px; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #ffffff !important;
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    align-items: stretch;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .3s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu > li { position: relative; }
  .nav-menu > li > a,
  .nav-menu > li > .nav-toggle {
    padding: 14px 12px;
    width: 100%;
    justify-content: space-between;
    color: var(--navy) !important;
    background: transparent;
  }
  /* Mobile dropdown — explicit visible list */
  .dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid var(--red) !important;
    padding: 6px 0 6px 12px !important;
    margin: 4px 0 8px 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none !important;
    min-width: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  .dropdown::before { display: none !important; }
  .has-dropdown.open > .dropdown { display: block !important; }
  .dropdown li { display: block; }
  .dropdown a {
    color: var(--navy) !important;
    background: transparent !important;
    padding: 12px 14px !important;
    font-size: .96rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    text-decoration: none;
  }
  .dropdown a:hover, .dropdown a:focus {
    background: var(--gray-100) !important;
    color: var(--red) !important;
  }
  .dropdown a .dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
  }
  .nav-burger { display: block; }
  .nav-logo img { height: 46px; }

  /* Hero móvil — más liviano */
  .hero {
    min-height: 600px;
    padding-bottom: 170px;
    padding-top: 10px;
  }
  .hero-content { padding: 32px 0 24px; max-width: 100%; }
  .hero-tag {
    font-size: .68rem;
    letter-spacing: .18em;
    margin-bottom: 14px;
    gap: 8px;
  }
  .hero-tag .bar { width: 24px; }
  .hero h1 {
    font-size: 2.05rem !important;
    line-height: 1.06;
    margin-bottom: 14px;
  }
  .hero h1 br { display: none; }
  .hero p.lead {
    font-size: .96rem;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .hero-shape { display: none !important; }
  .hero-stats { padding: 18px 0; }
  .hero-stat { padding-left: 12px; }

  .section { padding: 70px 0; }
  .services-grid, .values-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .strengths-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .map-tooltip {
    min-width: 180px;
    max-width: 220px;
    padding: 12px 14px;
    font-size: .82rem;
  }
  .map-tooltip h4 { font-size: .92rem; }
  .map-tooltip p { font-size: .78rem; margin-bottom: 8px; }
  .cta-banner { padding: 60px 0; }
  .contact-quick-actions { grid-template-columns: 1fr; }
  .contact-details { padding: 22px 20px; }
  .contact-cta { padding: 28px 22px; }
  .contact-cta-inner { grid-template-columns: 1fr; text-align: center; }
  .contact-cta .btn { justify-content: center; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .services-grid, .values-grid { grid-template-columns: 1fr; }
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
  .hero-stat .num { font-size: 1.35rem; }
  .hero-stat .label { font-size: .66rem; }
  .hero {
    min-height: 560px;
    padding-bottom: 175px;
  }
  .hero h1 { font-size: 1.85rem !important; }
  .hero p.lead { font-size: .92rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; padding: 12px 22px; }
  .cta-inner { padding: 22px 18px; }
}
