/* ========== H5 话费充值（秘鲁西班牙语界面） ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
    --cyan: #29d7e6;
    --blue: #1f6fd6;
    --navy: #0a2152;
}
html, body { height: 100%; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #071a44;
    color: #14213d;
}
.page {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(120% 70% at 50% -10%, #1b4ea0 0%, #0f3377 38%, #0a2152 70%, #07183e 100%);
    padding: 18px 18px 34px;
    overflow: hidden;
}

/* 背景红白飘带 */
.bg-decor { position: absolute; right: -60px; top: -40px; width: 100%; height: 460px; pointer-events: none; opacity: .92; }
.bg-decor svg { width: 100%; height: 100%; }
.cinta-roja  { fill: #d81f2a; opacity: .85; filter: blur(.3px); }
.cinta-blanca{ fill: #f4f6fb; opacity: .8; }

/* 顶部区域 */
.hero { position: relative; z-index: 2; text-align: center; }
.link-mis {
    position: absolute; top: 2px; right: 18px; z-index: 6;
    color: #cfe0ff; font-size: 12px; text-decoration: none;
    background: rgba(255,255,255,.1); padding: 5px 11px; border-radius: 20px;
}

/* 运营商卡片 */
.operadores { display: flex; justify-content: center; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.op-card {
    width: 76px; height: 78px; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s;
    box-shadow: 0 6px 16px rgba(0,0,0,.28); user-select: none;
}
.op-card:active { transform: scale(.95); }
.op-card .op-logo { width: 34px; height: 34px; display: flex; }
.op-card .op-logo svg { width: 100%; height: 100%; }
.op-card .op-name { font-size: 12.5px; font-weight: 700; letter-spacing: .2px; }
.op-card.claro    { background: linear-gradient(180deg,#f0353c,#d81118); color: #fff; }
.op-card.movistar { background: #fff; color: #14213d; }
.op-card.entel    { background: linear-gradient(180deg,#25b555,#11923c); color: #fff; }
.op-card.bitel    { background: #fff; color: #14213d; }
.op-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41,215,230,.35), 0 8px 20px rgba(0,0,0,.3); }

/* 促销标题 */
.promo-sub { color: #eaf1ff; font-size: 15px; font-weight: 600; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.promo-title { font-size: clamp(34px, 9.5vw, 46px); line-height: 1.12; color: #fff; font-weight: 800; letter-spacing: -1px; text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.promo-title .cyan { color: var(--cyan); }

/* 充值白色卡片 */
.card-recarga {
    position: relative; z-index: 2;
    margin-top: 20px;
    background: rgba(255,255,255,.97);
    border-radius: 22px;
    padding: 22px 18px 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.campo { margin-bottom: 16px; }
.campo > label { display: block; font-size: 15px; font-weight: 800; margin-bottom: 9px; color: #1b2440; }

.input-phone {
    display: flex; align-items: center;
    border: 2px solid #e3e8f2; border-radius: 14px; background: #f6f8fc;
    overflow: hidden; transition: border-color .15s;
}
.input-phone:focus-within { border-color: var(--blue); }
.input-phone.err { border-color: #e5484d; background: #fff6f6; }
.field.err input { border-color: #e5484d; }
.input-phone .prefix { padding: 0 14px; font-weight: 700; color: #5b6b8c; border-right: 1px solid #e0e6f0; }
.input-phone input {
    flex: 1; border: none; background: transparent; outline: none;
    padding: 16px 14px; font-size: 17px; color: #14213d;
}

/* 套餐档位 */
.planes { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.plan-chip {
    flex: 0 0 auto; border: 2px solid #e3e8f2; border-radius: 14px;
    padding: 10px 16px; text-align: center; cursor: pointer; background: #f6f8fc; min-width: 92px;
}
.plan-chip:active { transform: scale(.96); }
.plan-chip .p-pago { font-size: 13px; color: #6b7894; font-weight: 700; }
.plan-chip .p-rec { font-size: 17px; color: var(--blue); font-weight: 800; margin-top: 2px; }
.plan-chip .p-tag { font-size: 10.5px; color: #0aa9b8; margin-top: 2px; font-weight: 700; }
.plan-chip.selected { border-color: var(--cyan); background: #effdff; box-shadow: 0 4px 12px rgba(41,215,230,.25); }
.plan-chip.selected .p-rec { color: #08b7c7; }

/* 支付方式 */
.metodos { display: flex; gap: 12px; }
.metodo {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 2px solid #e3e8f2; border-radius: 14px; padding: 14px 10px; cursor: pointer;
    background: #f6f8fc; min-height: 62px;
}
.metodo:active { transform: scale(.97); }
.metodo .m-logo { width: 34px; height: 34px; flex: 0 0 34px; }
.metodo .m-logo svg { width: 100%; height: 100%; }
.metodo .m-name { font-size: 20px; font-weight: 800; color: #1f6fd6; }
.metodo.selected { border-color: var(--cyan); background: #effdff; box-shadow: 0 4px 12px rgba(41,215,230,.25); }
.metodo.disabled { opacity: .45; cursor: not-allowed; }
.metodo.disabled .m-name { font-size: 12px; color: #9aa6bd; }

/* 金额汇总 */
.montos { background: #f3f6fc; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.monto-fila { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; }
.monto-fila span { font-size: 16px; color: #2b3655; font-weight: 700; }
.monto-fila b { font-size: 22px; }
.monto-fila .pagar { color: #1b2440; }
.monto-fila .recibir { color: var(--cyan); font-size: 26px; text-shadow: 0 1px 6px rgba(41,215,230,.35); }

/* 主按钮 */
.btn-pagar {
    width: 100%; border: none; border-radius: 17px; padding: 19px;
    background: linear-gradient(180deg, #3b9bff 0%, #1f6fd6 55%, #185cba 100%);
    color: #fff; font-size: 22px; font-weight: 800; cursor: pointer;
    box-shadow: 0 12px 26px rgba(31,111,214,.45), inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .12s;
}
.btn-pagar:active { transform: scale(.98); }
.btn-pagar:disabled { opacity: .6; }

/* 条款 */
.terminos { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 15px; font-size: 14px; color: #556280; cursor: pointer; }
.terminos a { color: var(--blue); text-decoration: none; font-weight: 600; }
.terminos input { display: none; }
.terminos .box {
    width: 20px; height: 20px; border-radius: 6px; border: 2px solid #b9c4da;
    display: inline-flex; align-items: center; justify-content: center; background: #fff; flex: 0 0 20px;
}
.terminos input:checked + .box { background: var(--blue); border-color: var(--blue); }
.terminos input:checked + .box::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-1px); }

/* 底部 Detalles */
.btn-detalles {
    position: relative; z-index: 2;
    margin-top: 20px; display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.97); border-radius: 40px; padding: 12px 18px 12px 14px;
    text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.3);
    border: 2px solid rgba(80,140,255,.55);
}
.btn-detalles .ico-auris {
    width: 44px; height: 44px; border-radius: 50%; background: #e8f1ff;
    display: flex; align-items: center; justify-content: center;
}
.btn-detalles .det-text { flex: 1; font-size: 21px; font-weight: 800; color: var(--blue); }
.btn-detalles .det-arrow { font-size: 30px; color: var(--blue); font-weight: 700; }

.loading-mini { color: #8fa0c0; font-size: 13px; padding: 10px; width: 100%; text-align: center; }

/* 遮罩 / Toast */
.mask { position: fixed; inset: 0; background: rgba(6,18,48,.68); z-index: 50; display: none; align-items: center; justify-content: center; }
.mask.show { display: flex; }
.mask-box { background: #fff; border-radius: 18px; padding: 30px 34px; text-align: center; }
.mask-box p { margin-top: 14px; font-weight: 700; color: #2b3655; }
.spinner {
    width: 42px; height: 42px; margin: 0 auto;
    border: 4px solid #dce7fa; border-top-color: var(--blue); border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
    position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%) translateY(20px);
    background: rgba(20,33,61,.94); color: #fff; padding: 11px 20px; border-radius: 24px;
    font-size: 14px; z-index: 60; opacity: 0; pointer-events: none; transition: all .25s; max-width: 86%;
    text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 内页通用（登录/注册/订单/结果） ============ */
.page-simple {
    max-width: 480px; margin: 0 auto; min-height: 100vh;
    background: radial-gradient(120% 60% at 50% -10%, #1b4ea0 0%, #0a2152 70%, #07183e 100%);
    padding: 30px 20px 40px;
}
.auth-card, .simple-card {
    background: #fff; border-radius: 20px; padding: 26px 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.simple-title { color: #fff; text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.simple-sub { color: #b9cdf2; text-align: center; font-size: 13.5px; margin-bottom: 22px; }
.auth-card h2 { font-size: 21px; text-align: center; margin-bottom: 4px; color: #14213d; }
.auth-card .sub { text-align: center; color: #8a97b3; font-size: 13px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #44506e; margin-bottom: 6px; }
.field input {
    width: 100%; border: 2px solid #e3e8f2; border-radius: 12px; padding: 14px;
    font-size: 16px; outline: none; background: #f6f8fc;
}
.field input:focus { border-color: var(--blue); }
.btn-block { width: 100%; border: none; border-radius: 13px; padding: 16px; background: linear-gradient(180deg,#3b9bff,#185cba); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.auth-hint {
    margin-top: 16px; padding: 10px 12px; text-align: center; font-size: 13px;
    color: #4a5776; background: #f2f6ff; border: 1px dashed #c3d4f5; border-radius: 10px;
}
.auth-hint b { color: var(--blue); font-size: 15px; letter-spacing: 1px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; color: #6b7894; }
.auth-foot a { color: var(--blue); font-weight: 700; text-decoration: none; }
.back-home { display: block; text-align: center; color: #b9cdf2; font-size: 13px; margin-top: 18px; text-decoration: none; }

/* 订单列表 */
.order-item { background: #fff; border-radius: 16px; padding: 15px 16px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.order-op { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.order-op .op-dot { width: 12px; height: 12px; border-radius: 4px; }
.order-status { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 20px; color: #fff; }
.s-pendiente { background: #9aa6bd; } .s-pagando { background: #f0a020; }
.s-exitoso { background: #1fa648; } .s-fallido { background: #e8232a; } .s-cancelado { background: #9aa6bd; }
.order-mid { display: flex; justify-content: space-between; color: #556280; font-size: 13.5px; padding: 3px 0; }
.order-mid b { color: #14213d; }
.order-no { font-size: 12px; color: #9aa6bd; margin-top: 6px; word-break: break-all; }
.order-actions { margin-top: 10px; display: flex; gap: 9px; }
.order-actions a, .order-actions button {
    flex: 1; text-align: center; border-radius: 10px; padding: 10px; font-size: 14px; font-weight: 700;
    border: none; cursor: pointer; text-decoration: none;
}
.oa-primary { background: var(--blue); color: #fff; }
.oa-plain { background: #eef2fa; color: #44506e; }

/* 结果页 */
.result-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.result-icon.ok { background: #e8f8ee; }
.result-icon.warn { background: #fff5e2; }
.result-icon.err { background: #fdeaea; }
.result-icon svg { width: 46px; height: 46px; }
.result-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.result-amount { text-align: center; font-size: 30px; font-weight: 800; color: var(--cyan); margin: 8px 0; }
.result-desc { text-align: center; color: #8a97b3; font-size: 13.5px; margin-bottom: 20px; }
.result-rows { background: #f6f8fc; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.result-rows div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: #556280; }
.result-rows b { color: #14213d; }

/* 沙箱收银台 */
.caja-logo { text-align: center; margin-bottom: 8px; }
.caja-logo .m-logo { width: 64px; height: 64px; margin: 0 auto 8px; }
.caja-amount { text-align: center; font-size: 38px; font-weight: 800; color: #14213d; margin: 6px 0 2px; }
.caja-to { text-align: center; color: #8a97b3; font-size: 13.5px; margin-bottom: 18px; }
.caja-steps { background: #f6f8fc; border-radius: 14px; padding: 14px 16px 14px 34px; margin-bottom: 18px; color: #556280; font-size: 13.5px; line-height: 1.9; }
.btn-yape { background: linear-gradient(180deg,#8ed12e,#6fb01c); box-shadow: 0 10px 24px rgba(120,190,40,.4); }
.sandbox-flag { text-align:center; font-size:11.5px; color:#b08a20; background:#fff6e0; border:1px dashed #e8c368; border-radius:10px; padding:8px; margin-bottom:14px; }

.empty { text-align: center; color: #cdd9f2; padding: 60px 20px; }
.empty .big { font-size: 44px; margin-bottom: 10px; }
