/* public.css — Estilos públicos compartidos (portada, registro-red, confirmaciones) */

@keyframes scIn    { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes stepIn  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes orbPulse{ 0%,100%{transform:scale(1);opacity:.95;} 50%{transform:scale(1.06);opacity:1;} }
@keyframes ringOut { 0%{transform:scale(.7);opacity:.4;} 100%{transform:scale(1.6);opacity:0;} }

*,*::before,*::after { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

.cl-portada-body {
    margin:0; min-height:100vh;
    font-family:'Hanken Grotesk', system-ui, sans-serif;
    color:#18283c;
    background:
        radial-gradient(circle at top left, rgba(59,125,216,.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(29,58,95,.10), transparent 36%),
        linear-gradient(180deg,#c5d6e5 0%, #cfddea 46%, #c7d8e6 100%);
    -webkit-font-smoothing:antialiased;
    display:flex; justify-content:center; align-items:flex-start;
}
.cl-portada-body::before { display:none; }

#clApp {
    width:100%; max-width:520px;
    min-height:100vh;
    display:flex; flex-direction:column;
    padding:0;
    background:rgba(219,231,241,.82);
    box-shadow:0 22px 55px rgba(24,40,60,.16);
}

.cl-inner  { width:100%; }
.cl-screen { width:100%; }
.cl-anim   { animation:scIn .45s ease both; }

/* Wizard / Derivación steps */
.wz-step { animation:stepIn .34s cubic-bezier(.22,.61,.36,1) both; display:flex; flex-direction:column; }

.wz-title {
    margin:0 0 10px; font-size:22px; font-weight:600;
    line-height:1.3; letter-spacing:-0.01em; color:#18283c;
}

.wz-label-wrap { display:flex; flex-direction:column; gap:6px; }
.wz-label { font-size:13px; color:#405d77; font-weight:500; }

.wz-input {
    width:100%; height:54px; border-radius:13px;
    background:#e8f0f7; border:1.5px solid #b6ccdf;
    color:#18283c; padding:0 16px; font-size:16px;
    outline:none; font-family:inherit;
    transition:border .18s ease, box-shadow .18s ease;
}
.wz-input:focus { border-color:#3b7dd8; box-shadow:0 0 0 3px rgba(59,125,216,0.10); }
.wz-input::placeholder { color:#6a8ea8; }

.wz-textarea {
    width:100%; min-height:140px; border-radius:13px;
    background:#e8f0f7; border:1.5px solid #b6ccdf; color:#18283c;
    padding:14px 16px; font-size:15px; line-height:1.55;
    outline:none; resize:vertical; font-family:inherit; box-sizing:border-box;
    transition:border .18s ease, box-shadow .18s ease;
}
.wz-textarea:focus { border-color:#3b7dd8; box-shadow:0 0 0 3px rgba(59,125,216,0.10); }
.wz-textarea::placeholder { color:#6a8ea8; }

.wz-btn-continue {
    width:100%; height:52px; border:none; border-radius:13px;
    background:#3b7dd8; color:#fff; font-size:16px; font-weight:700;
    cursor:pointer; transition:background .15s ease, transform .12s ease, box-shadow .15s ease;
    box-shadow:0 12px 28px rgba(59,125,216,.22);
    font-family:inherit; letter-spacing:0.01em;
}
.wz-btn-continue:hover   { background:#16304e; }
.wz-btn-continue:active  { transform:scale(0.985); }
.wz-btn-continue:disabled { background:#b6ccdf; color:#6a8ea8; cursor:not-allowed; }

.cl-ring {
    position:absolute; width:140px; height:140px; border-radius:50%;
    border:1px solid rgba(59,125,216,0.30);
    animation:ringOut 2.6s ease-out infinite;
}

/* Botones de opción (selector visual tipo chip) */
.wz-option {
    display:flex; align-items:center; justify-content:center;
    text-align:center; min-height:48px; padding:9px;
    border-radius:13px; cursor:pointer;
    background:#e8f0f7; border:1.5px solid #b6ccdf;
    color:#18283c; font-family:inherit; font-size:14px; font-weight:600;
    transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.wz-option.is-selected {
    background:#1d3a5f; border-color:#1d3a5f; color:#fff;
}

/* Grid de opciones */
.wz-option-grid {
    display:grid; gap:9px;
}

/* Secciones del formulario */
.cl-form-body    { display:flex; flex-direction:column; gap:18px; }
.cl-form-section { display:flex; flex-direction:column; gap:12px; }
.cl-section-label {
    margin:0; font-size:11px; font-weight:700;
    letter-spacing:0.10em; text-transform:uppercase; color:#6a8ea8;
}

/* Caja de aviso informativo */
.cl-notice {
    padding:14px 15px; border-radius:13px;
    background:#e8f0f7; border:1.5px solid #b6ccdf;
    font-size:13.5px; line-height:1.55; color:#2b4560;
}
.cl-notice p { margin:0; }

/* Mensaje de error / éxito inline */
.cl-msg {
    display:none; margin:0; font-size:13px; line-height:1.45;
    padding:10px 13px; border-radius:10px;
    color:#c04040; background:rgba(192,64,64,0.06); border:1px solid rgba(192,64,64,0.18);
}
.cl-msg.is-ok {
    color:#1d745b; background:rgba(16,185,129,0.08); border-color:rgba(16,185,129,0.18);
}

/* Pantalla de confirmación / éxito */
.cl-success-body {
    padding:60px 28px 40px;
    display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px;
}
.cl-orb-wrap {
    position:relative; width:130px; height:130px;
    display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.cl-orb {
    width:90px; height:90px; border-radius:50%; background:#3b7dd8;
    display:flex; align-items:center; justify-content:center;
    animation:orbPulse 3.4s ease-in-out infinite;
    box-shadow:0 0 40px -6px rgba(59,125,216,0.40);
}
.cl-ring:nth-child(2) { animation-delay:1.3s; }
.cl-orb .icon-ok { font-size:42px; color:#fff; }
.cl-orb--der { background:#1a4f8c; box-shadow:0 0 40px -6px rgba(26,79,140,0.35); }
.cl-success-label { margin:0 0 4px; }
.cl-success-title { margin:0; font-size:25px; line-height:1.25; color:#18283c; font-weight:600; }
.cl-success-desc  { margin:12px 0 0; font-size:14.5px; line-height:1.6; color:#405d77; }
.cl-success-folio { margin:8px 0 0; font-size:13.5px; color:#6a8ea8; }

/* Pantalla de acceso (Gate) */
.cl-gate-body { min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding:40px 28px 56px; gap:8px; }
.cl-logo { width:80px; height:80px; border-radius:50%; background:#1d3a5f; display:flex; align-items:center; justify-content:center; }
.cl-logo [class*="icon-"] { font-size:38px; color:#fff; }
.cl-logo-section { display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px; }
.cl-logo-kicker { margin:0 0 2px; font-size:12px; font-weight:600; letter-spacing:0.16em; color:#6294be; }
.cl-logo-title { margin:0; font-size:24px; font-weight:600; letter-spacing:-0.01em; color:#18283c; }
.cl-gate-input-wrap { margin-top:28px; display:flex; flex-direction:column; gap:12px; }
#clCodigoInput { text-align:center; letter-spacing:0.04em; }
.cl-logged-in-bar { display:flex; justify-content:center; margin-bottom:16px; }
.cl-btn-platform { display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 20px; border-radius:12px; background:#1d3a5f; color:#fff; font-size:14px; font-weight:600; text-decoration:none; font-family:inherit; }
.cl-error-box { background:#e8f0f7; border:1.5px solid #b6ccdf; border-radius:16px; padding:18px 20px; margin-top:16px; }
.cl-error-box-inner { display:flex; gap:10px; align-items:flex-start; }
.cl-error-box-inner [class*="icon-"] { font-size:18px; color:#3b7dd8; flex:none; margin-top:2px; }
.cl-error-msg { margin:0; font-size:14px; line-height:1.55; color:#2b4560; }
.cl-btn-link { margin-top:14px; display:flex; align-items:center; justify-content:center; height:44px; border-radius:12px; border:1.5px solid #9db9d0; color:#1d3a5f; text-decoration:none; font-size:14px; font-weight:600; }

/* Header navy (portada + registro-red) */
.cl-header-navy {
    position:relative; overflow:hidden;
    background:linear-gradient(145deg, rgba(29,58,95,.98), rgba(22,48,78,.98));
    padding:34px 28px 34px;
    border-bottom-left-radius:30px; border-bottom-right-radius:30px;
}
.cl-header-navy::before { content:""; position:absolute; right:-54px; top:-70px; width:210px; height:210px; border-radius:50%; background:rgba(59,125,216,.30); filter:blur(2px); }
.cl-header-navy::after { content:""; position:absolute; left:-80px; bottom:-90px; width:190px; height:190px; border-radius:50%; background:rgba(134,180,208,.18); }
.cl-header-navy > * { position:relative; z-index:1; }
.cl-header-navy--landing { padding-bottom:36px; }
.cl-header-kicker { margin:0 0 4px; font-size:12px; font-weight:600; letter-spacing:0.16em; color:#86b4d0; }
.cl-badge-pill { display:inline-flex; align-items:center; gap:8px; padding:5px 12px; border-radius:999px; background:rgba(59,125,216,0.18); border:1px solid rgba(59,125,216,0.35); margin-bottom:18px; }
.cl-badge-dot { width:6px; height:6px; border-radius:50%; background:#78aadf; }
.cl-badge-label { font-size:12px; font-weight:600; color:#c9def0; letter-spacing:0.03em; }
.cl-header-title { margin:0; font-size:26px; line-height:1.32; font-weight:600; color:#f5faff; letter-spacing:-0.01em; }
.cl-header-desc { margin:12px 0 0; font-size:14px; line-height:1.55; color:#c9def0; }

/* Landing screen */
.cl-landing-body { padding:26px 28px 40px; display:flex; flex-direction:column; gap:22px; }
.cl-badge-wrap { margin-bottom:20px; }
#ldTemas { display:flex; flex-direction:column; gap:10px; }
.cl-benefits-list { display:flex; flex-direction:column; gap:10px; }
.cl-benefit-icon [class*="icon-"] { font-size:19px; color:#3b7dd8; }
.cl-faqs-section { display:flex; flex-direction:column; gap:8px; }
.cl-faqs-section .cl-section-label { margin-bottom:4px; }
#ldFaqs { display:flex; flex-direction:column; gap:8px; }
.cl-testimonial { padding:20px; border-radius:16px; background:#d6e4ef; border-left:3px solid #6294be; }
.cl-testimonial-quote { margin:0 0 10px; font-size:15px; line-height:1.55; color:#2b4560; font-style:italic; }
.cl-testimonial-who { margin:0; font-size:13px; color:#1a4f8c; font-weight:500; }
.cl-benefit-card { display:flex; gap:12px; align-items:flex-start; background:#e8f0f7; border:1px solid #b6ccdf; border-radius:16px; padding:16px; box-shadow:0 8px 22px rgba(24,40,60,.06); }
.cl-benefit-icon { flex:0 0 auto; width:38px; height:38px; border-radius:11px; background:rgba(59,125,216,0.10); display:flex; align-items:center; justify-content:center; }
.cl-benefit-title { font-size:14.5px; font-weight:600; color:#18283c; margin-bottom:2px; }
.cl-benefit-desc { font-size:13px; line-height:1.5; color:#405d77; }
.cl-landing-btns { display:flex; flex-direction:column; gap:10px; padding-top:4px; }
.cl-btn-primary { width:100%; height:54px; border:none; border-radius:13px; background:#3b7dd8; color:#fff; font-size:16px; font-weight:700; cursor:pointer; font-family:inherit; transition:background .15s, transform .12s, box-shadow .15s; box-shadow:0 12px 28px rgba(59,125,216,.22); }
.cl-btn-primary:hover { background:#16304e; }
.cl-btn-secondary { width:100%; height:48px; border-radius:13px; background:transparent; border:1.5px solid #9db9d0; color:#1d3a5f; font-size:15px; font-weight:600; cursor:pointer; font-family:inherit; transition:border-color .15s; }

/* Formulario (registro-red) */
.cl-form-body { padding:26px 28px 44px; }

/* Wizard y Derivación — progress */
.cl-wizard-body { padding:20px 28px 48px; display:flex; flex-direction:column; gap:6px; }
.wz-steps-wrap { padding-top:10px; }
.wz-progress-header { display:flex; align-items:center; gap:14px; margin-bottom:8px; padding-top:6px; }
.wz-btn-back { flex:0 0 auto; background:none; border:none; font-size:14px; font-weight:600; color:#405d77; cursor:pointer; padding:8px 0; font-family:inherit; }
.wz-progress-wrap { flex:1; }
.wz-progress-meta { display:flex; justify-content:space-between; font-size:12px; color:#6a8ea8; margin-bottom:6px; }
.wz-progress-track { height:4px; border-radius:999px; background:#b6ccdf; overflow:hidden; }
.wz-progress-fill { height:100%; border-radius:999px; background:#1d3a5f; transition:width .4s cubic-bezier(.4,0,.2,1); }
.wz-progress-fill.is-der { background:#1a4f8c; }

/* Wizard — slides */
.wz-step-num { margin:0 0 4px; font-size:10.5px; font-weight:700; letter-spacing:0.10em; text-transform:uppercase; color:#6a8ea8; }
.wz-step-desc { margin:0 0 16px; font-size:14px; line-height:1.5; color:#405d77; }
.wz-title--mb { margin-bottom:18px; }
.wz-label--mb { margin:0 0 10px; }
.wz-btn-continue { margin-top:20px; }
.cl-required { color:#3b7dd8; }
.cl-optional { color:#6a8ea8; }
.cl-fields-wrap { display:flex; flex-direction:column; gap:12px; }
.cl-option-list { display:flex; flex-direction:column; gap:8px; }
.cl-option-list--sm { display:flex; flex-direction:column; gap:9px; }
.wz-option-grid--2 { grid-template-columns:repeat(2,1fr); }
.wz-option-grid--3 { grid-template-columns:repeat(3,1fr); }
.wz-option-grid--4 { grid-template-columns:repeat(4,1fr); }
.cl-opt-other-wrap { margin-top:12px; }
.cl-estado-wrap { margin-top:16px; }
.cl-estado-list { display:flex; flex-direction:column; gap:7px; }
.cl-urgencia-list { display:flex; flex-direction:column; gap:9px; margin-top:16px; }
.cl-urg-wrap { margin-top:14px; }
.cl-der-mt { margin-top:16px; }
.wz-textarea--sm { min-height:90px; }
.wz-textarea--md { min-height:100px; }
.cl-email-error { display:none; font-size:12px; color:#c0392b; margin-top:4px; }
.cl-conf-note { display:flex; gap:10px; align-items:center; padding:12px 14px; border-radius:12px; background:rgba(59,125,216,0.06); border:1px solid rgba(59,125,216,0.18); margin-top:12px; }
.cl-conf-note [class*="icon-"] { font-size:16px; color:#3b7dd8; flex:none; }
.cl-conf-note-text { font-size:12.5px; line-height:1.45; color:#405d77; }
.wz-consent-note { margin:0 0 16px; font-size:14.5px; line-height:1.6; color:#2b4560; }

/* Botón consent (checkbox visual) */
.wz-consent-btn { width:100%; display:flex; gap:13px; align-items:flex-start; padding:15px 16px; border-radius:13px; cursor:pointer; background:#e8f0f7; border:1.5px solid #b6ccdf; transition:all .16s ease; font-family:inherit; text-align:left; }
.wz-consent-check { flex:0 0 auto; width:22px; height:22px; border-radius:6px; display:flex; align-items:center; justify-content:center; transition:all .16s ease; background:transparent; border:1.5px solid #9db9d0; }
.wz-consent-check [class*="icon-"] { font-size:13px; color:#fff; }
.wz-consent-text { font-size:13.5px; line-height:1.5; color:#2b4560; }
.wz-btn-submit { margin-top:14px; width:100%; height:52px; border:none; border-radius:13px; font-size:16px; font-weight:600; font-family:inherit; transition:all .16s ease; background:#b6ccdf; color:#6a8ea8; cursor:not-allowed; }
.wz-inline-error { display:none; margin:10px 0 0; font-size:13px; color:#c04040; padding:10px 13px; background:rgba(192,64,64,0.06); border-radius:10px; border:1px solid rgba(192,64,64,0.18); }

/* Derivación — nivel de crisis */
.der-nivel-btn { display:flex; gap:12px; align-items:center; padding:14px 16px; border-radius:13px; cursor:pointer; background:#e8f0f7; border:1.5px solid #b6ccdf; color:#18283c; font-family:inherit; text-align:left; transition:all .15s ease; width:100%; }
.der-nivel-dot { flex:0 0 auto; width:10px; height:10px; border-radius:50%; }
.der-nivel-dot--leve     { background:#4caf50; }
.der-nivel-dot--moderada { background:#d98a3a; }
.der-nivel-dot--severa   { background:#c04040; }
.der-nivel-title { font-size:14.5px; font-weight:600; }
.der-nivel-desc { font-size:12.5px; color:#405d77; margin-top:1px; }

/* Honeypot antispam */
.cl-honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Caja de aviso confirmación */
.cl-success-desc { max-width:320px; }
.cl-notice--confirm { margin-top:24px; max-width:340px; }
.cl-notice a { color:#1a4f8c; text-decoration:none; font-weight:600; }

/* Footer público */
.cl-footer-public { padding:24px 28px 36px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.cl-btn-salir { display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 18px; border-radius:10px; background:transparent; color:#6a8ea8; font-size:13px; font-weight:600; border:1px solid #b6ccdf; cursor:pointer; font-family:inherit; transition:border-color .15s; }
.cl-btn-salir [class*="icon-"] { font-size:14px; }
.cl-footer-copy { text-align:center; }
.cl-footer-copy p { margin:0; font-size:11.5px; color:#6a8ea8; }
.cl-footer-copy p + p { margin-top:4px; }
.cl-footer-copy a { color:#6a8ea8; text-decoration:none; font-weight:600; }
.cl-heart-icon { font-family:'IcoFont'; font-size:10px; color:rgba(192,64,64,.5); }

#clCodigoInput:focus { border-color:#3b7dd8 !important; box-shadow:0 0 0 4px rgba(59,125,216,0.10) !important; }
#clBtnIngresar:active, #ldBtnSolicitar:active { transform:scale(0.985); }

::placeholder { color:#6a8ea8; }
textarea, input { font-family:inherit; }


@media (min-width:760px) {
    .cl-portada-body { padding:28px 0; }
    #clApp { min-height:auto; border-radius:34px; overflow:hidden; }
    .cl-header-navy { border-radius:0 0 30px 30px; }
}
