/* =====================================================================
   ZD Modern — tema de área de clientes WHMCS (hijo de Twenty-One)
   Z Digital · 5 paletas en modo claro + modo oscuro completo
   ===================================================================== */

/* ---------- Tokens base (modo claro) ---------- */
:root,
html[data-theme="light"] {
    --zd-bg: #f4f5f9;
    --zd-surface: #ffffff;
    --zd-surface-2: #f8f9fc;
    --zd-surface-3: #eef0f6;
    --zd-border: #e3e6ee;
    --zd-border-strong: #cfd4e0;
    --zd-text: #1b1d2a;
    --zd-text-2: #3d4152;
    --zd-muted: #6b7086;
    --zd-input-bg: #ffffff;
    --zd-shadow: 0 1px 2px rgba(20, 24, 40, .04), 0 4px 16px rgba(20, 24, 40, .06);
    --zd-shadow-lg: 0 10px 40px rgba(20, 24, 40, .12);
    --zd-success: #0f9d58;
    --zd-warning: #d97706;
    --zd-danger: #dc2626;
    --zd-info: #0284c7;
    --zd-radius: 14px;
    --zd-radius-sm: 10px;
    --zd-sidebar-w: 264px;
    --zd-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}

/* ---------- Paletas (modo claro) ---------- */
html[data-palette="oceano"]    { --zd-primary: #2563eb; --zd-primary-hover: #1d4ed8; --zd-primary-rgb: 37, 99, 235;   --zd-link: #1d4ed8; --zd-grad: linear-gradient(140deg, #0b2a7a 0%, #1d4ed8 55%, #2563eb 100%); }
html[data-palette="violeta"]   { --zd-primary: #673de6; --zd-primary-hover: #5025d1; --zd-primary-rgb: 103, 61, 230;  --zd-link: #5025d1; --zd-grad: linear-gradient(140deg, #26145e 0%, #5025d1 55%, #673de6 100%); }
html[data-palette="esmeralda"] { --zd-primary: #059669; --zd-primary-hover: #047857; --zd-primary-rgb: 5, 150, 105;   --zd-link: #047857; --zd-grad: linear-gradient(140deg, #053d2e 0%, #047857 55%, #059669 100%); }
html[data-palette="atardecer"] { --zd-primary: #ea580c; --zd-primary-hover: #c2410c; --zd-primary-rgb: 234, 88, 12;   --zd-link: #c2410c; --zd-grad: linear-gradient(140deg, #6b1d06 0%, #c2410c 55%, #ea580c 100%); }
html[data-palette="frambuesa"] { --zd-primary: #db2777; --zd-primary-hover: #be185d; --zd-primary-rgb: 219, 39, 119;  --zd-link: #be185d; --zd-grad: linear-gradient(140deg, #5c0a31 0%, #be185d 55%, #db2777 100%); }

/* ---------- Modo oscuro ---------- */
html[data-theme="dark"] {
    --zd-bg: #0d0f16;
    --zd-surface: #151822;
    --zd-surface-2: #1b1f2b;
    --zd-surface-3: #232838;
    --zd-border: #262b3a;
    --zd-border-strong: #343a4d;
    --zd-text: #e8eaf2;
    --zd-text-2: #c4c8d6;
    --zd-muted: #8f95aa;
    --zd-input-bg: #10131b;
    --zd-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .25);
    --zd-shadow-lg: 0 16px 48px rgba(0, 0, 0, .55);
    --zd-success: #34d399;
    --zd-warning: #fbbf24;
    --zd-danger: #f87171;
    --zd-info: #38bdf8;
    color-scheme: dark;
}
html[data-theme="dark"][data-palette="oceano"]    { --zd-link: #7aa7ff; --zd-primary-rgb: 96, 145, 255; }
html[data-theme="dark"][data-palette="violeta"]   { --zd-link: #a990ff; --zd-primary-rgb: 150, 120, 255; }
html[data-theme="dark"][data-palette="esmeralda"] { --zd-link: #34d399; --zd-primary-rgb: 52, 211, 153; }
html[data-theme="dark"][data-palette="atardecer"] { --zd-link: #fb923c; --zd-primary-rgb: 251, 146, 60; }
html[data-theme="dark"][data-palette="frambuesa"] { --zd-link: #f472b6; --zd-primary-rgb: 244, 114, 182; }

/* =====================================================================
   Base
   ===================================================================== */
html, body.zd-body {
    background: var(--zd-bg) !important;
}
body.zd-body {
    font-family: var(--zd-font);
    color: var(--zd-text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
.zd-body h1, .zd-body h2, .zd-body h3, .zd-body h4, .zd-body h5, .zd-body h6,
.zd-body .h1, .zd-body .h2, .zd-body .h3, .zd-body .h4, .zd-body .h5, .zd-body .h6 {
    font-family: var(--zd-font);
    color: var(--zd-text);
    font-weight: 700;
    letter-spacing: -.01em;
}
.zd-body a { color: var(--zd-link); }
.zd-body a:hover { color: var(--zd-primary-hover); }
html[data-theme="dark"] .zd-body a:hover { color: var(--zd-text); }
.zd-body .text-muted, .zd-body small.text-muted, .zd-body .help-block { color: var(--zd-muted) !important; }
.zd-body hr { border-color: var(--zd-border); }
.zd-body code { background: var(--zd-surface-3); color: var(--zd-text); border-radius: 6px; padding: 1px 6px; }
.zd-body pre { background: var(--zd-surface-2); color: var(--zd-text); border: 1px solid var(--zd-border); border-radius: var(--zd-radius-sm); }
.zd-body ::selection { background: rgba(var(--zd-primary-rgb), .25); }
.zd-body .bg-white, .zd-body .bg-light { background: var(--zd-surface) !important; }
.zd-body .border, .zd-body .border-top, .zd-body .border-bottom { border-color: var(--zd-border) !important; }
.zd-body .text-dark, .zd-body .text-body { color: var(--zd-text) !important; }
.zd-body .text-primary { color: var(--zd-link) !important; }
.zd-body .bg-primary { background: var(--zd-primary) !important; }
.zd-body .w-hidden { display: none; }
.zd-body #main-body, .zd-body .main-content, .zd-body .primary-bg-color { background: transparent !important; }

/* Logo */
.zd-logo { display: inline-flex; align-items: center; text-decoration: none !important; min-height: 36px; }
.zd-logo img { max-height: 40px; max-width: 200px; width: auto; }
.zd-logo-text { font-weight: 800; font-size: 1.2rem; color: var(--zd-text); }
.zd-logo-whiten { filter: brightness(0) invert(1); }
.zd-logo-for-dark { display: none; }
html[data-theme="dark"] .zd-logo-for-light { display: none; }
html[data-theme="dark"] .zd-logo-for-dark { display: inline-block; }
.zd-logo--compact img { max-height: 32px; max-width: 140px; }
.zd-logo-icon { max-height: 34px !important; }

/* Botones de icono */
.zd-icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 40px; height: 40px; padding: 0 10px;
    border-radius: 12px; border: 1px solid transparent;
    background: transparent; color: var(--zd-text-2) !important;
    font-size: 1rem; text-decoration: none !important; cursor: pointer;
    transition: background .15s, color .15s;
}
.zd-icon-btn:hover, .zd-icon-btn:focus { background: var(--zd-surface-3); color: var(--zd-text) !important; outline: none; }
.zd-count {
    position: absolute; top: 3px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--zd-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.zd-count.is-empty { display: none; }
.zd-mode-toggle .zd-when-dark { display: none; }
html[data-theme="dark"] .zd-mode-toggle .zd-when-light { display: none; }
html[data-theme="dark"] .zd-mode-toggle .zd-when-dark { display: inline-block; color: #fbbf24; }
.zd-link-btn { background: none; border: 0; padding: 0; color: var(--zd-muted); cursor: pointer; font: inherit; }
.zd-link-btn:hover { color: var(--zd-text); }
.zd-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--zd-link); }

/* =====================================================================
   Componentes Bootstrap / Twenty-One
   ===================================================================== */
.zd-body .card,
.zd-body .panel,
.zd-body .well {
    background: var(--zd-surface);
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    box-shadow: var(--zd-shadow);
    color: var(--zd-text);
}
.zd-body .card-header, .zd-body .panel-heading {
    background: transparent;
    border-bottom: 1px solid var(--zd-border);
    color: var(--zd-text);
    padding: 16px 20px;
}
.zd-body .card-header:first-child { border-radius: var(--zd-radius) var(--zd-radius) 0 0; }
.zd-body .card-title { color: var(--zd-text); font-weight: 700; font-size: 1.05rem; }
.zd-body .card-footer, .zd-body .panel-footer {
    background: var(--zd-surface-2);
    border-top: 1px solid var(--zd-border);
    color: var(--zd-text-2);
}
.zd-body .card-footer:last-child { border-radius: 0 0 var(--zd-radius) var(--zd-radius); }
.zd-body .card-footer:empty { display: none; }
.zd-body .card[class*="card-accent-"] { border-top: 1px solid var(--zd-border); }
.zd-body .card-body { color: var(--zd-text); }

/* Botones */
.zd-body .btn { border-radius: 10px; font-weight: 600; transition: all .15s; }
.zd-body .btn-primary,
.zd-body .btn-success.btn-order-now,
.zd-body .btn-info {
    background: var(--zd-primary) !important;
    border-color: var(--zd-primary) !important;
    color: #fff !important;
}
.zd-body .btn-primary:hover, .zd-body .btn-primary:focus,
.zd-body .btn-success.btn-order-now:hover,
.zd-body .btn-info:hover {
    background: var(--zd-primary-hover) !important;
    border-color: var(--zd-primary-hover) !important;
    box-shadow: 0 6px 18px rgba(var(--zd-primary-rgb), .35);
}
.zd-body .btn-primary:focus, .zd-body .btn:focus { box-shadow: 0 0 0 3px rgba(var(--zd-primary-rgb), .3) !important; }
.zd-body .btn-default, .zd-body .btn-secondary, .zd-body .btn-light, .zd-body .btn-outline-secondary {
    background: var(--zd-surface) !important;
    border: 1px solid var(--zd-border-strong) !important;
    color: var(--zd-text) !important;
}
.zd-body .btn-default:hover, .zd-body .btn-secondary:hover, .zd-body .btn-light:hover, .zd-body .btn-outline-secondary:hover {
    background: var(--zd-surface-3) !important;
}
.zd-body .btn-outline-primary { color: var(--zd-link) !important; border-color: var(--zd-primary) !important; background: transparent !important; }
.zd-body .btn-outline-primary:hover { background: var(--zd-primary) !important; color: #fff !important; }
.zd-body .btn-success { background: var(--zd-success); border-color: var(--zd-success); }
.zd-body .btn-danger { background: var(--zd-danger); border-color: var(--zd-danger); }
.zd-body .btn-link { color: var(--zd-link); }
.zd-btn-lg { padding: 12px 22px !important; font-size: 1rem !important; }
.zd-btn-ghost { background: transparent !important; border-color: transparent !important; }

/* Formularios */
.zd-body label { color: var(--zd-text-2); font-weight: 600; font-size: 14px; }
.zd-body .form-control,
.zd-body .custom-select,
.zd-body select.form-control,
.zd-body textarea,
.zd-body input[type="text"], .zd-body input[type="email"], .zd-body input[type="password"],
.zd-body input[type="tel"], .zd-body input[type="number"], .zd-body input[type="url"], .zd-body input[type="search"] {
    background-color: var(--zd-input-bg);
    border: 1px solid var(--zd-border-strong);
    border-radius: var(--zd-radius-sm);
    color: var(--zd-text);
    min-height: 44px;
    box-shadow: none;
}
.zd-body textarea.form-control { min-height: 120px; }
.zd-body .form-control::placeholder, .zd-body input::placeholder, .zd-body textarea::placeholder { color: var(--zd-muted); opacity: .8; }
.zd-body .form-control:focus, .zd-body .custom-select:focus, .zd-body textarea:focus {
    border-color: var(--zd-primary);
    box-shadow: 0 0 0 3px rgba(var(--zd-primary-rgb), .18);
    background-color: var(--zd-input-bg);
    color: var(--zd-text);
}
.zd-body .form-control:disabled, .zd-body .form-control[readonly], .zd-body .form-control.disabled {
    background-color: var(--zd-surface-3);
    color: var(--zd-muted);
    opacity: 1;
}
html[data-theme="dark"] .zd-body .custom-select,
html[data-theme="dark"] .zd-body select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23c4c8d6' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
}
.zd-body .input-group-text {
    background: var(--zd-surface-2);
    border-color: var(--zd-border-strong);
    color: var(--zd-muted);
}
.zd-body .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.zd-body .input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.zd-body .custom-file-label {
    background: var(--zd-input-bg);
    border-color: var(--zd-border-strong);
    color: var(--zd-muted);
    border-radius: var(--zd-radius-sm);
}
.zd-body .custom-file-label::after { background: var(--zd-surface-3); color: var(--zd-text); border-color: var(--zd-border-strong); }
.zd-body .form-check-input, .zd-body input[type="checkbox"], .zd-body input[type="radio"] { accent-color: var(--zd-primary); }
.zd-body .field-error-msg, .zd-body .invalid-feedback { color: var(--zd-danger); }

/* Dropdown */
.zd-body .dropdown-menu {
    background: var(--zd-surface);
    border: 1px solid var(--zd-border);
    border-radius: 12px;
    box-shadow: var(--zd-shadow-lg);
    padding: 6px;
}
.zd-body .dropdown-item, .zd-body .dropdown-menu a, .zd-body .dropdown-menu li > a {
    color: var(--zd-text-2);
    border-radius: 8px;
}
.zd-body .dropdown-item:hover, .zd-body .dropdown-item:focus, .zd-body .dropdown-item.active,
.zd-body .dropdown-menu li > a:hover {
    background: var(--zd-surface-3);
    color: var(--zd-text);
}
.zd-body .dropdown-divider { border-color: var(--zd-border); }

/* List group (sidebars de Twenty-One y paneles) */
.zd-body .list-group-item {
    background: transparent;
    border-color: var(--zd-border);
    color: var(--zd-text-2);
}
.zd-body .list-group-item-action:hover, .zd-body .list-group-item-action:focus { background: var(--zd-surface-2); color: var(--zd-text); }
.zd-body .list-group-item.active, .zd-body .list-group-item-action.active {
    background: rgba(var(--zd-primary-rgb), .1);
    border-color: var(--zd-border);
    color: var(--zd-link);
    font-weight: 600;
}
.zd-body .list-group-flush .list-group-item { border-left: 0; border-right: 0; }

/* Tablas y DataTables */
.zd-body .table { color: var(--zd-text); }
.zd-body .table th, .zd-body .table td { border-color: var(--zd-border); vertical-align: middle; }
.zd-body .table thead th {
    background: var(--zd-surface-2);
    color: var(--zd-muted);
    font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--zd-border) !important;
}
.zd-body .table-striped tbody tr:nth-of-type(odd) { background: var(--zd-surface-2); }
.zd-body .table-hover tbody tr:hover, .zd-body .table-list tbody tr:hover { background: rgba(var(--zd-primary-rgb), .06); color: var(--zd-text); }
.zd-body .table-list { background: var(--zd-surface); border-radius: var(--zd-radius); overflow: hidden; }
.zd-body .table-container, .zd-body .dataTables_wrapper {
    background: var(--zd-surface);
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    box-shadow: var(--zd-shadow);
    padding: 12px;
    color: var(--zd-text);
}
.zd-body .table-container .dataTables_wrapper { border: 0; box-shadow: none; padding: 0; }
.zd-body .dataTables_wrapper .dataTables_info,
.zd-body .dataTables_wrapper .dataTables_length,
.zd-body .dataTables_wrapper .dataTables_filter label { color: var(--zd-muted); }
.zd-body .dataTables_wrapper .dataTables_filter input,
.zd-body .dataTables_wrapper .dataTables_length select { background: var(--zd-input-bg); color: var(--zd-text); border: 1px solid var(--zd-border-strong); border-radius: 8px; }
.zd-body table.dataTable thead .sorting, .zd-body table.dataTable thead .sorting_asc, .zd-body table.dataTable thead .sorting_desc { background-color: var(--zd-surface-2); }

/* Paginación */
.zd-body .page-link { background: var(--zd-surface); border-color: var(--zd-border); color: var(--zd-text-2); }
.zd-body .page-link:hover { background: var(--zd-surface-3); color: var(--zd-text); }
.zd-body .page-item.active .page-link { background: var(--zd-primary); border-color: var(--zd-primary); color: #fff; }
.zd-body .page-item.disabled .page-link { background: var(--zd-surface-2); color: var(--zd-muted); border-color: var(--zd-border); }

/* Tabs y nav */
.zd-body .nav-tabs { border-color: var(--zd-border); }
.zd-body .nav-tabs .nav-link { color: var(--zd-muted); border: 0; border-bottom: 2px solid transparent; }
.zd-body .nav-tabs .nav-link:hover { color: var(--zd-text); border-color: transparent; }
.zd-body .nav-tabs .nav-link.active, .zd-body .nav-tabs .nav-item.show .nav-link {
    background: transparent; color: var(--zd-link); border-bottom-color: var(--zd-primary);
}
.zd-body .nav-pills .nav-link.active { background: var(--zd-primary); }
.zd-body .tab-content { color: var(--zd-text); }

/* Modales */
.zd-body .modal-content {
    background: var(--zd-surface);
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    color: var(--zd-text);
    box-shadow: var(--zd-shadow-lg);
}
.zd-body .modal-header, .zd-body .modal-footer { border-color: var(--zd-border); }
.zd-body .modal-title { color: var(--zd-text); }
.zd-body .close { color: var(--zd-text); text-shadow: none; opacity: .6; }
.zd-body .close:hover { color: var(--zd-text); opacity: 1; }
html[data-theme="dark"] .modal-backdrop.show { opacity: .7; }
.zd-body .modal-localisation .modal-content { background: var(--zd-surface); }
.zd-body .modal-localisation .item-selector .item {
    display: block; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px;
    border: 1px solid var(--zd-border); color: var(--zd-text-2); text-decoration: none;
}
.zd-body .modal-localisation .item-selector .item:hover { background: var(--zd-surface-3); }
.zd-body .modal-localisation .item-selector .item.active { border-color: var(--zd-primary); background: rgba(var(--zd-primary-rgb), .1); color: var(--zd-link); }

/* Alertas */
.zd-body .alert { border-radius: 12px; border-width: 1px; }
.zd-body .alert-info    { background: rgba(2, 132, 199, .08);  border-color: rgba(2, 132, 199, .25);  color: var(--zd-text); }
.zd-body .alert-success { background: rgba(15, 157, 88, .08);  border-color: rgba(15, 157, 88, .25);  color: var(--zd-text); }
.zd-body .alert-warning { background: rgba(217, 119, 6, .09);  border-color: rgba(217, 119, 6, .28);  color: var(--zd-text); }
.zd-body .alert-danger, .zd-body .alert-error { background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .28); color: var(--zd-text); }
.zd-body .alert a { color: var(--zd-link); font-weight: 600; }

/* Badges / estados */
.zd-body .badge { border-radius: 999px; font-weight: 600; padding: .35em .7em; }
.zd-body .badge-info, .zd-body .badge-primary { background: var(--zd-primary); color: #fff; }
.zd-body .label { border-radius: 999px; font-weight: 600; }
.zd-body .label.status { padding: 4px 10px; font-size: 12px; }
.zd-body .label.status-active, .zd-body .label.status-paid, .zd-body .label.status-open, .zd-body .label.status-answered { background: rgba(15, 157, 88, .14); color: var(--zd-success); }
.zd-body .label.status-pending, .zd-body .label.status-unpaid, .zd-body .label.status-customer-reply, .zd-body .label.status-inprogress { background: rgba(217, 119, 6, .14); color: var(--zd-warning); }
.zd-body .label.status-suspended, .zd-body .label.status-cancelled, .zd-body .label.status-terminated, .zd-body .label.status-overdue, .zd-body .label.status-fraud { background: rgba(220, 38, 38, .12); color: var(--zd-danger); }
.zd-body .label.status-closed, .zd-body .label.status-expired, .zd-body .label.status-refunded { background: var(--zd-surface-3); color: var(--zd-muted); }

/* Breadcrumb */
.zd-body .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 13px; }
.zd-body .breadcrumb-item, .zd-body .breadcrumb-item a { color: var(--zd-muted); }
.zd-body .breadcrumb-item.active { color: var(--zd-text-2); }
.zd-body .breadcrumb-item + .breadcrumb-item::before { color: var(--zd-border-strong); }

/* Sidebars contextuales de Twenty-One */
.zd-body .sidebar .card { margin-bottom: 18px; }
.zd-body .sidebar .card-header { padding: 14px 18px; }
.zd-body .sidebar .card-title { font-size: .95rem; }
.zd-body .sidebar .list-group-item { padding: 10px 18px; font-size: 14px; }

/* Tiles nativos / home cards */
.zd-body .tiles .tile { background: var(--zd-surface); color: var(--zd-text); border-color: var(--zd-border); }
.zd-body .client-home-cards .card { margin-bottom: 20px; }

/* Editor markdown (tickets) */
.zd-body .md-editor { border: 1px solid var(--zd-border-strong); border-radius: var(--zd-radius-sm); overflow: hidden; background: var(--zd-input-bg); }
.zd-body .md-editor > .md-header { background: var(--zd-surface-2); border-bottom: 1px solid var(--zd-border); padding: 6px; }
.zd-body .md-editor > textarea, .zd-body .md-editor > .md-preview { background: var(--zd-input-bg) !important; color: var(--zd-text) !important; border: 0 !important; }
.zd-body .md-editor.active { border-color: var(--zd-primary); box-shadow: 0 0 0 3px rgba(var(--zd-primary-rgb), .18); }
.zd-body .md-editor .btn-default, .zd-body .md-editor .btn { background: transparent !important; border: 0 !important; color: var(--zd-text-2) !important; }
.zd-body .md-editor .md-footer, .zd-body .markdown-editor-status { background: var(--zd-surface-2); color: var(--zd-muted); }

/* Tickets (vista de ticket) */
.zd-body .ticket-reply, .zd-body .view-ticket .ticket-reply {
    background: var(--zd-surface); border: 1px solid var(--zd-border); border-radius: var(--zd-radius); color: var(--zd-text);
}
.zd-body .ticket-reply .posted-by, .zd-body .ticket-reply .user { background: var(--zd-surface-2); color: var(--zd-text-2); border-color: var(--zd-border); }
.zd-body .ticket-reply.staff { border-left: 3px solid var(--zd-primary); }
.zd-body .ticket-reply .message { color: var(--zd-text); }

/* intl-tel-input */
.zd-body .iti__country-list { background: var(--zd-surface); border-color: var(--zd-border); color: var(--zd-text); box-shadow: var(--zd-shadow-lg); }
.zd-body .iti__country.iti__highlight { background: var(--zd-surface-3); }
.zd-body .iti__dial-code { color: var(--zd-muted); }
.zd-body .iti__selected-flag:hover, .zd-body .iti__selected-flag:focus { background: var(--zd-surface-3); }

/* Bootstrap switch (WHMCS) */
.zd-body .bootstrap-switch { border-color: var(--zd-border-strong); background: var(--zd-surface); }
.zd-body .bootstrap-switch .bootstrap-switch-label { background: var(--zd-surface); color: var(--zd-text); }
.zd-body .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success { background: var(--zd-primary); }

/* Popovers / tooltips */
.zd-body .popover { background: var(--zd-surface); border-color: var(--zd-border); }
.zd-body .popover-body { color: var(--zd-text); }
.zd-body .popover-header { background: var(--zd-surface-2); color: var(--zd-text); border-color: var(--zd-border); }

/* Overlay de carga */
#fullpage-overlay { background: rgba(10, 12, 20, .55); }

/* =====================================================================
   Layout ACCESO (pantalla dividida)
   ===================================================================== */
.zd-auth { display: flex; min-height: 100vh; }
.zd-auth-panel {
    position: relative;
    flex: 0 0 42%;
    max-width: 640px;
    background: var(--zd-grad);
    background-size: cover; background-position: center;
    color: #fff;
    overflow: hidden;
}
.zd-auth-panel.has-image::before {
    content: ""; position: absolute; inset: 0;
    background: var(--zd-grad); opacity: .86;
}
.zd-auth-panel::after {
    content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}
.zd-auth-panel-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; height: 100%; min-height: 100vh;
    padding: 44px 48px;
}
.zd-auth-panel .zd-logo img { max-height: 48px; max-width: 260px; }
.zd-auth-panel .zd-logo-text { color: #fff; }
.zd-auth-panel-body { margin: auto 0; padding: 40px 0; max-width: 480px; }
.zd-auth-panel-title { color: #fff !important; font-size: 2.1rem; font-weight: 800; margin-bottom: 18px; line-height: 1.15; }
.zd-auth-message { color: rgba(255, 255, 255, .88); font-size: 1rem; line-height: 1.65; margin-bottom: 26px; }
.zd-auth-message a { color: #fff !important; text-decoration: underline; }
.zd-news-slider { position: relative; }
.zd-news-slide { display: none; animation: zdFade .45s ease; }
.zd-news-slide.is-active { display: block; }
.zd-news-slide time { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); margin-bottom: 6px; }
.zd-news-slide h3 { font-size: 1.55rem; line-height: 1.25; margin-bottom: 12px; }
.zd-news-slide h3 a { color: #fff !important; text-decoration: none; }
.zd-news-slide p { color: rgba(255, 255, 255, .82); line-height: 1.65; margin-bottom: 14px; }
.zd-news-more { color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.zd-news-more i { transition: transform .2s; }
.zd-news-more:hover i { transform: translateX(4px); }
.zd-news-dots { display: flex; gap: 8px; margin-top: 24px; }
.zd-news-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .25s, background .25s; }
.zd-news-dots button.is-active { width: 28px; background: #fff; }
.zd-auth-panel-foot { font-size: 12px; color: rgba(255, 255, 255, .6); }
@keyframes zdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.zd-auth-main { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 24px 28px; }
.zd-auth-top { display: flex; align-items: center; justify-content: space-between; }
.zd-auth-top-logo { visibility: hidden; }
.zd-auth-top-actions { display: flex; gap: 6px; margin-left: auto; }
.zd-auth-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 0; }
.zd-auth-content .primary-content { width: 100%; max-width: 440px; }
.zd-auth-content .zd-notice { width: 100%; max-width: 440px; }
.zd-auth-card {
    background: var(--zd-surface);
    border: 1px solid var(--zd-border);
    border-radius: 20px;
    box-shadow: var(--zd-shadow);
    padding: 36px 34px 28px;
}
.zd-auth-content .card { border-radius: 20px; }
.zd-auth-content .card .card-body { padding: 32px; }
.zd-auth-content .mw-540 { max-width: 100%; }
.zd-auth-head { text-align: center; margin-bottom: 24px; }
.zd-auth-head h1 { font-size: 1.85rem; margin-bottom: 8px; }
.zd-auth-head p { color: var(--zd-muted); margin: 0; font-size: 14px; }
.zd-input-icon { position: relative; }
.zd-input-icon > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--zd-muted); pointer-events: none; z-index: 3; }
.zd-input-icon .form-control { padding-left: 42px; min-height: 50px; }
.zd-input-icon .zd-reveal {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 3;
    background: transparent !important; border: 0 !important; color: var(--zd-muted) !important; box-shadow: none !important;
}
.zd-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.zd-link-small { font-size: 13px; font-weight: 600; }
.zd-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.zd-check .form-check-input { position: static; margin: 0; width: 17px; height: 17px; }
.zd-captcha { display: flex; justify-content: center; margin: 4px 0 18px; }
.zd-auth-card .providerLinkingFeedback:empty { display: none; }
.zd-auth-card .social-signin-btns, .zd-auth-card .sub-heading { margin-top: 18px; }
.zd-auth-card .sub-heading span, .zd-auth-content .sub-heading span { background: var(--zd-surface); color: var(--zd-muted); }
.zd-auth-alt { text-align: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--zd-border); font-size: 14px; color: var(--zd-muted); }
.zd-auth-alt a { font-weight: 700; }
.zd-auth-help {
    display: flex; align-items: center; gap: 14px;
    margin-top: 16px; padding: 14px 18px;
    background: var(--zd-surface); border: 1px solid var(--zd-border); border-radius: 16px;
    color: var(--zd-text) !important; text-decoration: none !important;
    transition: border-color .15s, transform .15s;
}
.zd-auth-help:hover { border-color: var(--zd-primary); transform: translateY(-1px); }
.zd-auth-help strong { display: block; font-size: 14px; }
.zd-auth-help small { color: var(--zd-muted); }
.zd-auth-help > i { margin-left: auto; color: var(--zd-muted); }
.zd-auth-help-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--zd-primary-rgb), .12); color: var(--zd-link); }
.zd-auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; font-size: 13px; }
.zd-auth-foot a { color: var(--zd-muted); }

/* =====================================================================
   Layout ÁREA DE CLIENTES (menú lateral)
   ===================================================================== */
.zd-app { min-height: 100vh; }
.zd-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040;
    width: var(--zd-sidebar-w);
    display: flex; flex-direction: column;
    background: var(--zd-surface);
    border-right: 1px solid var(--zd-border);
}
.zd-sidebar-head { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 20px; border-bottom: 1px solid var(--zd-border); }
.zd-sidebar-close { display: none; }
.zd-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.zd-nav-list, .zd-subnav { list-style: none; margin: 0; padding: 0; }
.zd-nav-item { margin-bottom: 2px; }
.zd-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--zd-text-2) !important; font-weight: 600; font-size: 14.5px;
    text-decoration: none !important;
    transition: background .15s, color .15s;
}
.zd-nav-link:hover { background: var(--zd-surface-3); color: var(--zd-text) !important; }
.zd-nav-icon { width: 20px; text-align: center; color: var(--zd-muted); font-size: 15px; }
.zd-nav-label { flex: 1; }
.zd-caret { font-size: 11px; color: var(--zd-muted); transition: transform .2s; }
.zd-nav-link:not(.collapsed) .zd-caret { transform: rotate(180deg); }
.zd-nav-item.is-active > .zd-nav-link { background: rgba(var(--zd-primary-rgb), .1); color: var(--zd-link) !important; }
.zd-nav-item.is-active > .zd-nav-link .zd-nav-icon { color: var(--zd-link); }
.zd-subnav { padding: 4px 0 8px 32px; }
.zd-subnav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 12px; border-radius: 8px; font-size: 14px;
    color: var(--zd-muted) !important; text-decoration: none !important;
    position: relative;
}
.zd-subnav a::before { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--zd-border-strong); transform: translateY(-50%); }
.zd-subnav a:hover { color: var(--zd-text) !important; background: var(--zd-surface-2); }
.zd-subnav a.is-active { color: var(--zd-link) !important; font-weight: 600; }
.zd-subnav a.is-active::before { background: var(--zd-primary); }
.zd-badge { background: var(--zd-surface-3); color: var(--zd-text-2); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.zd-sidebar-foot { padding: 16px; border-top: 1px solid var(--zd-border); }
.zd-sidebar-cta { padding: 11px !important; }
.zd-sidebar-help { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--zd-muted) !important; }

.zd-main { margin-left: var(--zd-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.zd-topbar {
    position: sticky; top: 0; z-index: 1030;
    display: flex; align-items: center; gap: 12px;
    height: 72px; padding: 0 28px;
    background: color-mix(in srgb, var(--zd-bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--zd-border);
}
.zd-burger, .zd-topbar-logo { display: none !important; }
.zd-search { position: relative; align-items: center; flex: 0 1 380px; }
.zd-search i { position: absolute; left: 14px; color: var(--zd-muted); font-size: 14px; }
.zd-search .form-control { padding-left: 38px; min-height: 40px; border-radius: 12px; background: var(--zd-surface); border-color: var(--zd-border); }
.zd-topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.zd-user-btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px 0 5px; margin-left: 6px;
    border-radius: 999px; border: 1px solid var(--zd-border);
    background: var(--zd-surface); color: var(--zd-text); font-weight: 600; font-size: 14px; cursor: pointer;
}
.zd-user-btn:hover { border-color: var(--zd-border-strong); }
.zd-user-btn .fa-chevron-down { font-size: 10px; color: var(--zd-muted); }
.zd-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--zd-primary); color: #fff; font-weight: 800; text-transform: uppercase;
}
.zd-user-menu, .zd-notif-menu { min-width: 280px; margin-top: 8px !important; }
.zd-menu-title { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--zd-border); font-weight: 700; color: var(--zd-text); }
.zd-menu-title small { display: block; font-weight: 400; color: var(--zd-muted); }
.zd-user-menu .dropdown-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 14px; }
.zd-user-menu .dropdown-item .badge { margin-left: auto; }
.zd-notif-menu { max-height: 420px; overflow-y: auto; }
.zd-notif-item { display: flex !important; gap: 10px; white-space: normal; padding: 10px 12px; font-size: 13.5px; }
.zd-notif-item i { margin-top: 3px; }
.zd-sev-danger i { color: var(--zd-danger); }
.zd-sev-warning i { color: var(--zd-warning); }
.zd-sev-info i { color: var(--zd-info); }
.zd-sev-success i { color: var(--zd-success); }
.zd-notif-empty { padding: 22px 12px; text-align: center; color: var(--zd-muted); font-size: 14px; }
.zd-masq {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 9px 28px; font-size: 13px;
    background: rgba(217, 119, 6, .12); color: var(--zd-text); border-bottom: 1px solid rgba(217, 119, 6, .3);
}
.zd-masq a { font-weight: 700; }
.zd-main-inner { flex: 1; display: flex; flex-direction: column; padding: 26px 32px 0; width: 100%; max-width: 1480px; }
.zd-main-inner > #main-body { flex: 1; }
.zd-page-head { margin-bottom: 22px; }
.zd-page-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.zd-page-title { font-size: 1.75rem; margin: 0 0 4px; }
.zd-head-links { display: flex; flex-wrap: wrap; gap: 8px; }
.zd-ctx-col .sidebar:first-child { margin-top: 0; }
.zd-backdrop { display: none; }
.zd-tpl-clientareahome .zd-ctx-col { order: 2; }

/* Pie */
.zd-footer {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
    padding: 26px 0 30px; margin-top: 40px;
    border-top: 1px solid var(--zd-border);
    font-size: 13px; color: var(--zd-muted);
}
.zd-footer-copy { margin-right: auto; }
.zd-footer-links, .zd-social { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.zd-footer-links a, .zd-social a { color: var(--zd-muted) !important; }
.zd-footer-links a:hover, .zd-social a:hover { color: var(--zd-text) !important; }
.zd-social:empty { display: none; }
.zd-social .btn { background: transparent !important; border: 0 !important; color: var(--zd-muted) !important; padding: 0; }

/* =====================================================================
   Layout PÚBLICO
   ===================================================================== */
.zd-pubbar {
    position: sticky; top: 0; z-index: 1030;
    min-height: 74px;
    background: color-mix(in srgb, var(--zd-surface) 88%, transparent) !important;
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--zd-border);
}
.zd-pubbar .container { display: flex; align-items: center; flex-wrap: wrap; }
.zd-pubbar-quick { display: flex; gap: 4px; margin-left: auto; }
.zd-pubnav > li > a {
    display: block; padding: 10px 14px !important; border-radius: 10px;
    color: var(--zd-text-2) !important; font-weight: 600; font-size: 14.5px; text-decoration: none !important;
}
.zd-pubnav > li > a:hover { background: var(--zd-surface-3); color: var(--zd-text) !important; }
.zd-pubnav .dropdown-menu { margin-top: 6px; }
.zd-pubnav .dropdown-menu li { list-style: none; padding: 0 !important; }
.zd-pubnav .dropdown-menu li > a { display: block; padding: 8px 12px !important; text-decoration: none; }
.zd-pubbar-actions { display: flex; align-items: center; gap: 8px; }
body.zd-layout-public { display: flex; flex-direction: column; min-height: 100vh; }
.zd-public-body { flex: 1 0 auto; padding: 36px 0 20px; }
.zd-public-foot { background: var(--zd-surface); border-top: 1px solid var(--zd-border); }
.zd-public-foot .zd-footer { border-top: 0; margin-top: 0; }
/* Buscador de dominios de la portada */
.zd-body .home-domain-search, .zd-body .domain-search-section, .zd-body section.home-domain-search {
    background: var(--zd-grad) !important; color: #fff; border: 0;
}
.zd-body .home-domain-search h2, .zd-body .home-domain-search p { color: #fff !important; }

/* =====================================================================
   Barra de aviso
   ===================================================================== */
.zd-notice {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 16px; margin-bottom: 22px;
    border-radius: 14px; border: 1px solid;
    font-size: 14px; color: var(--zd-text);
}
.zd-notice > i { margin-top: 3px; }
.zd-notice-text { flex: 1; }
.zd-notice-text p:last-child { margin-bottom: 0; }
.zd-notice-text a { font-weight: 700; margin-left: 6px; white-space: nowrap; }
.zd-notice-close { background: none; border: 0; color: var(--zd-muted); cursor: pointer; padding: 0 4px; }
.zd-notice-close:hover { color: var(--zd-text); }
.zd-notice--info    { background: rgba(var(--zd-primary-rgb), .08); border-color: rgba(var(--zd-primary-rgb), .25); }
.zd-notice--info > i { color: var(--zd-link); }
.zd-notice--success { background: rgba(15, 157, 88, .08); border-color: rgba(15, 157, 88, .28); }
.zd-notice--success > i { color: var(--zd-success); }
.zd-notice--warning { background: rgba(217, 119, 6, .09); border-color: rgba(217, 119, 6, .3); }
.zd-notice--warning > i { color: var(--zd-warning); }
.zd-notice--danger  { background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .3); }
.zd-notice--danger > i { color: var(--zd-danger); }
.zd-public-body ~ .zd-notice, .zd-pubbar ~ .zd-notice { max-width: 1110px; margin: 18px auto 0; }
html.zd-notice-off .zd-notice { display: none; }

/* =====================================================================
   Inicio del cliente
   ===================================================================== */
.zd-hero {
    position: relative; overflow: hidden;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
    padding: 30px 32px; margin-bottom: 24px;
    border-radius: 20px;
    background: var(--zd-grad); color: #fff;
    box-shadow: 0 14px 40px rgba(var(--zd-primary-rgb), .25);
}
.zd-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.zd-hero .zd-eyebrow { color: rgba(255, 255, 255, .75); }
.zd-hero h1 { color: #fff !important; font-size: 2rem; margin: 6px 0; }
.zd-hero p { margin: 0; color: rgba(255, 255, 255, .85); }
.zd-hero-actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(96px, 1fr)); gap: 10px; }
.zd-quick {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 92px; padding: 12px 10px; border-radius: 14px;
    background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff !important; text-decoration: none !important; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.25;
    transition: background .15s, transform .15s;
}
.zd-quick i { font-size: 20px; }
.zd-quick:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.zd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.zd-tile {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
    padding: 18px 20px; border-radius: 16px;
    background: var(--zd-surface); border: 1px solid var(--zd-border); box-shadow: var(--zd-shadow);
    color: var(--zd-text) !important; text-decoration: none !important;
    transition: transform .15s, border-color .15s;
}
.zd-tile:hover { transform: translateY(-2px); border-color: rgba(var(--zd-primary-rgb), .5); }
.zd-tile-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--zd-primary-rgb), .12); color: var(--zd-link); font-size: 19px; }
.zd-tile-stat { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.zd-tile-title { color: var(--zd-muted); font-size: 13px; font-weight: 600; }
.zd-tile.is-alert .zd-tile-icon { background: rgba(220, 38, 38, .12); color: var(--zd-danger); }
.zd-tile.is-alert .zd-tile-stat { color: var(--zd-danger); }
.zd-block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.zd-block-head h2 { font-size: 1.15rem; margin: 0; }
.zd-block-head a { font-size: 14px; font-weight: 600; }
.zd-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.zd-news-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 20px; border-radius: 16px;
    background: var(--zd-surface); border: 1px solid var(--zd-border); box-shadow: var(--zd-shadow);
    color: var(--zd-text) !important; text-decoration: none !important;
}
.zd-news-card:hover { border-color: rgba(var(--zd-primary-rgb), .5); }
.zd-news-card time { font-size: 12px; color: var(--zd-link); font-weight: 700; }
.zd-news-card strong { font-size: 15px; line-height: 1.35; }
.zd-news-card span { font-size: 13.5px; color: var(--zd-muted); line-height: 1.55; }

/* Paneles del inicio: lista de servicios más clara */
.zd-body .client-home-cards .card-header .btn-xs { padding: 4px 12px; font-size: 12px; border-radius: 8px; }
.zd-body .client-home-cards .list-group-item { padding: 14px 20px; }
.zd-body .client-home-cards .div-service-item, .zd-body .client-home-cards .div-service-name { color: var(--zd-text); }

/* =====================================================================
   Tickets (abrir ticket con o sin sesión)
   ===================================================================== */
.zd-ticket { max-width: 1120px; margin: 0 auto; }
.zd-ticket-hero {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px;
    margin-bottom: 24px;
}
.zd-ticket-hero h1 { font-size: 2rem; margin: 6px 0 6px; }
.zd-ticket-hero p { color: var(--zd-muted); margin: 0; max-width: 620px; }
.zd-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.zd-steps li {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: var(--zd-surface); border: 1px solid var(--zd-border);
    font-size: 13px; font-weight: 600; color: var(--zd-muted);
}
.zd-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--zd-surface-3); font-size: 12px; }
.zd-steps li.is-current { color: var(--zd-text); border-color: rgba(var(--zd-primary-rgb), .5); }
.zd-steps li.is-current span { background: var(--zd-primary); color: #fff; }
.zd-steps li.is-done span { background: var(--zd-success); color: #fff; }
.zd-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.zd-dept {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 22px; border-radius: 16px;
    background: var(--zd-surface); border: 1px solid var(--zd-border); box-shadow: var(--zd-shadow);
    color: var(--zd-text) !important; text-decoration: none !important;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.zd-dept:hover { transform: translateY(-2px); border-color: var(--zd-primary); box-shadow: 0 10px 30px rgba(var(--zd-primary-rgb), .15); }
.zd-dept-icon { flex: 0 0 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--zd-primary-rgb), .12); color: var(--zd-link); font-size: 20px; }
.zd-dept-body { flex: 1; }
.zd-dept-body strong { display: block; font-size: 16px; }
.zd-dept-body small { display: block; color: var(--zd-muted); font-size: 13.5px; margin-top: 3px; line-height: 1.45; }
.zd-dept-go { color: var(--zd-muted); transition: transform .15s, color .15s; }
.zd-dept:hover .zd-dept-go { color: var(--zd-link); transform: translateX(4px); }
.zd-ticket-login { margin-top: 22px; text-align: center; color: var(--zd-muted); font-size: 14px; }
.zd-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.zd-ticket-aside { position: sticky; top: 92px; }
.zd-ticket-aside .card { margin-bottom: 16px; }
.zd-ticket-aside h3 { font-size: 1rem; margin-bottom: 12px; }
.zd-tips { list-style: none; padding: 0; margin: 0; }
.zd-tips li { display: flex; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--zd-text-2); }
.zd-tips i { color: var(--zd-link); margin-top: 3px; width: 16px; text-align: center; }
.zd-aside-login p { font-size: 13.5px; color: var(--zd-muted); }
.zd-section { margin-bottom: 18px; }
.zd-section .card-body { padding: 24px 26px; }
.zd-section-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 18px; }
.zd-section-title > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--zd-primary); color: #fff; font-size: 13px; }
.zd-section-title > i { color: var(--zd-link); }
.zd-section-title em { font-style: normal; font-weight: 500; color: var(--zd-muted); font-size: 13px; }
.zd-priority { display: flex; flex-wrap: wrap; gap: 8px; }
.zd-chip { margin: 0; cursor: pointer; }
.zd-chip input { position: absolute; opacity: 0; pointer-events: none; }
.zd-chip span {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px; padding: 0 16px; border-radius: 10px;
    border: 1px solid var(--zd-border-strong); background: var(--zd-input-bg);
    font-weight: 600; font-size: 14px; color: var(--zd-text-2);
}
.zd-chip span i { font-size: 8px; }
.zd-chip input:checked + span { border-color: var(--zd-primary); background: rgba(var(--zd-primary-rgb), .1); color: var(--zd-text); box-shadow: 0 0 0 3px rgba(var(--zd-primary-rgb), .12); }
.zd-chip input:focus-visible + span { outline: 2px solid var(--zd-primary); }
.zd-p-low { color: var(--zd-success); }
.zd-p-medium { color: var(--zd-warning); }
.zd-p-high { color: var(--zd-danger); }
.zd-drop { margin-bottom: 8px; }
.zd-drop .custom-file { height: auto; }
.zd-drop .custom-file-input { height: 100%; cursor: pointer; }
.zd-drop .custom-file-label {
    position: relative; height: auto; min-height: 76px;
    display: flex; align-items: center; justify-content: center;
    border: 2px dashed var(--zd-border-strong) !important; border-radius: 12px 0 0 12px !important;
    background: var(--zd-surface-2); color: var(--zd-muted); font-weight: 500;
}
.zd-drop .custom-file-label::after { display: none; }
.zd-drop.is-drag .custom-file-label, .zd-drop .custom-file:hover .custom-file-label { border-color: var(--zd-primary) !important; color: var(--zd-text); }
.zd-drop .input-group-append .btn { border-radius: 0 12px 12px 0 !important; }
#fileUploadsContainer .input-group { margin-top: 8px; }
.zd-ticket-submit { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 10px; }
.zd-done { text-align: center; max-width: 620px; margin: 0 auto; }
.zd-done .card-body { padding: 44px 30px; }
.zd-done-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 157, 88, .14); color: var(--zd-success); font-size: 30px; }
.zd-done h2 { font-size: 1.5rem; }
.zd-done p { color: var(--zd-muted); }
.zd-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* =====================================================================
   Datos del cliente
   ===================================================================== */
.zd-details .form-group em { font-style: normal; font-weight: 400; color: var(--zd-muted); }
.zd-switch-list { display: flex; flex-direction: column; gap: 4px; }
.zd-switch { display: flex; align-items: center; gap: 12px; margin: 0; padding: 9px 0; font-weight: 500; cursor: pointer; color: var(--zd-text-2); }
.zd-switch input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.zd-switch-ui { position: relative; flex: 0 0 42px; height: 24px; border-radius: 12px; background: var(--zd-border-strong); transition: background .2s; }
.zd-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.zd-switch input:checked + .zd-switch-ui { background: var(--zd-primary); }
.zd-switch input:checked + .zd-switch-ui::after { transform: translateX(18px); }
.zd-switch input:focus-visible + .zd-switch-ui { box-shadow: 0 0 0 3px rgba(var(--zd-primary-rgb), .3); }
.zd-sticky-save {
    position: sticky; bottom: 14px; z-index: 5;
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 12px 14px; margin-top: 6px;
    background: color-mix(in srgb, var(--zd-surface) 90%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--zd-border); border-radius: 14px; box-shadow: var(--zd-shadow-lg);
}

/* =====================================================================
   Tienda (orderforms/standard_cart): productos más claros para contratar
   ===================================================================== */
.zd-body #order-standard_cart { color: var(--zd-text); }
.zd-body #order-standard_cart .header-lined h1,
.zd-body #order-standard_cart .header-lined h2 { color: var(--zd-text); font-weight: 800; }
.zd-body #order-standard_cart .header-lined p { color: var(--zd-muted); }
.zd-body #order-standard_cart .products .row { row-gap: 22px; }
.zd-body #order-standard_cart .products .product {
    position: relative;
    display: flex; flex-direction: column;
    height: 100%; margin: 0;
    padding: 26px 24px 22px;
    background: var(--zd-surface);
    border: 1px solid var(--zd-border);
    border-radius: 18px;
    box-shadow: var(--zd-shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.zd-body #order-standard_cart .products .product:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--zd-primary-rgb), .55);
    box-shadow: 0 18px 44px rgba(var(--zd-primary-rgb), .16);
}
.zd-body #order-standard_cart .products .product header {
    background: transparent !important; border: 0; padding: 0; margin: 0 0 12px;
    color: var(--zd-text); font-size: 1.3rem; font-weight: 800;
}
.zd-body #order-standard_cart .products .product header span { color: var(--zd-text); }
.zd-body #order-standard_cart .products .product header .qty { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--zd-muted); }
.zd-body #order-standard_cart .products .product div.product-desc {
    float: none; width: auto; padding: 0; flex: 1;
    color: var(--zd-text-2); font-size: 14px;
}
.zd-body #order-standard_cart .products .product div.product-desc p { color: var(--zd-muted); }
.zd-body #order-standard_cart .products .product div.product-desc ul { list-style: none; padding: 0; margin: 12px 0 0; }
.zd-body #order-standard_cart .products .product div.product-desc ul li {
    position: relative; padding: 7px 0 7px 26px; border-bottom: 1px dashed var(--zd-border); color: var(--zd-text-2);
}
.zd-body #order-standard_cart .products .product div.product-desc ul li::before {
    content: "\f00c"; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 8px; font-size: 12px; color: var(--zd-link);
}
.zd-body #order-standard_cart .products .product div.product-desc ul li:last-child { border-bottom: 0; }
.zd-body #order-standard_cart .products .product .feature-value { font-weight: 700; color: var(--zd-text); margin-right: 4px; }
.zd-body #order-standard_cart .products .product footer {
    float: none; width: auto; margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--zd-border);
    text-align: left; font-size: 13px; color: var(--zd-muted);
}
.zd-body #order-standard_cart .products .product div.product-pricing { margin: 0 0 14px; color: var(--zd-muted); }
.zd-body #order-standard_cart .products .product div.product-pricing span.price {
    display: inline-block; font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--zd-text);
}
.zd-body #order-standard_cart .products .product .btn-order-now {
    display: block; width: 100%; margin: 0;
    padding: 12px 16px; font-size: 15px; border-radius: 12px;
}
.zd-body #order-standard_cart .products .product .btn-order-now:hover { transform: none; }
.zd-body #order-standard_cart .products .product.featured,
.zd-body #order-standard_cart .products .product.product-featured { border: 2px solid var(--zd-primary); }

/* Barra lateral de categorías y resumen del pedido */
.zd-body #order-standard_cart .cart-sidebar .card,
.zd-body #order-standard_cart .cart-sidebar .panel { border-radius: 14px; }
.zd-body #order-standard_cart .sub-heading { border-color: var(--zd-border); }
.zd-body #order-standard_cart .sub-heading span,
.zd-body #order-standard_cart .sub-heading-borderless span { background: var(--zd-bg); color: var(--zd-muted); }
.zd-body #order-standard_cart .order-summary, .zd-body #order-standard_cart .summary-container {
    background: var(--zd-surface) !important; border: 1px solid var(--zd-border) !important; border-radius: 16px; color: var(--zd-text);
}
.zd-body #order-standard_cart .order-summary h2 { background: var(--zd-primary) !important; color: #fff !important; border-radius: 14px 14px 0 0; font-size: 1.05rem; padding: 14px; margin: 0; }
.zd-body #order-standard_cart .order-summary .summary-container { border: 0 !important; background: transparent !important; }
.zd-body #order-standard_cart .order-summary .total-due-today .amt, .zd-body #order-standard_cart .order-summary .total-due-today span.amt { color: var(--zd-text); font-weight: 800; }
.zd-body #order-standard_cart .view-cart-items-header { background: var(--zd-primary) !important; color: #fff; border-radius: 12px 12px 0 0; }
.zd-body #order-standard_cart .view-cart-items { border-color: var(--zd-border); background: var(--zd-surface); }
.zd-body #order-standard_cart .view-cart-items .item { background: var(--zd-surface); border-color: var(--zd-border); color: var(--zd-text); }
.zd-body #order-standard_cart .view-cart-items .item:nth-child(even) { background: var(--zd-surface-2); }
.zd-body #order-standard_cart .view-cart-tabs .tab-content,
.zd-body #order-standard_cart .view-cart-tabs .nav-tabs { background: var(--zd-surface); border-color: var(--zd-border); }
.zd-body #order-standard_cart .product-info, .zd-body #order-standard_cart .field-container,
.zd-body #order-standard_cart .domain-selection-options .option,
.zd-body #order-standard_cart .addon-products .panel-addon {
    background: var(--zd-surface) !important; border-color: var(--zd-border) !important; color: var(--zd-text); border-radius: 14px;
}
.zd-body #order-standard_cart .domain-selection-options .option-selected { border-color: var(--zd-primary) !important; background: rgba(var(--zd-primary-rgb), .07) !important; }
.zd-body #order-standard_cart .addon-products .panel-addon-selected { border-color: var(--zd-primary) !important; }
.zd-body #order-standard_cart .addon-products .panel-addon .panel-price { background: var(--zd-surface-2); color: var(--zd-text); }
.zd-body #order-standard_cart .addon-products .panel-addon .panel-add { background: var(--zd-primary); color: #fff; }
.zd-body #order-standard_cart .domain-checker-container { background: var(--zd-grad) !important; border-radius: 18px; }
.zd-body #order-standard_cart .domain-checker-bg { background: none !important; }
.zd-body #order-standard_cart .domain-pricing .tld-row, .zd-body #order-standard_cart .domain-pricing .tld-pricing-header div { background: var(--zd-surface); color: var(--zd-text); border-color: var(--zd-border); }
.zd-body #order-standard_cart .domain-pricing .tld-row.highlighted { background: var(--zd-surface-2); }
.zd-body #order-standard_cart .spotlight-tlds .spotlight-tld { background: var(--zd-surface); border-color: var(--zd-border); color: var(--zd-text); border-radius: 12px; }
.zd-body #order-standard_cart .suggested-domains .list-group-item { background: var(--zd-surface); }
.zd-body #order-standard_cart .cc-input-container, .zd-body #order-standard_cart .paymethod-info { color: var(--zd-text); }
.zd-body #order-standard_cart .already-registered { background: var(--zd-surface-2); border-color: var(--zd-border); }
.zd-body #order-standard_cart label.radio-inline, .zd-body #order-standard_cart .prepend-icon .field-icon { color: var(--zd-muted); }
.zd-body .product-recommendations .product-recommendation { background: var(--zd-surface); border-color: var(--zd-border); color: var(--zd-text); border-radius: 14px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1199.98px) {
    .zd-ctx-col { margin-bottom: 4px; }
    .zd-tiles { grid-template-columns: repeat(2, 1fr); }
    .zd-ticket-layout { grid-template-columns: 1fr; }
    .zd-ticket-aside { position: static; }
}
@media (max-width: 991.98px) {
    .zd-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--zd-shadow-lg); }
    .zd-sidebar-open .zd-sidebar { transform: none; }
    .zd-sidebar-close { display: inline-flex; }
    .zd-backdrop { position: fixed; inset: 0; z-index: 1035; background: rgba(8, 10, 18, .5); }
    .zd-sidebar-open .zd-backdrop { display: block; }
    .zd-main { margin-left: 0; }
    .zd-burger, .zd-topbar-logo { display: inline-flex !important; }
    .zd-topbar { padding: 0 16px; height: 64px; }
    .zd-main-inner { padding: 20px 16px 0; }
    .zd-masq { padding: 8px 16px; }
    .zd-hero-actions { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .zd-auth-panel { display: none; }
    .zd-auth-top-logo { visibility: visible; }
    .zd-pubbar .navbar-collapse { flex-basis: 100%; padding: 10px 0 14px; }
    .zd-pubbar-actions { flex-wrap: wrap; padding-top: 8px; }
    .zd-pubbar-actions .btn { flex: 1; }
}
@media (max-width: 575.98px) {
    .zd-auth-main { padding: 16px; }
    .zd-auth-card { padding: 28px 20px 22px; border-radius: 18px; }
    .zd-hero { padding: 24px 20px; }
    .zd-hero h1 { font-size: 1.6rem; }
    .zd-tiles { gap: 10px; }
    .zd-tile { padding: 14px; column-gap: 10px; }
    .zd-tile-icon { width: 40px; height: 40px; font-size: 16px; }
    .zd-tile-stat { font-size: 1.35rem; }
    .zd-section .card-body { padding: 20px 16px; }
    .zd-ticket-submit { flex-direction: column-reverse; align-items: stretch; }
    .zd-ticket-hero h1 { font-size: 1.6rem; }
    .zd-steps li { padding-right: 10px; font-size: 12px; }
    .zd-drop .custom-file-label { border-radius: 12px !important; }
    .zd-drop { flex-direction: column; }
    .zd-drop .input-group-append { margin: 8px 0 0; }
    .zd-drop .input-group-append .btn { border-radius: 12px !important; width: 100%; }
    .zd-page-title { font-size: 1.45rem; }
    .zd-footer { flex-direction: column; align-items: flex-start; }
    .zd-topbar { gap: 4px; padding: 0 10px; }
    .zd-topbar-logo { flex: 1; min-width: 0; overflow: hidden; }
    .zd-topbar-logo .zd-logo-text { font-size: 1.05rem; white-space: nowrap; }
    .zd-topbar-logo img { max-width: 120px; }
    .zd-topbar-actions { gap: 0; }
    .zd-icon-btn { min-width: 36px; padding: 0 6px; }
    .zd-user-btn { margin-left: 2px; padding: 0 3px; border: 0; background: transparent; }
    .zd-user-btn .fa-chevron-down { display: none; }
}

/* Sin animaciones mientras se cambia de modo (evita el parpadeo de colores) */
html.zd-switching *, html.zd-switching *::before, html.zd-switching *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
    .zd-body *, .zd-body *::before, .zd-body *::after { transition: none !important; animation: none !important; }
}
