@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --bg: #F2F5F9;
  --bg2: #FFFFFF;
  --text: #0B1220;
  --muted: rgba(11,18,32,.60);

  --navy: #0F2B46;
  --navy2: #12385C;
  --navy-light: rgba(15,43,70,.07);

  --accent: #B01363;
  --accent2: #8E0F52;
  --accent-light: rgba(176,19,99,.08);

  --border: rgba(11,18,32,.10);
  --border-strong: rgba(11,18,32,.18);

  --shadow1: 0 4px 16px rgba(11,18,32,.07), 0 1px 3px rgba(11,18,32,.05);
  --shadow2: 0 12px 32px rgba(11,18,32,.12), 0 2px 6px rgba(11,18,32,.06);
  --shadow3: 0 24px 48px rgba(11,18,32,.16);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --headerH: 74px;

  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

/* ========================= RESET ========================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.noScroll { overflow: hidden; }

main { padding-top: var(--headerH); }

/* ========================= HEADER ========================= */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--headerH);
  z-index: 1000;
  background: rgba(242,245,249,.80);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(11,18,32,.08);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, rgba(15,43,70,.3) 70%, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.site-header.is-scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 1px 0 rgba(11,18,32,.08), 0 8px 24px rgba(11,18,32,.08);
}
.site-header.is-scrolled::after { opacity: 1; }

.header-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  height: var(--headerH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* NAV */
.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--muted);
  transition: color .18s ease, background .18s ease;
  letter-spacing: .01em;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(11,18,32,.06);
}

.main-nav a.active {
  color: var(--navy);
  background: var(--navy-light);
  font-weight: 650;
}

/* Toggle mobile */
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  box-shadow: var(--shadow1);
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 18px;
  background: rgba(11,18,32,.7);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.navBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.35);
  z-index: 900;
  backdrop-filter: blur(2px);
}

/* ========================= HERO ========================= */
.hero {
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 0% 0%, rgba(15,43,70,.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(176,19,99,.06), transparent 60%);
  pointer-events: none;
}

/* Grid pattern overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,18,32,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,18,32,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(176,19,99,.25);
  background: rgba(176,19,99,.07);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  margin-top: 20px;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.65;
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero stats strip */
.hero__stats {
  display: flex;
  gap: 0;
  margin-top: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow1);
  position: relative;
}

/* Ola de brillo que recorre el strip de izquierda a derecha */
.hero__stats::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(176,19,99,.06) 50%,
    rgba(15,43,70,.04) 60%,
    transparent 70%
  );
  animation: statsSweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes statsSweep {
  0%   { left: -60%; }
  60%  { left: 110%; }
  100% { left: 110%; }
}

.hero__stat {
  flex: 1;
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background .25s ease;
}

.hero__stat:last-child { border-right: none; }

/* Hover: fondo sutil + número con acento */
.hero__stat:hover {
  background: linear-gradient(135deg,
    rgba(15,43,70,.025) 0%,
    rgba(176,19,99,.03) 100%
  );
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  transition: color .25s ease;
}

.hero__stat:hover .hero__stat-num {
  color: var(--accent);
}

.hero__stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 500;
}

/* ========================= BUTTONS ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,43,70,.28), 0 1px 3px rgba(15,43,70,.15);
}
.btn--primary:hover {
  background: var(--navy2);
  box-shadow: 0 8px 20px rgba(15,43,70,.32);
}

.btn--ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow1);
}
.btn--ghost:hover {
  border-color: rgba(15,43,70,.28);
  box-shadow: var(--shadow2);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(176,19,99,.28);
}
.btn--accent:hover {
  background: var(--accent2);
  box-shadow: 0 8px 20px rgba(176,19,99,.32);
}

/* ========================= SECTIONS ========================= */
.section {
  padding: 64px 0;
  scroll-margin-top: calc(var(--headerH) + 16px);
}

.section--alt { background: #fff; }

.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.section__lead {
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 40px;
  font-size: 16.5px;
  line-height: 1.65;
}

/* ========================= QUÉ HACEMOS ========================= */
.what__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.what__intro { position: sticky; top: calc(var(--headerH) + 32px); }
.what__intro .section__title { font-size: clamp(30px, 4vw, 46px); }

.whatCards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.whatCard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow1);
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 140px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  color: var(--text);
}

.whatCard:hover {
  transform: translateY(-3px);
  border-color: rgba(15,43,70,.18);
  box-shadow: var(--shadow2);
}

.whatCard__media {
  position: relative;
  overflow: hidden;
}

.whatCard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.whatCard:hover .whatCard__media img { transform: scale(1.06); }

.whatCard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,18,32,.1), transparent 80%);
}

.whatCard__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.whatCard__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.whatCard__badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.whatCard__body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.whatCard__body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.whatCard__link {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s ease;
}

.whatCard:hover .whatCard__link { gap: 9px; }

/* ========================= METODOLOGÍA (STEPS) ========================= */
.stepsGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow1);
}

.stepCard {
  background: #fff;
  padding: 26px 20px;
  position: relative;
  transition: background .2s ease;
}

.stepCard:hover { background: var(--navy-light); }

.stepNum {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.stepTitle {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.stepDesc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.stepOut {
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(176,19,99,.08);
  border: 1px solid rgba(176,19,99,.15);
  display: inline-block;
}

/* ========================= CARDS GENERALES ========================= */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(15,43,70,.18);
  box-shadow: var(--shadow2);
}

.card h3 {
  margin: 14px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14.5px; }

/* ========================= ICONBOX ========================= */
.iconbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
}

.iconbox--cyan {
  background: var(--navy-light);
  color: var(--navy);
  border: 1px solid rgba(15,43,70,.15);
  font-size: 15px;
}

.iconbox--green {
  background: rgba(16,185,129,.09);
  color: rgb(5,150,105);
  border: 1px solid rgba(16,185,129,.2);
}

/* ========================= KPI STRIP ========================= */
.kpiGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow1);
}

.kpiCard {
  background: #fff;
  padding: 28px 24px;
  position: relative;
}

.kpiCard::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
  border-radius: 0 0 2px 2px;
}

.kpiNum {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.kpiLabel {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.kpiNote {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* ========================= AREAS ========================= */
.areasGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.areaCard {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  box-shadow: var(--shadow1);
}

.areaCard:hover {
  border-color: rgba(15,43,70,.20);
  box-shadow: var(--shadow2);
  transform: translateY(-3px);
}

.areaTitle {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.areaMeta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ========================= SERVICIOS PAGE ========================= */
.page { padding: 52px 0 32px; }

.page__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.1;
}

.page__lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 48px;
  line-height: 1.65;
}

.servicesGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.serviceCard {
  display: grid;
  grid-template-columns: 340px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow1);
  transition: box-shadow .2s ease, transform .2s ease;
}

.serviceCard:hover {
  box-shadow: var(--shadow2);
  transform: translateY(-3px);
}

.serviceMedia {
  position: relative;
  overflow: hidden;
}

.serviceMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.serviceCard:hover .serviceMedia img { transform: scale(1.05); }

.serviceOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,18,32,.3) 0%, transparent 70%);
}

.serviceBadge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.serviceBody {
  padding: 32px 34px;
}

.serviceTitle {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.serviceDesc {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.65;
}

.serviceList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.serviceList li {
  font-size: 14.5px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.serviceList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ========================= EMPRESA - COVERAGE ========================= */
.coverageGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.mapPanel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow1);
  position: relative;
}

.mapTitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 16px;
}

.mapWrap {
  position: relative;
  max-width: 240px;
  margin: 0 auto;
}

.mapWrap img { width: 100%; opacity: .75; }

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(176,19,99,.25);
  cursor: default;
  transition: transform .2s ease;
}

.pin:hover { transform: scale(1.4); }

.legend {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ========================= CONTACTO ========================= */
.contactGrid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form input,
.form textarea {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .18s ease, box-shadow .18s ease;
  outline: none;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,43,70,.10);
}

.form input::placeholder,
.form textarea::placeholder { color: rgba(11,18,32,.35); }

/* ========================= FOOTER ========================= */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer__brand {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  letter-spacing: .01em;
}

.footer__sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  font-style: italic;
}

.footer__nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
  font-weight: 500;
}

.footer__nav a:hover {
  color: var(--text);
  background: var(--navy-light);
}

.footer__right {
  text-align: right;
}

.footer__muted {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.footer__muted a:hover { color: var(--navy); }

/* ========================= UTILS ========================= */
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-navy { color: var(--navy); }

/* Alert styles */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert--success {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.25);
  color: rgb(5,120,85);
}

.alert--error {
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.22);
  color: rgb(180,40,40);
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1024px) {
  .what__grid { grid-template-columns: 1fr; gap: 36px; }
  .what__intro { position: static; }
  .whatCard { grid-template-columns: 160px 1fr; }
  .stepsGrid { grid-template-columns: repeat(3, 1fr); }
  .serviceCard { grid-template-columns: 260px 1fr; }
  .kpiGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { width: min(1180px, calc(100% - 32px)); }
  .header-inner { width: min(1180px, calc(100% - 32px)); }

  .hero { padding: 48px 0 44px; }
  .hero__stats { flex-direction: column; }
  .hero__stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero__stat:last-child { border-bottom: none; }

  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .areasGrid { grid-template-columns: repeat(2, 1fr); }
  .kpiGrid { grid-template-columns: repeat(2, 1fr); }

  .whatCard { grid-template-columns: 1fr; min-height: auto; }
  .whatCard__media { height: 180px; }

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

  .serviceCard { grid-template-columns: 1fr; }
  .serviceMedia { height: 220px; }

  .coverageGrid { grid-template-columns: 1fr; }
  .contactGrid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 16px; }
  .footer__right { text-align: left; }

  /* NAV mobile */
  .nav__toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: calc(var(--headerH) + 8px);
    right: 12px;
    width: min(280px, calc(100% - 24px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow3);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    z-index: 950;
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .kpiGrid { grid-template-columns: repeat(2, 1fr); }
  .areasGrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  /* Asegura visibilidad aunque la animación no corra */
  .hero--anim-1, .hero--anim-2, .hero--anim-3, .hero--anim-4, .hero--anim-5,
  .hero__orb, .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================= MAPA COBERTURA ========================= */

.coverageGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.coverage__info { height: fit-content; }

.regionList {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.regionItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
  cursor: default;
}

.regionItem:hover { background: rgba(11,18,32,.03); }

.regionDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.regionItem--litoral .regionDot { background: rgba(176,19,99,.8); }
.regionItem--amba .regionDot { background: rgba(15,43,70,.8); }
.regionItem--noa .regionDot { background: rgba(234,88,12,.8); }
.regionItem--sur .regionDot { background: rgba(16,185,129,.8); }

.regionName {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.regionDesc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Map panel */
.mapPanel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow1);
}

.mapHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.mapTitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.mapLegend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mapLegend__item {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .03em;
}

.mapLegend__item--litoral { background: rgba(176,19,99,.12); color: rgba(176,19,99,.9); }
.mapLegend__item--amba { background: rgba(15,43,70,.12); color: rgba(15,43,70,.9); }
.mapLegend__item--noa { background: rgba(234,88,12,.12); color: rgba(200,70,5,.9); }
.mapLegend__item--sur { background: rgba(16,185,129,.12); color: rgba(5,130,90,.9); }

.mapWrap {
  display: flex;
  justify-content: center;
  max-height: 480px;
  overflow: hidden;
}

#argentinaMap {
  width: auto;
  height: 100%;
  max-height: 460px;
  display: block;
}

/* Map tooltip nativo */
#argentinaMap path[title]:hover { cursor: pointer; }

/* ========================= SCROLL REVEAL ANIMATIONS ========================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}

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

/* Stagger para grids */
.stepsGrid.is-visible .stepCard,
.areasGrid.is-visible .areaCard,
.kpiGrid.is-visible .kpiCard,
.grid.is-visible .card,
.whatCards.is-visible .whatCard,
.servicesGrid.is-visible .serviceCard {
  animation: fadeUp .4s ease both;
}

.stepsGrid.is-visible .stepCard:nth-child(1),
.areasGrid.is-visible .areaCard:nth-child(1),
.kpiGrid.is-visible .kpiCard:nth-child(1),
.grid.is-visible .card:nth-child(1),
.whatCards.is-visible .whatCard:nth-child(1),
.servicesGrid.is-visible .serviceCard:nth-child(1) { animation-delay: 0s; }

.stepsGrid.is-visible .stepCard:nth-child(2),
.areasGrid.is-visible .areaCard:nth-child(2),
.kpiGrid.is-visible .kpiCard:nth-child(2),
.grid.is-visible .card:nth-child(2),
.whatCards.is-visible .whatCard:nth-child(2),
.servicesGrid.is-visible .serviceCard:nth-child(2) { animation-delay: .07s; }

.stepsGrid.is-visible .stepCard:nth-child(3),
.areasGrid.is-visible .areaCard:nth-child(3),
.kpiGrid.is-visible .kpiCard:nth-child(3),
.grid.is-visible .card:nth-child(3),
.whatCards.is-visible .whatCard:nth-child(3),
.servicesGrid.is-visible .serviceCard:nth-child(3) { animation-delay: .14s; }

.stepsGrid.is-visible .stepCard:nth-child(4),
.areasGrid.is-visible .areaCard:nth-child(4),
.kpiGrid.is-visible .kpiCard:nth-child(4),
.grid.is-visible .card:nth-child(4),
.servicesGrid.is-visible .serviceCard:nth-child(4) { animation-delay: .21s; }

.stepsGrid.is-visible .stepCard:nth-child(5),
.areasGrid.is-visible .areaCard:nth-child(5),
.kpiGrid.is-visible .kpiCard:nth-child(5) { animation-delay: .28s; }

.areasGrid.is-visible .areaCard:nth-child(6) { animation-delay: .35s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= MICROINTERACCIONES ========================= */

/* Botones: ripple effect */
.btn {
  overflow: hidden;
  position: relative;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity .2s ease;
  border-radius: inherit;
}

.btn:active::after { opacity: 1; }

/* Cards: focus ring para accesibilidad */
.card:focus-visible,
.whatCard:focus-visible,
.areaCard:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* Nav links: underline animado */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

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

.main-nav a {
  position: relative;
}

/* KPI: número animado on reveal */
.kpiNum {
  transition: color .3s ease;
}

.kpiCard:hover .kpiNum {
  color: var(--accent);
}

/* StepCard: número highlight on hover */
.stepCard:hover .stepNum {
  background: var(--accent);
  transition: background .2s ease;
}

/* Whatcard link arrow motion */
.whatCard__link::after {
  content: "→";
  margin-left: 2px;
  display: inline-block;
  transition: transform .2s ease;
}

.whatCard:hover .whatCard__link::after {
  transform: translateX(4px);
}

/* Scroll indicator en hero (opcional) */
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ========================= RESPONSIVE MAPA ========================= */
@media (max-width: 768px) {
  .coverageGrid { grid-template-columns: 1fr; }
  .mapWrap { max-height: 320px; }
  #argentinaMap { max-height: 300px; }
}

/* ════════════════════════════════════════════════════════
   HERO — ANIMACIONES DE ENTRADA
   ════════════════════════════════════════════════════════ */

/* Orbs decorativos flotantes */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0;
  animation: orbFloat 1.2s ease forwards;
}

.hero__orb--1 {
  width: 420px; height: 420px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(176,19,99,.14), transparent 70%);
  animation-delay: 0.2s;
}

.hero__orb--2 {
  width: 280px; height: 280px;
  bottom: -60px; left: 30%;
  background: radial-gradient(circle, rgba(15,43,70,.10), transparent 70%);
  animation-delay: 0.5s;
}

.hero__orb--3 {
  width: 180px; height: 180px;
  top: 40%; right: 15%;
  background: radial-gradient(circle, rgba(176,19,99,.08), transparent 70%);
  animation-delay: 0.8s;
}

@keyframes orbFloat {
  from { opacity: 0; transform: scale(.8) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Elementos individuales del hero con stagger */
.hero--anim-1 { animation: heroSlideUp .55s cubic-bezier(.22,.68,0,1.2) 0.15s both; }
.hero--anim-2 { animation: heroSlideUp .6s  cubic-bezier(.22,.68,0,1.1) 0.35s both; }
.hero--anim-3 { animation: heroSlideUp .55s cubic-bezier(.22,.68,0,1.1) 0.55s both; }
.hero--anim-4 { animation: heroSlideUp .5s  cubic-bezier(.22,.68,0,1.1) 0.7s  both; }
.hero--anim-5 { animation: heroSlideUp .6s  cubic-bezier(.22,.68,0,1.1) 0.9s  both; }

/* Sin .js-ready los elementos son totalmente visibles (fallback seguro) */
.js-ready .hero--anim-1,
.js-ready .hero--anim-2,
.js-ready .hero--anim-3,
.js-ready .hero--anim-4,
.js-ready .hero--anim-5 {
  animation-play-state: running;
}

/* Con .js-ready activo, el from del keyframe los oculta momentáneamente */
.js-ready .hero--anim-1 { animation: heroSlideUp .55s cubic-bezier(.22,.68,0,1.2) 0.05s both; }
.js-ready .hero--anim-2 { animation: heroSlideUp .6s  cubic-bezier(.22,.68,0,1.1) 0.2s  both; }
.js-ready .hero--anim-3 { animation: heroSlideUp .55s cubic-bezier(.22,.68,0,1.1) 0.38s both; }
.js-ready .hero--anim-4 { animation: heroSlideUp .5s  cubic-bezier(.22,.68,0,1.1) 0.52s both; }
.js-ready .hero--anim-5 { animation: heroSlideUp .6s  cubic-bezier(.22,.68,0,1.1) 0.68s both; }

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Typewriter cursor */
.hero__typewriter {
  display: inline-block;
  min-width: 2px;
  border-right: 3px solid var(--accent);
  padding-right: 2px;
  animation: blink .75s step-end infinite;
  color: var(--navy);
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

/* Shimmer en el stat-num al cargar */
.hero__stat-num {
  position: relative;
  overflow: hidden;
}

.hero__stat-num::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.7) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 1.8s 1.2s ease-in-out 1 both;
}

@keyframes shimmer {
  to { transform: translateX(200%); }
}

/* CTA section */
.section--cta {
  background: linear-gradient(135deg, rgba(15,43,70,.04) 0%, rgba(176,19,99,.04) 100%);
  border-top: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════
   PROYECTOS — STATS STRIP
   ════════════════════════════════════════════════════════ */
.proj-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow1);
  position: relative;
}

/* Misma ola de brillo que el hero stats */
.proj-stats::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(176,19,99,.06) 50%,
    rgba(15,43,70,.04) 60%,
    transparent 70%
  );
  animation: statsSweep 4s ease-in-out infinite;
  pointer-events: none;
}

.proj-stat {
  flex: 1;
  padding: 22px 28px;
  text-align: center;
  transition: background .25s ease;
}

.proj-stat:hover {
  background: linear-gradient(135deg,
    rgba(15,43,70,.025) 0%,
    rgba(176,19,99,.03) 100%
  );
}

.proj-stat__div {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

.proj-stat__num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  transition: color .25s ease;
}

.proj-stat:hover .proj-stat__num {
  color: var(--accent);
}

.proj-stat__label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════
   PROYECTOS — FILTROS
   ════════════════════════════════════════════════════════ */
.proj-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.proj-filter {
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.proj-filter:hover {
  color: var(--text);
  background: rgba(11,18,32,.05);
}

.proj-filter.is-active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,43,70,.25);
}

/* ════════════════════════════════════════════════════════
   PROYECTOS — GRID DE CARDS
   ════════════════════════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Card */
.proj-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}

.proj-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background .2s ease;
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow3);
  border-color: rgba(15,43,70,.15);
}

/* Accent line color per category */
.proj-card[data-category="wireless"]:hover::before {
  background: rgba(15,43,70,.8);
}
.proj-card[data-category="wireline"]:hover::before {
  background: var(--accent);
}
.proj-card[data-category="infraestructura"]:hover::before {
  background: rgba(234,88,12,.8);
}
.proj-card[data-category="software"]:hover::before {
  background: rgba(16,185,129,.8);
}

/* Filter hide animation */
.proj-card.is-hidden {
  display: none;
}

.proj-card.is-filtering {
  animation: cardFadeIn .3s ease both;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card head row */
.proj-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Tags por categoría */
.proj-card__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.proj-card__tag--wireless  { background: rgba(15,43,70,.1);    color: var(--navy); }
.proj-card__tag--wireline  { background: rgba(176,19,99,.1);   color: var(--accent); }
.proj-card__tag--infra     { background: rgba(234,88,12,.1);   color: rgba(180,60,0,.9); }
.proj-card__tag--software  { background: rgba(16,185,129,.1);  color: rgba(5,130,90,.9); }

.proj-card__scope {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Title */
.proj-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

/* Desc */
.proj-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Tech chips */
.proj-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-card__chips span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
}

/* Meta footer */
.proj-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.proj-card__meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.proj-card__meta-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.proj-card__meta-val {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

/* Nota referencias */
.proj-hint {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  font-style: italic;
  padding: 48px 0 24px;
  width: 100%;
}

.proj-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.proj-note strong { color: var(--text); }
.proj-note a { color: var(--navy); font-weight: 600; text-decoration: none; }
.proj-note a:hover { color: var(--accent); }

.proj-note__icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-stats { flex-wrap: wrap; }
  .proj-stat__div { display: none; }
  .proj-stat { flex: none; width: 50%; border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-stat { width: 100%; }
  .proj-filters { width: 100%; justify-content: flex-start; }
}

/* ════════════════════════════════════════════════════════
   EMPRESA — TAGLINE CENTRADO
   ════════════════════════════════════════════════════════ */
.empresa-tagline {
  padding: 28px 0 36px;
  text-align: center;
}

.empresa-tagline__text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.empresa-tagline__text em {
  font-style: italic;
  color: var(--accent);
}

/* Contador visitas */
.hero__stat--visits {
  position: relative;
  background: linear-gradient(135deg,
    rgba(176,19,99,.04) 0%,
    rgba(15,43,70,.03) 100%
  );
}

.visits-counter {
  background: linear-gradient(135deg, var(--navy), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform .3s cubic-bezier(.22,.68,0,1.3);
}

.visits-counter.is-updating {
  transform: scale(1.08);
}

.visits-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 5px;
  vertical-align: middle;
  animation: visitDotPulse 2s ease-in-out infinite;
}

@keyframes visitDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

.visits-unique {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
