/* ============================================================
  IAprende — Estilos principales
  Tema renovado inspirado en Aprendizaje Activo
  Fuentes: Poppins (headings) + Inter (body)
  ============================================================ */

/* ---- Variables ---- */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #DBEAFE;
  --accent-green:  #059669;
  --accent-yellow: #F59E0B;
  --accent-orange: #EA580C;
  --accent-purple: #7C3AED;
  --accent-teal:   #0891B2;

  --bg:            #FFFFFF;
  --bg-soft:       #F8FAFF;
  --bg-gradient:   linear-gradient(180deg, #F5F8FF 0%, #FFFFFF 54%, #F5F8FF 100%);
  --bg-dark:       #0F172A;

  --text-dark:     #0F172A;
  --text-mid:      #334155;
  --text-light:    #64748B;

  --border:        #E2E8F0;
  --border-soft:   #F1F5F9;

  --shadow-sm:     0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md:     0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg:     0 18px 44px rgba(15, 23, 42, .12);
  --shadow-xl:     0 28px 70px rgba(15, 23, 42, .16);

  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     22px;
  --radius-xl:     30px;

  --font-heading:  'Poppins', sans-serif;
  --font-body:     'Inter', sans-serif;

  --nav-h:         72px;
}

/* ---- Reset y base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   ANIMACION LOGO IA
   ============================================================ */
@keyframes ia-shine {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes ia-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 111, 204, 0.5)); }
  50%       { filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.7)); }
}

.logo-ia {
  background: linear-gradient(90deg, #006FCC, #7c3aed, #06b6d4, #00A878, #006FCC);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ia-shine 4s linear infinite, ia-pulse 3s ease-in-out infinite;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

.logo-prende {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  gap: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--bg-soft);
}

.chevron {
  transition: transform .25s;
}

.nav-item.open .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.nav-item.open .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 8px 12px;
  font-size: .875rem;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.dropdown li:first-child a {
  font-weight: 700;
  color: var(--primary);
}

.dropdown li a:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

/* Nav actions */
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-blog {
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--accent-purple);
  border: 1.5px solid var(--accent-purple);
  border-radius: 50px;
  transition: color .2s, background .2s, border-color .2s;
}

.btn-nav-blog:hover {
  background: var(--accent-purple);
  color: #fff;
}

.btn-nav-ghost {
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-mid);
  border-radius: 50px;
  transition: color .2s, background .2s;
}

.btn-nav-ghost:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.btn-nav-primary {
  padding: 9px 20px;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 50px;
  transition: background .2s, transform .15s;
}

.btn-nav-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg-gradient);
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero-decoration-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-circle-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0,111,204,.12) 0%, transparent 70%);
  top: -180px;
  right: -120px;
}

.hero-circle-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124,58,237,.10) 0%, transparent 70%);
  bottom: -120px;
  left: -80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 111, 204, .1);
  border: 1px solid rgba(0, 111, 204, .2);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.4); }
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary-hero {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(0,111,204,.35);
}

.btn-primary-hero:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,111,204,.45);
}

.btn-secondary-hero {
  display: inline-block;
  padding: 13px 26px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: background .2s, color .2s;
}

.btn-secondary-hero:hover {
  background: var(--primary);
  color: #fff;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-item span {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.3;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-card-float {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
}

.hcard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hcard-dots {
  display: flex;
  gap: 5px;
}

.hcard-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.hcard-dots span:nth-child(1) { background: #ff5f57; }
.hcard-dots span:nth-child(2) { background: #febc2e; }
.hcard-dots span:nth-child(3) { background: #28c840; }

.hcard-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-light);
}

.hcard-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hcard-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hcard-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-blue   { background: #dbeafe; }
.icon-green  { background: #dcfce7; }
.icon-orange { background: #ffedd5; }
.icon-purple { background: #ede9fe; }

.hcard-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 5px;
}

.hcard-bar {
  height: 5px;
  background: var(--border-soft);
  border-radius: 10px;
  width: 130px;
  overflow: hidden;
}

.hcard-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--primary);
  transition: width .8s ease;
}

.hcard-bar-fill.green  { background: var(--accent-green); }
.hcard-bar-fill.orange { background: var(--accent-orange); }
.hcard-bar-fill.purple { background: var(--accent-purple); }

.hcard-pct {
  font-size: .75rem;
  font-weight: 900;
  color: var(--primary);
  margin-left: auto;
}

/* ============================================================
   LOGOS BAND
   ============================================================ */
.logos-band {
  padding: 32px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.logos-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.logos-marquee-wrapper {
  overflow: hidden;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logos-marquee {
  display: flex;
  gap: 16px;
  animation: marquee 24s linear infinite;
  width: max-content;
}

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-mid);
  white-space: nowrap;
}

/* ============================================================
   SERVICIOS (6 cards)
   ============================================================ */
.servicios {
  padding: 90px 0;
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servicio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}

.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.servicio-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.servicio-icon svg { flex-shrink: 0; }

.bg-blue   { background: #dbeafe; color: #1d4ed8; }
.bg-green  { background: #dcfce7; color: #15803d; }
.bg-yellow { background: #fef9c3; color: #a16207; }
.bg-purple { background: #ede9fe; color: #7c3aed; }
.bg-orange { background: #ffedd5; color: #c2410c; }
.bg-teal   { background: #ccfbf1; color: #0f766e; }

.servicio-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: .05em;
}

.servicio-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

.servicio-card p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.servicio-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
  display: inline-block;
}

.servicio-link:hover {
  text-decoration: underline;
}

/* ============================================================
   IMPACTO / STATS
   ============================================================ */
.impacto {
  padding: 90px 0;
  background: #fff;
}

.impacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.impacto-content .section-tag {
  margin-bottom: 14px;
}

.impacto-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.impacto-content p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  padding: 13px 26px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50px;
  transition: background .2s, transform .15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.impacto-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 180px;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stat-inner {
  position: relative;
  z-index: 1;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.stat-big {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.stat-desc {
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.stat-yellow { background-color: #451a03; }
.stat-yellow::before { background: linear-gradient(150deg, rgba(120,53,15,0.82) 0%, rgba(0,0,0,0.52) 100%); }

.stat-green { background-color: #052e16; }
.stat-green::before { background: linear-gradient(150deg, rgba(6,78,59,0.82) 0%, rgba(0,0,0,0.52) 100%); }

.stat-orange { background-color: #431407; }
.stat-orange::before { background: linear-gradient(150deg, rgba(124,45,18,0.82) 0%, rgba(0,0,0,0.52) 100%); }

.stat-blue { background-color: #0c1a40; }
.stat-blue::before { background: linear-gradient(150deg, rgba(30,58,138,0.82) 0%, rgba(0,0,0,0.52) 100%); }

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.como-funciona {
  padding: 90px 0;
  background: var(--bg-soft);
}

.text-center { text-align: center; }

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.paso-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.paso-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.paso-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.paso-card:hover .paso-img img {
  transform: scale(1.06);
}
.paso-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.60) 100%);
  pointer-events: none;
}

.paso-num {
  position: absolute;
  bottom: 14px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  z-index: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.paso-body {
  padding: 22px 26px 26px;
}

.paso-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.paso-card p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIO
   ============================================================ */
.testimonio-seccion {
  padding: 90px 0;
  background: #071428;
  position: relative;
  overflow: hidden;
}
.testimonio-seccion::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0,168,232,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(0,95,135,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.testimonio-seccion .container { position: relative; z-index: 1; }

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .testimonios-grid { grid-template-columns: 1fr; }
}

.testimonio-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 32px;
  text-align: left;
  position: relative;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}
.testimonio-card:hover {
  border-color: rgba(0,168,232,0.30);
  transform: translateY(-4px);
}

.testimonio-comilla {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(0,168,232,0.25);
  line-height: .6;
  margin-bottom: 16px;
}

.testimonio-card blockquote {
  font-size: clamp(.90rem, 1.5vw, 1.02rem);
  color: rgba(255,255,255,.85);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}

.testimonio-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #005f87, #00A8E8);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,168,232,0.2);
}

.testimonio-autor strong {
  color: #fff;
  font-size: .95rem;
  display: block;
}

.testimonio-autor span {
  color: rgba(255,255,255,.55);
  font-size: .80rem;
}

/* ============================================================
   CTA FINAL + CONTACTO
   ============================================================ */
.cta-final {
  padding: 100px 0;
  background: #050d1a;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(0,95,135,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 20%, rgba(0,168,232,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.cta-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0,168,232,0.12);
  border: 1px solid rgba(0,168,232,0.25);
  color: #38bdf8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.cta-content p {
  font-size: .97rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin-bottom: 32px;
}

.cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(0,168,232,.35);
}
.btn-cta-primary:hover {
  background: #0090cc;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,168,232,.45);
}

.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  transition: border-color .2s, color .2s;
}
.btn-cta-ghost:hover {
  border-color: rgba(0,168,232,.5);
  color: #fff;
}

.cta-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.cta-contact-item:hover {
  background: rgba(0,168,232,0.08);
  border-color: rgba(0,168,232,0.25);
}

.cta-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,168,232,0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-contact-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 2px;
}

.cta-contact-val {
  display: block;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0b132b; /* Sleek deep navy */
  padding: 28px 0;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand-wrap {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-ia {
  background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.footer-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 50ch;
}

.footer-info {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-enfoque {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
}

.footer-enfoque strong {
  color: #e2e8f0;
  font-weight: 700;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2dd4bf;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-contact-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-contact-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 12px; /* modern squircle feel */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-social-link:hover {
  background: linear-gradient(135deg, #0d9488 0%, #6366f1 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-brand-wrap,
  .footer-info {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ============================================================
   LOGO IMAGEN
   ============================================================ */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-img-footer {
  height: 36px;
  filter: brightness(0) invert(1); /* blanco sobre fondo oscuro del footer */
}

/* Footer founders y contacto mini */
.footer-founders {
  margin-top: 16px;
  padding: 14px 16px;
  font-size: .8rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.founders-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
  color: #cbd5e1;
  font-weight: 700;
}

.footer-contact-mini {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-mini a {
  font-size: .82rem;
  color: #64748b;
  transition: color .15s;
}

.footer-contact-mini a:hover {
  color: #fff;
}

/* ============================================================
   TESTIMONIOS GRID (2 columnas)
   ============================================================ */
.testimonio-head {
  margin-bottom: 40px;
}

.testimonio-titulo {
  color: #fff;
}

.section-tag-light {
  background: rgba(255,255,255,.15) !important;
  color: rgba(255,255,255,.9) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    z-index: 800;
  }

  .hamburger {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero-stats {
    gap: 16px;
  }

  .impacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pasos-grid {
    grid-template-columns: 1fr;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-links-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .impacto-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    text-align: center;
  }

  .footer-links-wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SERVICIO BADGES & ACTIONS
   ============================================================ */
.servicio-card {
  position: relative;
  overflow: visible;
}

.servicio-badge-live,
.servicio-badge-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.servicio-badge-live {
  background: #dcfce7;
  color: #15803d;
}

.servicio-badge-dev {
  background: #fef3c7;
  color: #92400e;
}

.live-dot,
.dev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.live-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

.dev-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.servicio-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  flex-wrap: wrap;
}

.servicio-btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s;
}

.servicio-btn-platform:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.servicio-link-alt {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-purple);
  transition: color .2s;
}

.servicio-link-alt:hover {
  color: var(--primary);
}

.has-platform {
  border-left: 3px solid var(--accent-green);
}

/* Servicio card flex layout for actions at bottom */
.servicio-card {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   QUIENES SOMOS
   ============================================================ */
.quienes-somos {
  padding: 100px 0;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.quienes-somos::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,111,204,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.qs-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.mv-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mv-mision {
  border-top-color: var(--primary);
}

.mv-vision {
  border-top-color: var(--accent-purple);
}

.mv-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.mv-vision .mv-icon-wrap {
  color: var(--accent-purple);
}

.mv-icon-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,111,204,.1);
  filter: blur(10px);
}

.mv-vision .mv-icon-glow {
  background: rgba(124,58,237,.1);
}

.mv-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.mv-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* Valores chips */
.qs-valores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.valor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.valor-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
  color: var(--primary);
}

.valor-icon {
  font-size: 1.1rem;
}

/* Founders */
.qs-founders {
  text-align: center;
  position: relative;
  padding: 30px 24px 8px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(0, 168, 232, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(250, 204, 21, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.96));
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.qs-founders::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 232, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 88%);
  pointer-events: none;
}

.founders-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0, 168, 232, 0.1);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.founders-eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-yellow), var(--primary));
  box-shadow: 0 0 0 5px rgba(0, 168, 232, 0.08);
}

.qs-founders h4 {
  font-family: var(--font-heading);
  max-width: 760px;
  margin: 0 auto 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 800;
  color: var(--text-dark);
  text-transform: none;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.founders-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--text-light);
  font-size: .98rem;
  line-height: 1.75;
}

.founders-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.founder-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 320px;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.88);
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}

.founder-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 168, 232, 0.24);
}

.founder-card-glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.16), rgba(0, 168, 232, 0));
  pointer-events: none;
}

.founder-avatar {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0891b2 0%, #00A8E8 60%, #7dd3fc 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 34px rgba(0, 126, 167, 0.22);
}

.founder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
}

.founder-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.founder-role-tag,
.founder-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.founder-role-tag {
  background: rgba(0, 168, 232, 0.1);
  color: var(--primary-dark);
}

.founder-signal {
  background: rgba(17, 24, 39, 0.05);
  color: var(--text-mid);
}

.founder-signal-live::before,
.founder-signal-build::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  display: inline-block;
}

.founder-signal-live::before {
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.founder-signal-build::before {
  background: var(--accent-yellow);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}

.founder-card strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.founder-card span {
  font-size: .92rem;
  color: var(--text-mid);
}

.founder-card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-light);
}

.founder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.founder-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(243, 244, 246, 0.95);
  color: var(--text-mid);
  font-size: .76rem;
  font-weight: 600;
}

/* ============================================================
   SERVICIO PAGE STYLES (shared by individual pages)
   ============================================================ */
.servicio-hero {
  padding: 140px 0 80px;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

.servicio-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,111,204,.08) 0%, transparent 70%);
  border-radius: 50%;
}

.servicio-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.servicio-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.badge-live {
  background: #dcfce7;
  color: #15803d;
}

.badge-dev {
  background: #fef3c7;
  color: #92400e;
}

.servicio-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.servicio-hero p {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}

.servicio-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.servicio-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicio-icon-lg {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.servicio-icon-lg svg {
  width: 80px;
  height: 80px;
  stroke: #fff;
}

/* Features list */
.servicio-features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-img {
  position: relative;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-img img {
  transform: scale(1.06);
}
.feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.42) 100%);
  pointer-events: none;
}

.feature-body {
  padding: 22px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  transition: gap .2s;
}

.back-link:hover {
  gap: 10px;
}

/* Servicio CTA */
.servicio-cta {
  padding: 80px 0;
  background: var(--bg-dark);
  text-align: center;
  color: #fff;
}

.servicio-cta h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.servicio-cta p {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.servicio-cta .btn-primary {
  font-size: 1rem;
  padding: 14px 32px;
}

/* ============================================================
   RESPONSIVE — QUIENES SOMOS & SERVICIO PAGES
   ============================================================ */
@media (max-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .servicio-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .servicio-hero h1 {
    font-size: 2rem;
  }

  .servicio-hero-ctas {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .servicio-icon-lg {
    width: 140px;
    height: 140px;
  }

  .servicio-icon-lg svg {
    width: 56px;
    height: 56px;
  }
}

/* ============================================================
   FOOTER WORDMARK  "IAprendizaje"
   ============================================================ */
.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  line-height: 1;
}

.footer-wm-ia {
  animation: ia-color-cycle 2s infinite alternate ease-in-out;
  font-size: 1.8rem;
}

.footer-wm-rest {
  color: #fff;
}

@keyframes ia-color-cycle {
  0%   { color: #FFD700; }   /* amarillo */
  50%  { color: #FF4500; }   /* rojo-naranja */
  100% { color: #FFD700; }   /* amarillo */
}

/* ============================================================
   VISUAL REFRESH 2026
   ============================================================ */
.container {
  max-width: 1280px;
  padding: 0 32px;
}

.navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1280px;
  gap: 28px;
}

.logo-img {
  height: 54px;
  width: auto;
}

.nav-menu {
  gap: 10px;
}

.nav-link,
.dropdown-toggle {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-mid);
  border-radius: 999px;
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-item.open .nav-link {
  color: var(--primary);
  background: rgba(0, 168, 232, 0.08);
}

.dropdown {
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.btn-nav-blog,
.btn-nav-ghost,
.btn-nav-primary,
.btn-primary,
.btn-outline,
.btn-primary-hero,
.btn-secondary-hero {
  border-radius: 999px;
}

.btn-nav-blog {
  color: var(--text-dark);
  background: rgba(250, 204, 21, 0.92);
  border-color: rgba(250, 204, 21, 0.92);
  box-shadow: var(--shadow-sm);
}

.btn-nav-blog:hover {
  background: #f1be13;
  border-color: #f1be13;
  color: var(--text-dark);
}

.btn-nav-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  color: var(--text-mid);
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.btn-nav-primary,
.btn-primary,
.btn-primary-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 14px 32px rgba(0, 126, 167, 0.24);
}

.btn-nav-primary:hover,
.btn-primary:hover,
.btn-primary-hero:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #066582 100%);
}

.btn-outline,
.btn-secondary-hero {
  border: 2px solid rgba(17, 24, 39, 0.14);
  border-color: rgba(17, 24, 39, 0.14);
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover,
.btn-secondary-hero:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.hero {
  padding: 108px 0 92px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.28) 100%),
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -140px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-circle-1,
.hero-circle-2 {
  opacity: .42;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  backdrop-filter: blur(10px);
}

.badge-dot {
  background: var(--accent-yellow);
}

.hero-content h1,
.hero-subtitle,
.hero-stats .stat-item span {
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.stat-item strong {
  color: #fff;
}

.stat-sep {
  background: rgba(255, 255, 255, 0.22);
}

.hero-card-float,
.servicio-card,
.paso-card,
.feature-card,
.stat-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-md);
}

.hero-card-float {
  border-radius: 24px;
}

.hcard-header {
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fb 100%);
}

.logos-band,
.impacto,
.servicio-features {
  background: #fff;
}

.servicios,
.como-funciona,
.contacto,
.servicio-cta {
  background: #f9fafb;
}

.section-tag {
  background: rgba(0, 168, 232, 0.1);
  color: var(--primary-dark);
}

.section-head h2,
.impacto-content h2,
.servicio-hero h1,
.servicio-cta h2,
.contacto h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.servicio-card {
  border-radius: 18px;
}

.servicio-card:hover,
.paso-card:hover,
.feature-card:hover,
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.servicio-badge-live,
.servicio-badge-dev,
.servicio-hero-badge {
  border-radius: 999px;
}

.servicio-link,
.servicio-btn-platform {
  font-weight: 700;
}

.servicio-btn-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(0, 168, 232, 0.1);
  color: var(--primary-dark);
}

.servicio-btn-platform:hover {
  background: rgba(0, 168, 232, 0.16);
}

.impacto-stats .stat-card {
  border-radius: 18px;
}

/* ============================================================
   LOGO ANIMADO SVG (navbar)
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 18px rgba(0, 126, 167, 0.22));
}

.ia-orbit {
  transform-origin: 32px 32px;
}

.ia-orbit-primary {
  animation: iaOrbitPrimary 8.8s linear infinite;
}

.ia-orbit-secondary {
  animation: iaOrbitSecondary 11.8s linear infinite reverse;
}

.ia-orbit-tertiary {
  animation: iaOrbitTertiary 10.2s linear infinite;
}

.ia-orbit-dot {
  animation: iaOrbitDot 5s linear infinite;
  transform-origin: 32px 32px;
}

@keyframes iaOrbitPrimary {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes iaOrbitSecondary {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes iaOrbitTertiary {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

@keyframes iaOrbitDot {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ia-orbit-primary,
  .ia-orbit-secondary,
  .ia-orbit-tertiary,
  .ia-orbit-dot {
    animation: none;
  }
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.logo-ia {
  color: var(--primary);
}

.logo-tagline-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}

/* ============================================================
   QUIÉNES SOMOS — ABOUT GRID CON SLIDER
   ============================================================ */
.qs-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.qs-about-left .qs-intro {
  margin-bottom: 2rem;
}

.qs-about-right {
  position: relative;
}

.qs-slider {
  position: relative;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.qs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 5s ease;
  z-index: 0;
}

.qs-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.qs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qs-slide-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.72));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 2;
}

.qs-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 3;
}

.qs-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
  padding: 0;
}

.qs-dot.active {
  width: 28px;
  background: var(--accent-yellow);
}

@media (prefers-reduced-motion: reduce) {
  .qs-slide {
    transition: none;
  }
}

@media (max-width: 900px) {
  .qs-about-grid {
    grid-template-columns: 1fr;
  }

  .qs-slider {
    height: 320px;
  }
}

/* ============================================================
   CLIENTES / INSTITUCIONES — CARDS GRID
   ============================================================ */
.clientes-seccion {
  padding: 60px 0 40px;
  background: var(--bg-soft);
}

.clientes-seccion .section-head {
  margin-bottom: 2.5rem;
}

/* --- Marquee / cinta corredera --- */
.clientes-marquee-wrapper {
  overflow: hidden;
  position: relative;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clientes-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}

.clientes-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SIDEBAR — FIXED LEFT NAVIGATION
   ============================================================ */

/* ---- Root layout (top nav) ---- */
body {
  overflow-x: hidden;
}

.page-content {
  margin-left: 0;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ---- Sidebar shell ---- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: linear-gradient(180deg, #051120 0%, #0a1e39 28%, #0d274a 62%, #153c72 100%);
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  z-index: 900;
  transition: width 0.32s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar.collapsed {
  width: 72px;
}

/* ---- Toggle button (collapse arrow) ---- */
.sidebar-toggle {
  position: absolute;
  top: 22px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f2c56;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.32s ease, background 0.2s;
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  background: #08182f;
}
.sidebar.collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

/* ---- Brand / Logo ---- */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 16px 20px;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.2s, width 0.2s;
  overflow: hidden;
}
.sidebar.collapsed .sidebar-brand-text {
  opacity: 0;
  width: 0;
  pointer-events: none;
}
.sidebar-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.sidebar-ia {
  animation: ia-color-cycle 2s infinite alternate ease-in-out;
}
.sidebar-brand-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.sidebar-brand-badge {
  margin-left: auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
  flex-shrink: 0;
}
.sidebar-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar.collapsed .sidebar-brand-badge {
  margin-left: 0;
}

/* ---- Divider ---- */
.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.35);
  margin: 0 16px 8px;
  flex-shrink: 0;
}

/* ---- Nav container ---- */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,168,232,0.2) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(0,168,232,0.2); border-radius: 4px; }

/* ---- Section labels ---- */
.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.65);
  padding: 10px 8px 4px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s;
}
.sidebar.collapsed .sidebar-section-label {
  opacity: 0;
  height: 0;
  padding: 0;
}

/* ---- Nav links ---- */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 8px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-link:hover {
  background: rgba(148,197,255,0.18);
  color: #ffffff;
}
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(37,99,235,0.42), rgba(96,165,250,0.18));
  box-shadow: inset 0 0 0 1px rgba(191,219,254,0.18);
  color: #ffffff;
  font-weight: 700;
}
button.sidebar-link {
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

/* ---- Icons & Labels ---- */
.sidebar-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon { opacity: 1; }

.sidebar-label {
  flex: 1;
  opacity: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s, max-width 0.2s;
  max-width: 200px;
}
.sidebar.collapsed .sidebar-label {
  opacity: 0;
  max-width: 0;
  pointer-events: none;
}

/* ---- Accordion ---- */
.sidebar-accordion { display: flex; flex-direction: column; }

.sidebar-acc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-acc-btn:hover {
  background: rgba(148,197,255,0.18);
  color: #ffffff;
}
.sidebar-acc-btn.sidebar-acc-open {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  transition: transform 0.25s ease, opacity 0.2s;
}
.sidebar-acc-btn.sidebar-acc-open .sidebar-chevron {
  transform: rotate(180deg);
  color: #fff;
}
.sidebar.collapsed .sidebar-chevron {
  opacity: 0;
}

.sidebar-acc-body {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(.4,0,.2,1);
}
.sidebar-acc-body.sidebar-acc-visible {
  max-height: 320px;
}
.sidebar.collapsed .sidebar-acc-body,
.sidebar.collapsed .sidebar-acc-body.sidebar-acc-visible {
  max-height: 0;
}
.sidebar-acc-body li a {
  display: block;
  padding: 7px 8px 7px 40px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-acc-body li a:hover {
  background: rgba(148,197,255,0.16);
  color: #ffffff;
}
.sidebar-acc-body li a.active {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-weight: 600;
}

/* ---- Footer actions ---- */
.sidebar-footer {
  padding: 12px 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-footer-link,
.sidebar-demo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-footer-link:hover,
.sidebar-demo-btn:hover {
  background: rgba(148,197,255,0.16);
  border-color: rgba(191,219,254,0.26);
  color: #ffffff;
  transform: translateY(-1px);
}
.sidebar-footer-link svg,
.sidebar-demo-btn svg {
  flex-shrink: 0;
}
.sidebar.collapsed .sidebar-footer-link,
.sidebar.collapsed .sidebar-demo-btn {
  padding: 10px;
  justify-content: center;
}

/* ---- Mobile overlay ---- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 899;
}
.sidebar-overlay.visible { display: block; }

/* ---- Mobile top bar ---- */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(90deg, #08182f 0%, #0f2c56 100%);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 800;
}
.mobile-brand {
  text-decoration: none;
}
.mobile-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-topbar-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* Mobile hamburger (inside mobile-topbar) */
.mobile-topbar .hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-topbar .hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-topbar .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-topbar .hamburger.open span:nth-child(2) { opacity: 0; }
.mobile-topbar .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar {
    left: -280px;
    width: 260px;
    transition: left 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  .sidebar.mobile-open {
    left: 0;
    box-shadow: 4px 0 40px rgba(0,0,0,0.55);
  }
  .sidebar-toggle { display: none; }
  .mobile-topbar { display: flex; }
  .page-content,
  .page-content.expanded {
    margin-left: 0;
    padding-top: 60px;
  }

  /* Ajuste topbar: centrar marca cuando no hay ícono */
  .mobile-brand {
    display: flex;
    align-items: center;
  }
  .mobile-brand .sidebar-brand-name {
    font-size: 1.1rem;
  }
  .mobile-topbar-actions {
    gap: 8px;
  }
  .mobile-topbar-logo {
    width: 34px;
    height: 34px;
  }

  /* Evitar desbordamiento horizontal en páginas de servicio */
  .servicio-hero {
    background-attachment: scroll;
  }
  .page-content {
    overflow-x: hidden;
  }

  /* CTA footer: apilar en móvil */
  .cta-btns {
    flex-direction: column;
    gap: 12px;
  }
  .btn-cta-primary,
  .btn-cta-ghost {
    text-align: center;
  }
}

/* --- Clientes: tarjetas compactas en cinta corredera --- */
.cliente-card {
  flex: 0 0 200px;
  width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.cliente-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 168, 232, 0.15);
  border-color: var(--primary);
}

.cliente-img {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  flex-shrink: 0;
}
.cliente-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.cliente-card:hover .cliente-img img {
  transform: scale(1.07);
}
.cliente-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,20,60,0.60) 100%);
  pointer-events: none;
}
.cliente-sig {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  z-index: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  letter-spacing: 0.03em;
}

.cliente-body {
  padding: 0.6rem 0.8rem 0.75rem;
}

.cliente-nombre {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}




.contacto-card,
.contact-card {
  border-radius: 18px;
}

.contacto,
.servicio-cta {
  position: relative;
  overflow: hidden;
}

.contacto::before,
.servicio-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 168, 232, 0.08), transparent 34%);
  pointer-events: none;
}

.servicio-hero {
  background-color: #0d1b2a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.servicio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.44) 100%);
  pointer-events: none;
  z-index: 0;
}

.servicio-hero .container {
  position: relative;
  z-index: 1;
}

.servicio-hero-inner {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.servicio-hero-visual {
  display: none;
}

.servicio-hero h1,
.servicio-hero p,
.back-link {
  color: #fff;
}

.back-link {
  opacity: .92;
}

.back-link:hover {
  color: #fff;
}

.servicio-hero .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.servicio-hero .btn-primary {
  color: #fff;
}

.servicio-hero .btn-outline {
  background: rgba(250, 204, 21, 0.96);
  border-color: rgba(250, 204, 21, 0.96);
  color: var(--text-dark);
  box-shadow: 0 14px 32px rgba(250, 204, 21, 0.22);
}

.servicio-hero .btn-outline:hover {
  background: #f1be13;
  border-color: #f1be13;
  color: var(--text-dark);
}

.servicio-cta {
  background: #ffffff;
  color: var(--text-dark);
}

.servicio-cta h2 {
  color: var(--text-dark);
}

.servicio-cta p {
  color: var(--text-light);
}

.servicio-cta .btn-primary {
  color: #fff;
}

.feature-card {
  border-radius: 18px;
  background: #fff;
}

.feature-icon {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p,
.footer-col a,
.footer-bottom,
.footer-contact-mini a,
.footer-founders {
  color: #9CA3AF;
}

.footer-col h4,
.footer-wordmark,
.footer-col a:hover,
.footer-contact-mini a:hover {
  color: #fff;
}

.footer-social a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .logo-img {
    height: 48px;
  }

  .hero,
  .servicio-hero {
    padding-top: 96px;
  }

  .hero-content h1,
  .servicio-hero h1 {
    font-size: 2.3rem;
  }

  .hero-stats {
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
  }

  .qs-founders {
    padding: 24px 16px 6px;
    border-radius: 24px;
  }

  .founder-card {
    min-width: 100%;
    max-width: 100%;
    padding: 20px 18px;
  }

  .founder-avatar {
    width: 58px;
    height: 58px;
  }
}

.servicio-card {
  padding: 0;
  overflow: hidden;
}

.servicio-card-media {
  position: relative;
  min-height: 170px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: none;
}

.servicio-card-media::before {
  display: none;
}

.servicio-card-media::after {
  display: none;
}

.servicio-card .servicio-badge-live,
.servicio-card .servicio-badge-dev {
  position: absolute;
  top: 16px;
  right: 16px;
  margin-bottom: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.servicio-card .servicio-number {
  top: auto;
  right: auto;
  left: 20px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 2rem;
  line-height: 1;
}

.servicio-card .servicio-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin-bottom: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.14);
}

/* ---- Service card photo (inside media area) ---- */
.sc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.servicio-card:hover .sc-photo {
  opacity: 1;
  transform: scale(1.06);
}
.servicio-card .servicio-number { z-index: 2; }
.servicio-card .servicio-badge-live,
.servicio-card .servicio-badge-dev { z-index: 3; }

.servicio-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
}

.servicio-category {
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.servicio-card h3 {
  font-size: 1.28rem;
  line-height: 1.32;
  margin: 0;
}

.servicio-card p {
  margin: 0;
}

.servicio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.servicio-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--border-soft);
  color: var(--text-mid);
  font-size: .78rem;
  font-weight: 600;
}

.servicio-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.servicio-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-mid);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-live {
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.status-dev {
  background: var(--accent-yellow);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}

.servicio-actions {
  justify-content: flex-end;
  padding-top: 0;
  margin-top: 0;
}

.servicio-link,
.servicio-link-alt,
.servicio-btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-card {
  position: relative;
  text-align: left;
}

.feature-body {
  padding: 20px 22px 22px;
  text-align: left;
}

.feature-icon {
  margin: 0 0 14px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
}

@media (max-width: 900px) {
  .servicio-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .servicio-actions {
    justify-content: flex-start;
  }
}

/* ============================================================
   FOUNDER CARD V2 — Copilot style
   ============================================================ */
.founders-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.founder-card-v2 {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,23,42,0.07);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.founder-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15,23,42,0.13);
  border-color: rgba(0,168,232,0.28);
}

/* Banner top */
.founder-cv2-banner {
  position: relative;
  padding: 36px 28px 28px;
  background-color: #071d35;
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  overflow: hidden;
}
.founder-cv2-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(0,20,50,0.75) 0%, rgba(0,60,100,0.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.founder-cv2-banner::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.founder-cv2-avatar {
  width: 80px; height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0891b2 0%, #00A8E8 60%, #7dd3fc 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  border: 2px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

.founder-cv2-role {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(0,168,232,0.18);
  color: rgba(255,255,255,0.95);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.founder-cv2-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}
.signal-pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.founder-cv2-signal.live .signal-pip {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
.founder-cv2-signal.build .signal-pip {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251,191,36,0.2);
}

/* Card body */
.founder-cv2-body {
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.founder-cv2-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}
.founder-cv2-title {
  font-size: 0.87rem;
  color: var(--primary-dark);
  font-weight: 500;
}
.founder-cv2-body p {
  margin: 0;
  font-size: 0.90rem;
  color: var(--text-light);
  line-height: 1.72;
}
.founder-cv2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.founder-cv2-chips span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.76rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .founders-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SERVICE PAGE HERO PHOTO
   ============================================================ */
.sh-photo-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 28px 64px rgba(0,0,0,0.18);
  background: #0d1b2a;
}
.sh-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.sh-photo-wrap:hover .sh-photo {
  transform: scale(1.04);
}
.sh-icon-float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.22);
}
.sh-icon-float svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
}

/* ============================================================
   MODAL DE CONTACTO
   ============================================================ */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,13,26,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.contact-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.contact-modal {
  background: #0d1b2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  position: relative;
  transform: translateY(24px);
  transition: transform .28s cubic-bezier(.22,.6,.36,1);
}
.contact-modal-overlay.visible .contact-modal {
  transform: translateY(0);
}
.contact-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  transition: background .15s, color .15s;
}
.contact-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.contact-modal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.contact-modal-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  margin: 0 0 28px;
}
.contact-modal-form .form-group {
  margin-bottom: 16px;
}
.contact-modal-form label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.contact-modal-form input,
.contact-modal-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s;
  box-sizing: border-box;
}
.contact-modal-form input::placeholder,
.contact-modal-form textarea::placeholder { color: rgba(255,255,255,.25); }
.contact-modal-form input:focus,
.contact-modal-form textarea:focus {
  outline: none;
  border-color: rgba(0,168,232,0.55);
}
.contact-modal-form input.field-invalid,
.contact-modal-form textarea.field-invalid { border-color: rgba(248,113,113,0.6); }
.contact-modal-form textarea { resize: vertical; min-height: 110px; }
.contact-field-error {
  font-size: .76rem;
  color: #f87171;
  margin-top: 4px;
  display: none;
}
.contact-field-error.show { display: block; }
.contact-modal-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #005f87 0%, #00A8E8 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity .15s;
}
.contact-modal-submit:hover { opacity: .88; }
.contact-modal-submit:disabled { opacity: .5; cursor: not-allowed; }
.contact-modal-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .88rem;
  display: none;
}
.contact-modal-status.cm-success {
  display: block;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  color: #34d399;
}
.contact-modal-status.cm-error {
  display: block;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
}
@media (max-width: 520px) {
  .contact-modal { padding: 32px 20px 28px; }
}

/* ============================================================
   HOME REFRESH — PEDAGOGICAL ENGINEERING
   ============================================================ */
:root {
  --gmail-blue:   #4285F4;
  --gmail-red:    #EA4335;
  --gmail-yellow: #FBBC05;
  --gmail-green:  #34A853;
  --gmail-blue-soft:   #E8F0FE;
  --gmail-red-soft:    #FCE8E6;
  --gmail-yellow-soft: #FEF7E0;
  --gmail-green-soft:  #E6F4EA;
}

.hero-home {
  background:
    radial-gradient(circle at top right, rgba(66,133,244,0.14) 0%, transparent 28%),
    radial-gradient(circle at bottom left, rgba(251,188,5,0.16) 0%, transparent 24%),
    linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 56%, #F7FAFF 100%);
  padding: 104px 0 92px;
}

.hero-home .gradient-text {
  background: linear-gradient(90deg, var(--gmail-blue) 0%, var(--gmail-red) 33%, var(--gmail-yellow) 66%, var(--gmail-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-home .hero-badge {
  background: rgba(66,133,244,0.08);
  border-color: rgba(66,133,244,0.18);
  color: var(--gmail-blue);
}

.hero-home .hero-content h1 {
  color: var(--text-dark);
  text-shadow: none;
}

.hero-home .hero-subtitle,
.hero-home .hero-stats .stat-item span {
  color: var(--text-mid);
}

.hero-home .btn-primary-hero {
  background: var(--gmail-blue);
  box-shadow: 0 10px 28px rgba(66,133,244,0.24);
}

.hero-home .btn-primary-hero:hover {
  background: #2f73eb;
}

.hero-home .btn-secondary-hero {
  border-color: var(--gmail-blue);
  color: var(--gmail-blue);
}

.hero-home .btn-secondary-hero:hover {
  background: var(--gmail-blue);
}

.hero-stats-evidence {
  align-items: stretch;
}

.hero-note {
  margin-top: 18px;
  max-width: 620px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-light);
}

.hero-dashboard {
  width: 100%;
  max-width: 530px;
  padding: 24px;
  background: rgba(255,255,255,0.94);
  border: 1px solid #E8EAED;
  border-radius: 32px;
  box-shadow: 0 32px 72px rgba(60,64,67,0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-dashboard-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.hero-mini-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid #E8EAED;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-mini-card span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.hero-mini-card strong {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1;
}

.hero-mini-card small {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-light);
}

.mini-blue {
  background: linear-gradient(180deg, var(--gmail-blue-soft), #fff);
}

.mini-blue strong,
.pill-blue {
  color: var(--gmail-blue);
}

.mini-green {
  background: linear-gradient(180deg, var(--gmail-green-soft), #fff);
}

.mini-green strong,
.pill-green {
  color: var(--gmail-green);
}

.mini-yellow {
  background: linear-gradient(180deg, var(--gmail-yellow-soft), #fff);
}

.mini-yellow strong,
.pill-yellow {
  color: #B26A00;
}

.mini-red {
  background: linear-gradient(180deg, var(--gmail-red-soft), #fff);
}

.mini-red strong,
.pill-red {
  color: var(--gmail-red);
}

.hero-diagram-card {
  border: 1px solid #E8EAED;
  border-radius: 26px;
  padding: 16px 16px 10px;
  background: linear-gradient(180deg, #FFFFFF, #F8FBFF);
}

.hero-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.hero-diagram-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-signal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E8EAED;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-blue {
  background: var(--gmail-blue-soft);
}

.pill-green {
  background: var(--gmail-green-soft);
}

.pill-yellow {
  background: var(--gmail-yellow-soft);
}

.pill-red {
  background: var(--gmail-red-soft);
}

.framework-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  padding: 88px 0;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.framework-card {
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid #E8EAED;
  min-height: 240px;
  box-shadow: 0 16px 42px rgba(60,64,67,0.08);
}

.framework-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.framework-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.framework-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.72;
}

.framework-blue {
  background: linear-gradient(180deg, var(--gmail-blue-soft) 0%, #fff 74%);
}

.framework-blue .framework-step {
  background: rgba(66,133,244,0.16);
  color: var(--gmail-blue);
}

.framework-red {
  background: linear-gradient(180deg, var(--gmail-red-soft) 0%, #fff 74%);
}

.framework-red .framework-step {
  background: rgba(234,67,53,0.15);
  color: var(--gmail-red);
}

.framework-yellow {
  background: linear-gradient(180deg, var(--gmail-yellow-soft) 0%, #fff 74%);
}

.framework-yellow .framework-step {
  background: rgba(251,188,5,0.2);
  color: #B26A00;
}

.framework-green {
  background: linear-gradient(180deg, var(--gmail-green-soft) 0%, #fff 74%);
}

.framework-green .framework-step {
  background: rgba(52,168,83,0.18);
  color: var(--gmail-green);
}

.framework-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.framework-strip span {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E8EAED;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-mid);
}

.impacto-grid-rich {
  align-items: start;
}

.impacto-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 26px;
}

.impacto-copy-card {
  padding: 22px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid #E8EAED;
  box-shadow: var(--shadow-sm);
}

.impacto-copy-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.impacto-copy-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.impacto-chart-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid #E8EAED;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  box-shadow: var(--shadow-sm);
}

.impacto-chart-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.impacto-chart-head strong {
  font-size: 0.98rem;
  color: var(--text-dark);
}

.impacto-chart-head span {
  font-size: 0.84rem;
  color: var(--text-light);
}

.impacto-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.impacto-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr auto;
  gap: 14px;
  align-items: center;
}

.impacto-bar-row span {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-mid);
}

.impacto-bar-row strong {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--text-dark);
}

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */

.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #0F172A;
  z-index: 900;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 24px rgba(0,0,0,.4);
}

.topnav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Brand */
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 20px;
}
.topnav-brand-logo {
  height: 38px;
  width: auto;
}
.topnav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.topnav-brand-name {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1.1;
}
.topnav-ia {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.22rem;
  color: #14B8A6;
  letter-spacing: -0.5px;
}
.topnav-brand-rest {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.22rem;
  color: #fff;
  letter-spacing: -0.3px;
}
.topnav-brand-tagline {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  margin-top: 1px;
}

/* Links */
.topnav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  position: relative;
}
.topnav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.topnav-link.active {
  color: #fff;
  font-weight: 600;
  background: none;
}
.topnav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: #14B8A6;
  border-radius: 2px;
}

/* Dropdown */
.topnav-item {
  position: relative;
}
.topnav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: currentColor;
}
.topnav-item.open .topnav-chevron {
  transform: rotate(180deg);
}

.topnav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.3);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
}
.topnav-item.open .topnav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.topnav-dd-item {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  transition: background 0.14s;
}
.topnav-dd-item:hover {
  background: rgba(255,255,255,0.07);
}
.topnav-dd-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}
.topnav-dd-item span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* CTA area */
.topnav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 16px;
}
.topnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 8px;
  background: #0D9488;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.18s, transform 0.14s;
  white-space: nowrap;
}
.topnav-btn:hover {
  background: #0F766E;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.topnav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.topnav-hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.topnav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav-hamburger.open span:nth-child(2) { opacity: 0; }
.topnav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.topnav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #0F172A;
  padding: 16px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  z-index: 850;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.topnav-mobile.open {
  transform: translateX(0);
}
.topnav-mobile-overlay {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(0,0,0,.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 840;
}
.topnav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.topnav-mobile .topnav-link {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
}
.topnav-mobile .topnav-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.topnav-mobile .topnav-link.active::after { display: none; }
.topnav-mobile-section {
  margin-bottom: 6px;
}
.topnav-mobile-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 10px 14px 4px;
}
.topnav-mobile-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
}
.topnav-mobile-sub .topnav-link {
  font-size: 0.92rem;
  padding: 9px 14px;
}
.topnav-mobile-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.topnav-mobile-cta .topnav-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

/* Hide sidebar (legacy) */
.sidebar, .sidebar-overlay, .mobile-topbar { display: none !important; }

/* Responsive */
@media (max-width: 1100px) {
  .topnav-link { padding: 6px 9px; font-size: 0.82rem; }
  .topnav-brand-tagline { display: none; }
  .topnav-btn { padding: 8px 14px; font-size: 0.82rem; }
}
@media (max-width: 500px) {
  .topnav-links,
  .topnav-cta { display: none; }
  .topnav-hamburger { display: flex; margin-left: auto; }
}
@media (max-width: 500px) {
  .topnav-inner { padding: 0 16px; }
}

.impacto-bar-track {
  height: 12px;
  border-radius: 999px;
  background: #E8EAED;
  overflow: hidden;
}

.impacto-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.bar-blue {
  background: linear-gradient(90deg, var(--gmail-blue), #8AB4F8);
}

.bar-green {
  background: linear-gradient(90deg, var(--gmail-green), #81C995);
}

.bar-yellow {
  background: linear-gradient(90deg, #EAA300, #FDD663);
}

.bar-red {
  background: linear-gradient(90deg, var(--gmail-red), #F28B82);
}

.impacto-footnote {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-light);
}

.impacto-stats-evidence {
  gap: 18px;
}

.evidence-card {
  min-height: 220px;
  border: 1px solid #E8EAED;
  box-shadow: 0 16px 36px rgba(60,64,67,0.08);
  background-image: none !important;
}

.evidence-card::before {
  display: none;
}

.evidence-card .stat-big {
  text-shadow: none;
}

.evidence-card .stat-desc {
  color: var(--text-mid);
  font-size: 0.84rem;
}

.stat-blue.evidence-card {
  background: linear-gradient(180deg, var(--gmail-blue-soft), #fff);
}

.stat-blue.evidence-card .stat-big {
  color: var(--gmail-blue);
}

.stat-green.evidence-card {
  background: linear-gradient(180deg, var(--gmail-green-soft), #fff);
}

.stat-green.evidence-card .stat-big {
  color: var(--gmail-green);
}

.stat-yellow.evidence-card {
  background: linear-gradient(180deg, var(--gmail-yellow-soft), #fff);
}

.stat-yellow.evidence-card .stat-big {
  color: #B26A00;
}

.stat-red {
  background-color: #fff;
}

.stat-red.evidence-card {
  background: linear-gradient(180deg, var(--gmail-red-soft), #fff);
}

.stat-red.evidence-card .stat-big {
  color: var(--gmail-red);
}

.pasos-grid-method {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.paso-card-method {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid #E8EAED;
  box-shadow: 0 16px 36px rgba(60,64,67,0.08);
}

.paso-card-method .paso-body {
  padding: 0;
}

.paso-card-method .paso-num {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  line-height: 1;
  text-shadow: none;
}

.paso-card-method h3 {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.paso-card-method p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.paso-diagram {
  height: 88px;
  padding: 14px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}

.paso-diagram span {
  display: block;
  border-radius: 18px 18px 10px 10px;
  opacity: 0.95;
}

.paso-diagram span:nth-child(1) { height: 36%; }
.paso-diagram span:nth-child(2) { height: 64%; }
.paso-diagram span:nth-child(3) { height: 82%; }

.paso-blue {
  background: linear-gradient(180deg, var(--gmail-blue-soft), #fff);
}

.paso-blue .paso-diagram {
  background: rgba(66,133,244,0.12);
}

.paso-blue .paso-diagram span,
.paso-blue .paso-num {
  background: rgba(66,133,244,0.18);
  color: var(--gmail-blue);
}

.paso-red {
  background: linear-gradient(180deg, var(--gmail-red-soft), #fff);
}

.paso-red .paso-diagram {
  background: rgba(234,67,53,0.12);
}

.paso-red .paso-diagram span,
.paso-red .paso-num {
  background: rgba(234,67,53,0.16);
  color: var(--gmail-red);
}

.paso-yellow {
  background: linear-gradient(180deg, var(--gmail-yellow-soft), #fff);
}

.paso-yellow .paso-diagram {
  background: rgba(251,188,5,0.16);
}

.paso-yellow .paso-diagram span,
.paso-yellow .paso-num {
  background: rgba(251,188,5,0.22);
  color: #B26A00;
}

.paso-green {
  background: linear-gradient(180deg, var(--gmail-green-soft), #fff);
}

.paso-green .paso-diagram {
  background: rgba(52,168,83,0.14);
}

.paso-green .paso-diagram span,
.paso-green .paso-num {
  background: rgba(52,168,83,0.2);
  color: var(--gmail-green);
}

.comparativa-section {
  background: linear-gradient(180deg, #F7FAFF 0%, #EEF4FF 100%);
  padding: 92px 0;
}

.comparativa-section::before {
  background:
    radial-gradient(ellipse 50% 50% at 10% 40%, rgba(66,133,244,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 50%, rgba(52,168,83,0.08) 0%, transparent 70%);
}

.comparativa-section .section-tag-light {
  background: rgba(66,133,244,0.12) !important;
  color: var(--gmail-blue) !important;
}

.comparativa-section .testimonio-titulo {
  color: var(--text-dark);
}

.comparativa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.comparativa-card {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255,255,255,0.94);
  border: 1px solid #E8EAED;
  box-shadow: 0 18px 40px rgba(60,64,67,0.08);
}

.comparativa-card h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 14px 0 10px;
}

.comparativa-old {
  border-top: 6px solid var(--gmail-red);
}

.comparativa-new {
  border-top: 6px solid var(--gmail-green);
}

.comparativa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-red {
  background: rgba(234,67,53,0.12);
  color: var(--gmail-red);
}

.badge-green {
  background: rgba(52,168,83,0.12);
  color: var(--gmail-green);
}

.comparativa-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #E8EAED;
}

.comparativa-row span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
}

.comparativa-row p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--text-mid);
}

.qs-engineering-grid {
  align-items: stretch;
  gap: 32px;
}

.qs-intro-left {
  margin: 0 0 22px;
  max-width: none;
  text-align: left;
  background: #fff;
  border-radius: 28px;
  border: 1px solid #E8EAED;
  box-shadow: var(--shadow-sm);
  padding: 28px;
  font-size: 1rem;
}

.qs-engineering-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.qs-pill-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid #E8EAED;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.qs-pill-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.qs-pill-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.card-blue-soft {
  background: linear-gradient(180deg, var(--gmail-blue-soft), #fff);
}

.card-yellow-soft {
  background: linear-gradient(180deg, var(--gmail-yellow-soft), #fff);
}

.card-green-soft {
  background: linear-gradient(180deg, var(--gmail-green-soft), #fff);
}

.card-red-soft {
  background: linear-gradient(180deg, var(--gmail-red-soft), #fff);
}

.qs-system-card {
  height: 100%;
  padding: 26px;
  border-radius: 32px;
  border: 1px solid #E8EAED;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.98));
  box-shadow: 0 22px 48px rgba(60,64,67,0.1);
}

.qs-system-head {
  margin-bottom: 10px;
}

.qs-system-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(66,133,244,0.12);
  color: var(--gmail-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.qs-system-head h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

.qs-system-svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto 16px;
}

.qs-system-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qs-system-metrics span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E8EAED;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
}

.qs-values-data {
  margin-top: 34px;
}

.qs-lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.qs-lab-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid #E8EAED;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.qs-lab-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.qs-lab-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.footer-focus {
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.footer-focus-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: #cbd5e1;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .framework-grid,
  .pasos-grid-method,
  .qs-lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impacto-method-grid,
  .qs-engineering-cards,
  .comparativa-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-home {
    padding: 72px 0 60px;
  }

  .hero-home .hero-visual {
    display: flex;
  }

  .hero-dashboard,
  .qs-system-card {
    max-width: none;
  }

  .hero-dashboard-grid,
  .framework-grid,
  .pasos-grid-method,
  .qs-engineering-cards,
  .qs-lab-grid,
  .comparativa-grid {
    grid-template-columns: 1fr;
  }

  .impacto-bar-row,
  .comparativa-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .impacto-bar-row strong {
    justify-self: start;
  }

  .qs-intro-left,
  .hero-dashboard,
  .comparativa-card,
  .framework-card,
  .paso-card-method,
  .impacto-chart-card,
  .qs-lab-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .hero-mini-card strong {
    font-size: 1.35rem;
  }

  .hero-signal-row,
  .framework-strip,
  .qs-system-metrics {
    gap: 8px;
  }

  .hero-signal-pill,
  .framework-strip span,
  .qs-system-metrics span {
    width: 100%;
  }
}

.card-photo {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 18px;
  aspect-ratio: 16 / 9;
  background: #E8EAED;
}

.card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(15,23,42,0.18) 100%);
  pointer-events: none;
}

.framework-card:hover .card-photo img,
.impacto-copy-card:hover .card-photo img,
.evidence-card:hover .card-photo img,
.paso-card-method:hover .card-photo img,
.comparativa-card:hover .card-photo img,
.qs-pill-card:hover .card-photo img,
.qs-lab-card:hover .card-photo img {
  transform: scale(1.05);
}

.card-photo-compact {
  aspect-ratio: 16 / 7.5;
  margin-bottom: 16px;
}

.card-photo-method {
  aspect-ratio: 16 / 8.5;
  margin-bottom: 16px;
}

.card-photo-wide {
  aspect-ratio: 16 / 8;
  margin-bottom: 18px;
}

.card-photo-edge {
  aspect-ratio: 16 / 7;
  margin: 0;
  border-radius: 0;
}

.framework-card,
.impacto-copy-card,
.paso-card-method,
.comparativa-card,
.qs-pill-card,
.qs-lab-card {
  overflow: hidden;
}

.evidence-card {
  min-height: unset;
}

.evidence-card .stat-inner {
  padding-top: 22px;
}

.paso-card-method .paso-diagram {
  margin-top: 2px;
}

@media (max-width: 768px) {
  .card-photo,
  .card-photo-compact,
  .card-photo-method,
  .card-photo-wide,
  .card-photo-edge {
    aspect-ratio: 16 / 9;
  }

  .card-photo-edge {
    border-radius: 0;
  }
}





/* ========== CORRECCIÓN DE ESPACIADO SUPERIOR (ELIMINAR DOBLE PADDING GAP) ========== */
.page-content .servicio-hero {
  padding-top: 48px !important; /* Reducido de 140px/96px para eliminar la brecha de doble padding */
}

/* ============================================================
   PRELOADER SPLASH - DIGITAL PRISM (GEMINI EDITION)
   ============================================================ */
#preloader-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --color-1: #38bdf8;
  --color-2: #818cf8;
  --color-3: #c084fc;
  --color-4: #f472b6;
}

#preloader-splash .nebula-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-3) 0%, var(--color-2) 30%, var(--color-1) 60%, transparent 80%);
  opacity: 0;
  filter: blur(40px);
  transform: scale(0.6) rotate(0deg);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: nebulaPulse 3s ease-in-out infinite alternate;
}

#preloader-splash .prism-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#preloader-splash .prism-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#preloader-splash .prism-svg path,
#preloader-splash .prism-svg polygon,
#preloader-splash .prism-svg line {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 1. Dibujado rápido del prisma (0s a 0.9s) */
#preloader-splash .prism-svg .draw-path {
  stroke: url(#prismGradient);
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: drawPrismLines 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#preloader-splash .prism-svg .draw-path-inner {
  stroke: url(#prismGradient);
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawPrismLines 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

@keyframes drawPrismLines {
  to { stroke-dashoffset: 0; }
}

/* 2. Implosión del prisma (0.9s a 1.2s) */
#preloader-splash .prism-group {
  transform-origin: 100px 105px;
  animation: implodePrism 0.3s cubic-bezier(0.6, 0.04, 0.98, 0.335) 0.9s forwards;
}

@keyframes implodePrism {
  0% { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0); }
  100% { transform: scale(0) rotate(180deg); opacity: 0; filter: blur(4px); }
}

/* 3. Nacimiento y destello de la estrella (1.1s a 1.8s) */
#preloader-splash .gemini-spark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(0deg);
  width: 140px;
  height: 140px;
  z-index: 12;
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sparkLife 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.1s forwards;
}

#preloader-splash .spark-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(129, 140, 248, 0.8));
}

#preloader-splash .spark-svg path {
  fill: url(#prismGradient);
}

@keyframes sparkLife {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); filter: brightness(1); }
  40% { transform: translate(-50%, -50%) scale(1.2) rotate(90deg); filter: brightness(1.8); }
  70% { transform: translate(-50%, -50%) scale(0.9) rotate(180deg); }
  90% { transform: translate(-50%, -50%) scale(1.3) rotate(270deg); filter: brightness(2.5); }
  100% { transform: translate(-50%, -50%) scale(0) rotate(360deg); filter: brightness(10); }
}

/* 4. Onda expansiva supernova (1.7s a 2.3s) */
#preloader-splash .supernova-wave {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.01);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--color-1) 15%, var(--color-2) 35%, var(--color-3) 55%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  animation: supernovaExpand 0.7s cubic-bezier(0.1, 0.8, 0.25, 1) 1.7s forwards;
}

@keyframes supernovaExpand {
  0% { transform: translate(-50%, -50%) scale(0.01); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(35); opacity: 0; filter: blur(8px); }
}

/* 5. Revelación de la Marca (1.8s a 2.4s) */
#preloader-splash .brand-reveal {
  position: absolute;
  z-index: 15;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

#preloader-splash .brand-name {
  font-family: 'Poppins', 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  filter: blur(10px);
  animation: nameReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}

#preloader-splash .brand-ia {
  background: linear-gradient(135deg, var(--color-1), var(--color-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

#preloader-splash .brand-tagline {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: taglineReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.0s forwards;
}

@keyframes nameReveal {
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes taglineReveal {
  to { opacity: 1; transform: translateY(0); }
}

#preloader-splash .cosmic-particle {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: cosmicFloat 5s linear infinite;
}

@keyframes cosmicFloat {
  0% { transform: translateY(100vh) translateX(0) scale(0.5); opacity: 0; }
  15% { opacity: var(--target-opacity, 0.6); }
  85% { opacity: var(--target-opacity, 0.6); }
  100% { transform: translateY(-10vh) translateX(var(--drift, 50px)) scale(1); opacity: 0; }
}
