.ema-frios-process-section,
.ema-frios-process-section * {
  box-sizing: border-box;
}

.ema-frios-process-section {
  --ema-blue: #004b93;
  --ema-blue-dark: #003876;
  --ema-blue-2: #0077d9;
  --ema-frios-text: #0b2148;
  --ema-frios-muted: #4a5f82;
  --ema-frios-border: rgba(0, 75, 147, 0.14);
  --ema-frios-soft: #f4f9ff;
  --ema-frios-shadow: 0 18px 45px rgba(11, 33, 72, 0.10);
  --ema-frios-shadow-hover: 0 24px 60px rgba(0, 75, 147, 0.18);
  --ema-frios-radius: 24px;

  width: 100%;
  padding: clamp(52px, 6vw, 92px) 20px;
  font-family: inherit;
  color: var(--ema-frios-text);
  background:
    radial-gradient(circle at 10% 12%, rgba(0, 119, 217, 0.08), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #f2f8ff 100%);
  overflow: hidden;
}

.ema-frios-process-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.ema-frios-section-kicker {
  width: 46px;
  height: 4px;
  display: block;
  margin: 0 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ema-blue-2), var(--ema-blue-dark));
}

.ema-frios-process-title {
  margin: 0;
  color: var(--ema-blue-dark);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.ema-frios-process-subtitle {
  margin: 14px 0 34px;
  color: var(--ema-frios-muted);
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.35;
  font-weight: 500;
}

.ema-frios-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 72px;
}

.ema-frios-timeline::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 52px;
  bottom: 52px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 119, 217, 0.10), rgba(0, 119, 217, 0.38), rgba(0, 119, 217, 0.10));
  border-radius: 999px;
}

.ema-frios-step {
  position: relative;
  min-height: 126px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--ema-frios-border);
  border-radius: var(--ema-frios-radius);
  box-shadow: 0 12px 30px rgba(11, 33, 72, 0.07);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
  isolation: isolate;
}

.ema-frios-step:hover,
.ema-frios-step:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--ema-frios-shadow-hover);
  border-color: rgba(0, 119, 217, 0.32);
  background: #ffffff;
}

.ema-frios-step-number {
  position: absolute;
  left: -71px;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ema-blue-2), var(--ema-blue) 70%, var(--ema-blue-dark));
  box-shadow: 0 12px 25px rgba(0, 119, 217, 0.24);
  z-index: 2;
}

.ema-frios-step-number::before,
.ema-frios-step-number::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(0, 119, 217, 0.38);
  animation: emaFriosPulse 5s ease-out infinite;
  animation-delay: calc((var(--step-index) - 1) * 0.8s);
  z-index: -1;
}

.ema-frios-step-number::after {
  inset: -20px;
  opacity: 0.55;
  animation-delay: calc((var(--step-index) - 1) * 0.8s + 0.18s);
}

.ema-frios-step-dot {
  position: absolute;
  left: -46px;
  top: calc(100% + 5px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ema-blue-2);
  box-shadow: 0 0 0 6px rgba(0, 119, 217, 0.10);
  z-index: 2;
}

.ema-frios-step:last-child .ema-frios-step-dot {
  display: none;
}

@keyframes emaFriosPulse {
  0%, 11% {
    transform: scale(0.78);
    opacity: 0;
  }
  16% {
    opacity: 0.88;
  }
  32% {
    transform: scale(1.32);
    opacity: 0;
  }
  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}

.ema-frios-step-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #f2f7ff, #eaf3ff);
  color: var(--ema-blue);
  transition: transform 260ms ease, color 260ms ease, background 260ms ease;
}

.ema-frios-step:hover .ema-frios-step-icon {
  transform: scale(1.05) rotate(-2deg);
  color: var(--ema-blue-dark);
  background: linear-gradient(145deg, #ecf5ff, #dceeff);
}

.ema-frios-step-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ema-frios-step-content h3 {
  margin: 0 0 8px;
  color: #061940;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ema-frios-step-content p {
  margin: 0;
  color: var(--ema-frios-muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  font-weight: 500;
}

.ema-frios-security-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0 110px;
  color: var(--ema-frios-muted);
  font-size: 16px;
  line-height: 1.4;
}

.ema-frios-security-note strong {
  color: var(--ema-frios-text);
  font-weight: 800;
}

.ema-frios-security-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(0, 119, 217, 0.08);
  color: var(--ema-blue);
}

.ema-frios-security-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ema-frios-requirements-card {
  position: sticky;
  top: 22px;
  padding: clamp(30px, 4vw, 46px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(0, 119, 217, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.94));
  border: 1px solid rgba(0, 75, 147, 0.10);
  box-shadow: var(--ema-frios-shadow);
  overflow: hidden;
}

.ema-frios-requirements-card h2 {
  margin: 0;
  color: var(--ema-blue-dark);
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.ema-frios-requirements-card p {
  margin: 20px 0 24px;
  color: var(--ema-frios-muted);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

.ema-frios-requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.ema-frios-requirements-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  color: #12294f;
  font-size: 16px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(0, 75, 147, 0.10);
}

.ema-frios-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ema-blue-2), var(--ema-blue));
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 119, 217, 0.20);
}

.ema-frios-check svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ema-frios-card-art {
  position: relative;
  width: min(310px, 92%);
  height: 220px;
  margin: 34px auto 8px;
  perspective: 900px;
}

.ema-frios-ema-card {
  position: absolute;
  width: 176px;
  height: 244px;
  border-radius: 16px;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.18);
  transform-style: preserve-3d;
  transition: transform 360ms ease, filter 360ms ease;
  overflow: hidden;
}

.ema-frios-ema-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.38) 45%, transparent 52% 100%);
  transform: translateX(-120%);
  animation: emaFriosCardShine 4.8s ease-in-out infinite;
}

.ema-frios-ema-card-back {
  left: 35px;
  top: 8px;
  transform: rotate(-5deg) translateY(8px);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.55), transparent 10%),
    linear-gradient(160deg, #ffe600 0 48%, #e72222 49% 100%);
  animation: emaFriosCardFloatBack 4.2s ease-in-out infinite;
}

.ema-frios-ema-card-front {
  right: 20px;
  top: 2px;
  transform: rotate(4deg);
  background:
    linear-gradient(160deg, #e91925 0 48%, #ffd600 49% 76%, #0060ae 77% 100%);
  animation: emaFriosCardFloatFront 4s ease-in-out infinite;
  animation-delay: .25s;
}

.ema-frios-card-art:hover .ema-frios-ema-card-front {
  transform: rotate(1deg) translateY(-10px) rotateY(-8deg);
  filter: saturate(1.08);
}

.ema-frios-card-art:hover .ema-frios-ema-card-back {
  transform: rotate(-9deg) translateY(2px) translateX(-6px);
  filter: saturate(1.06);
}

/* Variante con imagen personalizada (en vez de la tarjeta ilustrada en CSS). */
.ema-frios-card-art--image {
  perspective: none;
}

.ema-frios-card-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(220px, 78%);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.18);
  object-fit: contain;
  animation: emaFriosCardFloatFront 4s ease-in-out infinite;
  transition: transform 360ms ease, filter 360ms ease;
}

.ema-frios-card-art--image:hover .ema-frios-card-photo {
  transform: translateY(-8px);
  filter: saturate(1.08);
}

@keyframes emaFriosCardFloatFront {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes emaFriosCardFloatBack {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 7px; }
}

@keyframes emaFriosCardShine {
  0%, 44% { transform: translateX(-130%); opacity: 0; }
  52% { opacity: 1; }
  66%, 100% { transform: translateX(130%); opacity: 0; }
}

.ema-frios-card-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ema-blue-dark);
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  box-shadow: inset 0 0 0 4px rgba(0, 119, 217, 0.12);
}

.ema-frios-card-brand {
  position: absolute;
  top: 24px;
  left: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ema-frios-card-chip {
  position: absolute;
  left: 22px;
  top: 68px;
  width: 36px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffe98a, #d9a700);
  opacity: .9;
}

.ema-frios-card-dots {
  position: absolute;
  left: 22px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, 8px);
  gap: 8px;
}

.ema-frios-card-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.ema-frios-card-reflection {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 240px;
  height: 38px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 75, 147, 0.16), transparent 70%);
  filter: blur(4px);
}

.ema-frios-side-note {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(0, 75, 147, 0.08);
}

.ema-frios-side-note-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ema-blue-2), var(--ema-blue));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 119, 217, 0.22);
}

.ema-frios-side-note-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ema-frios-side-note-icon i {
  font-size: 20px;
  line-height: 1;
}

.ema-frios-side-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ema-frios-text);
  font-weight: 800;
}

.ema-frios-side-note span {
  color: var(--ema-frios-muted);
  font-size: 15px;
  line-height: 1.35;
}

.ema-frios-animate-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.ema-frios-animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ema-frios-process-section *,
  .ema-frios-process-section *::before,
  .ema-frios-process-section *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .ema-frios-process-wrap {
    grid-template-columns: 1fr;
  }

  .ema-frios-requirements-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .ema-frios-process-section {
    padding: 44px 16px;
  }

  .ema-frios-timeline {
    padding-left: 54px;
  }

  .ema-frios-timeline::before {
    left: 23px;
  }

  .ema-frios-step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .ema-frios-step-number {
    left: -54px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .ema-frios-step-dot {
    left: -34px;
  }

  .ema-frios-step-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .ema-frios-security-note {
    margin-left: 0;
    align-items: flex-start;
  }

  .ema-frios-requirements-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .ema-frios-card-art {
    transform: scale(.88);
    transform-origin: center top;
    margin-bottom: -12px;
  }
}
