/* 1. FUENTES */
@font-face {
    font-family: 'EPM_SANS_BT';
    src: url('551a94f445143a0a633c.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 2. CONFIGURACIÓN BASE (EDEQ) */
body {
    font-family: 'EPM_SANS_BT', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* 3. FUENTE POPPINS PARA EL FLUJO DE PAGO */
.payment-font-poppins, 
.payment-font-poppins *,
.responsive-container,
.responsive-container * {
    font-family: 'Poppins', sans-serif !important;
}

/* 4. ELEMENTOS DE CABECERA */
.header-img { width: 100%; height: auto; display: block; }
.logo-img { width: 120px; margin: 20px 0; }
.logo-small { width: 70px; margin-bottom: 10px; }

/* 5. TABS E INICIO */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 25px; }
.tab {
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid #00abc8;
    background: transparent;
    transition: 0.3s;
}
.tab.active { color: #00abc8; }
.tab.cyan { background-color: #00abc8; color: white; }
.title { color: #00abc8; font-size: 1.3rem; margin: 20px 0; font-weight: bold; }

/* 6. RESULTADOS FACTURA */
.invoice-card {
    background: #f8f9fa;
    border-radius: 12px;
    text-align: left;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    margin: 0 auto 20px;
    border: 1px solid #eee;
}
.card-header { display: flex; justify-content: space-between; border-bottom: 1px solid #ddd; padding-bottom: 15px; margin-bottom: 15px; }
.check-icon { background: #28a745; color: white; border-radius: 50%; padding: 3px 8px; font-size: 0.9rem; }
.total-bar { border: 2px solid #000; border-radius: 10px; display: flex; justify-content: space-between; padding: 18px 25px; width: 90%; max-width: 500px; margin: 25px auto; font-size: 1.3rem; font-weight: bold; }
.actions { display: flex; justify-content: center; gap: 15px; }

/* 7. PASARELA RESPONSIVE (POPPINS) */
.responsive-container {
    width: 90%;
    max-width: 450px;
    margin: 40px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.card-inner { padding: 30px; }
.header-pay { background: #1a1a1a; color: white; padding: 35px 25px; text-align: center; margin: -30px -30px 30px -30px; }
.pay-title { font-size: 0.85rem; font-weight: bold; margin: 0; }
.pay-subtitle { font-size: 0.75rem; color: #aaa; margin: 5px 0 15px; }
.total-amount { font-size: 2rem; font-weight: 800; margin: 5px 0; }

/* 8. INPUTS Y FORMULARIOS PASARELA */
.section-label { font-size: 0.9rem; font-weight: bold; margin-bottom: 20px; display: block; text-align: left; }
.input-row { display: flex; gap: 12px; margin-bottom: 18px; }

.input-box {
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    text-align: left;
    background: #fafafa;
    transition: border-color 0.3s;
}
.input-box:focus-within { border-color: #00abc8; }
.input-box small { display: block; font-size: 0.7rem; color: #999; margin-bottom: 5px; }
.input-box input { border: none; outline: none; width: 100%; font-size: 1rem; background: transparent; color: #333; }

/* Grupos específicos */
.input-box.prefix { flex: 0.4; background: #f0f0f0; }
.input-box.phone { flex: 1; }
.phone-input-group { display: flex; align-items: center; gap: 10px; }
.country-code { font-size: 0.9rem; font-weight: bold; }

/* 9. BOTONES */
.button-container { display: flex; justify-content: center; width: 100%; margin-top: 10px; }
.btn-black { width: 100%; max-width: 300px; background: #000; color: #fff; border: none; padding: 18px; border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-black:hover { background: #333; }

.btn-blue-pay { width: 100%; max-width: 340px; background: #0033a0; color: #fff; padding: 18px; border-radius: 35px; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-blue-pay:hover { background: #002270; }

.btn-outline-blue { border: 2px solid #00abc8; background: transparent; color: #00abc8; padding: 12px; border-radius: 25px; font-weight: bold; cursor: pointer; width: 100%; max-width: 250px; }

/* 10. OPCIONES DE PAGO (PSE / TARJETAS) */
.methods-title { font-weight: bold; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 10px; text-align: left; }
.method-card {
    display: flex;
    align-items: center;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.3s;
    text-align: left;
}
.method-card:hover { border-color: #00abc8; background: #f9fdff; transform: translateY(-2px); }
.method-icon { font-size: 2rem; margin-right: 18px; display: flex; align-items: center; }
.method-icon img { width: 40px; height: auto; }
.method-info strong { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.method-info small { color: #888; font-size: 0.85rem; }

/* 11. FORMULARIO TARJETA FINAL */
.resumen-box { background: #f0f7ff; border: 1px solid #cce3ff; border-radius: 12px; padding: 20px; margin-bottom: 25px; text-align: left; }
.resumen-box p { margin: 5px 0; font-size: 0.9rem; }
.amount-large { font-size: 1.6rem; font-weight: bold; color: #0033a0; margin: 8px 0; }

.input-rounded, .select-rounded {
    width: 100%;
    padding: 15px 20px;
    border: 1.5px solid #ddd;
    border-radius: 35px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 12px;
    font-size: 1rem;
}
.grid-card { display: grid; grid-template-cols: 1fr 1fr 1fr; gap: 10px; }

/* 12. OTROS ELEMENTOS */
.secured-by { text-align: center; margin-top: 20px; color: #999; font-size: 0.8rem; }
.qr-img { width: 180px; height: auto; border: 1px solid #eee; padding: 10px; border-radius: 10px; }

/* 13. RESPONSIVE */
@media (max-width: 600px) {
    .responsive-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    .card-inner { padding: 25px; }
    .btn-black, .btn-blue-pay { max-width: 100%; }
    .total-bar, .invoice-card { width: 95%; }
}


/* ESTILO ESPECÍFICO PARA INPUT NIU */
.input-group {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ccc; /* Línea gris de la imagen */
    margin: 0 auto 25px;
    padding: 10px 5px;
    width: 100%;
    max-width: 350px;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: #00abc8; /* Cambia a cian al hacer foco */
}

.icon {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #888;
    display: flex;
    align-items: center;
}

#niu-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
    color: #333;
    background: transparent;
    font-family: 'EPM_SANS_BT', sans-serif;
}

#niu-input::placeholder {
    color: #aaa;
    font-size: 0.95rem;
}

.btn-submit {
    background-color: #00abc8;
    color: white;
    border: none;
    padding: 14px 0;
    width: 200px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: 'EPM_SANS_BT';
}

.card-brands {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}

.card-brands img {
    height: 25px; /* Tamaño discreto profesional */
    width: auto;
    filter: grayscale(20%); /* Opcional: un toque sutil de gris para que no distraiga */
    opacity: 0.8;
}