/* como — scope .amr-cf-section */
/* Contenedor Principal de Ancho Completo */
  .amr-cf-section {
    font-family: var(--amr-font, 'Plus Jakarta Sans'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    background-color: var(--amr-c1-softer); /* Tono suave del color principal */
    padding: 70px 24px 80px 24px;
    box-sizing: border-box;
    color: #0b1e36;
    position: relative;
  }

  .amr-cf-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* Contenedor Interno Centrado a 1240px */
  .amr-cf-section .amr-cf-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
  }

  /* Encabezado */
  .amr-cf-section .amr-cf-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amr-c1);
    margin-bottom: 12px;
  }

  .amr-cf-section .amr-cf-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--amr-c1); /* Azul marino real idéntico a la imagen */
    letter-spacing: -0.025em;
    margin-bottom: 12px;
  }

  .amr-cf-section .amr-cf-subtitle {
    font-size: 15.5px;
    line-height: 1.5;
    color: #53688b;
    margin-bottom: 56px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
  }

  /* Flujo de Pasos Horizontal */
  .amr-cf-section .amr-cf-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  /* Cada Paso Individual */
  .amr-cf-section .amr-cf-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
  }

  /* Círculo Halo del Icono */
  .amr-cf-section .amr-cf-icon-halo {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  }

  .amr-cf-section .amr-cf-step:hover .amr-cf-icon-halo {
    transform: translateY(-5px);
  }

  /* Halos de color específicos */
  .amr-cf-section .amr-halo-red {
    background: #ffe4e6;
    color: #ef4444;
    box-shadow: 0 8px 24px -4px rgba(239, 68, 68, 0.20);
  }
  .amr-cf-section .amr-cf-step:hover .amr-halo-red {
    box-shadow: 0 14px 28px -4px rgba(239, 68, 68, 0.32);
  }

  .amr-cf-section .amr-halo-amber {
    background: #fef3c7;
    color: #f59e0b;
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.20);
  }
  .amr-cf-section .amr-cf-step:hover .amr-halo-amber {
    box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.32);
  }

  .amr-cf-section .amr-halo-blue {
    background: #dbeafe;
    color: #0066ff;
    box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.20);
  }
  .amr-cf-section .amr-cf-step:hover .amr-halo-blue {
    box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.32);
  }

  .amr-cf-section .amr-halo-green {
    background: #dcfce7;
    color: #22c55e;
    box-shadow: 0 8px 24px -4px rgba(34, 197, 94, 0.22);
  }
  .amr-cf-section .amr-cf-step:hover .amr-halo-green {
    box-shadow: 0 14px 28px -4px rgba(34, 197, 94, 0.35);
  }

  /* Flechas Conectoras */
  .amr-cf-section .amr-cf-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-top: 27px; /* Alineación al centro del halo de 78px */
    flex-shrink: 0;
  }

  .amr-cf-section .amr-cf-arrow svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .amr-cf-section .amr-cf-step:hover + .amr-cf-arrow svg {
    transform: translateX(4px);
    color: var(--amr-c1);
  }

  /* Textos de los Pasos */
  .amr-cf-section .amr-cf-step-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #0b1e36;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .amr-cf-section .amr-cf-step-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #556885;
    max-width: 215px;
    margin: 0 auto;
  }

  /* Puntos del carrusel (solo responsivo) */
  .amr-cf-section .amr-cf-dots {
    display: none;
  }

  .amr-cf-section .amr-cf-dot {
    width: 8px;
    height: 8px;
    padding: 0 !important;
    border: none !important;
    border-radius: 9999px;
    background: var(--amr-c1-soft) !important;
    cursor: pointer;
    transition: width .3s cubic-bezier(.2,.8,.2,1), background-color .3s ease;
  }

  .amr-cf-section .amr-cf-dot.is-active {
    width: 24px;
    background: var(--amr-c1) !important;
  }

  /* Responsivo para Tablets y Móviles */
  @media (max-width: 900px) {
    .amr-cf-section {
      padding: 50px 20px 60px 20px;
    }
    .amr-cf-section .amr-cf-title {
      font-size: 30px;
    }
    /* CARRUSEL HORIZONTAL (deslizar) */
    .amr-cf-section .amr-cf-flow {
      flex-wrap: nowrap;
      justify-content: flex-start;
      align-items: stretch;
      gap: 14px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scroll-padding: 0 20px;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      scrollbar-width: none;
      width: auto;
      margin: 0 -20px;
      padding: 14px 20px 22px;
    }
    .amr-cf-section .amr-cf-flow::-webkit-scrollbar {
      display: none;
    }
    .amr-cf-section .amr-cf-step {
      flex: 0 0 44%;
      min-width: 0;
      scroll-snap-align: center;
      background: #ffffff;
      border: 1px solid #e3edfb;
      border-radius: 22px;
      padding: 26px 18px 24px;
      box-shadow: 0 12px 28px -14px rgba(11, 30, 54, 0.18);
    }
    .amr-cf-section .amr-cf-step-desc {
      max-width: 100%;
    }

    /* Puntos indicadores */
    .amr-cf-section .amr-cf-dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 4px;
    }
    .amr-cf-section .amr-cf-arrow {
      display: none;
    }
  }

  @media (max-width: 520px) {
    .amr-cf-section {
      padding: 40px 16px 50px 16px;
    }
    .amr-cf-section .amr-cf-title {
      font-size: 26px;
    }
    .amr-cf-section .amr-cf-subtitle {
      font-size: 14.5px;
      margin-bottom: 36px;
    }
    .amr-cf-section .amr-cf-flow {
      margin: 0 -16px;
      padding: 14px 16px 22px;
      scroll-padding: 0 16px;
    }
    .amr-cf-section .amr-cf-step {
      flex: 0 0 76%;
    }
  }


/* ==============================================
   ANIMACIONES - CÓMO FUNCIONA
   ============================================== */

/* Animación de flotación de cada círculo */
@keyframes amrCfFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* Animación suave de las flechas */
@keyframes amrCfArrowMove {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.55;
  }
  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

/* Aparición progresiva */
@keyframes amrCfReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulso suave de iluminación */
@keyframes amrCfGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

/* Estado inicial y animación de entrada */
.amr-cf-section .amr-cf-step {
  animation: amrCfReveal 0.75s ease-out both;
}

.amr-cf-section .amr-cf-step:nth-child(1) {
  animation-delay: 0.1s;
}

.amr-cf-section .amr-cf-step:nth-child(3) {
  animation-delay: 0.25s;
}

.amr-cf-section .amr-cf-step:nth-child(5) {
  animation-delay: 0.4s;
}

.amr-cf-section .amr-cf-step:nth-child(7) {
  animation-delay: 0.55s;
}

/* Iconos flotantes con tiempos distintos */
.amr-cf-section .amr-cf-icon-halo {
  animation: amrCfFloat 4s ease-in-out infinite;
  will-change: transform;
}

.amr-cf-section .amr-cf-step:nth-child(3) .amr-cf-icon-halo {
  animation-delay: -1s;
}

.amr-cf-section .amr-cf-step:nth-child(5) .amr-cf-icon-halo {
  animation-delay: -2s;
}

.amr-cf-section .amr-cf-step:nth-child(7) .amr-cf-icon-halo {
  animation-delay: -3s;
}

/* Iconos SVG */
.amr-cf-section .amr-cf-icon-halo svg {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  transform-origin: center;
}

/* Efecto hover: pausa flotación y eleva círculo */
.amr-cf-section .amr-cf-step:hover .amr-cf-icon-halo {
  animation-play-state: paused;
  transform: translateY(-7px) scale(1.1);
  filter: brightness(1.06);
}

/* Movimiento interior del icono */
.amr-cf-section .amr-cf-step:hover .amr-cf-icon-halo svg {
  transform: rotate(-8deg) scale(1.1);
}

/* El último icono tiene una pequeña celebración */
.amr-cf-section .amr-cf-step:last-child:hover .amr-cf-icon-halo svg {
  transform: rotate(8deg) scale(1.15);
}

/* Flechas con movimiento continuo */
.amr-cf-section .amr-cf-arrow svg {
  animation: amrCfArrowMove 2.4s ease-in-out infinite;
}

.amr-cf-section .amr-cf-arrow:nth-child(2) svg {
  animation-delay: 0s;
}

.amr-cf-section .amr-cf-arrow:nth-child(4) svg {
  animation-delay: 0.45s;
}

.amr-cf-section .amr-cf-arrow:nth-child(6) svg {
  animation-delay: 0.9s;
}

/* Resaltar título del paso al pasar el mouse */
.amr-cf-section .amr-cf-step-title {
  transition: color 0.3s ease;
}

.amr-cf-section .amr-cf-step:hover .amr-cf-step-title {
  color: var(--amr-c1);
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .amr-cf-section .amr-cf-step,
.amr-cf-section .amr-cf-icon-halo,
.amr-cf-section .amr-cf-arrow svg {
    animation: none !important;
  }

  .amr-cf-section .amr-cf-icon-halo,
.amr-cf-section .amr-cf-icon-halo svg,
.amr-cf-section .amr-cf-step-title {
    transition: none !important;
  }
}


/* ==========================================================
   FONDO DECORADO (home): gris #f5f5f5 + manchas de color,
   puntitos y un brillo que sigue al mouse.
   ========================================================== */
.home .amr-cf-section {
  --amr-cf-bg: #f9f6fa; /* lila del color principal, más clarito */
  --amr-cf-bg: color-mix(in srgb, var(--amr-c1) 4%, #ffffff);
  background:
    radial-gradient(520px circle at var(--amr-mx, 50%) var(--amr-my, -40%), rgba(var(--amr-c1-rgb), .10), transparent 65%),
    var(--amr-cf-bg);
  overflow: hidden;
  isolation: isolate;
}

/* Manchas difuminadas de los colores del logo (se mueven lento) */
.home .amr-cf-section::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(34% 40% at 12% 18%, rgba(var(--amr-c1-rgb), .13), transparent 70%),
    radial-gradient(30% 36% at 88% 82%, rgba(var(--amr-c2-rgb), .20), transparent 70%),
    radial-gradient(22% 28% at 78% 12%, rgba(var(--amr-c1-rgb), .07), transparent 70%);
  filter: blur(10px);
  animation: amrCfBlobs 18s ease-in-out infinite alternate;
}

/* Trama de puntitos que se desvanece hacia los bordes */
.home .amr-cf-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(var(--amr-c1-rgb), .16) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
  opacity: .55;
}

@keyframes amrCfBlobs {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(3%, 2%, 0) rotate(4deg); }
  100% { transform: translate3d(-2%, 3%, 0) rotate(-3deg); }
}

/* Escritorio: cada paso se vuelve tarjeta al pasar el mouse */
@media (min-width: 901px) {
  .home .amr-cf-section .amr-cf-step {
    padding: 28px 14px 26px;
    border-radius: 24px;
    border: 1px solid transparent;
    transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, translate .35s cubic-bezier(.2, .8, .2, 1);
  }

  .home .amr-cf-section .amr-cf-step:hover {
    background-color: rgba(255, 255, 255, .9);
    border-color: rgba(var(--amr-c1-rgb), .12);
    box-shadow: 0 22px 44px -18px rgba(var(--amr-c1-rgb), .30), 0 0 0 6px rgba(var(--amr-c2-rgb), .10);
    translate: 0 -6px;
  }
}

/* Móvil: tarjetas con borde del tono de marca */
@media (max-width: 900px) {
  .home .amr-cf-section .amr-cf-step {
    border-color: rgba(var(--amr-c1-rgb), .10);
    box-shadow: 0 14px 30px -16px rgba(var(--amr-c1-rgb), .28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .amr-cf-section::before { animation: none; }
  .home .amr-cf-section .amr-cf-step { transition: none; }
}


/* ==========================================================
   HOME: FONDO OSCURO CON GRADIENTE DEL COLOR PRINCIPAL
   (mantiene las manchas, puntitos y el brillo del mouse;
    textos en blanco para contraste)
   ========================================================== */
.home .amr-cf-section {
  --amr-cf-bg: linear-gradient(135deg, #2a0334 0%, var(--amr-c1-dark) 35%, var(--amr-c1) 70%, #7a1694 100%);
  background:
    radial-gradient(520px circle at var(--amr-mx, 50%) var(--amr-my, -40%), rgba(255, 255, 255, .10), transparent 65%),
    var(--amr-cf-bg);
  color: #ffffff;
}

/* Manchas: lila claro y amarillo de marca sobre el morado */
.home .amr-cf-section::before {
  background:
    radial-gradient(34% 40% at 12% 18%, rgba(214, 140, 235, .28), transparent 70%),
    radial-gradient(30% 36% at 88% 82%, rgba(var(--amr-c2-rgb), .22), transparent 70%),
    radial-gradient(22% 28% at 78% 12%, rgba(255, 255, 255, .08), transparent 70%);
}

/* Puntitos blancos suaves */
.home .amr-cf-section::after {
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.3px);
  opacity: .5;
}

/* Textos */
.home .amr-cf-section .amr-cf-eyebrow { color: var(--amr-c2); }
.home .amr-cf-section .amr-cf-title { color: #ffffff; }
.home .amr-cf-section .amr-cf-subtitle { color: rgba(255, 255, 255, .78); }
.home .amr-cf-section .amr-cf-step-title { color: #ffffff; }
.home .amr-cf-section .amr-cf-step-desc { color: rgba(255, 255, 255, .74); }
.home .amr-cf-section .amr-cf-step:hover .amr-cf-step-title { color: var(--amr-c2); }

/* Flechas */
.home .amr-cf-section .amr-cf-arrow { color: rgba(255, 255, 255, .45); }
.home .amr-cf-section .amr-cf-step:hover + .amr-cf-arrow svg { color: var(--amr-c2); }

/* Halos de iconos: blancos para que resalten sobre el morado */
.home .amr-cf-section .amr-cf-icon-halo {
  background: #ffffff;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45);
}

/* Escritorio: tarjeta de vidrio al pasar el mouse */
@media (min-width: 901px) {
  .home .amr-cf-section .amr-cf-step:hover {
    background-color: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .45), 0 0 0 6px rgba(var(--amr-c2-rgb), .12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}

/* Móvil: tarjetas de vidrio y puntos claros */
@media (max-width: 900px) {
  .home .amr-cf-section .amr-cf-step {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .home .amr-cf-section .amr-cf-dot { background: rgba(255, 255, 255, .3) !important; }
  .home .amr-cf-section .amr-cf-dot.is-active { background: var(--amr-c2) !important; }
}
