.jamaica-stepper {
  background: #040914;
  padding: 24px 105px 20px 115px;
}

.stepper-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.stepper-card {
  background: #040914;
  text-align: center;
  cursor: default;
}

.stepper-connector {
  width: 28px;
  transform: translateX(-5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-connector hr.step-line {
  width: 100%;
  border: none;
  border-top: 1.5px solid rgba(245,245,240,0.15);
  margin: 0;
}


/* ── Transiciones del flujo ───────────────────────────────────────────────── */
@keyframes jm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes jm-fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.jm-fade-in    { animation: jm-fade-in    180ms ease both; }
.jm-fade-in-up { animation: jm-fade-in-up 240ms ease both; }

/* Mobile */
@media (max-width: 639px) {
  .jamaica-stepper {
    padding: 16px 45px 14px 55px;
  }

  .stepper-connector {
    width: 14px;
  }

  .stepper-connector hr.step-line {
    border-top-width: 1px;
  }
}

/* ── Stepper en el hueco (flujo layout) ─────────────────────────────────── */
.jm-stepper-hueco {
  position: sticky;
  top: calc(4rem - 6px);
  z-index: 40;
  padding-left: 119px;     /* exact logo width: ~107px image + 2×6px padding */
}

@media (min-width: 640px) {
  .jm-stepper-hueco {
    top: calc(5rem - 6px);
  }
}

/* min-height calculado: logo_bottom − stepper_sticky_top
   logo_bottom  = p-[6px] + h-[116px] + p-[6px] = 128px
   sticky_top   = calc(4rem − 6px) mobile / calc(5rem − 6px) sm+
   min-height   = 128px − sticky_top = calc(134px − Xrem)        */
.jm-stepper-hueco .jamaica-stepper {
  min-height: calc(134px - 5rem);
}

@media (max-width: 639px) {
  .jm-stepper-hueco .jamaica-stepper {
    padding: 8px 5px 8px 15px;
    min-height: calc(134px - 4rem);
  }
  .jm-stepper-hueco .stepper-connector {
    width: 12px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* ── Color feedback: campos del formulario ───────────────────────────────── */
.jm-filled { background-color: #E4EEF9 !important; }
.jm-error  { background-color: #FEEED9 !important; }

/* ── Shake: atención en campos con error ─────────────────────────────────── */
@keyframes jm-shake {
  0%,  20%, 100% { transform: translateX(0);    }
  3%             { transform: translateX(-7px); }
  6%             { transform: translateX(7px);  }
  9%             { transform: translateX(-6px); }
  12%            { transform: translateX(5px);  }
  15%            { transform: translateX(-3px); }
  18%            { transform: translateX(2px);  }
}
.jm-shake {
  animation: jm-shake 3s linear infinite;
}

/* ── intl-tel-input overrides ─────────────────────────────────────────────── */
.iti { width: 100%; }
.iti__selected-flag { border-right: 1px solid #374151; height: 100%; }
.iti__flag-container { height: 100%; }

/* Estado activo: selector de país con fondo azul (pre-seleccionado) */
.iti--jm-filled .iti__selected-flag { background-color: #E4EEF9 !important; }

/* Estado deshabilitado (receptor con "mismo que destinatario" marcado) */
.iti--jm-disabled {
  opacity: 0.6;
}
.iti--jm-disabled .iti__selected-flag {
  pointer-events: none;
  cursor: not-allowed;
}

/* ── Panel Nosotros ──────────────────────────────────────────────────────── */

/* Wrapper clips the panel to the viewport area above the band/footer.
   overflow:hidden ensures the translated panel never renders over the band. */
#nosotros-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 183px; /* mobile: top of CTA band (bottom-12: 48px + h-[135px]: 135px) */
  z-index: 2000;
  overflow: hidden;
  pointer-events: none;
}

@media (min-width: 640px) {
  #nosotros-wrapper {
    bottom: 48px; /* desktop: above footer (h-12 = 48px) */
  }
}

#nosotros-panel {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: calc(100% - 80px);
  background: transparent;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  pointer-events: auto;
}

#nosotros-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

#nosotros-pad-bottom {
  flex-shrink: 0;
  height: 20px;
  background: #040914;
}

#nosotros-panel.abierto {
  transform: translateY(0);
}

#nosotros-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 183px; /* mobile: never covers band or footer */
  background: rgba(255, 255, 255, 0.8);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#nosotros-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

@media (min-width: 640px) {
  #nosotros-overlay {
    bottom: 48px; /* desktop: above footer */
  }
}

#nosotros-cerrar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(4, 9, 20, 0.45);
  border: none;
  border-radius: 0;
  color: #F5F5F0;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-foto-wrap {
  display: flex;
  justify-content: flex-start;
  padding-top: 20px;
  padding-left: 50px;
  margin-bottom: -50px;
}

.nosotros-foto {
  width: 70%;
  aspect-ratio: 32/33;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border: 2px solid #F5F5F0;
}

.nosotros-contenido {
  background: #040914;
  border-top: 2px solid #F2216E;
  padding: 68px 28px 15px;
}

.nosotros-nombre {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: #F2216E;
  margin: 0 0 16px;
}

.nosotros-separador {
  width: 40px;
  height: 2px;
  background: #F57800;
  margin-bottom: 24px;
}

.nosotros-texto p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #F5F5F0;
  line-height: 1.7;
  margin: 0 0 18px;
}

.nosotros-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  background: #F2216E;
  color: #F5F5F0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Toast informativo del flujo ─────────────────────────────────────────── */
#flujo-toast {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(calc(-50% + 20px));
  background: #F57800;
  border-radius: 0;
  padding: 24px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#flujo-toast.visible {
  opacity: 1;
  transform: translateY(-50%);
}

.flujo-toast-texto {
  font-family: 'Comfortaa', cursive;
  font-size: 20px;
  font-weight: 700;
  color: #F5F5F0;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* ── Overlay de procesamiento de pago ────────────────────────────────────── */
#pago-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.pago-preloader {
  width: 140px;
  height: auto;
}

.pago-leyenda {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #F5F5F0;
  text-align: center;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0;
}
