.consulta-section { background: #ffffff; padding: 20px 20px 40px 20px; border-top: none; }
.consulta-box { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 20px auto; flex-wrap: wrap; }
.search-wrapper { position: relative; width: 100%; max-width: 320px; }
.search-wrapper i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); font-size: 1.2rem; color: var(--primary); pointer-events: none; }
.search-input-styled { width: 100%; padding: 14px 16px 14px 48px; background: #F8FAFC; border-radius: 12px; border: 2px solid #e5e7eb; font-size: 1rem; font-weight: 500; color: #0f172a; transition: 0.3s ease; }
.search-input-styled:hover { background: #ffffff; border-color: #94D2BD; }
.search-input-styled:focus { border-color: var(--primary); background: #ffffff; box-shadow: 0 0 8px rgba(10,147,150,0.25); outline: none; }
/* Validación Visual */
.search-input-styled.valid { border-color: #2ecc71; background-color: #f0fdf4; }
.search-input-styled.invalid { border-color: #e74c3c; background-color: #fef2f2; }

.btn-consultar { background: var(--primary); color: white; border: none; border-radius: 12px; padding: 14px 24px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.btn-consultar:hover { background: var(--primary-dark); }
.resultado-consulta { margin-top: 25px; text-align: center; min-height: 40px; }
.resultado-card { background: #ffffff; display: inline-block; padding: 20px 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: left; width: 100%; max-width: 450px; border-left: 4px solid var(--primary); vertical-align: top; margin: 0 auto; }
.resultado-card h3 { margin-top: 0; color: var(--primary); font-size: 1.1rem; font-weight: 700; }
.resultado-card table { width: 100%; margin-top: 0; border-collapse: collapse; font-size: 0.9rem; word-break: break-word; }
.resultado-card th, .resultado-card td { padding: 8px 2px; border-bottom: 1px dashed #eee; }
.resultado-card tr:last-child td { border-bottom: none; }
.tabla-cuotas th:nth-child(4),
.tabla-cuotas td:nth-child(4) { text-align: right; width: 120px; }
.tabla-cuotas td { vertical-align: middle; }
.cuotas-card { padding: 16px 18px; }
.cuotas-card h3 { margin-bottom: 8px; }
.cuotas-card > p { margin: 0 0 10px; }
.tabla-cuotas th, .tabla-cuotas td { padding: 6px 4px; line-height: 1.2; }
.tabla-cuotas thead th { font-size: 0.82rem; }
.tabla-cuotas tbody td { font-size: 0.84rem; }
.btn-cuota-pagar { padding: 6px 10px; font-size: 0.78rem; justify-content: center; min-width: 82px; gap: 6px; }
.cuota-accion { white-space: nowrap; }
.cuotas-total-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 10px; }
.cuotas-total-label { margin: 0; font-weight: 700; color: #c0392b; }
.btn-pagar-todo { padding: 8px 12px; justify-content: center; min-width: 120px; }
.alias-box { background-color: #f0fdf4; border: 1px dashed #22c55e; padding: 12px; border-radius: 8px; margin: 14px 0; text-align: center; }
.alias-text { font-size: 1.2rem; font-weight: 800; color: #166534; margin: 5px 0; cursor: pointer; user-select: all; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-email { background: #64748b; color: white; border: none; border-radius: 8px; padding: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; text-decoration: none; }
.btn-email:hover { background: #475569; }
.loading-text { color: var(--primary); font-weight: 600; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }
.page-wrapper { max-width: 960px; margin: 0 auto; padding: 80px 20px; }
@media (max-width: 768px) { .page-wrapper { padding: 60px 15px; } .btn-consultar { padding: 12px 16px; font-size: 0.95rem; } .tabla-cuotas th:nth-child(4), .tabla-cuotas td:nth-child(4) { width: 98px; } .tabla-cuotas th, .tabla-cuotas td { padding: 5px 3px; } .btn-cuota-pagar { min-width: 80px; padding: 6px 8px; font-size: 0.76rem; } .cuotas-total-row { grid-template-columns: 1fr; } .btn-pagar-todo { width: 100%; min-width: 0; } }
.app-modal { display: none; position: fixed; z-index: 99998; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); align-items: flex-start; justify-content: center; padding-top: 64px; }
.app-modal-content { width: min(900px, 95vw); max-height: 85vh; background: #ffffff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); border: 1px solid #e2e8f0; overflow: auto; }
.app-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; }
.app-modal-close { background: transparent; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #334155; }
#sociosModalBody { padding: 10px; }
@media (max-width: 768px) { .app-modal { padding-top: 24px; align-items: center; } .app-modal-content { width: 92vw; max-height: 80vh; border-radius: 12px; } .app-modal-header { padding: 10px 12px; } }
.btn-descargar { background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 8px 10px; font-size: 0.8rem; font-weight: 200; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
.btn-descargar:hover { background: var(--primary-dark); }
.btn-descargar:active { transform: scale(0.97); }

.btn-recibo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: white;
  padding: 6px 15px;
  border-radius: 10px;
  font-weight: 400;
  text-decoration: none;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
  margin-top: 5px;
}

.btn-recibo:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
  color: white;
}

.btn-recibo:active {
  transform: translateY(0);
}

.btn-recibo i {
  font-size: 1.1rem;
}

/* Nuevos estilos */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border-left-color: #ffffff;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mejoras visuales adicionales */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100000;
}
.toast {
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.3s forwards;
}
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
.toast.info { background: #3b82f6; }
@keyframes slideIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-20px); }
}
.pago-card{
text-align:center;
}
.checkout-card{
    max-width:420px;
    margin:0 auto;
    text-align:center;
    background:white;
    border-radius:16px;
    padding:30px 25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    animation:fadeInUp .4s ease;
}
.checkout-card{
    animation:fadeInUp .5s ease;
}

.checkout-icon{
    font-size:38px;
    color:#0a9396;
    margin-bottom:10px;
}

.checkout-card h3{
    margin:10px 0;
    font-size:1.5rem;
    color:#1e293b;
}

.checkout-text{
    color:#555;
    margin-bottom:20px;
    font-size:0.95rem;
}

.checkout-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#009ee3;
    color:white;
    padding:14px 22px;
    border-radius:12px;
    font-weight:600;
    text-decoration:none;
    transition:0.25s;
}

.checkout-actions a:hover{
    background:#0077b6;
    transform:translateY(-2px);
}

.checkout-info{
    margin-top:15px;
    font-size:0.85rem;
    color:#777;
}

.btn-volver{
    margin-top:18px;
    background:#f1f5f9;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-size:0.9rem;
}

.btn-volver:hover{
    background:#e2e8f0;
}

@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}


.checkout-loading{
    max-width:420px;
    margin:0px auto;
    text-align:center;
    padding:40px 20px;
    background:white;
    border-radius:16px;
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
    animation:fadeInUp .4s ease;
}

.checkout-loading h3{
    margin-top:20px;
    font-size:1.2rem;
    color:#1e293b;
}

.checkout-loading p{
    font-size:0.9rem;
    color:#64748b;
}

.bank-spinner{
    width:60px;
    height:60px;
    border-radius:50%;
    border:4px solid #e2e8f0;
    border-top-color:#0a9396;
    margin:auto;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{ transform:rotate(360deg); }
}

@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
.checkout-card{
    animation:fadeInUp .5s ease;
}

.checkout-loading{
    max-width:420px;
    margin:10px auto;
    text-align:center;
    padding:40px 30px;
    background:white;
    border-radius:18px;
    box-shadow:0 20px 45px rgba(0,0,0,0.08);
    animation:fadeInUp .4s ease;
}

.secure-icon{
    font-size:32px;
    color:#0a9396;
    margin-bottom:10px;
}

.card-animation{
    font-size:42px;
    color:#334155;
    margin:10px 0 20px;
    animation:cardMove 1.2s ease-in-out infinite alternate;
}

.checkout-loading h3{
    font-size:1.2rem;
    margin-bottom:6px;
    color:#1e293b;
}

.checkout-loading p{
    font-size:0.9rem;
    color:#64748b;
    margin-bottom:20px;
}

/* barra progreso */

.progress-bar{
    width:100%;
    height:6px;
    background:#e2e8f0;
    border-radius:20px;
    overflow:hidden;
}

.progress-fill{
    width:40%;
    height:100%;
    background:#0a9396;
    animation:progressMove 1.5s infinite;
}

/* seguridad */

.secure-text{
    margin-top:14px;
    font-size:0.8rem;
    color:#64748b;
}

/* animaciones */

@keyframes progressMove{
    0%{transform:translateX(-100%)}
    100%{transform:translateX(250%)}
}

@keyframes cardMove{
    from{
        transform:translateY(0px);
    }
    to{
        transform:translateY(-6px);
    }
}

@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
.checkout-success{
  text-align:center;
  padding:40px;
  animation:fadeInUp .4s ease;
}

.success-check{
  font-size:52px;
  color:#2ecc71;
  margin-bottom:10px;
  animation:popCheck .35s ease;
}

@keyframes popCheck{
  0%{transform:scale(.5);opacity:0;}
  100%{transform:scale(1);opacity:1;}
}

.mp-logo{
  text-align:center;
  margin-bottom:18px;
}

.mp-logo img{
  width:160px;
  max-width:100%;
  display:block;
  margin:0 auto;
}
