/* ═══════════════════════════════════════════════════════════
   INTRANET GORMATICA — Hoja de estilos principal
   Paleta: #CC0000 (rojo logo), #212529 (texto), #f8f9fa (fondo)
   Fuente logo: Titillium Web | UI: Bootstrap 5
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700;900&display=swap');

/* ── Reset / Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f4f6f9; color: #212529; min-height: 100vh; overflow-x: hidden; }

/* ══════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════ */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: #fff; border-bottom: 2px solid #CC0000; display: flex; align-items: center; padding: 0 1.25rem; z-index: 1030; box-shadow: 0 2px 8px rgba(204,0,0,.08); }
.topbar-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; margin-right: auto; }
.topbar-brand .brand-logo { font-family: 'Titillium Web', sans-serif; font-weight: 900; font-size: 1.45rem; color: #CC0000; letter-spacing: -.5px; line-height: 1; }
.topbar-brand .brand-sub { font-size: 1.2rem; color: #6c757d; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; display: block; }
.topbar-user { display: flex; align-items: center; gap: .75rem; }
.topbar-user .user-name { font-size: .875rem; font-weight: 600; color: #333; }
.topbar-user .user-nif  { font-size: .75rem; color: #6c757d; }
.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: #CC0000; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; flex-shrink: 0; }

.btn-topbar-logout { font-size: .8rem; color: #6c757d; border: 1px solid #dee2e6; border-radius: 5px; padding: .3rem .75rem; background: #fff; cursor: pointer; transition: all .15s; text-decoration: none; }
.btn-topbar-logout:hover { background: #fff5f5; color: #CC0000; border-color: #CC0000; }

.sidebar-toggle { display: none; background: none; border: none; padding: .4rem; color: #CC0000; cursor: pointer; margin-right: .75rem; font-size: 1.2rem; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */
.sidebar { position: fixed; top: 60px; left: 0; bottom: 0; width: 240px; background: #fff; border-right: 1px solid #dee2e6; overflow-y: auto; z-index: 1020; transition: transform .25s ease; padding-top: .5rem; }
.sidebar-section-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #6c757d; padding: 2rem 1.25rem .4rem; margin-bottom: 0px; }
.sidebar-nav    { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin: .1rem .6rem; }
.sidebar-nav a  { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 5px; color: #444; text-decoration: none; font-size: .875rem; font-weight: 500; transition: background .15s, color .15s; }
.sidebar-nav a i { width: 18px; text-align: center; font-size: .95rem; color: #6c757d; transition: color .15s; flex-shrink: 0; }
.sidebar-nav a:hover   { background: #fff5f5; color: #CC0000; }
.sidebar-nav a:hover i { color: #CC0000; }
.sidebar-nav a.active   { background: #CC0000; color: #fff; font-weight: 600; }
.sidebar-nav a.active i { color: rgba(255,255,255,.85); }

/* ══════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════ */
.main-content { margin-left: 240px; margin-top: 60px; padding: 1.75rem 2rem; min-height: calc(100vh - 60px); }

/* ── Page header ─────────────────────────────────────────── */
.page-title      { font-size: 1.35rem; font-weight: 700; color: #CC0000; margin: 0; }
.page-subtitle   { font-size: .875rem; color: #6c757d; margin-top: .15rem; }
.page-header-bar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }

/* ── Cards ───────────────────────────────────────────────── */
.g-card           { background: #ffffff; border: 1px solid #dee2e6; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.g-card-header    { padding: .9rem 1.25rem; border-bottom: 1px solid #dee2e6; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.g-card-header h5 { margin: 0; font-size: .95rem; font-weight: 700; color: #222; }
.g-card-body      { padding: 1.25rem; }
.g-card-body.p-0  { padding: 0; }

/* ── Stat cards ──────────────────────────────────────────── */
.stat-card                { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 1.1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-left: 4px solid #CC0000; display: flex; align-items: center; gap: 1rem; }
.stat-card.border-success { border-left-color: #198754; }
.stat-card.border-warning { border-left-color: #e67e22; }
.stat-card.border-info    { border-left-color: #0d6efd; }
.stat-icon         { width: 44px; height: 44px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-icon.red     { background: #fff5f5; color: #CC0000; }
.stat-icon.green   { background: #f0fdf4; color: #198754; }
.stat-icon.orange  { background: #fff7ed; color: #e67e22; }
.stat-icon.blue    { background: #eff6ff; color: #0d6efd; }
.stat-label        { font-size: .75rem; color: #6c757d; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-value        { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; line-height: 1.1; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-gorm        { background: #CC0000; color: #fff; border: none; border-radius: 5px; padding: .5rem 1.1rem; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.btn-gorm:hover  { background: #990000; color: #fff; }
.btn-gorm:focus  { outline: 2px solid rgba(204,0,0,.4); outline-offset: 2px; }
.btn-gorm.sm     { padding: .3rem .7rem; font-size: .8rem; }

.btn-gorm-outline       { background: transparent; color: #CC0000; border: 1px solid #CC0000; border-radius: 5px; padding: .45rem 1rem; font-size: .875rem; font-weight: 600; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.btn-gorm-outline:hover { background: #CC0000; color: #fff; }
.btn-gorm-outline.sm    { padding: .28rem .65rem; font-size: .8rem; }

.btn-gorm-ghost         { background: #f8f9fa; color: #495057; border: 1px solid #ced4da; border-radius: 20px; padding: .28rem .75rem; font-size: .75rem; font-weight: 600; white-space: nowrap; gap: .3rem; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn-gorm-ghost:hover   { background: #fff; color: #212529; border-color: #868e96; box-shadow: 0 2px 6px rgba(0,0,0,.12); transform: translateY(-1px); }
.btn-gorm-ghost:active  { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* ── Badges ──────────────────────────────────────────────── */
.badge-gorm         { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-gorm.success { background: #f0fdf4; color: #198754; border: 1px solid #bbf7d0; }
.badge-gorm.warning { background: #fff7ed; color: #e67e22; border: 1px solid #fed7aa; }
.badge-gorm.danger  { background: #fff5f5; color: #CC0000; border: 1px solid #fecaca; }
.badge-gorm.info    { background: #eff6ff; color: #0d6efd; border: 1px solid #bfdbfe; }
.badge-gorm.muted   { background: #f8f9fa; color: #6c757d; border: 1px solid #dee2e6; }

/* ── Tables ──────────────────────────────────────────────── */
.g-table                  { width: 100%; border-collapse: collapse; font-size: .875rem; }
.g-table th               { background: #f8f9fa; padding: .7rem 1rem; text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6c757d; border-bottom: 1px solid #dee2e6; white-space: nowrap; }
.g-table td               { padding: .8rem 1rem; border-bottom: 1px solid #f1f3f5; vertical-align: middle; color: #333; }
.g-table tr:last-child td { border-bottom: none; }
.g-table tbody tr         { transition: background .1s; }
.g-table tbody tr:hover td { background: #fafbfc; }
.table-responsive         { overflow-x: auto; }

/* ── Forms ───────────────────────────────────────────────── */
.g-label { display: block; font-size: .82rem; font-weight: 600; color: #444; margin-bottom: .35rem; }
.g-input, .g-select, .g-textarea { width: 100%; padding: .55rem .85rem; border: 1px solid #dee2e6; border-radius: 5px; font-size: .9rem; color: #333; background: #fff; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
.g-input:focus, .g-select:focus, .g-textarea:focus { outline: none; border-color: #CC0000; box-shadow: 0 0 0 3px rgba(204,0,0,.1); }
.g-input:disabled, .g-input[readonly],
.g-select:disabled, .g-select[readonly],
.g-textarea:disabled, .g-textarea[readonly] { background: #f3f3f3; color: #888; border-color: #e2e2e2; border-style: dashed; cursor: not-allowed; }
.g-input:disabled::placeholder, .g-textarea:disabled::placeholder { color: #bbb; }
.form-group:has(.g-input:disabled) .g-label,
.form-group:has(.g-input[readonly]) .g-label { color: #999; }
.form-group:has(.g-input:disabled) .g-label::after,
.form-group:has(.g-input[readonly]) .g-label::after { content: "\f023"; /* fa-lock */ font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", FontAwesome; font-weight: 900; font-size: .7em; margin-left: .4rem; color: #bbb; }
.g-textarea { resize: vertical; min-height: 100px; }
.form-group { margin-bottom: 1.1rem; }

/* ── Alerts ──────────────────────────────────────────────── */
.g-alert                 { padding: .85rem 1rem; border-radius: 5px; font-size: .875rem; border-left: 4px solid; }
.g-alert > i:first-child { margin-right: .5rem; }
.g-alert.success         { background: #f0fdf4; color: #166534; border-color: #198754; }
.g-alert.danger          { background: #fff5f5; color: #990000; border-color: #CC0000; }
.g-alert.warning         { background: #fff7ed; color: #92400e; border-color: #e67e22; }
.g-alert.info            { background: #eff6ff; color: #1e40af; border-color: #0d6efd; }

/* ── Modal ───────────────────────────────────────────────── */
.g-modal-header              { border-bottom: 1px solid #dee2e6; }
.g-modal-header .modal-title { font-size: 1rem; font-weight: 700; }
.g-modal-footer              { border-top: 1px solid #dee2e6; }

/* ── Divider ─────────────────────────────────────────────── */
.g-divider { border: none; border-top: 1px solid #dee2e6; margin: 1.25rem 0; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state   { text-align: center; padding: 3rem 1rem; color: #6c757d; }
.empty-state i { font-size: 2.5rem; opacity: .25; margin-bottom: .75rem; display: block; }

/* ── Toast ───────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   TAB BAR (móvil) — barra inferior tipo iOS/Android
   ══════════════════════════════════════════════════════════ */
.g-tabbar          { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #dee2e6; display: none; justify-content: space-around; padding: .5rem 0; padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); z-index: 1030; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.g-tabbar a        { flex: 1; color: #6c757d; text-decoration: none; text-align: center; font-size: .72rem; padding: .25rem; font-weight: 600; line-height: 1.1; }
.g-tabbar a i      { display: block; font-size: 1.25rem; margin-bottom: .25rem; }
.g-tabbar a.active { color: #CC0000; }

@media (max-width: 768px) {
  .sidebar-toggle  { display: block; }
  .sidebar         { transform: translateX(-100%); }
  .sidebar.open    { transform: translateX(0); }
  .main-content    { margin-left: 0; padding: 2rem 1rem calc(4.5rem + env(safe-area-inset-bottom)); }
  .page-header-bar { flex-direction: column; align-items: flex-start; }
  .stat-card       { padding: .85rem 1rem; }
  .g-tabbar        { display: flex; }
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════ */
.login-wrapper      { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #a6a6a6 0%, #ffbebe 45%, #fff3f3 100%); padding: 1.5rem; }
.login-card         { background: #fff; border-radius: 12px; box-shadow: 0 25px 60px rgba(0,0,0,.35); width: 100%; max-width: 420px; overflow: hidden; }
.login-card-header  { background: #CC0000; padding: 2rem 2rem 1.5rem; text-align: center; }
.login-logo-text    { font-family: 'Titillium Web', sans-serif; font-weight: 900; font-size: 2rem; color: #fff; letter-spacing: -.5px; line-height: 1; display: block; }
.login-logo-sub     { font-size: 1rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .12em; margin-top: .3rem; display: block; }
.login-card-body    { padding: 2rem; }
.login-card-body .g-input        { padding: .65rem .9rem; font-size: .95rem; }
.login-card-body .g-input:focus  { border-color: #CC0000; box-shadow: 0 0 0 3px rgba(204,0,0,.12); }
.btn-login          { width: 100%; padding: .7rem; font-size: 1rem; justify-content: center; }
.login-footer       { text-align: center; padding: 1rem 2rem; background: #fafafa; border-top: 1px solid #eee; font-size: .78rem; color: #6c757d; }

/* ── Input con icono ─ */
.input-icon-wrap                 { position: relative; }
.input-icon-wrap .g-input        { padding-left: 2.5rem; }
.input-icon-wrap .input-icon     { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #aaa; font-size: .95rem; pointer-events: none; }
.input-icon-wrap .eye-toggle     { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: #aaa; cursor: pointer; background: none; border: none; padding: 0; font-size: .95rem; }
.input-icon-wrap .eye-toggle:hover { color: #CC0000; }

/* ══════════════════════════════════════════════════════════
   SOPORTE — Chat thread
   ══════════════════════════════════════════════════════════ */
.soporte-ticket-item                 { border: 1px solid #dee2e6; border-radius: 8px; padding: 1rem 1.25rem; background: #fff; transition: box-shadow .15s, border-color .15s; cursor: pointer; }
.soporte-ticket-item:hover           { border-color: #CC0000; box-shadow: 0 2px 8px rgba(204,0,0,.08); }
.soporte-ticket-item .ticket-title   { font-weight: 600; font-size: .9rem; color: #222; }
.soporte-ticket-item .ticket-meta    { font-size: .78rem; color: #6c757d; }

/* ══════════════════════════════════════════════════════════
   MÉTODOS DE PAGO — Cards
   ══════════════════════════════════════════════════════════ */
.pago-card                    { border: 2px solid #dee2e6; border-radius: 8px; padding: 1.1rem 1.25rem; background: #fff; transition: border-color .15s, box-shadow .15s; position: relative; }
.pago-card.principal          { border-color: #CC0000; }
.pago-card .pago-badge-principal { position: absolute; top: -1px; right: 12px; background: #CC0000; color: #fff; font-size: .68rem; font-weight: 700; padding: .15rem .55rem; border-radius: 0 0 4px 4px; text-transform: uppercase; letter-spacing: .05em; }
.card-brand-icon              { width: 44px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; letter-spacing: .02em; flex-shrink: 0; }
.card-brand-icon.visa         { background: #1a1f71; color: #fff; }
.card-brand-icon.mc           { background: #eb001b; color: #fff; }
.card-brand-icon.amex         { background: #2e77bc; color: #fff; }
.card-brand-icon.sepa         { background: #003399; color: #fff; }

/* ══════════════════════════════════════════════════════════
   DIRECCIONES
   ══════════════════════════════════════════════════════════ */
.dir-card               { border: 1px solid #dee2e6; border-radius: 8px; padding: 1rem 1.25rem; background: #fff; position: relative; }
.dir-card.principal     { border-color: #CC0000; border-left-width: 4px; }
.dir-card .dir-actions  { margin-top: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   RECOVERY — Step indicator
   ══════════════════════════════════════════════════════════ */
.recovery-steps                  { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 1.5rem; }
.recovery-step                   { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.recovery-step .step-num         { width: 32px; height: 32px; border-radius: 50%; background: #e9ecef; color: #999; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; transition: all .2s; }
.recovery-step .step-label       { font-size: .68rem; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.recovery-step.active .step-num   { background: #CC0000; color: #fff; }
.recovery-step.active .step-label { color: #CC0000; }
.recovery-step.done   .step-num   { background: #198754; color: #fff; }
.recovery-step.done   .step-label { color: #198754; }
.recovery-step-line               { width: 40px; height: 2px; background: #e9ecef; margin: 0 .35rem; margin-bottom: 1.2rem; transition: background .2s; }
.recovery-step-line.done          { background: #198754; }

/* Scrollbar custom */
.sidebar::-webkit-scrollbar       { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* ─────────────────────────────────────────────────────────
   Página de Inicio
   ───────────────────────────────────────────────────────── */
.page-header                  { margin-bottom: 1.5rem; }
.page-header .page-title i    { color: #CC0000; margin-right: .4rem; }
.inicio-wrapper               { max-width: 560px; }
.inicio-card                  { position: relative; overflow: hidden; background: #fff; border: 1px solid #eee; border-left: 4px solid #CC0000; border-radius: 12px; padding: 1.5rem 1.75rem; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.inicio-deco                  { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); width: 110px; height: auto; color: #CC0000; opacity: .08; pointer-events: none; }
.inicio-fecha-label           { position: relative; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #6c757d; margin-bottom: .35rem; }
.inicio-fecha                 { position: relative; font-size: 1.2rem; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.inicio-section-title         { margin: 1.75rem 0 .75rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6c757d; }
.inicio-accesos               { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.inicio-acceso                { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #eee; border-radius: 12px; color: #1a1a1a; text-decoration: none; font-weight: 600; transition: border-color .15s, box-shadow .15s, transform .15s; }
.inicio-acceso:hover          { border-color: #CC0000; box-shadow: 0 4px 14px rgba(204,0,0,.08); transform: translateY(-1px); color: #CC0000; }
.inicio-acceso i              { width: 1.5rem; font-size: 1.25rem; color: #CC0000; text-align: center; }
@media (max-width: 480px) { .inicio-accesos { grid-template-columns: 1fr; } }

/* ── Footer app ── */
.app-footer            { max-width: 560px; margin: 3rem auto 0; padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid #eee; font-size: .75rem; color: #6c757d; line-height: 1.55; text-align: center; }
.app-footer__copy      { font-size: .7rem; color: #adb5bd; }

/* ─────────────────────────────────────────────────────────
   Modo App Nativa (User-Agent: GormaticaApp/1.0)
   ───────────────────────────────────────────────────────── */
body.native-app { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; overscroll-behavior-y: none; }
body.native-app .topbar,
body.native-app .sidebar,
body.native-app .btn-topbar-logout,
body.native-app .sidebar-nav a { -webkit-user-select: none; user-select: none; }
/* Safe-area insets (notch) */
body.native-app .topbar       { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); }
body.native-app .sidebar      { padding-top: calc(60px + env(safe-area-inset-top)); }
body.native-app .main-content { margin-top: calc(60px + env(safe-area-inset-top)); padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
body.native-app .g-tabbar     { display: flex; }
/* El login tampoco debe ofrecer "recordarme" en app nativa (la app gestiona sesión) */
body.native-app .login-wrapper { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
/* En móvil dentro de la app nativa quitamos el degradado y la sombra del card */
@media (max-width: 575.98px) {
  body.native-app .login-wrapper { background: #fff; }
  body.native-app .login-card    { box-shadow: none; border-radius: 0; }
}

/* En móvil la cabecera queda arriba del todo, pegada al viewport
   y el cuerpo + footer centrados en vertical en el espacio restante */
@media (max-width: 575.98px) {
  .login-wrapper      { align-items: stretch; justify-content: flex-start; padding: 0; min-height: 100vh; }
  .login-card         { max-width: 100%; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; flex: 1; }
  .login-card-header  { padding-top: calc(1.5rem + env(safe-area-inset-top)); }
  .login-card-body    { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-left: 1.25rem; padding-right: 1.25rem; padding-bottom: 25vh; }
  .login-footer       { padding-left: 1.25rem; padding-right: 1.25rem; }
}
/* En app nativa, forzamos aspecto móvil también en pantallas anchas */
body.native-app .sidebar-toggle           { display: block; }
body.native-app .sidebar                  { transform: translateX(-100%); }
body.native-app .sidebar.open             { transform: translateX(0); }
body.native-app .main-content             { margin-left: 0; padding-left: 1rem; padding-right: 1rem; }
body.native-app .topbar-brand .brand-sub  { display: none; }

/* ═══════════════════════════════════════════════════════════
   SUSCRIPCIONES
   ═══════════════════════════════════════════════════════════ */
.susc-card                       { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.susc-card:hover                 { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); border-color: #adb5bd; }
.susc-card .susc-row             { display: flex; align-items: center; gap: .9rem; }
.susc-card .susc-row .stat-icon  { align-self: flex-start; }
.susc-info                       { flex: 1; min-width: 0; }
.susc-info span                  { margin-right: 10px; }
.susc-precio,
.susc-renov-actions              { flex-shrink: 0; }

/* Botones renovar / no renovar */
.btn-susc-renov            { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .35rem .5rem; font-size: .78rem; font-weight: 600; white-space: nowrap; color: #6c757d; background: #e9ecef; border: 1px solid #ced4da; border-radius: .35rem; cursor: pointer; transition: all .15s ease; }
.btn-susc-si:hover,
.btn-susc-renov.active-si  { background: #198754; border-color: #146c43; color: #fff; }
.btn-susc-no:hover,
.btn-susc-renov.active-no  { background: #dc3545; border-color: #b02a37; color: #fff; }

/* Chips de filtro */
.chip-filtro               { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; font-size: .78rem; font-weight: 600; color: #495057; background: #fff; border: 1px solid #dee2e6; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.chip-filtro:hover         { background: #f1f3f5; border-color: #adb5bd; }
.chip-filtro.active        { background: #CC0000; border-color: #CC0000; color: #fff; }
.chip-reset                { color: #6c757d; }
.chip-count                { min-width: 1.2rem; padding: .05rem .4rem; font-size: .7rem; font-weight: 700; text-align: center; color: #6c757d; background: #e9ecef; border-radius: 999px; }
.chip-filtro.active .chip-count { color: #fff; background: rgba(255,255,255,.25); }

/* Suscripciones dadas de baja */
.susc-baja-header     { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid #e5e7eb; }
.susc-baja-title      { font-size: .95rem; font-weight: 700; color: #6c757d; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.susc-baja-count      { min-width: 1.4rem; padding: .1rem .5rem; font-size: .72rem; font-weight: 700; text-align: center; color: #fff; background: #adb5bd; border-radius: 999px; }
.susc-card-baja       { background: #fafbfc; opacity: .85; }
.susc-card-baja:hover { opacity: 1; }
.badge-baja           { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; font-size: .72rem; font-weight: 600; color: #6c757d; background: #e9ecef; border-radius: 999px; }

/* Responsive */
@media (max-width: 575.98px) {
  .susc-card .susc-row { flex-wrap: wrap; }
  .susc-renov-actions  { width: 100%; }
  .susc-info span      { display: block; margin-right: 0; }
}
