/* =============================================
   COTIZADOR DE DIVORCIO HGC v4
   Azul corporativo: #1a5fa8
   ============================================= */

.hgc5-app {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    max-width: 640px;
    margin: 0 auto 48px;
}

.hgc5-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

/* ── BARRA DE PROGRESO ── */
.hgc5-strip {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 16px 24px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.hgc5-ps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 14px 14px;
    position: relative;
    opacity: .4;
}

.hgc5-ps.hgc5-active { opacity: 1; }
.hgc5-ps.hgc5-done   { opacity: .75; }

.hgc5-ps + .hgc5-ps::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 0; height: 2px;
    background: #1a5fa8;
}

.hgc5-ps.hgc5-done + .hgc5-ps::before { width: 100%; }

.hgc5-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #dde3ef;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hgc5-ps.hgc5-active .hgc5-dot {
    background: #1a5fa8;
    color: #fff;
}

.hgc5-ps.hgc5-done .hgc5-dot {
    background: #1a5fa8;
    color: #fff;
}

.hgc5-ps span:last-child {
    font-size: 11px;
    color: #555;
    font-weight: 600;
}

/* ── TARJETA ── */
.hgc5-card {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    overflow: hidden;
}

/* ── ENCABEZADO ── */
.hgc5-hdr {
    padding: 28px 36px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.hgc5-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.35;
}

.hgc5-desc {
    font-size: .88rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ── OPCIONES ── */
.hgc5-opts {
    padding: 20px 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hgc5-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbfd;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: .93rem;
    color: #1a1a2e;
    transition: border-color .18s, background .18s;
}

.hgc5-opt:hover { border-color: #2d9e6b; background: #e6f7f0; color: #1a1a2e; }
.hgc5-opt:hover span:last-child { color: #fff; }
.hgc5-opt:hover { background: #2d9e6b; border-color: #2d9e6b; color: #fff; }
.hgc5-opt.hgc5-sel { border-color: #1a5fa8; background: #e8f0fb; color: #1a1a2e; }

.hgc5-chk {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: border-color .18s, background .18s;
}

.hgc5-opt.hgc5-sel .hgc5-chk {
    background: #1a5fa8;
    border-color: #1a5fa8;
}

.hgc5-nota {
    margin: 0 36px 16px;
    font-size: .8rem;
    color: #888;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 3px solid #dde3ef;
}

/* ── NAVEGACIÓN ── */
.hgc5-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 36px 20px;
    border-top: 1px solid #f3f4f6;
}

.hgc5-bk {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #1a5fa8;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
}

.hgc5-bk svg { width: 16px; height: 16px; }

.hgc5-btn-next {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ccc;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: .93rem;
    font-weight: 700;
    cursor: not-allowed;
    transition: background .18s;
    pointer-events: none;
}

.hgc5-btn-next.hgc5-show {
    background: #1a5fa8;
    cursor: pointer;
    pointer-events: auto;
}

.hgc5-btn-next svg { width: 16px; height: 16px; }

/* ── STEPPER NUMÉRICO ── */
.hgc5-num-wrap {
    padding: 28px 36px;
    text-align: center;
}

.hgc5-num-lbl { font-weight: 600; font-size: .9rem; color: #555; margin: 0 0 16px; }

.hgc5-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid #dde3ef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hgc5-st {
    width: 44px; height: 44px;
    background: #f8fafc;
    border: none;
    font-size: 20px;
    cursor: pointer;
    font-family: inherit;
    color: #1a5fa8;
    font-weight: 700;
    transition: background .15s;
}

.hgc5-st:hover { background: #e8f0fb; }

.hgc5-sv {
    width: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    border-left: 1px solid #dde3ef;
    border-right: 1px solid #dde3ef;
    line-height: 44px;
}

/* ── FORMULARIO DE CONTACTO ── */
.hgc5-campos { padding: 20px 36px 0; }

.hgc5-campo { margin-bottom: 16px; }

.hgc5-campo label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.hgc5-campo input,
.hgc5-campo textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: .93rem;
    color: #1a1a2e;
    outline: none;
    transition: border-color .18s;
    box-sizing: border-box;
}

.hgc5-campo input:focus,
.hgc5-campo textarea:focus { border-color: #1a5fa8; }

.hgc5-campo textarea { resize: vertical; min-height: 70px; }

.hgc5-chars { font-size: 11px; color: #aaa; text-align: right; margin-top: 4px; }

.hgc5-sep { border: none; border-top: 1px solid #e5e7eb; margin: 20px 0 10px; }
.hgc5-sep-lbl { font-size: .84rem; font-weight: 700; color: #374151; margin: 0 0 14px; }

.hgc5-req { color: #ef4444; }
.hgc5-opc { color: #aaa; font-weight: 400; font-size: .8rem; }
.hgc5-err { font-size: .78rem; color: #ef4444; display: block; margin-top: 4px; }

.hgc5-canales {
    display: flex;
    gap: 10px;
}

.hgc5-canal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    transition: border-color .18s, background .18s;
}

.hgc5-canal:hover { border-color: #1a5fa8; }
.hgc5-canal.hgc5-checked { border-color: #1a5fa8; background: #e8f0fb; color: #1a5fa8; }
.hgc5-canal input { display: none; }

/* ── BOTÓN COMPLETO ── */
.hgc5-btn-full {
    display: block;
    width: calc(100% - 72px);
    margin: 0 36px 16px;
    background: #1a5fa8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
}

.hgc5-btn-full:hover { background: #144d8a; }
.hgc5-btn-full:disabled { background: #9db8d8; cursor: not-allowed; }

.hgc5-aviso {
    text-align: center;
    font-size: .75rem;
    color: #aaa;
    padding: 0 36px 20px;
    margin: 0;
}

/* ── CONFIRMACIÓN ── */
.hgc5-confirmacion {
    text-align: center;
    padding: 48px 40px;
    border-radius: 12px;
}

.hgc5-conf-ico { font-size: 3rem; margin-bottom: 12px; }

.hgc5-confirmacion h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.hgc5-conf-tipo {
    font-size: .9rem;
    color: #666;
    margin: 0 0 10px;
}

.hgc5-conf-badge {
    display: inline-block;
    background: #e8f0fb;
    color: #1a5fa8;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hgc5-conf-msg {
    font-size: .93rem;
    color: #444;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 12px;
}

.hgc5-conf-urgente {
    font-size: .85rem;
    color: #888;
    margin: 0 0 14px;
}

/* ── BOTÓN WHATSAPP ── */
.hgc5-btn-wa {
    display: inline-block;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    transition: background .18s;
}

.hgc5-btn-wa:hover { background: #1ebe5d; color: #fff; }

/* ── ERROR ── */
.hgc5-error { text-align: center; padding: 40px 36px; color: #b00; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .hgc5-hdr, .hgc5-opts, .hgc5-nav, .hgc5-campos { padding-left: 20px; padding-right: 20px; }
    .hgc5-nota { margin-left: 20px; margin-right: 20px; }
    .hgc5-btn-full { width: calc(100% - 40px); margin-left: 20px; margin-right: 20px; }
    .hgc5-strip { gap: 0; padding: 14px 8px 0; }
    .hgc5-ps { padding: 0 8px 12px; }
    .hgc5-confirmacion { padding: 36px 24px; }
}
