/* =============================================================
   MAV Desarrollos Web — style.css
   Diseño IA-first · Identidad azul · Moderno y premium
   Estructura: Tokens → Base → Layout → Componentes → Responsive
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Paleta de marca (basada en el logo) */
  --blue: #1498e1;
  --blue-light: #47c2ff;
  --blue-deep: #0a4d97;
  --cyan: #5fd0ff;
  --violet: #6b7bff;          /* acento IA muy sutil */

  /* Fondos nocturnos */
  --bg: #060d19;
  --bg-2: #09111d;
  --bg-3: #0a1525;

  /* Superficies */
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(71, 194, 255, 0.28);

  /* Texto */
  --text: #eef4fb;
  --muted: #b8cde6;
  --muted-2: #7a96b5;

  /* Acentos / efectos */
  --accent: var(--blue);
  --accent-glow: rgba(20, 152, 225, 0.22);
  --grad: linear-gradient(135deg, #47c2ff 0%, #6b7bff 100%);
  --grad-blue: linear-gradient(135deg, #1498e1 0%, #0a4d97 100%);
  --shadow: 0 32px 80px rgba(2, 8, 20, 0.55);
  --shadow-soft: 0 16px 44px rgba(2, 8, 20, 0.35);

  /* Layout */
  --max: 1180px;
  --radius: 22px;
  --radius-lg: 28px;
  --radius-sm: 16px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

::selection {
  background: rgba(71, 194, 255, 0.3);
  color: #fff;
}

/* ---------- Fondos (capas fijas) ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 90% 50% at 5% -5%, rgba(10, 60, 140, 0.38), transparent),
    radial-gradient(ellipse 60% 45% at 95% 5%, rgba(107, 123, 255, 0.18), transparent),
    radial-gradient(ellipse 55% 55% at 50% 105%, rgba(8, 35, 75, 0.45), transparent),
    var(--bg);
}

/* Grid punteado con máscara */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, black 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, black 25%, transparent 100%);
}

/* Canvas de red neuronal IA */
#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Anclas: compensar navbar sticky al hacer scroll a una sección ----------
   El navbar mide ~131px de alto (el logo de 130x130 domina la fila),
   no los 74px de min-height; se deja margen extra para que el título
   de cada sección no quede tapado al saltar por ancla. */
#inicio,
#servicios,
#beneficios,
#proceso,
#faq,
#contacto {
  scroll-margin-top: 148px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-sm { padding: 48px 0; }

/* ---------- Tipografía ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.label::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 0.97;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 58ch;
  line-height: 1.65;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(6, 13, 25, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(6, 13, 25, 0.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.brand img { width: 130px; height: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.brand-text strong {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-text span {
  font-size: 0.78rem;
  color: var(--muted-2);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--muted-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.social-icons a svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-icons a:hover {
  color: var(--text);
  border-color: var(--card-border-hover);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.footer-social { margin-top: 16px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #030c1a;
  box-shadow: 0 0 0 0 rgba(71, 194, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(71, 194, 255, 0.32);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 0.98rem;
}

/* ---------- Hero ---------- */
.hero { padding: 60px 0 44px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.06); }
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5.3vw, 5rem);
  line-height: 0.91;
  letter-spacing: -0.055em;
  margin-bottom: 20px;
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 44ch;
  line-height: 1.65;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Hero Carousel ---------- */
.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(2, 8, 20, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: var(--bg-3);
  min-height: 620px;
  isolation: isolate;
}
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 80px rgba(20, 152, 225, 0.08);
  pointer-events: none;
  z-index: 4;
}
.c-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease);
}
.c-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 7s ease;
}
.c-slide.active img { transform: scale(1.07); }
.c-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(4, 10, 20, 0.68) 0%, rgba(4, 10, 20, 0.12) 50%, rgba(4, 10, 20, 0.55) 100%),
    linear-gradient(0deg, rgba(4, 10, 20, 0.88) 0%, transparent 52%);
}
/* Overlay más suave para la slide visual (deja ver la composición) */
.c-overlay-soft {
  background:
    linear-gradient(135deg, rgba(4, 10, 20, 0.55) 0%, transparent 45%, rgba(4, 10, 20, 0.5) 100%),
    linear-gradient(0deg, rgba(4, 10, 20, 0.92) 0%, transparent 58%);
}

/* ---------- Slide visual: cursos y mentorías ---------- */
.c-slide-visual { background: #050b16; }
.visual-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Manchas de luz (aurora) */
.vs-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: vs-float 14s ease-in-out infinite;
}
.vs-blob-1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(20, 152, 225, 0.7), transparent 70%);
  top: -60px; left: -40px;
}
.vs-blob-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(107, 123, 255, 0.6), transparent 70%);
  bottom: -70px; right: -30px;
  animation-delay: -6s;
}
@keyframes vs-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.08); }
}
/* Cuadrícula de fondo */
.vs-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(71, 194, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 194, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 30%, transparent 80%);
}
/* Escena central: icono + órbita de chips */
.vs-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.vs-glyph {
  width: 132px;
  height: 132px;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4efff;
  background: rgba(8, 20, 40, 0.55);
  border: 1px solid rgba(71, 194, 255, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 70px rgba(20, 152, 225, 0.35), inset 0 0 30px rgba(71, 194, 255, 0.08);
  animation: vs-pulse 4s ease-in-out infinite;
}
.vs-glyph svg { width: 62px; height: 62px; }
@keyframes vs-pulse {
  0%, 100% { box-shadow: 0 0 70px rgba(20, 152, 225, 0.35), inset 0 0 30px rgba(71, 194, 255, 0.08); }
  50% { box-shadow: 0 0 95px rgba(20, 152, 225, 0.5), inset 0 0 30px rgba(71, 194, 255, 0.14); }
}
/* Órbita de chips alrededor del icono */
.vs-orbit {
  position: absolute;
  inset: 0;
  animation: vs-spin 26s linear infinite;
}
@keyframes vs-spin {
  to { transform: rotate(360deg); }
}
.vs-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #d8efff;
  background: rgba(8, 20, 40, 0.7);
  border: 1px solid rgba(71, 194, 255, 0.3);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  /* contrarresta la rotación del padre para que el texto se vea derecho */
  animation: vs-spin-rev 26s linear infinite;
}
@keyframes vs-spin-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
/* Posicionamiento de cada chip sobre la órbita */
.vs-chip-a { margin: -150px 0 0 -22px; }
.vs-chip-b { margin: -95px 0 0 150px; }
.vs-chip-c { margin: 70px 0 0 175px; }
.vs-chip-d { margin: 170px 0 0 8px; }
.vs-chip-e { margin: 110px 0 0 -155px; }
.vs-chip-f { margin: -70px 0 0 -170px; }

@media (max-width: 740px) {
  .vs-blob-1 { width: 260px; height: 260px; }
  .vs-blob-2 { width: 240px; height: 240px; }
  .vs-glyph { width: 104px; height: 104px; border-radius: 28px; }
  .vs-glyph svg { width: 48px; height: 48px; }
  .vs-chip { font-size: 0.68rem; padding: 5px 10px; }
  .vs-chip-a { margin: -120px 0 0 -18px; }
  .vs-chip-b { margin: -75px 0 0 118px; }
  .vs-chip-c { margin: 56px 0 0 138px; }
  .vs-chip-d { margin: 134px 0 0 6px; }
  .vs-chip-e { margin: 88px 0 0 -122px; }
  .vs-chip-f { margin: -56px 0 0 -134px; }
}

/* Badge flotante */
.c-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 13px;
  background: rgba(6, 13, 25, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Progreso + info inferior */
.c-bottom {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 3;
}
.c-progress {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}
.c-tab {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
}
.c-tab-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 3px;
}
.c-tab.active .c-tab-fill { animation: tabfill 4.5s linear forwards; }
@keyframes tabfill {
  from { width: 0%; }
  to { width: 100%; }
}
.c-info {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(6, 13, 25, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}
.c-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(20, 152, 225, 0.18);
  border: 1px solid rgba(71, 194, 255, 0.28);
  color: #c5edff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.c-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.c-desc {
  font-size: 0.9rem;
  color: rgba(210, 228, 255, 0.85);
  max-width: 34ch;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  transition: background 0.3s;
}
.stat-item:hover { background: rgba(255, 255, 255, 0.05); }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 5px;
}
.stat-lbl {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Layout bento: la tarjeta destacada de IA ocupa todo el ancho */
.svc-card.svc-wide {
  grid-column: 1 / -1;
}
@media (min-width: 861px) {
  /* En escritorio, la IA se muestra horizontal: imagen a la izquierda */
  .svc-card.svc-wide {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }
  .svc-card.svc-wide .svc-img {
    height: 100%;
    min-height: 300px;
  }
  .svc-card.svc-wide .svc-body {
    justify-content: center;
  }
  .svc-card.svc-wide .svc-list {
    margin-top: 4px;
  }
}

.svc-card {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(71, 194, 255, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 0 40px rgba(20, 152, 225, 0.1), 0 20px 60px rgba(2, 8, 20, 0.35);
  transform: translateY(-4px);
}
.svc-card:hover::before { opacity: 1; }

/* Tarjeta destacada (IA protagonista) */
.svc-card.featured {
  background: linear-gradient(180deg, rgba(20, 152, 225, 0.1), rgba(255, 255, 255, 0.03));
  border-color: rgba(71, 194, 255, 0.22);
}
.svc-card.featured::before { opacity: 1; }
.svc-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--grad);
  color: #030c1a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.svc-img {
  height: 196px;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
}
.svc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 13, 25, 0.72) 100%);
}
.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.svc-card:hover .svc-img img { transform: scale(1.06); }

/* Tile ilustrado de marca (cuando no hay foto, ej. Cursos) */
.svc-illustrated {
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(20, 152, 225, 0.35), transparent 70%),
    radial-gradient(ellipse 70% 60% at 85% 90%, rgba(107, 123, 255, 0.28), transparent 70%),
    var(--bg-3);
}
.svc-illustrated::after {
  /* patrón de puntos sutil encima del gradiente */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 1;
  opacity: 0.6;
}
.svc-illu {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-illu-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5edff;
  background: rgba(6, 13, 25, 0.4);
  border: 1px solid rgba(71, 194, 255, 0.28);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 50px rgba(20, 152, 225, 0.25);
  transition: transform 0.5s var(--ease);
}
.svc-illu-icon svg { width: 46px; height: 46px; }
.svc-card:hover .svc-illu-icon { transform: scale(1.08) rotate(-3deg); }

.svc-icon {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(20, 152, 225, 0.2);
  border: 1px solid rgba(71, 194, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74dbff;
}
.svc-icon svg { width: 18px; height: 18px; }

.svc-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc-body strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}
.svc-body p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.svc-list {
  display: grid;
  gap: 7px;
  margin-top: auto;
}
.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--muted);
}
.svc-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ---------- Split / Why IA ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.highlights-col {
  display: grid;
  gap: 14px;
}
.hi-card {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 2px solid var(--accent);
}
.hi-card strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.hi-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Benefits (bento) ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ben-card {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.ben-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: var(--card-strong);
  transform: translateY(-3px);
}
.ben-card:first-child {
  background: linear-gradient(135deg, rgba(20, 152, 225, 0.1), rgba(255, 255, 255, 0.03));
  border-color: rgba(20, 152, 225, 0.2);
}
.ben-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(20, 152, 225, 0.12);
  border: 1px solid rgba(20, 152, 225, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74dbff;
  margin-bottom: 14px;
}
.ben-icon svg { width: 20px; height: 20px; }
.ben-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.ben-card strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.ben-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(71, 194, 255, 0.25), rgba(71, 194, 255, 0.25), transparent);
}
.proc-step {
  padding: 24px 20px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, transform 0.3s;
}
.proc-step:hover {
  border-color: rgba(71, 194, 255, 0.24);
  transform: translateY(-3px);
}
.step-n {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 152, 225, 0.12);
  border: 1px solid rgba(20, 152, 225, 0.22);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.proc-step strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.proc-step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Cases ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.case-card {
  padding: 26px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.case-card:hover {
  border-color: rgba(71, 194, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.case-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(20, 152, 225, 0.12);
  border: 1px solid rgba(20, 152, 225, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74dbff;
  margin-bottom: 16px;
}
.case-icon svg { width: 22px; height: 22px; }
.case-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.case-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Differentials ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.diff-card {
  padding: 26px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.diff-card:hover {
  border-color: rgba(71, 194, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.diff-num {
  font-size: 1.9rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.diff-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.diff-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 38px 42px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(16, 70, 148, 0.26), rgba(107, 123, 255, 0.14));
  border: 1px solid rgba(71, 194, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow);
}
.cta-band h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.04em;
  margin-bottom: 7px;
  max-width: 22ch;
}
.cta-band p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(20, 152, 225, 0.24); }
.faq-toggle {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.97rem;
  font-weight: 600;
}
.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(20, 152, 225, 0.1);
  border: 1px solid rgba(20, 152, 225, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(20, 152, 225, 0.2);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-body p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 60px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 24, 48, 0.98), rgba(6, 13, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(20, 152, 225, 0.14), transparent);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.045em;
  margin-bottom: 14px;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta p {
  max-width: 54ch;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.02rem;
}
.final-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.badge {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-2);
  font-size: 0.83rem;
}

/* ---------- Contacto (CTA + formulario) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.contact-grid .final-cta { text-align: left; }
.contact-grid .final-cta h2,
.contact-grid .final-cta p { margin-left: 0; margin-right: 0; }
.contact-grid .final-actions,
.contact-grid .badge-line { justify-content: flex-start; }

.contact-form-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}
.contact-form-card h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.contact-form-card > p {
  color: var(--muted-2);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.contact-form { display: grid; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
}
.form-field label span { font-weight: 400; color: var(--muted-2); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--card-border-hover);
  background: rgba(255, 255, 255, 0.05);
}
.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-submit[disabled] { opacity: 0.7; cursor: not-allowed; }
.form-status {
  min-height: 1.2em;
  font-size: 0.88rem;
  text-align: center;
}
.form-status.is-success { color: var(--cyan); }
.form-status.is-error { color: #ff8a7a; }

/* ---------- Footer ---------- */
footer { padding: 52px 0 36px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 0.9fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 28px;
}
.footer-desc {
  font-size: 0.9rem;
  color: var(--muted-2);
  margin-top: 14px;
  line-height: 1.65;
  max-width: 34ch;
}
.footer-col-head {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-links { display: grid; gap: 9px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-links span {
  font-size: 0.9rem;
  color: var(--muted-2);
}
.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-carousel { max-width: 700px; min-height: 500px; }
  .services-grid,
  .benefits-grid,
  .cases-grid,
  .diff-grid,
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 740px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 56px 0; }
  .section-tight { padding: 44px 0; }

  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 13, 25, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px;
    gap: 8px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { text-align: center; }
  .nav-links .social-icons { justify-content: center; margin: 4px 0; }
  .social-icons a { width: 30px; height: 30px; }
  .social-icons a svg { width: 14px; height: 14px; }

  .hero { padding: 44px 0 32px; }
  .hero-copy h1 { font-size: clamp(2.3rem, 9.5vw, 3.4rem); }
  .hero-carousel { min-height: 420px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .services-grid,
  .benefits-grid,
  .cases-grid,
  .diff-grid,
  .process-grid,
  .split-grid,
  .highlights-col,
  .contact-grid,
  .stats-bar,
  .footer-top { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
  .cta-band { padding: 24px 22px; }
  .final-cta { padding: 38px 18px; }
  .contact-grid .final-cta { text-align: center; }
  .contact-grid .final-actions,
  .contact-grid .badge-line { justify-content: center; }
  .contact-form-card { padding: 26px 22px; }
  .footer-bot { flex-direction: column; text-align: center; }
}
