/* Perfil breve: estilos aislados de los formularios del CRM y del portal. */
#aviv_profile_form{--profile-blue:#3ae7cf;--profile-ink:#f1f6ff;--profile-muted:#b3c5e8;text-align:left;color:var(--profile-ink);color-scheme:dark}
#aviv_profile_form .profile-section{padding:22px 0;border-bottom:1px solid rgba(168,193,241,.18)}
#aviv_profile_form .profile-section:first-child{padding-top:8px}
#aviv_profile_form .profile-section h3{display:flex;align-items:center;gap:10px;margin:0 0 17px;font-size:20px;line-height:1.3;letter-spacing:-.3px}
#aviv_profile_form .profile-section h3>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:rgba(58,231,207,.12);color:#77f2df;font-size:13px;letter-spacing:0}
#aviv_profile_form .profile-field{display:block;min-width:0;margin:15px 0 0;padding:0;border:0}
#aviv_profile_form .profile-field>label,#aviv_profile_form .profile-field>legend{display:block;width:100%;padding:0;margin:0 0 8px;font-size:14px;line-height:1.5;font-weight:650;color:var(--profile-ink)}
#aviv_profile_form .profile-field>.winp{margin-top:8px}
#aviv_profile_form .profile-hint{display:block;margin:7px 0 0;font-size:12px;line-height:1.55;color:var(--profile-muted)}
#aviv_profile_form .profile-choices{display:flex;flex-wrap:wrap;gap:8px}
#aviv_profile_form .profile-choice,#aviv_profile_form .profile-zero{appearance:none;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid rgba(177,202,249,.28);border-radius:12px;background:rgba(120,154,231,.07);color:#e9f1ff;font:inherit;font-size:13px;line-height:1.4;font-weight:600;text-align:center;white-space:normal;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
#aviv_profile_form .profile-choice:hover,#aviv_profile_form .profile-zero:hover{border-color:rgba(58,231,207,.65);background:rgba(58,231,207,.08)}
#aviv_profile_form .profile-choice[aria-pressed="true"],#aviv_profile_form .profile-zero[aria-pressed="true"]{border-color:var(--profile-blue);background:rgba(58,231,207,.15);color:#fff;box-shadow:inset 0 0 0 1px rgba(58,231,207,.35)}
#aviv_profile_form .profile-choice:focus-visible,#aviv_profile_form .profile-zero:focus-visible,#aviv_profile_form summary:focus-visible{outline:3px solid #3ae7cf;outline-offset:3px}
#aviv_profile_form .profile-amount{display:flex;align-items:stretch;gap:8px}
#aviv_profile_form .profile-amount .winp{flex:1;min-width:0;width:0;margin:0}
#aviv_profile_form .profile-zero{flex:0 0 auto;max-width:38%;color:#b9eee8}
#aviv_profile_form .profile-prefill{padding:14px 16px;border:1px solid rgba(58,231,207,.3);border-radius:15px;background:rgba(58,231,207,.07)}
#aviv_profile_form .profile-prefill>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer}
#aviv_profile_form .profile-prefill>summary::-webkit-details-marker{display:none}
#aviv_profile_form .profile-prefill summary small{display:block;margin-bottom:4px;color:#a8d8db;font-size:11px;font-weight:600}
#aviv_profile_form .profile-prefill summary strong{display:block;font-size:14px;line-height:1.6;font-weight:700}
#aviv_profile_form .profile-edit{flex:0 0 auto;color:#78f4df;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
#aviv_profile_form .profile-prefill[open]>summary{padding-bottom:6px}
#aviv_profile_form .profile-optional{padding:14px 0;border-bottom:1px solid rgba(168,193,241,.18)}
#aviv_profile_form .profile-optional>summary{padding:4px 0;color:#c1d4f4;font-size:13px;line-height:1.5;font-weight:650;cursor:pointer}
#aviv_profile_form .profile-optional h4{margin:18px 0 0;font-size:14px}
#aviv_profile_form [hidden]{display:none!important}
@media(max-width:480px){#aviv_profile_form .profile-section{padding:19px 0}#aviv_profile_form .profile-section h3{font-size:18px}#aviv_profile_form .profile-choice{flex:1 1 calc(50% - 8px);font-size:12px;padding:10px 11px}#aviv_profile_form .profile-prefill{padding:12px}#aviv_profile_form .profile-prefill summary strong{font-size:13px}#aviv_profile_form .profile-amount .winp{padding-right:9px;padding-left:12px}}
@media(prefers-reduced-motion:reduce){#aviv_profile_form .profile-choice,#aviv_profile_form .profile-zero{transition:none}}

/* Referencias y saldo: mismo acabado que las tarjetas originales de actividad. */
#aviv_profile_form .profile-reference{margin:12px 0;border:1px solid rgba(184,205,248,.22);border-radius:18px;background:rgba(255,255,255,.035);overflow:hidden}
#aviv_profile_form .profile-reference>summary{display:flex;align-items:center;gap:13px;min-height:76px;padding:16px 18px;list-style:none;cursor:pointer;color:#fff}
#aviv_profile_form .profile-reference>summary::-webkit-details-marker{display:none}
#aviv_profile_form .profile-reference-icon{font-size:24px}
#aviv_profile_form .profile-reference>summary>span:nth-child(2){min-width:0;flex:1}
#aviv_profile_form .profile-reference summary small{display:block;margin-bottom:4px;font-size:12px;color:#b3c5e8}
#aviv_profile_form .profile-reference summary strong{display:block;font-size:16px;line-height:1.45;overflow-wrap:anywhere}
#aviv_profile_form .profile-reference-arrow{color:#3ae7cf;font-size:23px;transition:transform .15s}
#aviv_profile_form .profile-reference[open] .profile-reference-arrow{transform:rotate(45deg)}
#aviv_profile_form .profile-reference-body{padding:0 18px 20px}
#aviv_profile_form .profile-choice{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex:1 1 calc(50% - 8px);min-height:70px;border:2px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.055);padding:18px;font-size:16px;font-weight:750;color:#fff}
#aviv_profile_form .profile-choice>span{font-size:22px}
#aviv_profile_form .profile-choice[aria-pressed="true"]{border-color:#3ae7cf;background:rgba(58,231,207,.12);box-shadow:0 12px 28px -17px rgba(58,231,207,.6)}
#aviv_profile_form .winp{min-height:64px;border:2px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.055);padding:14px 16px;color:#fff;font-size:17px;font-weight:650;letter-spacing:-.3px}
#aviv_profile_form .winp:focus{border-color:#3ae7cf;background:rgba(58,231,207,.08);box-shadow:0 12px 28px -17px rgba(58,231,207,.6)}
#aviv_profile_form input[type=number]{appearance:textfield;-moz-appearance:textfield}
#aviv_profile_form input[type=number]::-webkit-inner-spin-button,#aviv_profile_form input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#aviv_profile_form .profile-debts .profile-choice:first-child::before{content:'💳';font-size:22px}
#aviv_profile_form .profile-debts .profile-choice:last-child::before{content:'✓';font-size:22px;color:#3ae7cf}
@media(max-width:480px){#aviv_profile_form .profile-reference-body{padding:0 12px 16px}#aviv_profile_form .profile-choice{min-height:68px;font-size:14px;padding:14px 11px;gap:8px}#aviv_profile_form .profile-choices{gap:8px}#aviv_profile_form .profile-reference>summary{padding:14px}}

/* Solicitud en tres pasos, con la misma paleta del formulario. */
#wiz{overflow:clip}
#wiz .wdata-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#wiz .wdata-wide{grid-column:1/-1}
#wiz .wdata-grid label,#wiz .wdata-label{display:block;font-size:14px;font-weight:650;line-height:1.5;color:#e1ebff}
#wiz .wdata-grid .winp,#wiz #f_ingreso{font-size:17px;padding:14px 16px;border-radius:14px;margin-top:8px;width:100%;min-width:0}
#wiz .wdata-section{padding:21px 0;border-bottom:1px solid rgba(145,174,235,.2)}
#wiz .wdata-section h3{font-size:18px;color:#fff;margin-bottom:16px}
#wiz .wdata-section>label{font-size:14px;font-weight:650;color:#e1ebff}
#wiz .wdata-section .wamt{font-size:42px;line-height:1.3;margin:8px 0;text-align:left}
#wiz .wdata-label{margin:20px 0 10px}
#wiz [data-choice] .wchip{font-size:14px;padding:13px 14px;min-height:46px;justify-content:center}
#wiz .wterm-chips{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
#wiz .wquote{border:1px solid rgba(58,231,207,.3);background:rgba(58,231,207,.06);border-radius:16px;padding:14px;margin-top:18px}
#wiz .wquote summary{font-size:14px;line-height:1.6;color:#dceaff;cursor:pointer}
#wiz .wquote summary b{color:#3ae7cf;font-size:20px}
#wiz .wquote summary>span{display:block;color:#9eb8e7;font-size:12px;margin-top:2px}
#wiz .wquote p{font-size:12px;color:#b3c5e8;line-height:1.6;margin-top:10px}
#wiz .wquote .wkvs{margin-top:12px;gap:9px}
#wiz .wquote .wkv{min-width:0}#wiz .wquote .wkv b{font-size:13px;overflow-wrap:anywhere}
#wiz .wphoto-panel{border:1px solid rgba(141,170,231,.35);background:rgba(59,110,246,.07);border-radius:18px;padding:16px;margin:16px 0 22px}
#wiz .wphoto-panel>summary{font-size:15px;font-weight:750;color:#8ceadf;cursor:pointer;line-height:1.6}
#wiz .wphoto-panel h3{font-size:20px;color:#fff;margin:16px 0 8px}
#wiz .wphoto-panel .wcons{margin-top:16px}
#wiz .wdoc-note a{color:#6eebd8;text-decoration:underline}
/* La ayuda acompaña el contenido: nunca flota encima de los campos. */
#wiz .whelp{display:flex;align-items:flex-start;gap:12px;margin:16px 0 24px;color:#dbe8ff}
#wiz .whelp>img{width:52px;height:58px;object-fit:contain;flex:0 0 52px;margin-top:9px}
#wiz .whelp-bubble{position:relative;flex:1;min-width:0;padding:14px 17px;border:1px solid rgba(58,231,207,.3);border-radius:6px 19px 19px 19px;background:rgba(58,231,207,.065);font-size:13px;line-height:1.6}
#wiz .whelp-bubble>b{display:block;font-size:13px;color:#77eddb}
#wiz .whelp-bubble p{margin:4px 0 0}
#wiz .whelp-bubble details{margin-top:8px}
#wiz .whelp-bubble summary{font-weight:650;color:#f0f7ff;cursor:pointer}
#wiz .whelp-bubble a{display:inline-block;margin-top:8px;font-size:12px;color:#77eddb;text-decoration:underline;text-underline-offset:3px}
#wiz .whelp-bubble summary:focus-visible{outline:2px solid #3ae7cf;outline-offset:4px;border-radius:4px}
body:has(#wiz.open) #chatfab,body:has(#wiz.open) #chatp{display:none}
@media(max-width:480px){#wiz .whelp{gap:9px;margin-bottom:19px}#wiz .whelp>img{width:40px;height:48px;flex-basis:40px}#wiz .whelp-bubble{padding:12px;font-size:12px}}
@media(max-width:480px){#wiz .wdata-grid{grid-template-columns:1fr;gap:14px}#wiz .wterm-chips{grid-template-columns:repeat(3,minmax(0,1fr))}#wiz [data-choice="ocupacion"]{grid-template-columns:1fr 1fr;gap:8px}#wiz [data-choice="ocupacion"] .wchip{font-size:12px;padding:12px 8px}#wiz .wphoto-panel{padding:13px}#wiz .wquote .wkvs{grid-template-columns:1fr}}

/* Todas las respuestas conservan el acabado de las tarjetas originales. */
#wiz [data-choice] .wchip{border-radius:18px;border-width:2px;min-height:70px;background:rgba(255,255,255,.055);font-size:16px;font-weight:750;gap:12px;justify-content:flex-start;padding:18px}
#wiz [data-choice] .wchip.on{border-color:#3ae7cf;background:rgba(58,231,207,.12);box-shadow:0 12px 28px -17px rgba(58,231,207,.6)}
#wiz .wterm-chips{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#wiz .wterm-chips .wchip{flex-direction:column;gap:2px;justify-content:center;padding:13px}
#wiz .wterm-chips .wchip b{font-size:24px;line-height:1.2}#wiz .wterm-chips .wchip span{font-size:12px;opacity:.8}
#wiz .wdata-grid .winp,#wiz #f_ingreso{border:2px solid rgba(255,255,255,.16);border-radius:18px;min-height:64px;background:rgba(255,255,255,.055);font-weight:650;color:white}
#wiz .wdata-grid .winp:focus,#wiz #f_ingreso:focus{border-color:#3ae7cf;background:rgba(58,231,207,.08);box-shadow:0 12px 28px -17px rgba(58,231,207,.6)}
#wiz input[type=number]{appearance:textfield;-moz-appearance:textfield}
#wiz input[type=number]::-webkit-inner-spin-button,#wiz input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#wiz .wdata-section .wamt{border:2px solid rgba(58,231,207,.6);border-radius:18px;background:rgba(58,231,207,.08);background-clip:border-box;-webkit-background-clip:border-box;-webkit-text-fill-color:#fff;padding:15px 20px;color:#fff}
@media(max-width:480px){#wiz [data-choice="ocupacion"] .wchip{min-height:68px;font-size:14px;padding:14px 11px;gap:7px}#wiz .wterm-chips{gap:9px}#wiz .wterm-chips .wchip{min-height:70px}}
