/* ===============================
   AMEJBA - PASOS.CSS (LIMPIO)
   =============================== */

/* ---------- Variables ---------- */
:root{
  --amejba-bg: #F7FBFF;
  --amejba-primary: #1B4965;    /* títulos */
  --amejba-secondary: #2A6F97;  /* acentos */
  --amejba-muted: #5A6E7D;      /* cuerpo */
  --amejba-cta: #C3E850;        /* botón CTA */
  --amejba-cta-text: #142B3C;   /* texto CTA */
  --amejba-highlight: #D23636;  /* “DISPONIBLE” */
  --card-border: #eeeeee;
  --card-shadow: 0 4px 12px rgba(0,0,0,.08);
  --card-shadow-hover: 0 8px 16px rgba(0,0,0,.12);
}


/* ---------- Sección de pasos ---------- */
.pasos-container{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.paso-card{
  flex: 1 1 calc(33.333% - 15px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,.10);
  padding: 20px 15px;
  transition: all .3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.paso-card:hover{ transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.paso-contenido{ height: 100%; display: flex; flex-direction: column; }

.paso-titulo{
  color: #2c3e50;
  font-size: 0.85rem !important;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.paso-numero{
  display: inline-block;
  background: linear-gradient(135deg,#4e54c8,#8f94fb);
  color: #fff;
  border-radius: 15px;
  padding: 4px 12px;
  font-size: .8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.paso-2 .paso-numero{ background: linear-gradient(135deg,#ff7e5f,#feb47b); }
.paso-3 .paso-numero{ background: linear-gradient(135deg,#00b09b,#96c93d); }
.paso-titulo-texto{ flex: 1; line-height: 1.3; font-size: 0.85rem !important; }

.paso-subtitulo{
  color: #5a6c7d;
  font-size: .89rem !important;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 0;
}

/* Alineación inferior (último bloque que debe ganar) */
.paso-1 .paso-contenido,
.paso-2 .paso-contenido,
.paso-3 .paso-contenido{ justify-content: space-between; height: 100%; }

.paso-1 .paso-subtitulo,
.paso-2 .paso-subtitulo{
  flex-grow: 1; display: flex; flex-direction: column;
}
.paso-1 .estado-paso,
.paso-2 .text-center{
  margin-top: auto; padding-top: 20px; display: flex; justify-content: center; width: 100%;
}
.paso-3 .paso-subtitulo{ margin-top: auto; padding-top: 0px; }

/* Responsive pasos */
@media (max-width: 992px){
  .paso-card { flex: 1 1 calc(50% - 15px); padding: 18px 12px; }
  .paso-titulo { font-size: .95rem !important; }
  .paso-subtitulo { font-size: .8rem !important; }
}
@media (max-width: 768px){
  .pasos-container { flex-direction: column; gap: 12px; }
  .paso-card { flex: 1 1 100%; min-height: 200px; padding: 15px 10px; }
  .paso-titulo { font-size: .9rem !important; }
  .paso-subtitulo { font-size: .78rem !important; }
  .paso-3 .d-flex span { font-size: .75rem !important; }
}
@media (max-width: 576px){
  .paso-card { min-height: 190px; padding: 12px 8px; }
  .btn-registro, .btn-solicitar, .btn-success { padding: 6px 15px; font-size: .75rem; }
  .paso-titulo { flex-direction: column; gap: 5px; text-align: center; }
  .paso-numero { align-self: center; }
}

/* ---------- Utilidades menores ---------- */
.text-muted-amejba { color: var(--amejba-muted) !important; }
.text-primary-amejba { color: var(--amejba-primary) !important; }
.text-secondary-amejba { color: var(--amejba-secondary) !important; }
.bg-amejba { background: var(--amejba-bg) !important; }

/* FORZAR ESTILOS DE BOTONES PASO 1 Y 2 - SOBREESCRIBIR BOOTSTRAP */
button.btn-registro,
button.btn-solicitar {
    background: linear-gradient(135deg, #4e54c8, #8f94fb) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 2px 10px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: white !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    min-width: 140px !important;
    box-shadow: none !important;
    outline: none !important;
}

button.btn-registro:hover {
    background: linear-gradient(135deg, #8f94fb, #4e54c8) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

button.btn-solicitar {
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
}

button.btn-solicitar:hover {
    background: linear-gradient(135deg, #feb47b, #ff7e5f) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* Asegurar que los botones tengan las clases correctas en el HTML */
.btn-registro,
.btn-solicitar {
    all: unset !important; /* Reset total de estilos Bootstrap */
}

.btn-registro {
    background: linear-gradient(135deg, #4e54c8, #8f94fb) !important;
}

.btn-solicitar {
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
}

/* BOTONES VERDES DEL PASO 3 - MISMO ESTILO QUE PASO 1 Y 2 */
.btn-success.paso-3-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 18px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: white !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.btn-success.paso-3-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* REORGANIZAR PASO 3 - TEXTO ARRIBA, BOTÓN ABAJO */
.paso-3 .d-flex {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    justify-content: flex-end;
}

/* Texto arriba del botón */
.paso-3 .d-flex span {
    font-size: 0.8rem !important;
    line-height: 1.3;
    text-align: center;
    font-weight: 500;
    order: 1; /* Texto primero */
}

/* Botón abajo del texto */
.paso-3 .btn-success.paso-3-btn {
    order: 2; /* Botón después del texto */
    margin-top: 5px;
}
