:root {
  --navy: #0c2140;
  --navy-deep: #07162b;
  --blue: #1f5ea8;
  --cyan: #32b8c6;
  --gold: #d4a64c;
  --cream: #f5f1e8;
  --white: #ffffff;
  --ink: #14233a;
  --muted: #667185;
  --line: rgba(12, 33, 64, 0.12);
  --shadow: 0 24px 70px rgba(8, 30, 60, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8fafc;
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
svg { width: 100%; height: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; }
.section-pad { padding: 150px 0 90px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(7, 22, 43, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(7, 22, 43, .96); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}
.brand-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { font-size: .98rem; letter-spacing: .01em; }
.brand-text strong { color: #7dd9df; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 28px; color: rgba(255,255,255,.84); font-size: .93rem; }
.main-nav a { transition: color .25s ease, transform .25s ease; }
.main-nav a:hover { color: #fff; }
.nav-cta { padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--navy) !important; font-weight: 700; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s ease; }

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(50,184,198,.18), transparent 28%),
    radial-gradient(circle at 20% 15%, rgba(212,166,76,.12), transparent 22%),
    linear-gradient(135deg, var(--navy-deep) 0%, #0a2b55 57%, #0c355f 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; }
.hero-glow-one { width: 360px; height: 360px; right: -130px; top: 170px; background: rgba(50,184,198,.18); }
.hero-glow-two { width: 280px; height: 280px; left: -90px; bottom: -80px; background: rgba(212,166,76,.12); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 74px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #8fe2e7; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 26px; font-weight: 760; max-width: 800px; }
.hero h1 span { color: #84dce2; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.77); max-width: 700px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 750; font-size: .94rem; border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #58cad3, #2a9eb1); color: #041828; box-shadow: 0 14px 36px rgba(50,184,198,.25); }
.btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-secondary { border-color: rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.05); }
.btn-light { background: #fff; color: var(--navy); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 44px; max-width: 620px; }
.hero-metrics div { border-top: 1px solid rgba(255,255,255,.17); padding-top: 18px; }
.hero-metrics strong { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.hero-metrics span { color: rgba(255,255,255,.56); font-size: .82rem; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.visual-card { width: min(100%, 420px); min-height: 430px; padding: 34px; border-radius: 34px; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045)); backdrop-filter: blur(14px); box-shadow: 0 35px 80px rgba(0,0,0,.22); transform: rotate(2deg); }
.visual-kicker { color: #90e1e6; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.visual-icon { width: 220px; height: 220px; margin: 14px auto 10px; color: #b7eef0; }
.visual-icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visual-card h2 { font-size: 1.6rem; margin: 4px 0 8px; }
.visual-card p { margin: 0; color: rgba(255,255,255,.68); }
.floating-badge { position: absolute; max-width: 240px; padding: 13px 16px; border-radius: 16px; background: #fff; color: var(--navy); font-size: .78rem; font-weight: 800; box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.badge-top { top: 64px; right: -5px; }
.badge-bottom { bottom: 42px; left: -8px; background: #e4f7f7; }

.quick-info { position: relative; z-index: 5; margin-top: -42px; }
.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.quick-card { display: flex; gap: 18px; padding: 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(12,33,64,.06); }
.icon-box { flex: 0 0 52px; width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: #e8f7f8; color: #1f8696; }
.icon-box svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-card h3 { margin: 0 0 6px; font-size: 1rem; }
.quick-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.section-light { background: #f8fafc; }
.split-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: center; }
.content-block h2, .section-heading h2, .coverage-copy h2, .cta-card h2, .mode-card h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.04em; margin: 0 0 22px; }
.content-block p, .section-heading p, .mode-card p { color: var(--muted); font-size: 1.06rem; max-width: 680px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.pill { padding: 10px 14px; border-radius: 999px; background: #edf4fb; border: 1px solid #d8e6f4; font-size: .84rem; font-weight: 700; color: #24527f; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue); margin-top: 12px; }
.feature-panel { position: relative; min-height: 430px; overflow: hidden; border-radius: 32px; background: linear-gradient(145deg, #102d54, #0c2140); box-shadow: var(--shadow); display: grid; place-items: center; }
.panel-grid-lines { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 44px 44px; }
.panel-icon { position: relative; z-index: 2; width: 250px; height: 250px; color: #8fe1e7; }
.panel-icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-label { position: absolute; right: 24px; bottom: 24px; z-index: 3; padding: 10px 14px; background: #fff; color: var(--navy); border-radius: 999px; font-weight: 800; font-size: .82rem; }

.agent-section { padding-top: 28px; background: #f8fafc; }
.agent-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 38px; border-radius: 28px; background: linear-gradient(135deg, #0c2140, #0f3765); color: #fff; box-shadow: var(--shadow); }
.agent-seal { width: 92px; height: 92px; padding: 9px; color: #84dce2; }
.agent-seal svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.agent-card h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -.035em; }
.agent-card p { margin: 0; color: rgba(255,255,255,.7); }

.competencies { background: #fff; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.compact { margin-bottom: 34px; }
.competency-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.competency-card { position: relative; overflow: hidden; min-height: 300px; padding: 30px; border-radius: 28px; background: #f8fafc; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.competency-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(31,94,168,.24); }
.competency-card.featured { background: linear-gradient(150deg, #0d274a, #123d6e); color: #fff; border-color: transparent; }
.competency-card .number { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(31,94,168,.08); color: var(--blue); font-weight: 800; font-size: .8rem; }
.competency-card.featured .number { background: rgba(255,255,255,.1); color: #91e1e6; }
.code { margin-top: 70px; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; }
.competency-card p { color: var(--muted); margin: 10px 0 28px; }
.competency-card.featured p { color: rgba(255,255,255,.66); }
.card-line { position: absolute; left: 30px; right: 30px; bottom: 28px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }

.coverage { background: linear-gradient(140deg, #081a32, #0d325b); color: #fff; overflow: hidden; }
.coverage-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.map-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.mexico-shape { width: 100%; max-width: 610px; height: auto; fill: rgba(132,220,226,.12); stroke: #77d6de; stroke-width: 2.5; filter: drop-shadow(0 15px 40px rgba(50,184,198,.18)); }
.mexico-shape circle { fill: #f5c66a; stroke: #fff; stroke-width: 2; }
.map-ring { position: absolute; border: 1px solid rgba(132,220,226,.18); border-radius: 50%; }
.ring-one { width: 300px; height: 300px; }
.ring-two { width: 440px; height: 440px; }
.coverage-copy p { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.coverage-points { display: grid; gap: 12px; margin: 28px 0; }
.coverage-points div { display: flex; gap: 10px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7bd9df; box-shadow: 0 0 0 6px rgba(123,217,223,.09); }

.mode-section { background: #f3f7fb; }
.mode-card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 54px; background: #fff; border-radius: 32px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mode-symbol { width: 160px; height: 160px; padding: 20px; color: var(--blue); background: #edf5fb; border-radius: 32px; }
.mode-symbol svg { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.summary-section { background: #fff; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.summary-card { padding: 28px; border-radius: 22px; background: #f8fafc; border: 1px solid var(--line); }
.summary-card span { color: var(--cyan); font-size: .8rem; font-weight: 900; }
.summary-card h3 { margin: 28px 0 8px; font-size: 1.1rem; }
.summary-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.cta-section { padding: 30px 0 100px; background: #fff; }
.cta-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; padding: 56px; border-radius: 34px; background: linear-gradient(135deg, #0b1f3b, #0c3c69); color: #fff; box-shadow: var(--shadow); }
.cta-card p { color: rgba(255,255,255,.66); }
.cta-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.cta-contact span { color: rgba(255,255,255,.55); font-size: .84rem; }
.cta-contact strong { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 8px; }

.site-footer { background: #061325; color: rgba(255,255,255,.7); padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-brand { margin-bottom: 18px; }
.site-footer p { margin: 6px 0; }
.footer-data { text-align: right; }
.footer-data a { color: #8de1e6; font-weight: 800; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #20bf63; color: #fff; box-shadow: 0 16px 38px rgba(16,123,65,.35); transition: transform .25s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* El contenido permanece visible aunque JavaScript no cargue.
   Las animaciones son únicamente una mejora visual y nunca bloquean la página. */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revealUp .68s ease both; }
  .quick-card:nth-child(2), .competency-card:nth-child(2), .summary-card:nth-child(2) { animation-delay: .08s; }
  .quick-card:nth-child(3), .competency-card:nth-child(3), .summary-card:nth-child(3) { animation-delay: .14s; }
  .summary-card:nth-child(4) { animation-delay: .20s; }
}

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

@media (max-width: 980px) {
  .main-nav { position: fixed; top: 78px; right: 20px; left: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 18px; border-radius: 20px; background: #081a32; box-shadow: 0 25px 60px rgba(0,0,0,.3); transform: translateY(-14px); opacity: 0; visibility: hidden; transition: .25s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 14px; border-radius: 12px; }
  .main-nav a:not(.nav-cta):hover { background: rgba(255,255,255,.06); }
  .nav-cta { text-align: center; margin-top: 4px; }
  .menu-toggle { display: block; }
  .hero-grid, .split-grid, .coverage-grid, .cta-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .hero-visual { min-height: 470px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-info { margin-top: -20px; }
  .competency-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2,1fr); }
  .cta-contact { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-data { text-align: left; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .section-pad { padding: 125px 0 70px; }
  .nav-wrap { min-height: 70px; }
  .main-nav { top: 70px; }
  .brand-text { font-size: .9rem; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-metrics { grid-template-columns: 1fr; gap: 10px; }
  .hero-metrics div { padding-top: 12px; }
  .hero-visual { min-height: 400px; }
  .visual-card { min-height: 360px; padding: 26px; transform: none; }
  .visual-icon { width: 170px; height: 170px; }
  .badge-top { top: 18px; right: 0; }
  .badge-bottom { bottom: 18px; left: 0; }
  .quick-card { padding: 20px; }
  .feature-panel { min-height: 320px; }
  .panel-icon { width: 190px; height: 190px; }
  .agent-card { grid-template-columns: 1fr; padding: 28px; }
  .agent-seal { width: 76px; height: 76px; }
  .mode-card { grid-template-columns: 1fr; padding: 30px; }
  .mode-symbol { width: 120px; height: 120px; }
  .summary-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 34px 24px; }
  .cta-card h2 { font-size: 2.1rem; }
  .map-art { min-height: 300px; }
  .ring-two { width: 320px; height: 320px; }
  .ring-one { width: 220px; height: 220px; }
  .whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
