/* Perfil personal: misma identidad visual de ResponYa, optimizada para escritorio y móvil. */
#profile-page { max-width: 1430px; }
.profile-mobile-actions { display:none; }
.profile-page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:22px; }
.profile-page-heading h1 { margin:0; color:#101a36; font-size:clamp(27px,2.4vw,36px); line-height:1.08; letter-spacing:-.045em; font-weight:850; }
.profile-page-heading p { margin:7px 0 0; color:#71809a; font-size:14px; font-weight:550; }
.profile-settings-shortcut,.business-back-link { display:inline-flex; align-items:center; gap:8px; padding:11px 14px; border:1px solid #e4eaf3; border-radius:13px; background:#fff; color:#53627d; text-decoration:none; font-size:12px; font-weight:750; box-shadow:0 5px 15px rgba(27,46,81,.04); }
.profile-settings-shortcut:hover,.business-back-link:hover { color:#08744f; border-color:#bdebd8; background:#f4fcf8; }
#profile-layout { display:grid; grid-template-columns:minmax(270px,320px) minmax(0,1fr); align-items:start; gap:18px; }
#profile-summary-column,#profile-panels { min-width:0; display:grid; gap:17px; }
.profile-card,.profile-plan-card { overflow:hidden; border:1px solid #e7edf5; border-radius:22px; background:#fff; box-shadow:0 12px 32px rgba(31,55,98,.055); }
#profile-summary-card { position:relative; padding:0 20px 20px; text-align:center; }
.profile-cover-art { position:relative; height:112px; overflow:hidden; margin:0 -20px; background:linear-gradient(115deg,#daf8eb,#f2fcf7 55%,#e3f8ee); }
.profile-cover-art::before,.profile-cover-art::after,.profile-cover-art span { content:""; position:absolute; width:72%; height:145px; border:20px solid rgba(88,218,160,.16); border-radius:50%; transform:rotate(-18deg); }
.profile-cover-art::before { left:-20%; top:-75px; }
.profile-cover-art::after { right:-25%; top:22px; border-color:rgba(16,184,119,.11); }
.profile-cover-art span:nth-child(1) { width:60%; left:-10%; top:22px; border-width:14px; border-color:rgba(255,255,255,.34); }
.profile-cover-art span:nth-child(2) { width:58%; right:-15%; top:-70px; border-width:13px; border-color:rgba(255,255,255,.42); }
.profile-cover-art span:nth-child(3) { width:36%; left:36%; top:74px; border-width:11px; border-color:rgba(46,204,139,.13); }
.profile-identity { position:relative; display:flex; align-items:center; flex-direction:column; margin-top:-57px; }
.profile-avatar-control { position:relative; width:116px; height:116px; display:block; padding:5px; border:0; border-radius:50%; background:#fff; box-shadow:0 9px 24px rgba(6,118,83,.17); cursor:pointer; }
.profile-avatar-control img { width:100%; height:100%; display:block; border-radius:50%; object-fit:cover; background:#07875f; }
.profile-avatar-control > span { position:absolute; right:0; bottom:4px; width:34px; height:34px; display:grid; place-items:center; border:3px solid #fff; border-radius:50%; color:#087c57; background:#fff; box-shadow:0 4px 12px rgba(22,47,82,.12); }
.profile-identity h2 { margin:14px 0 6px; color:#101a36; font-size:24px; line-height:1.15; font-weight:850; letter-spacing:-.035em; }
.profile-role-chip { padding:5px 11px; border:1px solid #c9f0df; border-radius:999px; color:#08744f; background:#edfbf4; font-size:10px; font-weight:850; letter-spacing:.08em; }
.profile-identity p { margin:7px 0 0; color:#78869d; font-size:12px; }
.profile-account-status { display:flex; align-items:center; gap:12px; margin-top:17px; padding:13px 14px; border:1px solid #d7f4e7; border-radius:15px; background:#eefbf5; text-align:left; }
.profile-account-status .status-light { width:12px; height:12px; flex:0 0 12px; border-radius:50%; background:#12b76a; box-shadow:0 0 0 5px rgba(18,183,106,.1); }
.profile-account-status strong,.profile-account-status small { display:block; }
.profile-account-status strong { color:#08744f; font-size:13px; font-weight:800; }
.profile-account-status small { margin-top:2px; color:#718b81; font-size:11px; }
.profile-account-details { display:grid; gap:2px; margin-top:9px; text-align:left; }
.profile-account-details > div { min-width:0; display:flex; align-items:center; gap:11px; padding:11px 2px; border-bottom:1px solid #f0f3f7; }
.profile-account-details > div:last-child { border-bottom:0; }
.profile-detail-icon,.profile-row-icon,.account-panel-icon { display:grid; place-items:center; flex:0 0 auto; border-radius:13px; color:#079768; background:#e9fbf3; }
.profile-detail-icon { width:39px; height:39px; }
.profile-detail-icon.is-blue,.profile-row-icon.is-blue { color:#2167e8; background:#edf4ff; }
.profile-account-details p { min-width:0; flex:1; margin:0; }
.profile-account-details strong,.profile-account-details small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-account-details strong { color:#26334e; font-size:11px; font-weight:750; }
.profile-account-details small { margin-top:3px; color:#8a97ac; font-size:10px; }
.profile-detail-check { width:16px; height:16px; flex:0 0 auto; color:#0da773; }
.profile-plan-card { position:relative; display:grid; grid-template-columns:40px minmax(0,1fr) 36px; align-items:center; gap:7px 11px; padding:17px; border-color:#f4e5bc; background:linear-gradient(135deg,#fffdf6,#fff8e5); }
.profile-plan-crown { width:40px; height:40px; display:grid; place-items:center; border-radius:13px; color:#bf8014; background:#fff0c8; }
.profile-plan-copy small,.profile-plan-copy strong { display:block; }
.profile-plan-copy small { color:#7b8190; font-size:10px; font-weight:650; }
.profile-plan-copy strong { margin-top:2px; color:#26324a; font-size:15px; font-weight:850; text-transform:capitalize; }
.profile-plan-card > a { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; color:#ad7110; background:rgba(255,255,255,.8); }
.profile-plan-card > p { grid-column:2 / -1; margin:0; color:#7c8597; font-size:10px; line-height:1.45; }
#limits-alerts,#limits-container { grid-column:1/-1; }
#limits-alerts > div { padding:10px; border-radius:12px; font-size:10px; }
#limits-container { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#limits-container > div { min-width:0; padding:10px 11px; border-color:rgba(30,50,81,.08); border-radius:12px; color:#25324b; background:#fff !important; }
#limits-container p { margin:0 0 3px; color:#75829a !important; font-size:9px; }
#limits-container p + p { color:#26334e !important; font-size:17px; }
#limits-container span { color:#93a0b2 !important; font-size:11px !important; }
#profile-personal-panel { padding:22px; }
.account-panel-heading,.account-subpanel-heading { display:flex; align-items:center; gap:12px; }
.account-panel-icon { width:42px; height:42px; }
.account-panel-icon.is-purple { color:#7240e7; background:#f2ecff; }
.account-panel-icon.is-rose { color:#e44d63; background:#fff0f1; }
.account-panel-icon.is-blue { color:#2167e8; background:#edf4ff; }
.account-panel-heading h2,.account-subpanel-heading h3 { margin:0; color:#111d3a; font-size:20px; line-height:1.2; font-weight:850; letter-spacing:-.025em; }
.account-panel-heading p,.account-subpanel-heading p { margin:4px 0 0; color:#78869e; font-size:11px; line-height:1.45; }
.profile-personal-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; margin-top:19px; }
.profile-personal-form > .account-subpanel-heading { grid-column:1/-1; padding-bottom:10px; border-bottom:1px solid #eef1f5; }
.account-subpanel-heading .account-panel-icon { width:36px; height:36px; border-radius:11px; }
.account-subpanel-heading h3 { font-size:14px; }
.account-subpanel-heading p { font-size:10px; }
.profile-field { min-width:0; display:flex; flex-direction:column; gap:7px; color:#697791; font-size:10px; font-weight:750; }
.profile-field input,.profile-field select { width:100%; min-width:0; height:42px; padding:0 12px; border:1px solid #dfe6f0; border-radius:11px; outline:0; color:#24314b; background:#f8faff; font-size:12px; font-weight:600; }
.profile-field input:focus,.profile-field select:focus { border-color:#3c82f6; background:#fff; box-shadow:0 0 0 3px rgba(33,103,243,.1); }
.profile-field input[readonly] { color:#63718a; background:#f3f6fb; cursor:default; }
.profile-email-field { grid-column:1/-1; }
.profile-email-row { display:flex; align-items:center; gap:9px; }
.profile-email-row input { flex:1; }
.profile-email-row button { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:0 12px; border:1px solid #e1e7f0; border-radius:11px; color:#293751; background:#fff; font-size:10px; font-weight:750; white-space:nowrap; }
#profile-email-status { display:flex; align-items:center; gap:5px; color:#079768; font-size:10px; font-weight:700; }
#profile-email-status.is-unverified { color:#c27b0e; }
.profile-save-button { min-height:43px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 16px; border:0; border-radius:12px; color:#fff; background:linear-gradient(120deg,#0aa875,#07895f); box-shadow:0 7px 16px rgba(7,151,104,.18); font-size:12px; font-weight:800; }
.profile-save-button:hover { filter:brightness(.97); transform:translateY(-1px); }
.profile-save-button.is-compact { min-height:39px; margin-top:13px; }
#profile-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; align-items:start; }
.account-panel { min-width:0; padding:18px; }
.account-subpanel-heading { margin-bottom:14px; }
.profile-action-row { width:100%; min-height:57px; display:flex; align-items:center; gap:11px; padding:10px; border:1px solid #e9edf4; border-radius:13px; color:#28354f; text-align:left; text-decoration:none; background:#fff; }
.profile-action-row > span:nth-child(2) { min-width:0; flex:1; }
.profile-action-row strong,.profile-action-row small { display:block; }
.profile-action-row strong { font-size:11px; font-weight:800; }
.profile-action-row small { margin-top:3px; color:#8490a5; font-size:9px; font-weight:550; }
.profile-action-row > svg:last-child { color:#8490a5; }
.profile-row-icon { width:35px; height:35px; border-radius:11px; }
.profile-row-icon.is-rose { color:#d64154; background:#fff0f1; }
.profile-action-row.is-danger { color:#cc3348; background:#fff6f6; border-color:#f9e2e4; }
#profile-notifications-panel { grid-row:span 2; }
.profile-switch-row { display:flex; align-items:center; gap:10px; min-height:55px; padding:8px 0; border-bottom:1px solid #f0f3f7; }
.profile-switch-row > span:nth-child(2) { min-width:0; flex:1; }
.profile-switch-row strong,.profile-switch-row small { display:block; }
.profile-switch-row strong { color:#27334d; font-size:10px; font-weight:750; }
.profile-switch-row small { margin-top:3px; color:#8793a7; font-size:9px; }
.profile-switch { position:relative; width:37px; height:22px; flex:0 0 auto; }
.profile-switch input { position:absolute; width:1px; height:1px; opacity:0; }
.profile-switch span { position:absolute; inset:0; border-radius:99px; background:#cbd3df; cursor:pointer; transition:background .18s; }
.profile-switch span::before { content:""; position:absolute; width:16px; height:16px; top:3px; left:3px; border-radius:50%; background:#fff; box-shadow:0 1px 4px #18304c33; transition:transform .18s; }
.profile-switch input:checked + span { background:#0eaf77; }
.profile-switch input:checked + span::before { transform:translateX(15px); }
.profile-switch input:focus-visible + span { outline:3px solid #2167f355; outline-offset:2px; }
.profile-preferences-heading { margin-top:19px; padding-top:15px; border-top:1px solid #eef1f5; }
.profile-preference-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.profile-preference-fields > .profile-field:last-child { grid-column:1/-1; }
.profile-field > small { color:#8995a9; font-size:9px; font-weight:500; }
.profile-modal { position:fixed; inset:0; z-index:400; display:none; align-items:center; justify-content:center; padding:18px; }
.profile-modal.active { display:flex; }
.profile-modal-backdrop { position:absolute; inset:0; background:rgba(11,23,45,.48); backdrop-filter:blur(5px); }
.profile-modal-card { position:relative; width:min(100%,440px); padding:26px; border:1px solid #e5ebf4; border-radius:22px; background:#fff; box-shadow:0 25px 75px rgba(8,22,49,.25); }
.profile-modal-card h2 { margin:15px 0 5px; color:#111d3a; font-size:20px; font-weight:850; }
.profile-modal-card > p { margin:0 0 19px; color:#77849a; font-size:12px; }
.profile-modal-card form { display:grid; gap:14px; }
.profile-modal-close { position:absolute; top:14px; right:14px; width:34px; height:34px; display:grid; place-items:center; border:0; border-radius:10px; color:#64728b; background:#f3f6fa; }
.profile-modal-note { padding:11px; border-radius:11px; color:#30598f; background:#eff6ff; font-size:11px; }
.profile-danger-card { align-items:center; gap:13px; padding:16px 18px; border-color:#f2e4e5; background:linear-gradient(115deg,#fff,#fff8f8); }
.profile-danger-icon { width:40px; height:40px; display:grid; place-items:center; flex:0 0 auto; border-radius:13px; color:#d44958; background:#fff0f1; }
.profile-danger-card > div:nth-child(2) { min-width:0; flex:1; }
.profile-danger-card h3 { margin:0; color:#26334e; font-size:12px; font-weight:850; }
.profile-danger-card p { margin:4px 0 0; color:#8490a5; font-size:10px; line-height:1.4; }
.profile-danger-card a { display:inline-flex; align-items:center; gap:7px; flex:0 0 auto; padding:10px 13px; border-radius:11px; color:#c7384b; background:#fff0f1; font-size:10px; font-weight:800; text-decoration:none; }

@media (min-width:1024px) {
  body:has(#profile-page) > nav .max-w-\[1300px\] { max-width:none; padding:20px 15px 18px; }
  body:has(#profile-page) > nav > div > div { height:100%; display:flex; flex-direction:column; align-items:stretch; gap:0; }
  body:has(#profile-page) > nav > div > div > a:first-child { min-height:52px; margin-bottom:27px; }
  body:has(#profile-page) #desktop-nav { display:flex!important; width:100%; flex-direction:column; align-items:stretch; gap:7px; }
  body:has(#profile-page) #desktop-account-nav { display:flex!important; width:100%; flex-direction:column; gap:7px; margin:auto 0 0; padding:17px 3px 0; border-top:1px solid #e5ebf4; }
  body:has(#profile-page) #desktop-nav a.is-current,body:has(#profile-page) #desktop-account-nav a.is-current { color:#08744f; background:#e8f9f1; }
}
@media (max-width:1023px) {
  body:has(#profile-page) > nav { position:sticky; top:0; height:66px; border:0; border-bottom:1px solid #e8edf4; background:rgba(255,255,255,.94); backdrop-filter:blur(16px); }
  body:has(#profile-page) > nav > div { max-width:none; padding:0 15px; }
  body:has(#profile-page) > nav > div > div { height:66px; align-items:center; }
  body:has(#profile-page) #desktop-nav,body:has(#profile-page) #desktop-account-nav { display:none!important; }
  .profile-mobile-actions { display:flex; align-items:center; gap:8px; }
  .profile-mobile-actions a,.profile-mobile-actions button { min-height:39px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 10px; border:1px solid #e7ecf3; border-radius:12px; color:#30405b; background:#fff; font-size:10px; font-weight:750; text-decoration:none; }
  .profile-mobile-actions button { border-color:#f9e2e5; color:#cc3449; background:#fff4f5; }
  body:has(#profile-page) > main { width:100%; max-width:none; margin:0; padding:19px 15px 32px; }
  .profile-page-heading { align-items:flex-start; margin-bottom:16px; }
  .profile-page-heading h1 { font-size:25px; }
  .profile-page-heading p { max-width:450px; font-size:12px; }
  .profile-settings-shortcut { display:none; }
  #profile-layout { grid-template-columns:minmax(0,1fr); gap:15px; }
  #profile-summary-column { grid-template-columns:minmax(0,1fr); }
  #profile-summary-card { padding:0 18px 18px; }
  .profile-cover-art { margin:0 -18px; }
  .profile-plan-card { grid-template-columns:40px minmax(0,1fr) 36px; }
  #profile-settings-grid { grid-template-columns:minmax(0,1fr); }
  #profile-notifications-panel { grid-row:auto; }
}
@media (max-width:600px) {
  body:has(#profile-page) > nav > div > div { justify-content:space-between; }
  .profile-mobile-actions { width:auto; flex:0 0 auto; justify-content:flex-end; gap:6px; }
  body:has(#profile-page) > main { padding:16px 12px 24px; }
  .profile-page-heading { display:none; }
  #profile-layout,#profile-summary-column,#profile-panels { gap:12px; }
  #profile-layout { display:flex; flex-direction:column; }
  #profile-summary-column,#profile-panels { display:contents; }
  #profile-summary-card { border-radius:19px; }
  #profile-summary-card { order:1; }
  .profile-account-status,.profile-account-details { display:none; }
  #profile-personal-panel { order:2; }
  #profile-settings-grid { order:3; }
  #profile-plan-card { order:4; }
  #settings-section { order:5; }
  .profile-cover-art { height:105px; }
  .profile-identity h2 { font-size:22px; }
  .profile-card,.profile-plan-card { border-radius:18px; }
  #profile-personal-panel,.account-panel { padding:16px; }
  #profile-personal-panel > .account-panel-heading,.profile-personal-form > .account-subpanel-heading,.profile-phone-field { display:none; }
  .account-panel-heading h2 { font-size:18px; }
  .account-panel-heading p { font-size:10px; }
  .profile-personal-form { grid-template-columns:1fr; gap:12px; }
  .profile-personal-form > .account-subpanel-heading,.profile-email-field { grid-column:auto; }
  .profile-email-row { align-items:stretch; flex-direction:column; }
  .profile-email-row button { width:100%; }
  .profile-preference-fields { grid-template-columns:1fr; }
  .profile-preference-fields > .profile-field:last-child { grid-column:auto; }
  .profile-mobile-actions a,.profile-mobile-actions button { width:37px; min-height:37px; padding:0; justify-content:center; font-size:0; }
  .profile-mobile-actions svg { width:16px; height:16px; }
  body:has(#profile-page) .text-2xl { font-size:20px; }
}

/* Al aplanar las columnas para ordenar las tarjetas en móvil, cada tarjeta debe ocupar toda la fila. */
@media (max-width:600px) {
  #profile-layout { width:100%; align-items:stretch; }
  #profile-layout #profile-summary-card,
  #profile-layout #profile-plan-card,
  #profile-layout #profile-personal-panel,
  #profile-layout #profile-settings-grid,
  #profile-layout #settings-section {
    width:100%;
    min-width:0;
    max-width:none;
    flex:0 0 100%;
  }
  #profile-layout #profile-settings-grid { display:grid; grid-template-columns:minmax(0,1fr); }
}
