/* Cuenta · ventana rediseñada: lista de opciones sin tarjetas; en móvil ocupa toda la pantalla */
.panel-cuenta { padding-top: 0 !important; padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)); display: block; }
.panel-cuenta .cv-top { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 4px; padding: calc(10px + var(--dn-sat, env(safe-area-inset-top, 0px))) 10px 10px; background: var(--superficie); border-bottom: 1px solid var(--linea-suave); }
.panel-cuenta .cv-top h2 { margin: 0; text-align: center; font: 600 17px var(--f-titulo); color: var(--text-main); }
.cv-atras, .cv-cerrar { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; color: var(--text-main); cursor: pointer; font-size: 26px; line-height: 1; }
.cv-atras.vacio { pointer-events: none; }
.cv-atras:hover, .cv-cerrar:hover { background: var(--azul-suave); }
.cv-atras svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-cuerpo { padding: 14px 18px 8px; }
.cv-aviso { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--azul-suave); color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.cv-aviso.bien { background: var(--ok-bg); color: var(--ok); }
.cv-id { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 0 18px; border: 0; border-bottom: 1px solid var(--linea-suave); background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.cv-id.estatico { cursor: default; }
.cv-id-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cv-id-txt b { font: 600 17px var(--f-titulo); color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-id-txt small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuenta-avatar.enorme { width: 64px; height: 64px; flex-basis: 64px; font-size: 26px; }
.cuenta-avatar.con-foto { padding: 0; overflow: hidden; background: var(--azul-suave); }
.cuenta-avatar.con-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-lista { list-style: none; margin: 0; padding: 0; }
.cv-lista li + li { border-top: 1px solid var(--linea-suave); }
.cv-fila { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 2px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.cv-fila:active { background: var(--azul-suave); }
.cv-ico { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: var(--azul); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cv-ico.cv-der { stroke: var(--text-3); width: 18px; height: 18px; flex-basis: 18px; }
.cv-fila-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cv-fila-txt b { font: 600 15px var(--f-cuerpo); color: var(--text-main); }
.cv-fila-txt b em { margin-left: 6px; font: 600 10.5px var(--f-cuerpo); font-style: normal; color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }
.cv-fila-txt small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-sec { margin: 22px 0 8px; font: 600 12px var(--f-cuerpo); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cv-ayuda { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.cv-link { border: 0; background: none; padding: 6px 0; color: var(--azul); font: 600 13px var(--f-cuerpo); cursor: pointer; }
.cv-prefijo { display: flex; align-items: center; margin-top: 4px; }
.cv-prefijo i { font-style: normal; padding: 0 8px 0 12px; color: var(--text-3); }
.cv-prefijo input { margin-top: 0 !important; }
.cv-foto { display: flex; align-items: center; gap: 16px; padding: 6px 0 12px; }
.cv-foto > div { display: grid; gap: 4px; justify-items: start; }
.cv-foto small { color: var(--text-3); font-size: 12px; }
.cv-foto-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.cv-foto-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--azul); }
.cv-foto-cam svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg-btn.sec { background: transparent; color: var(--azul); border: 1px solid var(--azul-borde, var(--linea)); }
.cv-sesiones { list-style: none; margin: 0 0 8px; padding: 0; }
.cv-sesiones li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--linea-suave); }
.cv-plan { padding: 2px 0 12px; }
.cv-plan small { color: var(--text-3); font: 600 11px var(--f-cuerpo); letter-spacing: .06em; }
.cv-plan h3 { margin: 2px 0 4px; font: 700 22px var(--f-titulo); color: var(--text-main); }
.cv-plan p { margin: 0 0 4px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.panel-cuenta .cuenta-logout { margin: 22px 0 0; }
.panel-cuenta.cv-entra .cv-cuerpo { animation: cv-sub .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cv-sub { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes cv-ventana { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
    .panel-cuenta { width: 100% !important; max-width: none; left: 0; border-left: 0; box-shadow: none; z-index: 330; padding-top: 0 !important; }
    .panel-cuenta:not(.oculto) { animation: cv-ventana .34s cubic-bezier(.2, .8, .2, 1) both !important; }
    .cuenta-drawer-overlay { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .panel-cuenta:not(.oculto), .panel-cuenta.cv-entra .cv-cuerpo { animation: none !important; } }

/* Botones: principal (relleno) y secundario (contorno) */
.panel-cuenta .seg-btn { padding: 11px 18px; }
.panel-cuenta .seg-btn:not(.sec) { background: var(--azul-oscuro, #1E3A5F); border-color: var(--azul-oscuro, #1E3A5F); color: #fff; }
.panel-cuenta .seg-btn:not(.sec):hover:not(:disabled) { background: var(--azul, #2563EB); border-color: var(--azul, #2563EB); }
.panel-cuenta .seg-btn.sec { background: transparent; color: var(--azul); border-color: var(--azul-borde, var(--linea)); }
.panel-cuenta .seg-btn.sec:hover:not(:disabled) { background: var(--azul-suave); }
.cv-botones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cv-correo { margin: 0 0 14px; }
.cv-correo-et { display: block; margin-bottom: 4px; font: 600 12.5px var(--f-cuerpo); color: var(--text-2); }
.cv-correo-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 10px; }
.cv-correo-fila span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-main); font-size: 14px; }
.cv-correo-flujo { margin-top: 10px; padding-top: 4px; }

/* Editor de recorte de la foto de perfil */
.cv-recorte { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .72); }
.cv-rec-caja { width: min(100%, 360px); padding: 20px 18px 16px; border-radius: 18px; background: var(--superficie, #fff); text-align: center; display: grid; gap: 12px; justify-items: center; }
.cv-rec-caja h3 { margin: 0; font: 600 17px var(--f-titulo); color: var(--text-main); }
.cv-rec-caja p { margin: 0; font-size: 12.5px; color: var(--text-3); }
.cv-rec-vista { position: relative; overflow: hidden; border-radius: 50%; background: #e2e8f0; touch-action: none; cursor: grab; box-shadow: 0 0 0 3px var(--azul, #2563eb); }
.cv-rec-vista:active { cursor: grabbing; }
.cv-rec-vista img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.cv-rec-zoom { width: 100%; accent-color: var(--azul, #2563eb); }
.cv-rec-caja .cv-botones { justify-content: center; }
.cv-foto-alias { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text-2, #475569); }
