/* Shared visual layer. Existing ticket state classes and actions are preserved. */
:root { --page:#e8efeb; --page-end:#f5f8f6; --surface:#ffffff; --subtle:#edf3f0; --line:#c8d6cf; --text:#15382a; --muted:#4d695b; --accent:#0b6b3d; --soft:#dceee4; --warning:#ffedbd; --rose:#ffdfe3; --header:#ffffff; --shadow:#173c2920; --menu-bg:#dceee4; --menu-border:#b7cec1; --menu-hover:#cce5d7; --heading-bg:#edf7f1; --th-bg:#dfeae4; --th-text:#34594a; --th-border:#b7cbbf; --row-neutral:#fbfdfc; --row-hover:#b6d8c342; --action-bg:#ffffffb8; --client-head:#e8f0ec; --admin-head:#d9ecdf; color-scheme:light; }
:root[data-theme="dark"] { --page:#0c1210; --page-end:#0c1210; --surface:#151e1a; --subtle:#1b2721; --line:#2d3d34; --text:#e5ede8; --muted:#a5b8ad; --accent:#9bd4ab; --soft:#233d2d; --warning:#342e1e; --rose:#302327; --header:#080a0d; --shadow:#0000000d; --menu-bg:#1b2721; --menu-border:#2d3d34; --menu-hover:#233d2d; --heading-bg:#151e1a; --th-bg:#1b2721; --th-text:#a5b8ad; --th-border:#2d3d34; --row-neutral:#151e1a; --row-hover:#80aa8c12; --action-bg:#151e1a; --client-head:#1b2721; --admin-head:#233d2d; color-scheme:dark; }
body { margin:0; padding:28px; background:linear-gradient(145deg, var(--page), var(--page-end) 72%); color:var(--text); font-family:Rubik,system-ui,sans-serif; font-size:14px; line-height:1.5; }
#main { width:100%; max-width:1320px; margin:0 auto; background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:0 16px 45px var(--shadow); }
#header { height:auto; min-height:108px; padding:18px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:2px solid var(--line); background:var(--header); box-sizing:border-box; }
#logo { float:none; margin:0; width:auto; flex-shrink:0; }
#logo img { display:block; width:172px; height:auto; float:none; }
#menu { float:none; margin:0; display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
#menu div { float:none; margin:0; }
#menu div:empty { display:none; }
#menu a { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:12px; text-decoration:none; background:var(--menu-bg); border:1px solid var(--menu-border); box-shadow:0 2px 5px var(--shadow); }
#menu div i, #menu #iconIA { font-size:19px; color:var(--accent); }
#menu #iconIA.disabled { color:#7f8984; opacity:.42; filter:grayscale(1); text-shadow:none; }
#menu #iconIA.enabled { color:#0bbf5d; opacity:1; filter:none; text-shadow:0 0 7px rgba(11,191,93,.65); }
:root[data-theme="dark"] #menu #iconIA.disabled { color:#78827d; opacity:.38; }
:root[data-theme="dark"] #menu #iconIA.enabled { color:#45ef8d; text-shadow:0 0 9px rgba(69,239,141,.78); }
#menu a:hover { background:var(--menu-hover); border-color:var(--accent); transform:translateY(-1px); }
a { color:var(--accent); text-underline-offset:3px; }
:where(a,button,input,textarea,select):focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
h1 { font-size:25px; font-weight:700; color:var(--text); margin:24px; letter-spacing:-.6px; }
.eyebrow { font-size:10px; font-weight:700; letter-spacing:1.8px; color:var(--accent); margin:0 0 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), textarea, select { box-sizing:border-box; background:var(--subtle); color:var(--text); border:1px solid var(--line); border-radius:9px; padding:11px 13px; font:inherit; }
input[type=checkbox], input[type=radio] { width:16px; height:16px; accent-color:var(--accent); vertical-align:middle; }
form input.btn { background:var(--accent) !important; color:var(--page) !important; padding:11px 24px !important; font-weight:700 !important; border:0 !important; cursor:pointer; }
form input.btn:disabled { opacity:.6; cursor:wait; }
.ancho_form { max-width:600px; width:calc(100% - 40px); }
.ancho_form2 { margin:6px 0 18px; }
.support-login #main { min-height:calc(100vh - 56px); background:var(--page); }
.support-login #header { border-bottom:0; }
.login-card { box-sizing:border-box; width:440px; max-width:calc(100% - 32px); margin:38px auto 64px; padding:36px; background:var(--surface); border:1px solid var(--line); border-radius:20px; text-align:left; box-shadow:0 16px 48px #0000000c; }
.login-card h1 { margin:8px 0 10px; text-align:left; font-size:25px; line-height:1.3; }
.login-intro { color:var(--muted); margin:0 0 26px; font-size:13px; }
.login-card .ancho_form { width:100%; }
.login-card .ancho_form1 { font-size:12px; font-weight:700; }
.login-card .remember-session { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:13px; }
.login-card #boton { width:100%; margin:22px 0 4px; }
.login-card .ancho_form > br { display:none; }
.login-card .ancho_form > div:last-of-type { text-align:center; margin-top:18px; font-size:12px; }
.login-card .toggle-eye { border:0; background:transparent; color:var(--accent); width:36px; height:36px; right:4px; font-size:15px; }
.recovery-card { min-height:390px; display:flex; flex-direction:column; justify-content:center; }
.recovery-card .ancho_form { max-width:none; }
.recovery-card .ancho_form > .ancho_form2 { margin:6px 0 18px; text-align:left; }
.recovery-card .recovery-primary { width:100%; margin:8px 0 0; }
.recovery-alert { margin:0 0 20px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; font-size:13px; }
.recovery-alert-error { border-color:#c35d68; background:var(--rose); color:var(--text); }
.recovery-password-wrap { position:relative; }
.recovery-password-wrap input { width:100%; padding-right:46px !important; }
.recovery-password-wrap .toggle-eye { position:absolute; top:50%; transform:translateY(-50%); cursor:pointer; }
.recovery-card .ancho_form > .password-strength { height:8px; margin-top:-7px; overflow:hidden; border-radius:999px; background:var(--subtle); border:1px solid var(--line); text-align:left; }
.password-strength span { display:block; width:0; height:100%; border-radius:999px; transition:width .2s ease, background-color .2s ease; }
.password-strength .strength-0 { background:#c84555; }
.password-strength .strength-1 { background:#df7a2e; }
.password-strength .strength-2 { background:#d7a823; }
.password-strength .strength-3 { background:#55a875; }
.password-strength .strength-4 { background:var(--accent); }
.password-strength-text { min-height:20px; margin:7px 0 2px; color:var(--text); font-size:12px; font-weight:700; }
.password-rules { margin:0 0 18px; color:var(--muted); font-size:11px; }
.recovery-back { align-self:flex-start; margin-top:24px; color:var(--muted); font-size:12px; text-decoration:none; }
.recovery-back:hover { color:var(--accent); }
.recovery-back i { margin-right:5px; }
.recovery-status-icon { display:flex; align-items:center; justify-content:center; width:54px; height:54px; margin:0 0 14px; border-radius:16px; background:var(--soft); color:var(--accent); font-size:22px; }
.recovery-status-icon.is-warning { background:var(--warning); color:#9a6500; }
.recovery-status-copy { font-size:14px; }
.recovery-link-button { display:block; box-sizing:border-box; width:100%; padding:11px 18px; border-radius:9px; background:var(--accent); color:var(--page); font-weight:700; text-align:center; text-decoration:none; }
.list-heading { display:flex; align-items:center; justify-content:space-between; padding:10px 26px; text-align:left; gap:18px; background:linear-gradient(100deg, var(--heading-bg) 0%, var(--surface) 62%); border-bottom:1px solid var(--line); }
.list-heading h1 { flex:0 0 auto; margin:0; text-align:left; font-size:22px; }
.ticket-search { position:relative; flex:0 1 520px; margin:0; text-align:left; }
.ticket-search .tk_search { box-sizing:border-box; width:100%; min-height:42px; float:none; margin:0; padding:9px 14px; font-size:13px; }
#tk_searchresult { position:absolute; top:100%; left:0; width:100%; max-height:620px; max-height:min(620px, 72vh); overflow:auto; margin:7px 0 0; padding:0; box-sizing:border-box; background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 45px #0005; z-index:50; }
.ticket-search-summary { position:sticky; top:0; z-index:2; display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; padding:12px 14px; background:var(--subtle); border-bottom:1px solid var(--line); color:var(--muted); font-size:11px; }
.ticket-search-summary strong { color:var(--text); font-size:12px; }
.ticket-search-terms { display:flex; flex-wrap:wrap; gap:4px; width:100%; }
.ticket-search-terms span { padding:3px 7px; border-radius:999px; background:var(--soft); color:var(--accent); font-size:10px; font-weight:700; }
.ticket-search-results { display:block; }
#tk_searchresult a.ticket-search-item { display:block; margin:0; padding:13px 15px; border-bottom:1px solid var(--line); color:var(--text); text-decoration:none; }
#tk_searchresult a.ticket-search-item:last-child { border-bottom:0; }
#tk_searchresult a.ticket-search-item:hover, #tk_searchresult a.ticket-search-item:focus { outline:0; background:var(--row-hover); }
.ticket-search-item-top { display:flex; justify-content:space-between; gap:12px; margin-bottom:4px; color:var(--muted); font-size:10px; }
.ticket-search-id { color:var(--accent); font-weight:700; }
.ticket-search-subject { display:block; overflow:hidden; margin-bottom:5px; color:var(--text); font-size:13px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.ticket-search-excerpt { display:-webkit-box; overflow:hidden; color:var(--muted); font-size:11px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.ticket-search-excerpt mark { padding:0 2px; border-radius:3px; background:#ffd86a; color:#302400; }
.ticket-search-meta { display:block; margin-top:6px; color:var(--accent); font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.45px; }
.ticket-search-state, .ticket-search-empty { padding:24px 16px; color:var(--muted); font-size:12px; text-align:center; }
.ticket-search-state i { margin-right:6px; color:var(--accent); }
.ticket-search-state.is-error { color:#b84958; }
.ticket-search-empty { display:flex; flex-direction:column; align-items:center; gap:6px; }
.ticket-search-empty i { margin-bottom:3px; color:var(--muted); font-size:22px; }
.ticket-search-empty strong { color:var(--text); font-size:13px; }
#table-data { text-align:left; }
#table-data th { background:var(--th-bg); color:var(--th-text); font-size:11px; letter-spacing:.8px; font-weight:700; height:40px; border-top:1px solid var(--th-border); border-bottom:2px solid var(--th-border); }
#table-data td, #table-data th { padding:14px 18px; border-bottom:1px solid var(--line); }
#table-data tr { color:var(--text); background:var(--surface); height:62px; }
#table-data tr.famar { background:var(--warning); }
#table-data tr.frosa { background:var(--rose); }
#table-data tr.fgris1 { background:var(--row-neutral); }
#table-data tr.famar td:first-child { box-shadow:inset 4px 0 #c48a13; }
#table-data tr.frosa td:first-child { box-shadow:inset 4px 0 #b84958; }
#table-data tr:hover td { background:var(--row-hover); }
#table-data td:first-child { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
#table-data td:nth-child(3) { font-weight:500; }
.ticket-unread-badge { display:inline-flex; align-items:center; gap:6px; margin:0 7px 0 0; padding:3px 8px; border:1px solid #dc982e; border-radius:999px; background:#fff4d7; color:#8a4e00; font-size:10px; font-weight:700; line-height:1.2; letter-spacing:.45px; text-transform:uppercase; vertical-align:middle; white-space:nowrap; }
.ticket-unread-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:#ed9717; box-shadow:0 0 0 3px #ed97172b; }
:root[data-theme="dark"] .ticket-unread-badge { border-color:#a36f21; background:#3b2c16; color:#ffd48e; }
#table-data td:nth-child(2) { white-space:nowrap; }
#table-data td[align] { white-space:nowrap; }
#table-data td[align] a { display:inline-flex; align-items:center; justify-content:center; width:30px; height:32px; border:1px solid var(--menu-border); border-radius:8px; text-decoration:none; background:var(--action-bg); }
#table-data td[align] a:hover { background:var(--soft); }
#table-data .txt1 { color:var(--muted); font-size:10px; margin:0; }
#table-data .paginator { text-align:center; font-size:14px; color:var(--accent); }
.paginator a, .paginator span { display:inline-block; padding:4px; min-width:22px; margin:0 3px; border-radius:6px; }
.paginator a:hover { background:var(--soft); }
#content { box-sizing:border-box; padding:0 24px 24px; }
#content .msjname { clear:both; padding:14px 18px; margin-top:12px; border:1px solid var(--line); border-radius:10px; font-size:13px; color:var(--text); line-height:1.8; }
#content .msjname.fverde1 { background:var(--client-head); border-left:4px solid #579071; }
#content .msjname.fverde2 { background:var(--admin-head); border-left:4px solid var(--accent); }
#content .msjname.famar { background:var(--warning); }
.msjname a { color:var(--accent); display:inline-block; padding:0 3px; }
.msjname i { font-size:16px; }
#content .msjtext { box-sizing:border-box; float:none; width:100%; margin:0 0 18px; padding:22px; background:var(--surface); color:var(--text); line-height:1.75; overflow-wrap:anywhere; border:1px solid var(--line); border-top:0; border-radius:0 0 10px 10px; }
.msjtext img { max-width:100%; height:auto; }
.msjtext pre, .msjtext code { white-space:pre-wrap; overflow-wrap:anywhere; background:var(--subtle); color:var(--text); border-color:var(--line); }
#content .service-panel-heading { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; background:var(--warning); }
.service-panel-main { display:flex; flex:1 1 420px; min-width:0; align-items:center; flex-wrap:wrap; gap:8px; padding:0 !important; }
.service-panel-actions { display:flex; flex:0 1 auto; min-width:0; max-width:100%; align-items:center; justify-content:flex-end; gap:10px; margin-left:auto; padding:0 !important; }
.service-panel-count { display:inline-flex; min-width:24px; height:24px; box-sizing:border-box; align-items:center; justify-content:center; padding:0 7px; border:1px solid #c48a136b; border-radius:999px; background:var(--surface); color:var(--text); font-size:11px; font-weight:700; }
.service-panel-summary { color:var(--muted); font-size:11px; }
.service-inactive-switch { display:inline-flex; min-width:0; align-items:center; gap:7px; color:var(--muted); font-size:10px; font-weight:700; white-space:nowrap; cursor:pointer; }
.service-inactive-switch input { position:absolute; width:1px; height:1px; opacity:0; }
.service-switch-track { position:relative; display:inline-flex; flex:0 0 30px; width:30px; height:17px; overflow:hidden; box-sizing:border-box; padding:0 !important; border:1px solid var(--line); border-radius:999px; background:var(--subtle); transition:.18s ease; }
.service-switch-track span { position:absolute; top:2px; left:2px; width:11px !important; min-width:11px !important; max-width:11px !important; height:11px !important; min-height:11px !important; max-height:11px !important; box-sizing:border-box; margin:0 !important; padding:0 !important; border-radius:50%; background:var(--muted); transform:translateX(0); transition:transform .18s ease, background .18s ease; }
.service-inactive-switch input:checked + .service-switch-track { border-color:var(--accent); background:var(--soft); }
.service-inactive-switch input:checked + .service-switch-track span { left:2px; background:var(--accent); transform:translateX(13px); }
.service-inactive-switch input:focus-visible + .service-switch-track { outline:3px solid var(--accent); outline-offset:2px; }
.service-panel-toggle { display:inline-flex; flex:0 0 34px; width:34px; height:34px; align-items:center; justify-content:center; padding:0; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--accent); cursor:pointer; }
.service-panel-toggle:hover { border-color:var(--accent); background:var(--soft); }
#panprods.service-panel { display:grid; grid-template-columns:repeat(auto-fit, minmax(360px, 1fr)); gap:10px; box-sizing:border-box; padding:12px 0 2px; background:transparent; border-radius:0; overflow-wrap:anywhere; }
#panprods.service-panel:not(.show-inactive) .service-card--inactive { display:none; }
.service-card { position:relative; min-width:0; overflow:hidden; border:1px solid var(--line); border-left:4px solid var(--muted); border-radius:12px; background:var(--surface); box-shadow:0 4px 14px var(--shadow); text-align:left; }
.service-card--active { border-left-color:#438a61; }
.service-card--suspended { border-left-color:#c45d48; }
.service-card--pending { border-left-color:#c48a13; }
.service-card--inactive, .service-card--unknown { border-left-color:#7b8780; }
.service-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:10px 12px; border-bottom:1px solid var(--line); background:linear-gradient(115deg, var(--heading-bg), var(--surface)); }
.service-card-header > div { min-width:0; padding:0 !important; }
.service-type-badge { display:inline-flex; align-items:center; margin-bottom:4px; padding:2px 7px; border:1px solid transparent; border-radius:999px; font-size:8px; font-weight:700; letter-spacing:.7px; line-height:1.25; text-transform:uppercase; }
.service-type-badge--vps { border-color:#000; background:#000; color:#fff; }
.service-type-badge--reseller { border-color:#0d55ad; background:#1469d4; color:#fff; }
.service-type-badge--hosting { border-color:#c66500; background:#f28c18; color:#17130d; }
.service-type-badge--mail { border-color:#8651b5; background:#eee0fb; color:#62328c; }
.service-type-badge--service { border-color:#8d9992; background:#e8ece9; color:#4c5b53; }
:root[data-theme="dark"] .service-type-badge--vps { border-color:#000; background:#000; color:#fff; }
:root[data-theme="dark"] .service-type-badge--reseller { border-color:#287ee8; background:#1469d4; color:#fff; }
:root[data-theme="dark"] .service-type-badge--hosting { border-color:#f3a447; background:#f28c18; color:#17130d; }
:root[data-theme="dark"] .service-type-badge--mail { background:#332241; color:#debaff; }
:root[data-theme="dark"] .service-type-badge--service { background:#27302b; color:#c0cbc4; }
.service-title { display:block; color:var(--text); font-size:13px; line-height:1.3; }
.service-status { display:inline-flex; flex:0 0 auto; align-items:center; padding:4px 9px; border:1px solid transparent; border-radius:999px; font-size:9px; font-weight:700; letter-spacing:.45px; text-transform:uppercase; }
.service-status--active { border-color:#4c9568; background:#dff2e6; color:#23613c; }
.service-status--suspended { border-color:#c45d48; background:#ffe1da; color:#8d2d1c; }
.service-status--pending { border-color:#c48a13; background:#fff0c8; color:#805600; }
.service-status--inactive, .service-status--unknown { border-color:#8d9992; background:#e8ece9; color:#4c5b53; }
:root[data-theme="dark"] .service-status--active { background:#1d3b29; color:#a9e1ba; }
:root[data-theme="dark"] .service-status--suspended { background:#40241f; color:#ffb6a7; }
:root[data-theme="dark"] .service-status--pending { background:#3b3018; color:#ffd88a; }
:root[data-theme="dark"] .service-status--inactive, :root[data-theme="dark"] .service-status--unknown { background:#27302b; color:#c0cbc4; }
.service-fields { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0; padding:2px 10px 6px !important; }
.service-field { min-width:0; padding:5px 7px !important; border-bottom:1px solid var(--line); }
.service-field--wide { grid-column:1 / -1; }
.service-field span { display:block; margin-bottom:1px; color:var(--muted); font-size:8px; font-weight:700; letter-spacing:.55px; line-height:1.2; text-transform:uppercase; }
.service-field strong, .service-field a { display:block; min-width:0; color:var(--text); font-size:11px; font-weight:600; line-height:1.35; overflow-wrap:anywhere; }
.service-field a { color:var(--accent); }
.service-field small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.service-empty { grid-column:1 / -1; padding:20px !important; border:1px dashed var(--line); border-radius:10px; color:var(--muted); text-align:center; }
#formenviar { display:grid; grid-template-columns:minmax(0, 1fr) minmax(270px, 360px); align-items:start; gap:26px; margin-top:24px; padding:22px 24px 24px; box-sizing:border-box; border-top:1px solid var(--line); }
#formenviar #form1,
#formenviar #form2 { float:none; width:auto; min-width:0; margin:0; box-sizing:border-box; }
#formenviar #form2 { align-self:center; }
#formenviar #txt_cuerpo,
#formenviar #txt_asunto { box-sizing:border-box; width:100%; margin-right:0; margin-left:0; }
#formenviar form .btn { margin-left:0; }
#ticketctl { font-size:12px; margin:0; }
#txt_cuerpo { min-height:220px; resize:vertical; line-height:1.6; }
.att_container { box-sizing:border-box; max-width:100%; background:var(--subtle); border:1px solid var(--line); border-radius:10px; }

/* Ticket attachment uploader */
#form2 #upload { box-sizing:border-box; width:100%; max-width:360px; margin:0 auto; }
#upload #drop { box-sizing:border-box; margin:0; padding:12px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--text); box-shadow:0 8px 24px var(--shadow); }
#upload .dotted,
#upload .dotted2 { position:relative; display:flex; min-height:132px; box-sizing:border-box; flex-direction:column; align-items:center; justify-content:center; padding:58px 22px 18px; border:2px dashed var(--menu-border); border-radius:12px; background:linear-gradient(145deg, var(--subtle), var(--surface)); color:var(--muted); font-size:12px; font-weight:500; line-height:1.5; transition:border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
#upload .dotted::before,
#upload .dotted2::before { content:"\f382"; position:absolute; top:16px; left:50%; display:flex; width:36px; height:36px; align-items:center; justify-content:center; border-radius:11px; background:var(--soft); color:var(--accent); font-family:"Font Awesome 5 Free"; font-size:17px; font-weight:900; transform:translateX(-50%); }
#upload .dotted:hover { border-color:var(--accent); background:var(--soft); color:var(--text); }
#upload .dotted2 { border-style:solid; border-color:var(--accent); background:var(--soft); color:var(--text); }
#upload .dotted2::before { content:"\f328"; }
#upload #drop > a { display:inline-flex; min-height:36px; box-sizing:border-box; align-items:center; justify-content:center; margin:12px 0 0; padding:9px 16px; border:1px solid var(--accent); border-radius:9px; background:var(--accent); color:var(--page); font-size:12px; font-weight:700; line-height:1; text-decoration:none; box-shadow:0 4px 12px var(--shadow); transition:filter .18s ease, transform .18s ease, box-shadow .18s ease; }
#upload #drop > a::before { content:"\f07c"; margin-right:7px; font-family:"Font Awesome 5 Free"; font-weight:900; }
#upload #drop > a:hover { background:var(--accent); filter:brightness(1.08); transform:translateY(-1px); box-shadow:0 7px 16px var(--shadow); }
#upload ul { box-sizing:border-box; margin:10px 0 0; padding:0; border:0; }
#upload ul:empty { display:none; }
#upload ul li { display:flex; min-height:52px; height:auto; box-sizing:border-box; align-items:center; margin-top:7px; padding:9px 42px 9px 48px; border:1px solid var(--line); border-radius:10px; background:var(--subtle); }
#upload ul li p { position:static; width:100%; margin:0; color:var(--text); font-size:11px; line-height:1.35; text-align:left; text-overflow:ellipsis; }
#upload ul li i { margin-top:2px; color:var(--muted); font-size:9px; }
#upload ul li canvas { top:50%; left:12px; transform:translateY(-50%); }
#upload ul li span { top:50%; right:12px; display:flex; width:24px; height:24px; align-items:center; justify-content:center; border-radius:7px; background:none; color:var(--muted); transform:translateY(-50%); }
#upload ul li span::before { content:"\f00d"; font-family:"Font Awesome 5 Free"; font-size:12px; font-weight:900; }
#upload ul li span:hover { background:var(--rose); color:#b84958; }
#upload ul li.error { border-color:#b84958; }
#upload ul li.error p { color:#b84958; }
@media(max-width:760px) {
 body { padding:10px; font-size:13px; }
 #header { padding:16px; flex-wrap:wrap; gap:16px; }
 #logo img { width:145px; }
 #menu { gap:5px; }
 #menu a { width:36px; height:36px; }
 #menu div i, #menu #iconIA { font-size:16px; }
 .list-heading { padding:10px 16px; gap:12px; }
 .list-heading h1 { font-size:19px; }
 .ticket-search { flex-basis:260px; }
 #table-data td, #table-data th { padding:12px 10px; }
 #table-data { min-width:600px; }
 #content { padding:0 12px 16px; }
 #content .msjname { padding:12px; }
 #content .msjtext { padding:16px; }
 .service-panel-main { flex-basis:100%; }
 .service-panel-actions { width:100%; margin-left:0; }
 #panprods.service-panel { grid-template-columns:1fr; }
 .service-panel-summary { flex-basis:100%; }
 h1 { font-size:21px; margin:20px 12px; }
 .login-card { margin:20px auto 36px; padding:26px; }
 .recovery-card { min-height:350px; }
 .support-login #main { min-height:calc(100vh - 20px); }
 #formenviar { display:block; padding:18px 4px 0; }
 #formenviar #form1, #formenviar #form2 { width:100%; }
 #form2 #upload { max-width:none; margin-top:18px; }
 #txt_cuerpo, #txt_asunto { width:100%; margin:0; }
}
@media(max-width:520px) {
 .list-heading { align-items:stretch; flex-direction:column; }
 .ticket-search { flex-basis:auto; max-width:none; }
 .service-card-header { padding:10px; }
 .service-fields { grid-template-columns:1fr; padding-right:10px !important; padding-left:10px !important; }
 .service-field--wide { grid-column:auto; }
}

/* The ticket list keeps its main actions visible while using less vertical space. */
.ticket-list-page #header { min-height:84px; padding-top:10px; padding-bottom:10px; }
.ticket-list-page #logo img { width:150px; }

/* Account settings */
.account-form { padding:32px 20px 42px; }
.account-card { box-sizing:border-box; max-width:760px; width:100%; overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:0 12px 32px var(--shadow); text-align:left; }
.account-card-heading { display:flex; align-items:center; gap:16px; padding:24px 28px; background:linear-gradient(115deg, var(--heading-bg), var(--surface)); border-bottom:1px solid var(--line); }
.account-card-heading h1 { clear:none; margin:0 0 3px; font-size:24px; text-align:left; }
.account-card-heading p { margin:0; color:var(--muted); font-size:13px; }
.account-card-heading .eyebrow { margin-bottom:3px; color:var(--accent); font-size:10px; }
.account-heading-icon { display:flex; flex:0 0 46px; width:46px; height:46px; align-items:center; justify-content:center; border-radius:14px; background:var(--soft); color:var(--accent); font-size:18px; }
.account-section { display:block; padding:24px 28px; border-bottom:1px solid var(--line); }
.account-section h2 { margin:0 0 16px; color:var(--text); font-size:16px; }
.account-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:18px; margin-bottom:16px; }
.account-section-heading h2 { flex:0 0 auto; margin:0; }
.account-section-heading p { margin:0; color:var(--muted); font-size:11px; text-align:right; }
.account-fields { display:grid; gap:16px; }
.account-fields-two { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.account-field { min-width:0; }
.account-section > .account-field { margin-top:16px; }
.account-card .ancho_form1 { margin:0 0 6px; color:var(--text); font-size:12px; font-weight:700; }
.account-card .ancho_form2 { position:relative; width:auto; margin:0; }
.account-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { width:100%; min-height:44px; }
.account-card input:-webkit-autofill,
.account-card input:-webkit-autofill:hover,
.account-card input:-webkit-autofill:focus { -webkit-text-fill-color:var(--text); box-shadow:0 0 0 1000px var(--subtle) inset; caret-color:var(--text); }
.account-password-wrap input { padding-right:44px !important; }
.account-card .toggle-eye { position:absolute; top:50%; right:5px; width:34px; height:34px; padding:0; transform:translateY(-50%); border:0; background:transparent; color:var(--accent); cursor:pointer; }
.account-options { display:flex; align-items:stretch; gap:14px; }
.account-option { display:flex; flex:1 1 0; align-items:center; gap:10px; box-sizing:border-box; min-height:52px; padding:10px 14px; border:1px solid var(--line); border-radius:11px; background:var(--subtle); color:var(--text); font-size:13px; font-weight:700; cursor:pointer; }
.account-option:hover { border-color:var(--accent); background:var(--soft); }
.account-option input { flex:0 0 auto; margin:0; }
.account-option-icon { display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:8px; background:var(--surface); color:var(--accent); }
.account-actions { padding:22px 28px; text-align:center; }
.account-actions #boton { width:auto; min-width:124px; margin:0; }
.account-form .crojo1 { box-sizing:border-box; max-width:760px; margin:0 auto 18px; padding:14px 18px; border:1px solid #c35d68; border-radius:12px; background:var(--rose); text-align:left; }
.account-form .crojo1 p { margin:4px 0; }

@media(max-width:640px) {
 .account-form { padding:20px 12px 30px; }
 .account-card-heading, .account-section { padding:20px; }
 .account-card-heading { align-items:flex-start; }
 .account-heading-icon { flex-basis:40px; width:40px; height:40px; }
 .account-fields-two { grid-template-columns:1fr; }
 .account-section-heading { align-items:flex-start; flex-direction:column; gap:5px; }
 .account-section-heading p { text-align:left; }
 .account-options { gap:10px; }
 .account-option { padding:10px; }
 .account-actions { padding:18px 20px; }
 .account-actions #boton { width:100%; }
}
@media(max-width:420px) {
 .account-option { gap:8px; font-size:11px; }
 .account-option-icon { display:none; }
}
