/* Google Fonts se cargan en el <head> de cada HTML con preconnect para mejor rendimiento */

:root {
  /* Dark Premium */
  --bg: #0b0f19;
  --bg2: #111827;
  --bg3: #0f172a;
  --bg4: #1a2235;
  --bg5: #0d1526;

  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.065);

  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);

  /* Texto */
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted2: #64748b;

  /* Marca */
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --cyan: #06b6d4;
  --green: #22c55e;
  --green-strong: #16a34a;

  /* Glow */
  --glow-blue: rgba(59, 130, 246, 0.20);
  --glow-cyan: rgba(6, 182, 212, 0.20);

  --radius: 18px;
  --radius-sm: 10px;

  --fd: 'Roboto Condensed', sans-serif;
  --fb: 'Roboto', sans-serif;

  --shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.24);

  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fb);
  background:
    radial-gradient(circle at 80% 15%, rgba(56, 189, 248, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 15% 60%, rgba(99, 102, 241, 0.05) 0%, transparent 38%),
    radial-gradient(circle at 55% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 35%),
    #0b0f19;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(6, 182, 212, 0.30);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 9999;
  background: #ffffff;
  color: #111111;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow::before {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.13) 0%, transparent 68%);
  top: -260px;
  left: -200px;
}

.bg-glow::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.10) 0%, transparent 68%);
  right: -150px;
  bottom: -150px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  z-index: 1;
  padding: 82px 0;
  transition: background 0.35s ease;
}

.section-hero {
  background: transparent;
}

.section-deep {
  background: linear-gradient(180deg, #111827 0%, #0c1220 50%, #0b0f19 100%);
  overflow: hidden;
}

.section-soft {
  background: linear-gradient(180deg, #0b0f19 0%, #0f1829 50%, #111827 100%);
  overflow: hidden;
}

.section-dark {
  background: linear-gradient(180deg, #111827 0%, #0d1424 50%, #0b0f19 100%);
  overflow: hidden;
}

.section-cta-final {
  background:
    radial-gradient(ellipse at top right, rgba(6, 182, 212, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0b0f19 0%, #0d1526 50%, #0b0f19 100%);
  padding: 72px 0 68px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 30%, rgba(6,182,212,0.12) 50%, rgba(255,255,255,0.06) 70%, transparent);
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-sub {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sh {
  margin-bottom: 40px;
}

.sh.center {
  text-align: center;
}

.sh.center .section-sub {
  margin-inline: auto;
}

.navbar {
  position: sticky;
  top: 8px;
  z-index: 1200;
  width: min(var(--container), calc(100% - 32px));
  margin: 8px auto 0;
  padding: 0 36px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #050B18;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(28px);
  box-shadow: 0 4px 32px rgba(5, 11, 24, 0.65), 0 0 0 0.5px rgba(56, 189, 248, 0.06);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo-text {
  display: none;
}

.nav-logo-img {
  display: block;
  width: 200px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.35));
}

.footer-logo .nav-logo-img {
  width: 120px;
  height: auto;
}

/* Wordmark textual: reemplazar por .nav-logo-img cuando esté disponible el logo */
.nav-wordmark {
  font-family: var(--fd);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}

.nav-wordmark-ia {
  font-style: normal;
  background: linear-gradient(108deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 7px 11px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

.nav-cta {
  background: var(--blue);
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  border-radius: 8px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.28);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--blue-strong);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.42);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

/* ── Navbar dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  padding: 7px 11px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--fb);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-dropdown-btn:hover,
.nav-dropdown:focus-within .nav-dropdown-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-btn .dd-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dd-arrow,
.nav-dropdown:focus-within .dd-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 234px;
  padding: 6px;
  background: rgba(11, 16, 28, 0.97);
  border: 1px solid var(--border2);
  border-radius: 12px;
  backdrop-filter: blur(24px);
  z-index: 1300;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 9px 12px;
  font-size: 0.86rem;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-p {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.3);
}

.btn-p:hover,
.btn-p:focus-visible {
  background: var(--blue-strong);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.btn-g {
  background: transparent;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-g:hover,
.btn-g:focus-visible {
  background: rgba(6, 182, 212, 0.07);
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.55);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.18), 0 0 0 1px rgba(6, 182, 212, 0.12);
}

.btn-card {
  width: 100%;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 36px 0 52px;
  margin-top: 20px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  padding-top: 0;
}

.hero-pretitle {
  margin: 0 0 8px;
  font-family: var(--fd);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-pretitle::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  flex-shrink: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px;
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.20);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--fd);
  font-size: clamp(2.1rem, 3.8vw, 3.8rem);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  max-width: none;
}

.hero-title em {
  display: inline-block;
  font-style: normal;
  background: linear-gradient(108deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-autoridad {
  margin: 0 0 16px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-microtexto {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-microtexto::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero-subtitle {
  max-width: 68ch;
  margin: 0 0 16px;
  font-family: var(--fb);
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.68;
  text-transform: none;
  color: var(--muted);
}

.hero-desc {
  max-width: 68ch;
  margin: 0 0 22px;
  font-size: 0.97rem;
  color: var(--muted);
}

.hero-desc strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.hero-mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-mini-points span {
  padding: 7px 12px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
}

.hero-card {
  background: linear-gradient(180deg, #1a2235 0%, #16203a 100%);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow), 0 0 40px rgba(59, 130, 246, 0.07);
  margin-top: 0;
}

.hcard-label {
  margin-bottom: 10px;
  font-family: var(--fd);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
}

.hero-card-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hstat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.hstat:last-of-type {
  border-bottom: 0;
}

.hstat-l {
  font-size: 0.89rem;
  color: var(--muted);
}

.hstat-r {
  font-family: var(--fd);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: right;
}

.hstat-r b {
  display: block;
  font-size: 1.3rem;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card-actions {
  margin-top: 18px;
}

.svc-grid,
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.svc-card,
.pcard,
.acard,
.cta-final {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.svc-card,
.pcard {
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.svc-card:hover,
.pcard:hover,
.acard:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: var(--shadow-soft), 0 0 24px rgba(6, 182, 212, 0.07);
}

.svc-num {
  margin-bottom: 14px;
  font-family: var(--fd);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.55), rgba(34, 211, 238, 0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.svc-card h3,
.pcard h3,
.about-text h2,
.cta-final h2 {
  margin: 0 0 10px;
  font-family: var(--fd);
}

.svc-card h3,
.pcard h3 {
  font-size: 1.28rem;
}

.svc-card p,
.pcard p,
.about-text p {
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 30px;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  text-transform: uppercase;
  line-height: 1.08;
}

.about-text p + p {
  margin-top: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.83rem;
}

.acards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  transition: 0.22s ease;
}

.acard-l {
  flex: 1;
}

.acard-lbl {
  margin-bottom: 4px;
  font-size: 0.76rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acard-val {
  font-family: var(--fd);
  font-size: 0.97rem;
  font-weight: 700;
}

.acard-num {
  font-family: var(--fd);
  font-size: 1.55rem;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
}

.pcard {
  display: flex;
  flex-direction: column;
}

.pcard p {
  flex: 1;
}

.plink {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 700;
}

.plink:hover,
.plink:focus-visible {
  color: #67e8f9;
}

.cta-final {
  padding: 34px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.96));
  box-shadow: var(--shadow-soft);
}

.cta-final h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 14px;
}

.cta-final p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
}

.cta-final-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 20px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #070b14 0%, #0b0f19 100%);
}

.footer-container {
  width: min(980px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
}

.footer-logo .nav-wordmark {
  font-size: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  color: var(--muted);
  transition: 0.22s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.07);
  color: var(--text);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted2);
  font-size: 0.79rem;
}

.footer-bottom a {
  color: var(--muted2);
  transition: color 0.18s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--cyan);
}

.footer-bottom-sep {
  color: var(--muted2);
  opacity: 0.4;
  user-select: none;
}

/* ── Áreas de formación ── */
.af-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.af-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px 26px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.af-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.35;
  transition: opacity 0.26s ease;
}

.af-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10), 0 0 28px rgba(8, 145, 178, 0.10);
}

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

.af-label {
  font-family: var(--fd);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.75;
}

.af-card h3 {
  margin: 0;
  font-family: var(--fd);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.28;
}

.af-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.af-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.18s ease, gap 0.18s ease;
  margin-top: auto;
}

.af-card-link:hover {
  color: var(--cyan);
  gap: 8px;
}

/* ── Footer links row ── */
.footer-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.footer-links-sep {
  color: var(--muted2);
  font-size: 0.8rem;
  opacity: 0.4;
  user-select: none;
}

.footer-links-row a {
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-links-row a:hover,
.footer-links-row a:focus-visible {
  color: var(--cyan);
}

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

  .nav-dropdown-menu {
    position: static;
    display: flex;
    background: none;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0 0 0 12px;
    min-width: auto;
    border-radius: 0;
  }

  .nav-dropdown-btn {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    justify-content: space-between;
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.92rem;
  }
}

/* BOTÓN FLOTANTE WHATSAPP */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.34);
  filter: brightness(1.03);
}

.floating-whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.floating-whatsapp-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.floating-whatsapp-text {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-logo-img {
    width: 175px;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .hero-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 380px;
    margin-top: 0;
  }

  .svc-grid,
  .proj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title,
  .hero-subtitle {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .container,
  .navbar,
  .footer-container {
    width: calc(100% - 24px);
  }

  .navbar {
    padding: 0 20px;
    min-height: 96px;
  }

  .nav-logo-text {
    display: none;
  }

  .nav-logo-img {
    width: 148px;
    height: auto;
  }

  .footer-logo .nav-logo-img {
    width: 115px;
    height: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    padding: 82px 24px 24px;
    background: rgba(7, 9, 15, 0.98);
    border-left: 1px solid var(--border2);
    backdrop-filter: blur(18px);
    z-index: 1400;
  }

  .nav-links.open a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-links.open .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: 0;
    border-radius: 10px;
    padding-inline: 14px;
  }

  .section {
    padding: 62px 0;
  }

  .section-cta-final {
    padding: 58px 0 54px;
  }

  .hero {
    padding: 24px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-title {
    font-size: 2.4rem;
    max-width: none;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .hero-actions,
  .cta-final-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-final-actions .btn {
    width: 100%;
  }

  .svc-grid,
  .proj-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-final {
    padding: 28px 22px;
    text-align: left;
  }

  .cta-final p {
    margin: 0;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-links-row {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    text-align: center;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }

  .floating-whatsapp-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    max-width: none;
  }

  .hero-badge {
    font-size: 0.76rem;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section-title,
  .cta-final h2 {
    font-size: 1.9rem;
  }

  .section-sub,
  .hero-desc,
  .cta-final p {
    font-size: 0.94rem;
  }

  .acard {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-icon {
    width: 42px;
    height: 42px;
  }

  .footer-bottom {
    font-size: 0.78rem;
  }

  .footer-legal {
    gap: 12px;
  }
}

/* ===== TESTIMONIOS ===== */

.section-testimonios {
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg4) 100%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.stat:hover {
  transform: scale(1.03);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.18), 0 8px 28px rgba(0, 0, 0, 0.28);
}

.counter {
  font-family: var(--fd);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.25s ease;
}

.stat:hover .counter {
  filter: brightness(1.15);
}

.stat p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.testimonio-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.testimonio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09), 0 0 20px rgba(8, 145, 178, 0.10);
}

.testimonio-card blockquote p {
  color: var(--muted);
}

.stars {
  font-size: 1.1rem;
  color: #f59e0b;
  letter-spacing: 0.04em;
  line-height: 1;
}

.testimonio-card blockquote {
  margin: 0;
  flex: 1;
}

.testimonio-card blockquote p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.72;
  color: #b8c5d6;
  font-style: italic;
}

.testimonio-card footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.testimonio-cargo {
  font-size: 0.84rem;
  color: var(--muted2);
}

.testimonios-cta {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .testimonios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

/* ===== AUTORIDAD ===== */

.section-autoridad {
  background: linear-gradient(180deg, var(--bg4) 0%, var(--bg5) 100%);
}

/* Entidades colaboradoras — cards */
.ec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.ec-card {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.ec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09), 0 0 20px rgba(8, 145, 178, 0.10);
}

.ec-accent {
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
  opacity: 0.42;
  transition: opacity 0.26s ease, filter 0.26s ease;
}

.ec-card:hover .ec-accent {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.5));
}

.ec-num {
  display: block;
  font-family: var(--fd);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.65;
  margin-bottom: 12px;
}

.ec-title {
  margin: 0 0 12px;
  font-family: var(--fd);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ec-desc {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.68;
}

.ec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ec-list li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.7;
}

.ec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.6;
}

/* Authority quote */
.colab-autoridad {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.72;
}

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

/* Fade-in-up on scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }

/* ===== BENEFICIOS ===== */

.section-beneficios {
  background: linear-gradient(180deg, var(--bg4) 0%, var(--bg3) 100%);
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.beneficio-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.beneficio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09), 0 0 20px rgba(8, 145, 178, 0.10);
}

.beneficio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.28);
  font-size: 1.05rem;
  color: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.12);
}

.beneficio-card h3 {
  margin: 0;
  font-family: var(--fd);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

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

@media (max-width: 900px) {
  .beneficios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ===== GRACIAS PAGE ===== */

.thanks-page {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-card {
  text-align: center;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(12, 16, 24, 0.98), rgba(9, 13, 20, 0.98));
}

.thanks-alt {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted2);
}

.thanks-alt a {
  color: var(--cyan);
  font-weight: 600;
}

.thanks-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.thanks-card h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.thanks-card p {
  color: var(--muted);
  margin-bottom: 25px;
}

.thanks-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SEO UTILIDADES ===== */
.seo-hidden {
  position: absolute;
  left: -9999px;
}

/* ===== SERVICE PAGE — MÓDULOS VISUALES ===== */

.sp-section { margin-top: 64px; }

.sp-section-header { margin-bottom: 32px; }
.sp-section-header h2 {
  margin: 0 0 8px;
  font-family: var(--fd);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.sp-section-header p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.65;
}

/* Grid "Qué incluye" — 4 columnas */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.sp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.22s ease;
}
.sp-card:hover {
  border-color: rgba(8,145,178,0.35);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09), 0 0 16px rgba(8,145,178,0.10);
  transform: translateY(-3px);
}
.sp-card:hover::before { opacity: 1; }
.sp-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(6,182,212,0.08));
  border: 1px solid rgba(59,130,246,0.24);
  font-size: 1.3rem;
  line-height: 1;
}
.sp-card-title {
  font-family: var(--fd);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sp-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Grid "Qué vas a conseguir" — 2×2 */
.sp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sp-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 20px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sp-benefit:hover {
  border-color: rgba(6,182,212,0.24);
  background: rgba(6,182,212,0.04);
}
.sp-benefit-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.sp-benefit-body { flex: 1; }
.sp-benefit-title {
  margin: 0 0 4px;
  font-family: var(--fd);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sp-benefit-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Steps "Cómo trabajo" — 3 pasos */
.sp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.sp-steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 1px;
  background: linear-gradient(90deg, rgba(59,130,246,0.4), rgba(6,182,212,0.4), rgba(59,130,246,0.4));
  z-index: 0;
}
.sp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.sp-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.sp-step-title {
  margin: 0 0 6px;
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sp-step-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.62;
}

/* Variante de 4 pasos (en lugar de 3) */
.sp-steps.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-steps.is-4::before {
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
}

/* CTA final */
.sp-cta {
  margin-top: 64px;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(6,182,212,0.05) 100%);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 0 40px rgba(6,182,212,0.05);
}
.sp-cta h2 {
  margin: 0 0 10px;
  font-family: var(--fd);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sp-cta p {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 52ch;
  line-height: 1.65;
}
.sp-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.sp-cta-micro { font-size: 0.84rem; color: var(--muted2); }

/* Responsive service page modules */
@media (max-width: 900px) {
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-steps.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .sp-steps.is-4::before { display: none; }
}
@media (max-width: 600px) {
  .sp-section { margin-top: 48px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-benefits-grid { grid-template-columns: 1fr; }
  .sp-steps { grid-template-columns: 1fr; gap: 24px; }
  .sp-steps::before { display: none; }
  .sp-step { align-items: flex-start; text-align: left; flex-direction: row; }
  .sp-steps.is-4 { grid-template-columns: 1fr; }
  .sp-cta { padding: 32px 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   MEJORAS VISUALES — Ritmo · Contraste · Acento Cian · Jerarquía
═══════════════════════════════════════════════════════════════ */

/* ── 1. Alternación real de fondos entre secciones ─────────── */
/* Flujo continuo: degradados que conectan entre secciones */

.section-testimonios {
  background: linear-gradient(180deg, #0b0f19 0%, #0f1829 40%, #111827 100%);
  overflow: hidden;
}

.section-autoridad {
  background: linear-gradient(180deg, #111827 0%, #0d1322 50%, #0b0f19 100%);
  overflow: hidden;
}

.section-beneficios {
  background: linear-gradient(180deg, #0b0f19 0%, #0f1d32 45%, #111827 100%);
  overflow: hidden;
}

.section-deep {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(6, 182, 212, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #111827 0%, #0c1220 50%, #0b0f19 100%);
  overflow: hidden;
}

.section-soft {
  background: linear-gradient(180deg, #0b0f19 0%, #0f1829 40%, #111827 100%);
  overflow: hidden;
}

.section-dark {
  background: linear-gradient(180deg, #111827 0%, #0d1424 50%, #0b0f19 100%);
  overflow: hidden;
}

/* ── 2. Glows decorativos radiales — sin líneas duras ────────── */

.section-testimonios::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-beneficios::before {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-soft::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── 3. Accent line bajo títulos de sección ─────────────────── */

.section-title {
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  margin: 10px auto 0;
  opacity: 0.7;
}

/* ── 4. Accent line en títulos de páginas de servicio ───────── */

.sp-section-header h2 {
  position: relative;
  padding-bottom: 14px;
}

.sp-section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.7;
}

/* ── 5. Glow en etiquetas y kickers cian ────────────────────── */

.kicker,
.af-label,
.ec-num,
.tag {
  text-shadow: 0 0 18px rgba(6, 182, 212, 0.38);
}

/* ── 6. Chips interactivos ──────────────────────────────────── */

.chip {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.05);
}

/* ── 7. plink (proyectos) más vivo ──────────────────────────── */

.plink:hover,
.plink:focus-visible {
  color: #67e8f9;
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* ── 8. ec-list bullet con glow ─────────────────────────────── */

.ec-list li::before {
  box-shadow: 0 0 5px rgba(6, 182, 212, 0.55);
  opacity: 0.85;
}

/* ── 9. hero-pretitle line con glow ─────────────────────────── */

.hero-pretitle::before {
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.45);
}

/* ── 10. sp-step número con hover ───────────────────────────── */

.sp-step:hover .sp-step-num {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.22);
  color: var(--cyan);
  transition: all 0.2s ease;
}

/* ── 11. CTA final: sin borde duro, flujo continuo ──────────── */

.section-cta-final {
  border-top: none;
}

.cta-final {
  border: 1px solid rgba(6, 182, 212, 0.18);
  background:
    radial-gradient(ellipse at top right, rgba(6, 182, 212, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(22, 32, 58, 0.97), rgba(12, 17, 30, 0.98));
}

/* ── 12. Footer hover con glow cian ─────────────────────────── */

.footer-links-row a:hover,
.footer-bottom a:hover {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.28);
}

/* ── 13. Svc-page hero accent line ──────────────────────────── */

.svc-hero h1 {
  position: relative;
}

/* ── 14. hstat-r (perfil card): texto principal ─────────────── */

.hstat-r { color: var(--text); }
.hstat-l { color: var(--muted2); }

/* ═══════════════════════════════════════════════════════════════
   15. PASS 3 — Aire, vida en cards, acentos y legibilidad
   ═══════════════════════════════════════════════════════════════ */

/* 15a. Más aire entre secciones */
.section {
  padding: 108px 0;
}

/* 15b. Separación de párrafos y legibilidad */
.section p,
.sp-section p,
.svc-body p {
  line-height: 1.8;
  margin-bottom: 1.2em;
}

/* 15c. Hover unificado — translateY(-6px) + glow cian en todas las cards */
.af-card:hover,
.ec-card:hover,
.beneficio-card:hover,
.testimonio-card:hover,
.herramienta-card:hover,
.acreditacion-card:hover,
.proyecto-card:hover,
.sp-card:hover,
.sp-benefit:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36), 0 0 28px rgba(6, 182, 212, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* 15d. Base transition en todas las cards para que el hover sea suave */
.af-card,
.ec-card,
.beneficio-card,
.testimonio-card,
.herramienta-card,
.acreditacion-card,
.proyecto-card,
.sp-card,
.sp-benefit {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* 15e. Flujo continuo dark premium — sin cortes, sin border-top */
.section-testimonios {
  background: linear-gradient(180deg, #0b0f19 0%, #0f1829 40%, #111827 100%);
  overflow: hidden;
}
.section-autoridad {
  background: linear-gradient(180deg, #111827 0%, #0d1322 50%, #0b0f19 100%);
  overflow: hidden;
}
.section-beneficios {
  background: linear-gradient(180deg, #0b0f19 0%, #0f1d32 45%, #111827 100%);
  overflow: hidden;
}
.section-deep {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(6,182,212,0.07) 0%, transparent 60%),
    linear-gradient(180deg, #111827 0%, #0c1220 50%, #0b0f19 100%);
  overflow: hidden;
}
.section-soft {
  background: linear-gradient(180deg, #0b0f19 0%, #0f1829 40%, #111827 100%);
  overflow: hidden;
}
.section-dark {
  background: linear-gradient(180deg, #111827 0%, #0d1424 50%, #0b0f19 100%);
  overflow: hidden;
}

/* 15f. Glows radiales — sin líneas horizontales */
.section-testimonios::before {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  height: auto;
  width: 480px;
  height: 480px;
  top: -80px;
  right: -80px;
  left: auto;
  transform: none;
  border-radius: 50%;
}
.section-beneficios::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
  height: auto;
  width: 420px;
  height: 420px;
  top: auto;
  bottom: -80px;
  left: -80px;
  transform: none;
  border-radius: 50%;
}
.section-soft::before {
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  width: 500px;
  height: 300px;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

/* 15g. Acento cian bajo títulos de sección — más visible */
.section-title::after {
  width: 52px;
  height: 3px;
  opacity: 0.85;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* Nunca animar si el usuario prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DARK PREMIUM — Profundidad · Movimiento · Flotación
═══════════════════════════════════════════════════════════════ */

/* Secciones transparentes: el gradiente del body fluye por debajo */
.section-hero,
.section-testimonios,
.section-autoridad,
.section-beneficios,
.section-deep,
.section-soft,
.section-dark {
  background: transparent;
}

/* Pseudo-overlay muy suave para dar variación tonal por sección */
.section-testimonios { background: rgba(15, 24, 41, 0.55); }
.section-autoridad   { background: rgba(11, 15, 25, 0.35); }
.section-beneficios  { background: rgba(15, 29, 50, 0.50); }
.section-deep        { background: rgba(12, 18, 32, 0.45); }
.section-soft        { background: rgba(15, 24, 41, 0.40); }
.section-dark        { background: rgba(13, 20, 36, 0.50); }

/* Pseudo-elemento de transición suave arriba/abajo de cada sección */
.section-testimonios::after,
.section-autoridad::after,
.section-beneficios::after,
.section-deep::after,
.section-soft::after,
.section-dark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(11, 15, 25, 0.18));
  pointer-events: none;
  z-index: 0;
}

/* ── Cards glassmorphism flotantes ── */
.svc-card,
.pcard,
.af-card,
.ec-card,
.beneficio-card,
.testimonio-card,
.herramienta-card,
.acreditacion-card,
.proyecto-card,
.sp-card,
.sp-benefit,
.stat,
.acard {
  background: rgba(17, 24, 39, 0.65) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.svc-card:hover,
.pcard:hover,
.af-card:hover,
.ec-card:hover,
.beneficio-card:hover,
.testimonio-card:hover,
.herramienta-card:hover,
.acreditacion-card:hover,
.proyecto-card:hover,
.sp-card:hover,
.sp-benefit:hover,
.stat:hover,
.acard:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.40), 0 0 28px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Hero card también flotante */
.hero-card {
  background: rgba(22, 30, 52, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.36), 0 0 40px rgba(59, 130, 246, 0.06);
}

/* ── Botón primario mejorado ── */
.btn-p {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.32), inset 0 1px 0 rgba(255,255,255,0.10);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-p:hover,
.btn-p:focus-visible {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(56, 189, 248, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.20);
}

/* ── Glow en títulos gradiente ── */
.hero-title em,
.nav-wordmark-ia {
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.30));
}

/* ── Nav CTA con glow ── */
.nav-cta {
  box-shadow: 0 2px 14px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.50) !important;
}

/* ── Divider decorativo entre secciones ── */
.section-divider {
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.04) 50%, transparent 100%);
  position: relative;
  z-index: 1;
}

/* nav-logo-img glow defined in base rule */

/* ── kicker/tag con glow más vivo ── */
.kicker,
.af-label,
.tag {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.50);
}

/* ── Contadores con glow ── */
.counter {
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
}

/* ── badge disponible ── */
.hero-badge {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.10);
}

/* ── Floating WhatsApp con glow ── */
.floating-whatsapp {
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35), 0 0 0 1px rgba(34, 197, 94, 0.15);
}

@media (max-width: 768px) {
  .hero-title em,
  .nav-wordmark-ia {
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.25));
  }
}