/* pacStepper.css
   Panel de pasos (stepper) + selector de tipo de identificacion + modal de
   confirmacion, compartido por las paginas publicas del flujo PAC:
   solicitarInicioPacDia.php, solicitarPacDia.php, solicitarSeleccionar.php,
   solicitarPacEia.php. Antes duplicado como <style>/<script> inline en cada
   una (mismo patron que motivo separar docform.css/docform.js). */

.step-shell{
    background:#fff;
    border:1px solid #e3e6ea;
    border-radius:14px;
    box-shadow:0 1px 3px rgba(20,24,32,.05);
}
.step-panel{ padding:22px 26px 26px; }

.step-eyebrow{
    font-size:11px;
    font-weight:700;
    color:#9aa1ab;
    text-transform:uppercase;
    letter-spacing:.05em;
    margin:0 0 14px;
}

.stepper{ display:flex; align-items:flex-start; margin-bottom:26px; }
.step{ display:flex; flex-direction:column; align-items:center; gap:8px; flex:0 0 auto; width:120px; }
.step .dot{
    width:34px; height:34px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:14px; font-weight:700;
    flex:0 0 auto;
    background:#fff; color:#94a3b8; border:2px solid #cbd5e1;
}
.step .label{ font-size:12.5px; text-align:center; line-height:1.3; color:#94a3b8; font-weight:600; }

.step.active .dot{ background:#0F69B4; color:#fff; border:none; box-shadow:0 0 0 4px #E7F1FF; }
.step.active .label{ color:#0f172a; font-weight:700; }

.step.done .dot{ background:#22c55e; color:#fff; border:none; }
.step.done .label{ color:#15803d; font-weight:700; }

.connector{ flex:1 1 auto; height:1px; background:#cbd5e1; margin:17px 10px 0; }
.connector.done{ background:#22c55e; }

.prompt{
    font-size:13px; font-weight:700; color:#0F69B4;
    text-transform:uppercase; letter-spacing:.03em; margin:0 0 4px;
}
.prompt-sub{ font-size:13.5px; color:#68707c; margin:0 0 18px; 
padding-bottom: 15px;
}

.options{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.opt-card{
    position:relative;
    display:flex; align-items:flex-start; gap:14px;
    padding:18px;
    border:1px solid transparent;
    border-radius:12px;
    background:var(--opt-accent, #0F69B4);
    cursor:pointer;
    overflow:hidden;
    font-family:inherit;
    text-align:left;
    width:100%;
    /* mantiene la tarjeta en su propia capa de composicion siempre (no solo
       en :hover) para que el navegador no la "ascienda/baje" de capa al
       agregar el transform del hover -- eso es lo que causaba el parpadeo/
       recorte raro en la esquina redondeada justo al pasar el mouse. */
    transform:translateZ(0);
    transition:box-shadow .15s ease, transform .15s ease, filter .15s ease;
}
.opt-card:hover{
    box-shadow:0 6px 18px rgba(20,24,32,.22);
    transform:translateY(-1px) translateZ(0);
    filter:brightness(1.05);
    /* re-afirma el color de fondo/texto correctos en :hover -- sin esto,
       algo del sitio (mismo caso ya visto en button:hover) pisa el color
       de cualquier <button> al pasar el mouse. */
    background:var(--opt-accent, #0F69B4) !important;
    color:#fff !important;
}

.opt-icon{
    width:44px; height:44px; border-radius:11px;
    background:rgba(255,255,255,.18);
    color:#fff;
    display:flex; align-items:center; justify-content:center;
    flex:0 0 auto; position:relative; z-index:1;
}
.opt-icon svg{ width:22px; height:22px; }

.opt-body{ min-width:0; position:relative; z-index:1; }
.opt-body h3{ font-size:14.5px !important;
    font-weight:700 !important; color:#fff !important; margin:0 0 4px !important;
    border-bottom: 0px !important; padding-bottom: 0px !important;
}
.opt-body p{ font-size:12.5px; color:rgba(255,255,255,.82); margin:0 0 10px; line-height:1.4; }
.opt-cta{ padding-top: 15px; display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:700; color:#fff; }
.opt-cta svg{ width:14px; height:14px; }

.cu-watermark{
    position:absolute; right:-28px; bottom:-28px;
    width:150px; height:150px;
    color:#fff;
    opacity:.14; pointer-events:none; transform:rotate(-18deg);
}
.cu-watermark svg{ width:100%; height:100%; }

.opt-card.opt-natural{ --opt-accent:#1f5fa8; }
.opt-card.opt-grupo{ --opt-accent:#0d8f8a; }
.opt-card.opt-juridica{ --opt-accent:#c07a1f; }

@media (max-width:900px){
    .options{ grid-template-columns:1fr; }
    .stepper .label{ display:none; }
    /* Sin label, el .step ya no necesita su ancho fijo de 120px -- dejarlo
       forzaba un hueco enorme entre los 3 circulos en mobile (cada .step
       ocupaba 120px solo para centrar un dot de 34px). Con width:auto el
       dot ocupa su tamano real y los .connector (flex:1 1 auto) reparten
       el espacio sobrante en partes iguales entre los 3 puntos. */
    .step{ width:auto; }
}

/* ===== Base compartida de los popups pequenos y centrados del flujo PAC:
   aviso FECU, confirmacion antes de navegar y errores de validacion. ===== */
.modal-backdrop-custom{position:fixed;inset:0;background:rgba(20,22,28,.45);display:none;align-items:center;justify-content:center;z-index:9999;padding:16px;}
.modal-backdrop-custom.show{display:flex;}
.modal-box{background:#fff;color:#1f2937;width:400px;max-width:100%;border-radius:16px;box-shadow:0 24px 60px rgba(15,20,28,.28);padding:28px 30px 26px;text-align:center;font-family:inherit;}
.modal-box h2{font-size:16.5px;font-weight:700;margin:0 0 10px;color:#1f2937;}
.modal-box p.desc{font-size:13.5px;color:#68707c;line-height:1.55;margin:0 0 4px;}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 26px;border-radius:9px;font-size:13.5px;font-weight:700;border:1px solid transparent;cursor:pointer;font-family:inherit;}
.btn-primary{background:#0F69B4;color:#fff;}
.btn-primary:hover{background:#0b5694;color:#fff;}
.btn-ghost{background:#fff;border-color:#e3e6ea;color:#68707c;}
.btn-ghost:hover{background:#eef0f3;color:#68707c;}
.btn-row{display:flex;gap:10px;}
.btn-row .btn{flex:1;}

/* ---- Aviso informativo (FECU / errores de validacion): icono "i" ambar +
   texto, mismo lenguaje visual que .pac-aviso-importante del formulario. ---- */
.info-notice{display:flex;gap:12px;text-align:left;background:#fdf6e6;border:1px solid #f0dfb0;border-radius:12px;padding:16px 18px;margin-bottom:22px;}
.info-notice .icon{width:24px;height:24px;border-radius:50%;background:#b7791f;color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:14px;font-weight:800;}
.info-notice p{margin:0;font-size:13.5px;line-height:1.55;color:#6b4f14;}
.info-notice b{font-weight:700; font-size:13.5px !important;}
.info-notice ul{margin:6px 0 0;padding-left:18px;}
.info-notice li{margin:0 0 4px;}
.info-notice li:last-child{margin-bottom:0;}

/* ---- Confirmacion de solicitud (antes de navegar a identificarse) ---- */
.confirm-icon{width:52px;height:52px;border-radius:50%;background:#fdf6e6;color:#b7791f;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;}
.confirm-icon svg{width:26px;height:26px;}

.confirm-tag{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#0F69B4;background:#E7F1FF;padding:5px 12px;border-radius:999px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:14px;}
.confirm-tag svg{width:12px;height:12px;}

.project-card{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e3e6ea;border-radius:10px;padding:12px 14px;margin:14px 0 18px;text-align:left;}
.project-card .icon{width:30px;height:30px;border-radius:8px;background:#fff;color:#0F69B4;display:flex;align-items:center;justify-content:center;flex:0 0 auto;box-shadow:0 1px 2px rgba(20,24,32,.06);}
.project-card .icon svg{width:15px;height:15px;}
.project-card .name{font-size:13.5px;font-weight:700;color:#1f2937;line-height:1.3;}

.confirm-question{font-size:13.5px;font-weight:600;color:#1f2937;margin:0 0 20px;}
