/* ============================================================
   Cotizador público + panel de cliente — identidad Papelito Cargo
   Negro #111111 · Amarillo #FFC107/#FFD700 · Blanco · WhatsApp #25D366
   Complementa app.css (reutiliza .card, .btn, .alert).
   ============================================================ */
:root {
    --cz-primario: #FFC107;
    --cz-primario-fuerte: #FFD700;
    --cz-primario-osc: #E0A800;
    --cz-negro: #111111;
    --cz-negro-header: #0A0A0A;
    --cz-wa: #25D366;
    --cz-wa-osc: #1EBE57;
    --cz-ok: #16a34a;
    --cz-warn: #d97706;
    --cz-danger: #dc2626;
    --cz-texto: #111111;
    --cz-suave: #5b6472;
    --cz-borde: #e2e8f0;
    --cz-fondo: #f5f6f8;
    --cz-link: #9a7b00;
}

.cz-wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.cz-wide { max-width: 1000px; }

/* ===== Header negro corporativo ===== */
.cz-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 16px; background: var(--cz-negro-header);
    position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.cz-header .cz-logo { display: flex; align-items: center; }
.cz-header .cz-logo img { height: 42px; width: auto; max-width: 210px; object-fit: contain; border-radius: 6px; }
.cz-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cz-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: #e8e8e8; font-weight: 600; font-size: 14px; }
.cz-nav a.activo, .cz-nav a:hover { color: var(--cz-primario-fuerte); background: rgba(255,255,255,.06); }
.cz-acts { display: flex; align-items: center; gap: 10px; }
.cz-acts .cz-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--cz-primario-fuerte); color: var(--cz-negro-header);
    font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 10px; text-decoration: none;
}
.cz-acts .cz-cta:hover, .cz-acts .cz-cta.activo { background: var(--cz-primario); color: var(--cz-negro-header); }
.cz-acts .cz-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--cz-wa); color: #fff; font-weight: 700; font-size: 14px;
    padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.cz-acts .cz-wa:hover { background: var(--cz-wa-osc); color: #fff; }
@media (max-width: 720px) {
    .cz-nav { display: none; }
    .cz-acts .cz-wa span { display: none; }
    .cz-acts .cz-wa { padding: 9px 12px; }
    .cz-acts .cz-cta { padding: 9px 14px; }
}

/* ===== Fondos de marca (montaña + camiones) ===== */
.cz-gate, .cz-cotbg {
    min-height: calc(100vh - 60px);
    background:
        linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.35) 40%, rgba(10,10,10,.55)),
        url('../img/public/brand/hero-camion-papelito.jpg') center / cover no-repeat fixed;
    padding: 26px 0 40px;
}
.cz-gate-wrap { max-width: 560px; }
.cz-gate-msg {
    background: rgba(17,17,17,.88); color: #fff; border-left: 5px solid var(--cz-primario);
    border-radius: 12px; padding: 14px 16px; margin: 0 auto 16px; max-width: 560px;
    display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55;
}
.cz-gate-msg .cz-gate-icon { font-size: 26px; line-height: 1; }
.cz-gate-msg p { margin: 0; }

/* ===== Tarjetas y secciones ===== */
.cz-card { background: #fff; border: 1px solid var(--cz-borde); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cz-card h2 { font-size: 19px; margin: 0 0 4px; color: var(--cz-texto); }
.cz-card h3 { font-size: 15px; margin: 18px 0 8px; color: var(--cz-texto); }
.cz-sub { color: var(--cz-suave); font-size: 14px; margin: 0 0 14px; }
.cz-hero { text-align: center; padding: 10px 16px 18px; }
.cz-hero h1 { font-size: 30px; margin: 0 0 6px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.cz-hero p { color: #f3f4f6; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.cz-auth { max-width: 520px; margin: 0 auto; }

/* ===== Pestañas registro / login ===== */
.cz-tabs { display: flex; gap: 6px; background: var(--cz-fondo); border-radius: 12px; padding: 5px; margin-bottom: 16px; }
.cz-tab { flex: 1; border: none; background: transparent; color: var(--cz-suave); font-weight: 700; font-size: 14px; padding: 10px 8px; border-radius: 9px; cursor: pointer; }
.cz-tab.act { background: var(--cz-negro); color: var(--cz-primario-fuerte); }
.cz-tabpane { display: none; }
.cz-tabpane.act { display: block; animation: czFade .3s ease; }
.cz-tablink { border: none; background: none; padding: 0; color: var(--cz-link); font: inherit; font-weight: 700; cursor: pointer; }
@keyframes czFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Formulario ===== */
.cz-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cz-grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cz-grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .cz-grid-2 { grid-template-columns: 1fr 1fr; } .cz-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.cz-field label { display: block; font-size: 13px; font-weight: 700; color: var(--cz-texto); margin-bottom: 5px; }
.cz-field input, .cz-field select, .cz-field textarea {
    width: 100%; padding: 11px 12px; border: 1px solid var(--cz-borde); border-radius: 10px;
    font-size: 15px; background: #fff; color: var(--cz-texto); box-sizing: border-box;
}
.cz-field input:focus, .cz-field select:focus, .cz-field textarea:focus { outline: none; border-color: var(--cz-primario); box-shadow: 0 0 0 3px rgba(255,193,7,.22); }
.cz-field .cz-hint { font-size: 12px; color: var(--cz-suave); margin-top: 4px; }
.cz-req { color: var(--cz-danger); }
.cz-inputgroup { display: flex; align-items: stretch; }
.cz-inputgroup .cz-prefix {
    display: flex; align-items: center; padding: 0 12px; font-weight: 800; color: var(--cz-texto);
    background: var(--cz-fondo); border: 1px solid var(--cz-borde); border-right: none;
    border-radius: 10px 0 0 10px; font-size: 15px;
}
.cz-inputgroup input { border-radius: 0 10px 10px 0 !important; }
.cz-inputgroup .cz-eye {
    display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--cz-borde); border-left: none;
    background: var(--cz-fondo); color: var(--cz-suave); border-radius: 0 10px 10px 0; cursor: pointer;
}
.cz-gen { border: none; background: none; padding: 0; color: var(--cz-link); font-weight: 700; font-size: 12px; cursor: pointer; text-decoration: underline; }

/* ===== Botones (los primarios siempre amarillos) ===== */
.cz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 13px 18px; border: none; border-radius: 10px; background: var(--cz-primario); color: var(--cz-negro);
    font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.cz-btn:hover { background: var(--cz-primario-osc); color: var(--cz-negro); }
.cz-btn.sec { background: #fff; color: var(--cz-negro); border: 1.5px solid var(--cz-borde); }
.cz-btn.sec:hover { background: var(--cz-fondo); }
.cz-btn.ok { background: var(--cz-ok); color: #fff; } .cz-btn.danger { background: var(--cz-danger); color: #fff; }
.cz-btn.ghost { background: transparent; color: #3d4450; border: 1.5px solid var(--cz-borde); }
.cz-btn.ghost:hover { background: var(--cz-fondo); }
.cz-btn.cz-wa-btn { background: var(--cz-wa); color: #fff; width: auto; margin: 6px auto 0; }
.cz-btn.cz-wa-btn:hover { background: var(--cz-wa-osc); color: #fff; }
.cz-btn.sm { width: auto; padding: 8px 14px; font-size: 13px; }
.cz-btn[disabled] { opacity: .6; cursor: not-allowed; }
.cz-btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.cz-btn.is-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(17,17,17,.35); border-top-color: var(--cz-negro); border-radius: 50%; animation: czSpin .7s linear infinite; }
@keyframes czSpin { to { transform: rotate(360deg); } }
.cz-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cz-actions .cz-btn { width: auto; flex: 1; min-width: 140px; }

/* ===== Wizard de cotización (StepIndicator del mockup) ===== */
.cz-wiz { max-width: 660px; margin: 0 auto; }
.cz-step { display: none; }
.cz-step.act { display: block; animation: czFade .3s ease; }
.cz-step h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 14px; }
.cz-step .cz-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cz-primario); font-size: 15px; flex: 0 0 auto; }
.cz-steperr { color: var(--cz-danger); font-size: 13px; font-weight: 700; margin: 12px 0 0; }
.cz-stepbar { display: flex; align-items: flex-start; justify-content: space-between; list-style: none; margin: 4px 0 24px; padding: 0; }
.cz-stepbar li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cz-stepbar li + li::before { content: ''; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--cz-borde); z-index: 0; }
.cz-stepbar li.act::before, .cz-stepbar li.hecho::before { background: var(--cz-primario); }
.cz-stepbar .cz-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--cz-borde); color: var(--cz-suave); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; transition: all .25s ease; }
.cz-stepbar li.act .cz-dot { background: var(--cz-primario); border-color: var(--cz-primario); color: var(--cz-negro); box-shadow: 0 0 0 5px rgba(255,193,7,.25); }
.cz-stepbar li.hecho .cz-dot { background: var(--cz-negro); border-color: var(--cz-negro); color: var(--cz-primario-fuerte); }
.cz-stepbar .cz-lbl { font-size: 12px; font-weight: 700; color: var(--cz-suave); text-align: center; }
.cz-stepbar li.act .cz-lbl { color: var(--cz-link); }
.cz-stepbar li.hecho .cz-lbl { color: var(--cz-texto); }
.cz-wizfoot { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--cz-borde); flex-wrap: wrap; }
.cz-wizfoot .cz-btn { width: auto; min-width: 150px; flex: 0 1 auto; }
.cz-wizfoot .cz-spacer { flex: 1; }
.cz-wizfoot .cz-wback { visibility: hidden; }
.cz-summary { background: #FFFBEA; border: 1px solid #FFE082; border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: 14px; }
.cz-summary .cz-sum-title { font-weight: 800; color: var(--cz-texto); margin-bottom: 6px; }
.cz-summary div { margin: 3px 0; color: #3d4450; }

/* ===== Precio / resumen ===== */
.cz-price { text-align: center; padding: 18px; border-radius: 14px; background: #FFFBEA; border: 1px solid #FFE082; }
.cz-price .cz-amount { font-size: 38px; font-weight: 800; color: var(--cz-negro); line-height: 1.1; }
.cz-price .cz-label { font-size: 13px; color: var(--cz-suave); text-transform: uppercase; letter-spacing: .04em; }
.cz-price .cz-note { font-size: 12px; color: var(--cz-suave); margin-top: 6px; }

/* ===== Insignias de estado ===== */
.cz-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cz-badge.gris { background: #e2e8f0; color: #475569; }
.cz-badge.azul { background: #fff3c4; color: #8a6d00; }
.cz-badge.amarillo { background: var(--cz-primario); color: var(--cz-negro); }
.cz-badge.rojo { background: #fee2e2; color: #b91c1c; }
.cz-badge.verde { background: #dcfce7; color: #15803d; }

/* ===== Lista de cotizaciones ===== */
.cz-list { display: flex; flex-direction: column; gap: 10px; }
.cz-item { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px; border: 1px solid var(--cz-borde); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; }
.cz-item:hover { border-color: var(--cz-primario); box-shadow: 0 4px 14px rgba(255,193,7,.25); }
.cz-item .cz-code { font-weight: 800; color: var(--cz-texto); }
.cz-item .cz-route { font-size: 13px; color: var(--cz-suave); }
.cz-item .cz-amt { font-weight: 800; color: var(--cz-negro); white-space: nowrap; }

/* ===== Detalle ===== */
.cz-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.cz-kv dt { color: var(--cz-suave); font-weight: 600; }
.cz-kv dd { margin: 0; color: var(--cz-texto); font-weight: 600; }
.cz-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cz-steps li { position: relative; padding: 0 0 18px 28px; border-left: 2px solid var(--cz-borde); }
.cz-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.cz-steps li::before { content: ''; position: absolute; left: -8px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; }
.cz-steps li.hecho::before { background: var(--cz-ok); }
.cz-steps li.actual::before { background: var(--cz-primario); box-shadow: 0 0 0 4px rgba(255,193,7,.25); }
.cz-steps .cz-st-title { font-weight: 700; color: var(--cz-texto); font-size: 14px; }
.cz-steps .cz-st-sub { font-size: 12px; color: var(--cz-suave); }

.cz-paydata { background: var(--cz-fondo); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.cz-paydata div { font-size: 14px; margin-bottom: 6px; }
.cz-paydata b { color: var(--cz-texto); }
.cz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cz-table th, .cz-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--cz-borde); }
.cz-table th { color: var(--cz-suave); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.cz-table tr:hover td { background: #FFFBEA; }
.cz-empty { text-align: center; color: var(--cz-suave); padding: 30px 16px; }
.cz-muted { color: var(--cz-suave); font-size: 13px; }
.cz-mt { margin-top: 14px; } .cz-mb { margin-bottom: 14px; }
.cz-center { text-align: center; }
.cz-link { color: var(--cz-link); font-weight: 700; text-decoration: none; }
.cz-link:hover { text-decoration: underline; }
.cz-thumb { max-width: 120px; max-height: 120px; border-radius: 8px; border: 1px solid var(--cz-borde); object-fit: cover; }
.cz-flash { margin-bottom: 14px; }
