﻿/* =====================================================================
   MANADEX — Capa de refinamiento visual (2026-11)
   Se carga DESPUÉS de manadex.css. No modifica la hoja original:
   para revertir todo basta con quitar el <link> a este archivo.
   Solo ajusta componentes existentes; las clases nuevas usan el prefijo "mdx-".
   ===================================================================== */

:root {
  --mdx-shadow-soft: 0 1px 2px rgba(11, 27, 54, .05), 0 10px 28px -12px rgba(11, 45, 110, .18);
  --mdx-shadow-lift: 0 2px 4px rgba(11, 27, 54, .05), 0 22px 44px -18px rgba(11, 60, 150, .28);
}

/* ---------- Tipografía: cortes de línea más equilibrados ---------- */
h1, h2, h3, .h-hero, .h-display, .h-section, .h-title {
  text-wrap: balance;
}

p, li, .lead {
  text-wrap: pretty;
}

::selection {
  background: rgba(22, 119, 255, .18);
  color: inherit;
}

.dark ::selection {
  background: rgba(108, 200, 255, .32);
  color: #fff;
}

/* Títulos de sección: misma jerarquía que .h-title (minúsculas tipo oración),
   reservando las MAYÚSCULAS solo para el titular principal del héroe. */
.h-section {
  text-transform: none;
  letter-spacing: -.028em;
  line-height: 1.06;
}

/* Etiquetas (eyebrow): reglas genéricas como ".section-head p", ".cta-final p"
   o ".partners-band p" las inflaban a 15–19 px. Se fija un tamaño uniforme. */
p.eyebrow {
  font-size: 13px;
  line-height: 1.4;
}

/* Las etiquetas (eyebrow) respiran un poco más respecto al título */
.section-head .eyebrow + .h-section,
.section-head .eyebrow + .h-title {
  margin-top: 2px;
}

/* ---------- Encabezado: sombra más ligera al hacer scroll ---------- */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(108, 200, 255, .10), 0 12px 32px -14px rgba(2, 10, 26, .55);
}

/* ---------- Botones: sombras más sutiles y respuesta al pulsar ---------- */
.btn--primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -10px rgba(22, 119, 255, .65);
}

.btn--primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 30px -12px rgba(22, 119, 255, .7);
}

.btn:active,
.header-cta:active,
.circle-btn:active {
  transform: translateY(0) scale(.98);
  transition-duration: .08s;
}

/* ---------- Formularios: estado de foco visible (antes no cambiaba nada) ---------- */
.field :is(input, select, textarea) {
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.field:not(.is-invalid) :is(input, select, textarea):hover {
  border-color: #b9cfe8;
}

.field:not(.is-invalid) :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--blue-500);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .12);
}

/* ---------- Marquesinas: desvanecido más amplio, sin logotipos "cortados" ---------- */
@media (prefers-reduced-motion: no-preference) {
  .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
}

/* ---------- Tarjetas de proceso: interacción más suave en escritorio ---------- */
@media (hover: hover) and (min-width: 1025px) {
  .step:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 176, 255, .45);
    box-shadow: var(--mdx-shadow-lift);
  }
}

/* =====================================================================
   TARJETAS ILUSTRADAS EN PÁGINAS DE SERVICIO (.mdx-feats)
   Cada tarjeta lleva una mini escena SVG (.mdx-vis) arriba del icono,
   en la misma línea visual que las tarjetas de paginas.html.
   ===================================================================== */
.mdx-feats > .feat {
  overflow: hidden;
  border-color: #d7e4f4;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

@media (hover: hover) {
  .mdx-feats > .feat:hover {
    transform: translateY(-6px);
    border-color: #a8ccef;
    box-shadow: 0 8px 18px rgba(20, 55, 100, .06), 0 18px 35px rgba(20, 75, 145, .12);
  }
}

.mdx-feats .mdx-vis {
  position: relative;
  height: 148px;
  margin: -28px -26px 0;
  padding: 12px 0 26px; /* deja libre la zona donde se monta el icono */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% -10%, rgba(255, 255, 255, .7) 0 70px, transparent 71px),
    linear-gradient(135deg, #eaf4ff 0%, #d9eaff 100%);
  border-bottom: 1px solid #dbe7f5;
}

.mdx-feats .mdx-vis svg {
  width: 100%;
  max-width: 320px;
  height: 100%;
  overflow: visible;
  transition: transform .5s var(--ease);
}

@media (hover: hover) {
  .mdx-feats > .feat:hover .mdx-vis svg {
    transform: scale(1.04);
  }
}

/* Tablet: con 2 columnas, una última tarjeta impar ocupa todo el ancho */
@media (min-width: 641px) and (max-width: 1024px) {
  .mdx-feats > .feat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* El icono se monta sobre el borde de la ilustración */
.mdx-feats .mdx-vis + .feat__icon {
  position: relative;
  z-index: 1;
  margin-top: -27px;
  margin-left: 2px;
  background: #fff;
  box-shadow: 0 0 0 5px #fff, 0 8px 18px -6px rgba(11, 60, 150, .28);
}

/* Paleta de las escenas */
.mdx-vis .mv-w { fill: #fff; }
.mdx-vis .mv-ice { fill: #e3eefb; }
.mdx-vis .mv-ln { fill: #cddcee; }
.mdx-vis .mv-b { fill: #1677ff; }
.mdx-vis .mv-bd { fill: #0b63d6; }
.mdx-vis .mv-sky { fill: #8fd3ff; }
.mdx-vis .mv-navy { fill: #0a2552; }
.mdx-vis .mv-ok { fill: #19b47a; }
.mdx-vis .mv-warn { fill: #ffb020; }
.mdx-vis .mv-red { fill: #ef4b4b; }
.mdx-vis .mv-sh { filter: drop-shadow(0 6px 10px rgba(11, 60, 150, .14)); }
.mdx-vis .mv-sb,
.mdx-vis .mv-sw,
.mdx-vis .mv-sn,
.mdx-vis .mv-ss,
.mdx-vis .mv-sg,
.mdx-vis .mv-sr {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mdx-vis .mv-sb { stroke: #1677ff; }
.mdx-vis .mv-sw { stroke: #fff; }
.mdx-vis .mv-sn { stroke: #0a2552; }
.mdx-vis .mv-sg { stroke: #19b47a; }
.mdx-vis .mv-sr { stroke: #ef4b4b; }
.mdx-vis .mv-ss { stroke: #4aa8ff; stroke-dasharray: 4 5; }
.mdx-vis text {
  font-family: var(--font-head);
  font-weight: 700;
}
.mdx-vis .mv-t { font-size: 9px; fill: #0b1b36; }
.mdx-vis .mv-tb { font-size: 9px; fill: #1677ff; }
.mdx-vis .mv-ts { font-size: 7px; font-weight: 600; fill: #5a6c89; }
.mdx-vis .mv-tw { font-size: 7.5px; fill: #fff; }
.mdx-vis .mv-tl { font-size: 15px; font-weight: 800; fill: #0b1b36; }

/* Movimiento sutil: solo al pasar el cursor por la tarjeta */
@media (prefers-reduced-motion: no-preference) {
  .mdx-feats > .feat:hover .mv-fl { animation: mvFloat 2.4s var(--ease) infinite; }
  .mdx-feats > .feat:hover .mv-pl { animation: mvPulse 1.4s ease-in-out infinite; }
  .mdx-feats > .feat:hover .mv-fw { animation: mvFlow 1s linear infinite; }
  .mdx-feats > .feat:hover .mv-sp { animation: mvSpin 3s linear infinite; transform-box: fill-box; transform-origin: center; }
}

@keyframes mvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes mvPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes mvFlow { to { stroke-dashoffset: -18; } }
@keyframes mvSpin { to { transform: rotate(360deg); } }

/* =====================================================================
   TABLET (761–1240px): la quinta tarjeta de soluciones ya no queda huérfana
   ===================================================================== */
@media (min-width: 761px) and (max-width: 1240px) {
  .page-home .sol-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  /* .sol-card--featured trae "grid-row: 1 / 3" pensado para soluciones.html;
     en la portada se anula para que la cuadrícula 3 + 2 quede limpia. */
  .page-home .sol-cards > .sol-card {
    grid-column: span 2;
    grid-row: 1;
  }

  .page-home .sol-cards > .sol-card:nth-child(4) {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .page-home .sol-cards > .sol-card:nth-child(5) {
    grid-column: 4 / span 3;
    grid-row: 2;
  }
}

/* =====================================================================
   MÓVIL (≤760px)
   ===================================================================== */
@media (max-width: 760px) {

  /* Soluciones principales de la portada: carrusel deslizable con "asomo"
     de la siguiente tarjeta en lugar de 5 tarjetas apiladas (~2,400 px). */
  .page-home .sol-cards {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 320px);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 20px;
    scrollbar-width: none;
  }

  .page-home .sol-cards::-webkit-scrollbar {
    display: none;
  }

  .page-home .sol-cards > .sol-card {
    scroll-snap-align: start;
    min-height: 0;
  }

  /* Indicador "desliza" bajo el carrusel */
  .mdx-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 0;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .mdx-swipe-hint .ico {
    width: 16px;
    height: 16px;
    color: var(--blue-600);
  }
}

/* Catálogo de soluciones (soluciones.html): cada categoría se vuelve una fila
   deslizable en móvil, en vez de 12 tarjetas grandes apiladas (~5,200 px). */
@media (max-width: 640px) {
  /* !important solo donde manadex.css ya usa !important para estas grillas */
  .solutions-catalog :is(.sol-digital-grid, .sol-cloud-grid, .sol-security-grid) {
    display: grid !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: min(80%, 300px) !important;
    gap: 14px !important;
    width: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 16px;
    scrollbar-width: none;
  }

  .solutions-catalog :is(.sol-digital-grid, .sol-cloud-grid, .sol-security-grid)::-webkit-scrollbar {
    display: none;
  }

  .solutions-catalog :is(.sol-digital-grid, .sol-cloud-grid, .sol-security-grid) > * {
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* manadex.css fija "grid-column: 1 !important" a estas tarjetas en ≤600px */
  .solutions-catalog .sol-security-grid--new .sol-security-card {
    grid-column: auto !important;
  }

  .solutions-catalog .sol-section:has(> :is(.sol-digital-grid, .sol-cloud-grid, .sol-security-grid))::after {
    content: "Desliza para ver más \2192";
    display: block;
    margin-top: 2px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* Páginas de servicio: tarjetas de beneficios (.feat) en móvil.
   - Con ilustración: fila deslizable, como el catálogo.
   - Sin ilustración: tarjeta horizontal compacta (icono a la izquierda). */
@media (max-width: 640px) {
  :is(.grid-3, .grid-4):has(> .feat > .feat__visual) {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 300px);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 16px;
    scrollbar-width: none;
  }

  :is(.grid-3, .grid-4):has(> .feat > .feat__visual)::-webkit-scrollbar {
    display: none;
  }

  :is(.grid-3, .grid-4):has(> .feat > .feat__visual) > .feat {
    scroll-snap-align: start;
    min-width: 0;
  }

  :is(.grid-3, .grid-4):has(> .feat > .feat__visual)::after {
    content: none;
  }

  :is(.grid-3, .grid-4):not(:has(> .feat > .feat__visual)) {
    gap: 12px;
  }

  :is(.grid-3, .grid-4) > .feat:not(:has(> .feat__visual)) {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 18px 18px 18px 16px;
  }

  :is(.grid-3, .grid-4) > .feat:not(:has(> .feat__visual)) > * {
    grid-column: 2;
  }

  :is(.grid-3, .grid-4) > .feat:not(:has(> .feat__visual)) > .feat__icon {
    grid-column: 1;
    grid-row: 1 / span 6;
    width: 48px;
    height: 48px;
    margin: 0;
  }

  :is(.grid-3, .grid-4) > .feat:not(:has(> .feat__visual)) > h3 {
    margin: 2px 0 6px;
    font-size: 17px;
  }

  :is(.grid-3, .grid-4) > .feat:not(:has(> .feat__visual)) > p {
    margin-bottom: 0;
    font-size: 15px;
  }
}

@media (min-width: 761px) {
  .mdx-swipe-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .mdx-swipe-hint .ico {
    animation: mdxNudge 1.8s var(--ease) infinite;
  }
}

@keyframes mdxNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* =====================================================================
   MÓVIL (≤640px): proceso "Cerca de ti en cada paso" como línea de tiempo
   ===================================================================== */
@media (max-width: 640px) {
  .process {
    gap: 0;
    margin-top: 4px;
  }

  /* Conector vertical entre pasos (de un icono al siguiente) */
  .process .step:not(:last-of-type)::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 78px;
    bottom: -6px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--sky-400), rgba(22, 119, 255, .15));
  }

  .process .step,
  .process .step:nth-child(odd) {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    margin: 0;
    padding: 14px 0 18px;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .process .step__icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 0 0 6px var(--ice-50), var(--mdx-shadow-soft);
  }

  .process .step__icon .ico {
    width: 26px;
    height: 26px;
  }

  .process .step__n {
    position: static;
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    letter-spacing: .16em;
    color: var(--blue-600);
    margin: 4px 0 4px;
  }

  .process .step h3 {
    grid-column: 2;
    grid-row: 2;
    font-size: 19px;
    margin: 0 0 6px;
  }

  .process .step p {
    grid-column: 2;
    grid-row: 3;
  }

  /* El pulso animado es de escritorio; en móvil se mantiene estable */
  .process .step.is-hit {
    transform: none;
    box-shadow: none;
  }

  .process .step.is-hit .step__icon {
    background: var(--white);
    color: var(--blue-600);
    transform: none;
  }
}


/* =====================================================
   LÍNEA DIVISORIA UNIFICADA (estilo "Nuestras soluciones")
   Todas las .section-head usan la misma regla en degradado
===================================================== */
.section-head:has(> .section-head__rule) {
  grid-template-columns: minmax(0, 1.05fr) 100px minmax(0, 1fr);
  gap: 28px;
}

.section-head > .section-head__rule,
.more-solutions .section-head__rule {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue-600), var(--sky-400));
}

@media (max-width: 1024px) {
  .section-head:has(> .section-head__rule) {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head > .section-head__rule,
  .more-solutions .section-head__rule {
    display: none;
  }
}


/* =====================================================
   RITMO VERTICAL — separación entre secciones más compacta
   (las ondas se reducen en proporción para no tapar contenido)
===================================================== */
:root {
  --sec: clamp(60px, 6.2vw, 92px);
}

.wave {
  --wh: clamp(32px, 4vw, 60px);
}

.section-head {
  margin-bottom: clamp(30px, 3.4vw, 48px);
}

@media (max-width: 640px) {
  :root {
    --sec: clamp(52px, 13vw, 64px);
  }
}


/* =====================================================
   SOLUCIONES EMPRESARIALES — mismas tarjetas que "Seguridad y tecnología"
===================================================== */
.sol-icon--amber {
  color: #e08a1e;
  background: #fff3e2;
}

.sol-enterprise-cards .sol-security-card__icon svg {
  width: 25px;
  height: 25px;
}
/* Tablet: centra la 5.ª tarjeta (la última hija es Xzivo, oculta) */
@media (min-width: 641px) and (max-width: 991px) {
  .solutions-catalog .sol-enterprise-cards > .sol-security-card:nth-child(5) {
    grid-column: 1 / -1 !important;
    width: calc(50% - 9px);
    justify-self: center;
  }
}

/* =====================================================
   PROCESO EN TARJETAS (.timeline.mdx-tl)
   Páginas: desarrollo, publicidad, microsoft365, nube, gac, facturación
===================================================== */
.timeline.mdx-tl {
  gap: 22px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mdx-tl li {
  --p: 25%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  border: 1px solid rgba(22, 119, 255, .12);
  border-radius: 20px;
  background:
    linear-gradient(90deg, var(--blue-600), var(--sky-400)) left bottom / 0% 3px no-repeat,
    var(--white);
  box-shadow: var(--mdx-shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
    border-color .35s var(--ease), background-size .9s var(--ease);
}

.section--white .mdx-tl li {
  background:
    linear-gradient(90deg, var(--blue-600), var(--sky-400)) left bottom / 0% 3px no-repeat,
    linear-gradient(180deg, #f6f9ff, var(--white));
}

.mdx-tl li:nth-child(2) { --p: 50%; }
.mdx-tl li:nth-child(3) { --p: 75%; }
.mdx-tl li:nth-child(4) { --p: 100%; }

/* La barra inferior avanza según el paso al entrar en pantalla */
.mdx-tl li.is-in,
.no-js .mdx-tl li {
  background-size: var(--p) 3px, auto;
}

.mdx-tl li.is-in:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 119, 255, .32);
  box-shadow: var(--mdx-shadow-lift);
  background-size: 100% 3px, auto;
}

/* Número grande con contorno */
.mdx-tl li::before {
  top: 18px;
  left: auto;
  right: 22px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(22, 119, 255, .32);
  box-shadow: none;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -.04em;
  opacity: .55;
  transition: opacity .35s var(--ease), -webkit-text-stroke-color .35s var(--ease);
}

.mdx-tl li:hover::before {
  opacity: 1;
  -webkit-text-stroke-color: transparent;
}

/* Ícono del paso */
.mdx-tl__ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  box-shadow: 0 12px 24px -8px rgba(22, 119, 255, .55);
  transition: transform .4s var(--ease);
}

.mdx-tl__ico svg {
  width: 26px;
  height: 26px;
}

.mdx-tl li:hover .mdx-tl__ico {
  transform: rotate(-6deg) scale(1.06);
}

.mdx-tl h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  padding-right: 54px;
}

.mdx-tl p {
  font-size: 15px;
  line-height: 1.6;
}

/* Conector animado entre tarjetas */
.mdx-tl li::after {
  display: block;
  top: 53px;
  left: 100%;
  right: auto;
  width: 22px;
  height: 2px;
  z-index: 2;
  background: repeating-linear-gradient(90deg, var(--sky-400) 0 5px, transparent 5px 9px);
  background-size: 18px 2px;
}

.mdx-tl li:last-child::after {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .mdx-tl li::after {
    animation: mdxTlFlow 1.1s linear infinite;
  }
}

@keyframes mdxTlFlow {
  to { background-position: 18px 0; }
}

/* Tablet: 2 × 2, conector solo dentro de cada fila */
@media (max-width: 1024px) {
  .timeline.mdx-tl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .mdx-tl li::after {
    width: 18px;
  }

  .mdx-tl li:nth-child(odd)::after {
    display: block;
  }

  .mdx-tl li:nth-child(even)::after {
    display: none;
  }
}

/* Celular: tarjetas en columna con conector vertical */
@media (max-width: 640px) {
  .timeline.mdx-tl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mdx-tl li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 18px 22px;
  }

  .mdx-tl__ico {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 14px;
  }

  .mdx-tl__ico svg {
    width: 23px;
    height: 23px;
  }

  .mdx-tl li::before {
    top: 76px;
    left: 18px;
    right: auto;
    width: 48px;
    text-align: center;
    font-size: 22px;
    opacity: .8;
  }

  .mdx-tl h3 {
    font-size: 17px;
    padding-right: 0;
  }

  .mdx-tl li {
    min-height: 112px;
  }

  .mdx-tl li::after,
  .mdx-tl li:nth-child(odd)::after,
  .mdx-tl li:nth-child(even)::after {
    display: block;
    top: 100%;
    left: 41px;
    width: 2px;
    height: 14px;
    background: repeating-linear-gradient(180deg, var(--sky-400) 0 4px, transparent 4px 7px);
    background-size: 2px 14px;
  }

  .mdx-tl li:last-child::after {
    display: none;
  }

  @keyframes mdxTlFlow {
    to { background-position: 0 14px; }
  }
}

/* -----------------------------------------------------
   Variante B — panel oscuro con nodos (publicidad, gac)
----------------------------------------------------- */
.timeline.mdx-tl--dark {
  position: relative;
  gap: 28px;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3.4vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(51, 176, 255, .22), transparent 42%),
    radial-gradient(circle at 92% 110%, rgba(22, 119, 255, .28), transparent 45%),
    linear-gradient(135deg, var(--navy-900), #0c2b5e);
  box-shadow: 0 30px 60px -28px rgba(6, 26, 58, .55);
  overflow: hidden;
}

.mdx-tl--dark li,
.section--white .mdx-tl--dark li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.mdx-tl--dark li.is-in:hover {
  transform: none;
  box-shadow: none;
  background: none;
}

.mdx-tl--dark .mdx-tl__ico {
  order: 0;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--sky-400);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: transform .4s var(--ease), background .4s var(--ease),
    box-shadow .4s var(--ease), color .4s var(--ease);
}

.mdx-tl--dark li:hover .mdx-tl__ico,
.mdx-tl--dark li:first-child .mdx-tl__ico {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  box-shadow: 0 0 0 6px rgba(51, 176, 255, .14), 0 12px 30px -6px rgba(51, 176, 255, .6);
}

.mdx-tl--dark li:hover .mdx-tl__ico {
  transform: scale(1.06);
}

/* Etiqueta "Paso 01" en lugar del número grande */
.mdx-tl--dark li::before {
  content: "Paso " counter(tl, decimal-leading-zero);
  order: 1;
  position: static;
  margin-bottom: 6px;
  background: none;
  -webkit-text-stroke: 0;
  color: var(--sky-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 1;
}

.mdx-tl--dark h3 {
  order: 2;
  padding-right: 0;
  color: var(--white);
}

.mdx-tl--dark p {
  order: 3;
  color: rgba(255, 255, 255, .72);
}

/* Conector: desde el nodo hasta el siguiente */
.mdx-tl--dark li::after {
  top: 27px;
  left: 70px;
  right: -14px;
  width: auto;
  background: repeating-linear-gradient(90deg, rgba(51, 176, 255, .75) 0 6px, transparent 6px 11px);
  background-size: 22px 2px;
}

@keyframes mdxTlFlowDark {
  to { background-position: 22px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .mdx-tl--dark li::after {
    animation: mdxTlFlowDark 1.2s linear infinite;
  }
}

.mdx-tl--dark + .note {
  margin-top: 22px !important;
}

@media (max-width: 1024px) {
  .mdx-tl--dark li::after {
    right: -10px;
    width: auto;
  }
}

@media (max-width: 640px) {
  .timeline.mdx-tl--dark {
    gap: 26px;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .mdx-tl--dark li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    min-height: 0;
    padding: 0;
  }

  .mdx-tl--dark .mdx-tl__ico {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .mdx-tl--dark li::before {
    grid-column: 2;
    position: static;
    width: auto;
    text-align: left;
    font-size: 11px;
    opacity: 1;
  }

  .mdx-tl--dark h3,
  .mdx-tl--dark p {
    grid-column: 2;
  }

  .mdx-tl--dark li::after,
  .mdx-tl--dark li:nth-child(odd)::after,
  .mdx-tl--dark li:nth-child(even)::after {
    top: 56px;
    left: 23px;
    width: 2px;
    height: calc(100% - 56px + 22px);
    background: repeating-linear-gradient(180deg, rgba(51, 176, 255, .75) 0 5px, transparent 5px 9px);
    background-size: 2px 18px;
  }

  .mdx-tl--dark li:last-child::after {
    display: none;
  }

  @keyframes mdxTlFlowDark {
    to { background-position: 0 18px; }
  }
}


/* -----------------------------------------------------
   Variante C — línea de tiempo en zigzag (microsoft365, facturación)
   Solo escritorio; en tablet/celular usa las tarjetas base
----------------------------------------------------- */
@media (min-width: 1025px) {
  .timeline.mdx-tl--zig {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 1040px;
    margin-inline: auto;
    gap: 0;
  }

  .mdx-tl--zig::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(180deg, var(--blue-600), var(--sky-400) 70%, rgba(51, 176, 255, .15));
  }

  .mdx-tl--zig li {
    width: calc(50% - 44px);
  }

  .mdx-tl--zig li:nth-child(odd) {
    align-self: flex-start;
  }

  .mdx-tl--zig li:nth-child(even) {
    align-self: flex-end;
  }

  .mdx-tl--zig li + li {
    margin-top: -34px;
  }

  /* Ícono a la izquierda del texto para una tarjeta más horizontal */
  .mdx-tl--zig li {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 18px;
    align-content: start;
  }

  .mdx-tl--zig .mdx-tl__ico {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .mdx-tl--zig h3,
  .mdx-tl--zig p {
    grid-column: 2;
  }

  /* Brazo + nodo hacia la línea central */
  .mdx-tl--zig li::after,
  .mdx-tl--zig li:last-child::after {
    display: block;
    top: 46px;
    width: 44px;
    height: 16px;
    animation: none;
    background:
      radial-gradient(circle at var(--dot-x) 50%, var(--white) 0 3px, var(--blue-600) 3.5px 7px, rgba(22, 119, 255, .18) 7.5px 8px, transparent 8.5px),
      linear-gradient(var(--sky-400), var(--sky-400)) var(--arm-x) 50% / calc(100% - 8px) 2px no-repeat;
  }

  .mdx-tl--zig li:nth-child(odd)::after {
    --dot-x: calc(100% - 8px);
    --arm-x: 0;
    left: 100%;
    right: auto;
  }

  .mdx-tl--zig li:nth-child(even)::after {
    --dot-x: 8px;
    --arm-x: 100%;
    left: auto;
    right: 100%;
  }

  .mdx-tl--zig li.is-in:hover {
    transform: translateY(-4px);
  }
}

/* =====================================================
   PÁGINAS DE SERVICIO — separación entre secciones más compacta
   (main con .strip; respeta secciones con clases padd_*)
   El padding inferior siempre supera la altura de la onda
===================================================== */
main:has(> .strip) > .section:not([class*="padd_"]) {
  padding-top: clamp(44px, 4.2vw, 64px);
  padding-bottom: clamp(56px, 5vw, 76px);
}

main:has(> .strip) > .section.section--tight-top:not([class*="padd_"]) {
  padding-top: clamp(34px, 3.2vw, 48px);
}

main:has(> .strip) .section-head {
  margin-bottom: clamp(26px, 2.8vw, 40px);
}

@media (max-width: 640px) {
  main:has(> .strip) > .section:not([class*="padd_"]) {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  main:has(> .strip) > .section.section--tight-top:not([class*="padd_"]) {
    padding-top: 34px;
  }
}

/* =====================================================
   PUBLICIDAD DIGITAL — ilustración del hero (.mdx-ad)
===================================================== */
.mdx-ad text {
  font-family: var(--font-head, inherit);
}

@media (prefers-reduced-motion: no-preference) {
  .mdx-ad__float {
    animation: mdxAdFloat 6s ease-in-out infinite;
  }

  .mdx-ad__float--2 { animation-delay: -2s; }
  .mdx-ad__float--3 { animation-delay: -4s; animation-duration: 7s; }

  .mdx-ad__flow {
    animation: mdxAdFlow 1.4s linear infinite;
  }

  .mdx-ad__ripple {
    transform-box: fill-box;
    transform-origin: center;
    animation: mdxAdRipple 2.2s ease-out infinite;
  }

  .mdx-ad__bar {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: mdxAdBar 3.2s ease-in-out infinite;
  }
}

@keyframes mdxAdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes mdxAdFlow {
  to { stroke-dashoffset: -18; }
}

@keyframes mdxAdRipple {
  0% { transform: scale(.6); opacity: .9; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes mdxAdBar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.82); }
}


/* Panel oscuro: el nodo activo recorre los pasos en ciclo (8 s).
   Todas las animaciones comparten reloj (retrasos negativos) y nunca se
   reinician; al pasar el mouse sobre el panel solo se pausan juntas. */
@media (prefers-reduced-motion: no-preference) {
  .mdx-tl--dark li .mdx-tl__ico,
  .mdx-tl--dark li:first-child .mdx-tl__ico,
  .mdx-tl--dark li:hover .mdx-tl__ico {
    background: rgba(255, 255, 255, .06);
    color: var(--sky-400);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    animation: mdxTlNode 8s ease-in-out infinite;
  }

  .mdx-tl--dark li::before {
    animation: mdxTlLabel 8s ease-in-out infinite;
  }

  .mdx-tl--dark li:nth-child(2) .mdx-tl__ico,
  .mdx-tl--dark li:nth-child(2)::before { animation-delay: -6s; }

  .mdx-tl--dark li:nth-child(3) .mdx-tl__ico,
  .mdx-tl--dark li:nth-child(3)::before { animation-delay: -4s; }

  .mdx-tl--dark li:nth-child(4) .mdx-tl__ico,
  .mdx-tl--dark li:nth-child(4)::before { animation-delay: -2s; }

  .mdx-tl--dark:hover li .mdx-tl__ico,
  .mdx-tl--dark:hover li::before {
    animation-play-state: paused;
  }

  /* El paso bajo el mouse se marca con un anillo (sin tocar la animación) */
  .mdx-tl--dark li:hover .mdx-tl__ico {
    outline: 2px solid rgba(51, 176, 255, .8);
    outline-offset: 5px;
  }
}

@keyframes mdxTlNode {
  0%, 22% {
    color: var(--white);
    background-color: var(--blue-600);
    box-shadow: 0 0 0 6px rgba(51, 176, 255, .16), 0 12px 30px -6px rgba(51, 176, 255, .65);
    transform: scale(1.06);
  }
  27%, 95% {
    color: var(--sky-400);
    background-color: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    transform: scale(1);
  }
  100% {
    color: var(--white);
    background-color: var(--blue-600);
    box-shadow: 0 0 0 6px rgba(51, 176, 255, .16), 0 12px 30px -6px rgba(51, 176, 255, .65);
    transform: scale(1.06);
  }
}

@keyframes mdxTlLabel {
  0%, 22% { color: var(--white); }
  27%, 95% { color: var(--sky-400); }
  100% { color: var(--white); }
}


/* =====================================================
   GOOGLE WORKSPACE — "Te acompañamos" (.mdx-svc)
   Tarjetas numeradas que se invierten a azul marino al pasar el mouse
===================================================== */
.mdx-svc {
  counter-reset: mdxsvc;
}

.mdx-svc > .feat {
  counter-increment: mdxsvc;
  overflow: hidden;
  isolation: isolate;
  padding-top: 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.mdx-svc > .feat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 176, 255, .35), transparent 45%),
    linear-gradient(145deg, var(--navy-900), #0d3a7a 65%, var(--blue-600));
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.mdx-svc > .feat::after {
  content: counter(mdxsvc, decimal-leading-zero);
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(22, 119, 255, .3);
  transition: -webkit-text-stroke-color .35s var(--ease), transform .45s var(--ease);
}

.mdx-svc .feat__icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  box-shadow: 0 12px 24px -10px rgba(22, 119, 255, .6);
  transition: background .35s var(--ease), color .35s var(--ease), transform .4s var(--ease);
}

.mdx-svc h3,
.mdx-svc p {
  transition: color .35s var(--ease);
}

/* Línea inferior que crece */
.mdx-svc h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--sky-400));
  transition: width .45s var(--ease);
}

@media (hover: hover) {
  .mdx-svc > .feat:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 26px 50px -24px rgba(6, 26, 58, .55);
  }

  .mdx-svc > .feat:hover::before {
    opacity: 1;
  }

  .mdx-svc > .feat:hover::after {
    -webkit-text-stroke-color: rgba(143, 211, 255, .55);
    transform: translateY(-3px);
  }

  .mdx-svc > .feat:hover .feat__icon {
    box-shadow: 0 0 0 6px rgba(143, 211, 255, .14), 0 14px 30px -8px rgba(51, 176, 255, .7);
    transform: rotate(-6deg);
  }

  .mdx-svc > .feat:hover h3 {
    color: var(--white);
  }

  .mdx-svc > .feat:hover h3::after {
    width: 56px;
  }

  .mdx-svc > .feat:hover p {
    color: rgba(255, 255, 255, .78);
  }
}

@media (max-width: 640px) {
  .mdx-svc > .feat::after {
    top: 18px;
    right: 18px;
    font-size: 26px;
  }

  .mdx-svc h3 {
    padding-right: 36px;
  }

  .mdx-svc h3::after {
    margin-top: 8px;
  }
}

/* =====================================================
   GOOGLE WORKSPACE — Preguntas frecuentes (.mdx-faq)
===================================================== */
.mdx-faq {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  interpolate-size: allow-keywords;
}

.mdx-faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  padding: 32px 28px;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 176, 255, .35), transparent 50%),
    linear-gradient(150deg, var(--navy-900), #0d3a7a 70%, var(--blue-600));
  box-shadow: 0 30px 60px -30px rgba(6, 26, 58, .6);
}

.mdx-faq__aside::after {
  content: "?";
  position: absolute;
  right: -10px;
  bottom: -46px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 190px;
  line-height: 1;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
}

.mdx-faq__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  color: var(--sky-400);
}

.mdx-faq__badge .ico {
  width: 26px;
  height: 26px;
}

.mdx-faq__aside h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.25;
}

.mdx-faq__aside p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .75);
  font-size: 15.5px;
}

.mdx-faq__aside .btn {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: center;
}

.mdx-faq__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--sky-400);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.mdx-faq__link .ico {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease);
}

.mdx-faq__link:hover .ico {
  transform: translateX(4px);
}

/* Lista */
.mdx-faq__list {
  max-width: none;
  margin: 0;
  gap: 14px;
  counter-reset: mdxfaq;
}

.mdx-faq__list details {
  counter-increment: mdxfaq;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(22, 119, 255, .12);
  box-shadow: var(--mdx-shadow-soft);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.mdx-faq__list details::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue-600), var(--sky-400));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}

.mdx-faq__list details:hover {
  border-color: rgba(22, 119, 255, .3);
  transform: translateY(-2px);
}

.mdx-faq__list details[open] {
  border-color: rgba(22, 119, 255, .28);
  box-shadow: var(--mdx-shadow-lift);
  background: linear-gradient(180deg, #f6f9ff, var(--white) 70%);
}

.mdx-faq__list details[open]::before {
  transform: scaleY(1);
}

.mdx-faq__list summary {
  justify-content: flex-start;
  padding: 22px 24px;
}

/* Número */
.mdx-faq__list summary::before {
  content: counter(mdxfaq, decimal-leading-zero);
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ice-100);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 800;
  transition: background .35s var(--ease), color .35s var(--ease);
}

.mdx-faq__list details[open] summary::before {
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  color: var(--white);
}

.mdx-faq__list details[open] summary {
  color: var(--blue-600);
}

/* Flecha en círculo */
.mdx-faq__list summary .ico {
  margin-left: auto;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--ice-100);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}

.mdx-faq__list details[open] summary .ico {
  background: var(--blue-600);
  color: var(--white);
}

.mdx-faq__list details > div {
  padding: 0 24px 24px 80px;
  font-size: 15.5px;
  line-height: 1.7;
}

/* Apertura suave donde el navegador lo permite */
.mdx-faq__list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
}

.mdx-faq__list details[open]::details-content {
  block-size: auto;
}

@media (max-width: 960px) {
  .mdx-faq {
    grid-template-columns: 1fr;
  }

  .mdx-faq__aside {
    position: relative;
    top: auto;
    order: 2;
  }
}

@media (max-width: 640px) {
  .mdx-faq__aside {
    padding: 26px 22px;
  }

  .mdx-faq__list summary {
    gap: 12px;
    padding: 18px 16px;
    font-size: 15.5px;
  }

  .mdx-faq__list summary::before {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .mdx-faq__list summary .ico {
    width: 30px;
    height: 30px;
    padding: 7px;
  }

  .mdx-faq__list details > div {
    padding: 0 18px 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdx-faq__list details::details-content {
    transition: none;
  }
}

/* =====================================================
   AJUSTES — números sin contorno (evita trazos internos de la fuente)
   y hover claro en "Te acompañamos"
===================================================== */
.mdx-svc > .feat::after {
  -webkit-text-stroke: 0;
  color: #e3eefb;
  transition: color .35s var(--ease), transform .45s var(--ease);
}

.mdx-tl li::before {
  -webkit-text-stroke: 0;
  opacity: .22;
}

.mdx-tl li:hover::before {
  opacity: .9;
}

.mdx-tl--dark li::before {
  opacity: 1;
}

.mdx-svc > .feat::before {
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 176, 255, .18), transparent 50%),
    linear-gradient(160deg, #f5f9ff, #e6f1ff);
}

@media (hover: hover) {
  .mdx-svc > .feat:hover {
    border-color: rgba(22, 119, 255, .35);
    box-shadow: 0 24px 46px -26px rgba(11, 60, 150, .4);
  }

  .mdx-svc > .feat:hover::after {
    -webkit-text-stroke: 0;
    color: rgba(22, 119, 255, .22);
  }

  .mdx-svc > .feat:hover h3 {
    color: var(--blue-600);
  }

  .mdx-svc > .feat:hover p {
    color: var(--muted);
  }

  .mdx-svc > .feat:hover .feat__icon {
    box-shadow: 0 0 0 6px rgba(22, 119, 255, .1), 0 14px 28px -10px rgba(22, 119, 255, .65);
  }
}


/* =====================================================
   GOOGLE WORKSPACE — tarjetas de planes (.mdx-plans)
===================================================== */
.mdx-plans {
  gap: 24px;
  align-items: stretch;
  padding-top: 14px;
}

.mdx-plans .plan {
  overflow: visible;
  padding: 34px 30px 30px;
  border-radius: 26px;
  border: 1px solid rgba(22, 119, 255, .14);
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 176, 255, .1), transparent 45%),
    var(--white);
  box-shadow: var(--mdx-shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

/* Franja superior */
.mdx-plans .plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--blue-600), var(--sky-400));
  opacity: .35;
  transition: opacity .35s var(--ease), left .45s var(--ease), right .45s var(--ease);
}

.mdx-plans .plan:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 119, 255, .32);
  box-shadow: var(--mdx-shadow-lift);
}

.mdx-plans .plan:hover::before {
  opacity: 1;
  left: 18px;
  right: 18px;
}

.mdx-plans .plan__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--blue-600);
  background: var(--ice-100);
  transition: transform .4s var(--ease);
}

.mdx-plans .plan__icon .ico {
  width: 30px;
  height: 30px;
}

.mdx-plans .plan:hover .plan__icon {
  transform: rotate(-6deg) scale(1.05);
}

.mdx-plans .plan h3 {
  font-size: 23px;
  letter-spacing: -.02em;
}

.mdx-plans .plan__sub {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px dashed rgba(22, 119, 255, .22);
}

.mdx-plans .plan .checks {
  gap: 12px;
  margin-bottom: 30px;
}

.mdx-plans .plan .btn {
  align-self: stretch;
  justify-content: center;
}

/* Plan destacado */
.mdx-plans .plan--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(140deg, var(--blue-600), var(--sky-400)) border-box;
  box-shadow: 0 30px 60px -30px rgba(22, 119, 255, .55);
}

.mdx-plans .plan--featured::before {
  display: none;
}

.mdx-plans .plan--featured .plan__icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  box-shadow: 0 14px 28px -12px rgba(22, 119, 255, .7);
}

.mdx-plans .plan--featured .btn {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  box-shadow: 0 14px 28px -14px rgba(22, 119, 255, .8);
}

.mdx-plans .plan--featured .btn .btn__arrow {
  background: rgba(255, 255, 255, .2);
  color: var(--white);
}

.mdx-plans .plan__badge {
  top: -15px;
  right: 26px;
}

.mdx-plans .plan__badge .pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  box-shadow: 0 10px 22px -10px rgba(22, 119, 255, .8);
  font-weight: 700;
  letter-spacing: .02em;
}

@media (min-width: 1025px) {
  .mdx-plans .plan--featured {
    transform: translateY(-10px);
  }

  .mdx-plans .plan--featured:hover {
    transform: translateY(-16px);
  }
}

@media (max-width: 640px) {
  .mdx-plans .plan {
    padding: 30px 22px 24px;
  }
}

/* Planes en tablet: la 3.ª tarjeta queda centrada */
@media (min-width: 641px) and (max-width: 1024px) {
  .mdx-plans > .plan:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }
}


/* =====================================================
   NUBE — áreas de servicio (.mdx-cloud, usa tarjetas ilustradas .mdx-feats)
   y casos de uso (.mdx-uses)
===================================================== */
/* Etiquetas de cada tarjeta */
.mdx-cloud .checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px !important;
}

.mdx-cloud .checks li {
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  background: var(--ice-50);
  border: 1px solid rgba(22, 119, 255, .14);
  font-size: 13.5px;
  line-height: 1.3;
}

.mdx-cloud .checks li::before {
  width: 16px;
  height: 16px;
  margin-top: 0;
  background-color: var(--white);
  background-size: 10px;
}

/* Casos de uso: más contraste sobre el fondo hielo */
.mdx-uses > .cat-card {
  border: 1px solid rgba(22, 119, 255, .16);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(11, 27, 54, .05), 0 14px 30px -18px rgba(11, 60, 150, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.mdx-uses .feat__icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  box-shadow: 0 10px 20px -10px rgba(22, 119, 255, .6);
  transition: transform .4s var(--ease);
}

.mdx-uses > .cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 119, 255, .35);
  box-shadow: var(--mdx-shadow-lift);
}

.mdx-uses > .cat-card:hover .feat__icon {
  transform: rotate(-6deg) scale(1.05);
}


/* =====================================================
   INTEGRACIÓN DE DATOS — "Toda tu información en una sola consulta" (.mdx-dq)
===================================================== */
.grid-2.mdx-dq {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.mdx-dq__intro .lead {
  margin: 0 0 24px;
}

.mdx-dq__panel {
  padding: clamp(14px, 2vw, 22px);
  border-radius: 24px;
  border: 1px solid rgba(22, 119, 255, .14);
  background:
    radial-gradient(circle at 50% 50%, rgba(51, 176, 255, .16), transparent 55%),
    linear-gradient(160deg, #f5f9ff, #e6f1ff);
  box-shadow: 0 1px 2px rgba(11, 27, 54, .05), 0 22px 44px -26px rgba(11, 60, 150, .4);
}

.mdx-dq__svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-head, inherit);
}

.mdx-dq__src > rect:first-child,
.mdx-dq__out > rect:first-child {
  fill: #fff;
  filter: drop-shadow(0 6px 10px rgba(11, 60, 150, .14));
}

.mdx-dq__src text {
  font-size: 13px;
  font-weight: 700;
  fill: #0b1b36;
}

.mdx-dq__flow {
  fill: none;
  stroke: #4aa8ff;
  stroke-width: 2;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
}

.mdx-dq__hub {
  font-size: 13px;
  font-weight: 800;
  fill: #0a2552;
}

.mdx-dq__title {
  font-size: 9.2px;
  font-weight: 800;
  fill: #0b1b36;
}

.mdx-dq__hl {
  fill: #eaf3ff;
  stroke: #1677ff;
  stroke-opacity: .5;
}

.mdx-dq__ok {
  font-size: 8px;
  font-weight: 800;
  fill: #19b47a;
}

.mdx-dq__pulse {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .mdx-dq__flow {
    animation: mdxDqFlow 1.2s linear infinite;
  }

  .mdx-dq__pulse {
    animation: mdxDqPulse 2.4s ease-out infinite;
  }
}

@keyframes mdxDqFlow {
  to { stroke-dashoffset: -22; }
}

@keyframes mdxDqPulse {
  0% { opacity: .45; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* Tarjetas apiladas a la derecha */
.grid-2.mdx-dq__cards {
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (max-width: 1024px) {
  .grid-2.mdx-dq {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .grid-2.mdx-dq__cards {
    grid-template-columns: 1fr;
  }

  .mdx-dq__panel {
    margin-inline: -4px;
    border-radius: 18px;
  }
}

/* =====================================================
   Sin "Administración de talento"
   - Nosotros: primera fila de evolución con 4 áreas
   - Soluciones: 4 tarjetas empresariales
===================================================== */
.evo__row--five.evo__row--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 80%;
  margin: 0 auto;
}

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

@media (max-width: 600px) {
  .evo__row--five.evo__row--four {
    width: 100%;
  }

  .evo__row--five.evo__row--four .evo__item:nth-child(5) {
    grid-column: auto;
    width: auto;
  }
}

@media (min-width: 992px) {
  .solutions-catalog .sol-enterprise-cards.sol-security-grid--new {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .solutions-catalog .sol-enterprise-cards.sol-security-grid--new > .sol-security-card {
    grid-column: auto !important;
  }
}

@media (min-width: 641px) and (max-width: 991px) {
  .solutions-catalog .sol-enterprise-cards > .sol-security-card:nth-child(5) {
    grid-column: auto !important;
    width: auto;
  }
}

/* =====================================================
   FACTURACIÓN — plataforma (.mdx-fx) y paquetes de folios (.mdx-folios)
===================================================== */
.grid-2.mdx-fx {
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.mdx-fx .checks {
  margin-top: 22px;
}

.mdx-fx__panel {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 24px;
  border: 1px solid rgba(22, 119, 255, .14);
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 176, 255, .14), transparent 45%),
    var(--white);
  box-shadow: 0 1px 2px rgba(11, 27, 54, .05), 0 24px 48px -28px rgba(11, 60, 150, .4);
}

.mdx-fx__panel h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.mdx-fx__panel > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.mdx-fx__panel h3:not(:first-child) {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed rgba(22, 119, 255, .22);
}

.mdx-fx__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mdx-fx__chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(22, 119, 255, .18);
  background: var(--ice-50);
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.mdx-fx__chips li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E"), linear-gradient(135deg, var(--blue-600), var(--sky-400));
  background-size: 10px, cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mdx-fx__chips--soft li {
  background: var(--white);
}

.mdx-fx__chips--soft li::before {
  background-image: none;
  width: 7px;
  height: 7px;
  background: var(--sky-400);
}

.mdx-fx__chips li:hover {
  border-color: rgba(22, 119, 255, .4);
  background: #eaf3ff;
  transform: translateY(-1px);
}

/* Paquetes de folios */
.mdx-folios {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.mdx-folios li {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 22px 10px 20px;
  border-radius: 20px;
  border: 1px solid rgba(22, 119, 255, .14);
  background:
    radial-gradient(circle at 50% 0%, rgba(51, 176, 255, .14), transparent 60%),
    var(--white);
  box-shadow: 0 1px 2px rgba(11, 27, 54, .05), 0 16px 32px -22px rgba(11, 60, 150, .4);
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.mdx-folios li strong {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mdx-folios li span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mdx-folios li:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 119, 255, .35);
  box-shadow: var(--mdx-shadow-lift);
}

.mdx-folios__cta {
  justify-content: center;
  margin-top: 34px;
}

@media (max-width: 1024px) {
  .mdx-folios {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mdx-folios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mdx-folios li:last-child {
    grid-column: 1 / -1;
  }

  .mdx-fx__chips li {
    font-size: 13.5px;
  }
}

/* Paquetes de folios: filas incompletas centradas en tablet y celular */
@media (max-width: 1024px) {
  .mdx-folios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .mdx-folios li {
    flex: 0 0 calc(25% - 11px);
  }
}

@media (max-width: 640px) {
  .mdx-folios li,
  .mdx-folios li:last-child {
    flex: 0 0 calc(50% - 5px);
    grid-column: auto;
  }
}