/* ===========================================
   FME - Sistema Moderno
   =========================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-secondary: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #3b82f6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
    --shadow: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --radius: 10px;
    --radius-lg: 14px;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #020617;
    --bg-secondary: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

/* ============ LOGIN ============ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-container::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    top: -200px; right: -200px;
}
.login-container::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    bottom: -150px; left: -150px;
}
.login-box {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.login-logo {
    width: 64px; height: 64px;
    background: var(--primary-grad);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin: 0 auto 18px;
}
.login-box h1 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.login-box .subtit { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }

/* ============ LAYOUT ============ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    color: white;
    flex-shrink: 0;
    display: flex; flex-direction: column;
}
.sidebar-logo {
    padding: 20px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo .logo-icon {
    width: 38px; height: 38px;
    background: var(--primary-grad);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 16px;
}
.sidebar-logo h2 { font-size: 16px; font-weight: 500; margin-bottom: 2px; }
.sidebar-logo .empresa-tag { font-size: 11px; color: #94a3b8; }
.sidebar-empresa-actual {
    margin: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.1));
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 10px;
    font-size: 11px;
    color: #a5b4fc;
}
.sidebar-empresa-actual b { color: white; font-size: 12px; display: block; margin-top: 2px; }

.sidebar-nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.sidebar-nav .seccion {
    padding: 14px 12px 6px;
    font-size: 10px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}
.sidebar-nav a {
    display: flex; align-items: center;
    padding: 9px 12px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 13px;
    transition: all .15s;
}
.sidebar-nav a i { width: 18px; margin-right: 10px; font-size: 16px; }
.sidebar-nav a .badge { margin-left: auto; background: #1e293b; color: #cbd5e1; padding: 1px 7px; border-radius: 10px; font-size: 10px; }
.sidebar-nav a .badge-rojo { background: #dc2626; color: white; }
.sidebar-nav a:hover { background: rgba(255,255,255,.04); color: white; }
.sidebar-nav a.activo {
    background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.1));
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,.3);
}

.contenido { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    background: var(--bg-card);
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.topbar .buscador {
    flex: 1;
    max-width: 420px;
    position: relative;
}
.topbar .buscador i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
}
.topbar .buscador input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    background: var(--bg-secondary);
}
.topbar .buscador input:focus { outline: none; border-color: var(--primary); background: white; }
.topbar .buscador kbd {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: var(--border);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-family: monospace;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right .icono-btn {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--bg-secondary);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    position: relative;
}
.topbar-right .icono-btn:hover { background: var(--border); }
.topbar-right .icono-btn .punto {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.topbar-user {
    display: flex; align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-secondary);
    border-radius: 999px;
}
.topbar-user .avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 500;
}
.topbar-user .nombre { font-size: 12px; }
.topbar-user .nombre b { display: block; font-weight: 500; }
.topbar-user .rol { font-size: 10px; color: var(--text-muted); }

.contenido-interior { padding: 24px 28px; flex: 1; overflow-y: auto; }

/* Selector empresa para super admin */
.selector-empresa {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    font-size: 12px;
    cursor: pointer;
    color: var(--text);
    min-width: 220px;
}
.selector-empresa:focus { outline: none; border-color: var(--primary); }

/* ============ TÍTULOS ============ */
.titulo-pagina {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
}
.titulo-pagina h1 { font-size: 22px; font-weight: 500; }
.titulo-pagina p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.titulo-acciones { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ BOTONES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primario { background: var(--primary-grad); color: white; }
.btn-secundario { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-exito { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-peligro { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.btn-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.btn-bloque { width: 100%; padding: 12px; justify-content: center; }
.btn-sm { padding: 5px 11px; font-size: 11px; }
.btn-icon { padding: 8px 10px; }

/* ============ TARJETAS ============ */
.tarjeta {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.tarjeta h2 { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.tarjeta-titulo {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}

/* ============ KPIs ============ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.kpi {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.kpi-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 10px; }
.kpi-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 500; letter-spacing: .5px; }
.kpi-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.kpi-icon.morado { background: #ede9fe; color: #7c3aed; }
.kpi-icon.verde { background: #d1fae5; color: #059669; }
.kpi-icon.amarillo { background: #fef3c7; color: #d97706; }
.kpi-icon.rojo { background: #fee2e2; color: #dc2626; }
.kpi-icon.azul { background: #dbeafe; color: #2563eb; }
.kpi-valor { font-size: 26px; font-weight: 500; }
.kpi-trend { font-size: 11px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }
.kpi-trend.warn { color: var(--warning); }

/* ============ FORMULARIOS ============ */
.form-grupo { margin-bottom: 16px; }
.form-grupo label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 12px;
    color: var(--text);
}
.form-grupo input, .form-grupo select, .form-grupo textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--bg-card);
    color: var(--text);
    transition: all .15s;
}
.form-grupo input:focus, .form-grupo select:focus, .form-grupo textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-grupo small { color: var(--text-muted); font-size: 11px; display: block; margin-top: 4px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.input-precio {
    display: flex; align-items: center; gap: 6px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.input-precio:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.input-precio span { color: var(--text-muted); font-weight: 500; }
.input-precio input {
    border: none !important;
    flex: 1;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 13px;
}
.input-precio input:focus { outline: none; box-shadow: none !important; }

/* ============ TABLAS ============ */
.tabla-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla th {
    background: var(--bg-secondary);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .5px;
}
.tabla td { padding: 12px 16px; border-top: 1px solid var(--border); }
.tabla tr:hover td { background: var(--bg-secondary); }
.tabla .acciones { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============ AVATARES ============ */
.avatar-empresa {
    width: 40px; height: 40px;
    border-radius: 10px;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
}
.avatar-empresa.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 7px; }
.avatar-empresa.indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.avatar-empresa.green { background: linear-gradient(135deg, #10b981, #059669); }
.avatar-empresa.amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.avatar-empresa.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.avatar-empresa.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.avatar-empresa.pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.avatar-empresa.gray { background: linear-gradient(135deg, #94a3b8, #64748b); }
.avatar-empresa.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

/* ============ BADGES / PILLS ============ */
.pill {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}
.pill-verde { background: #d1fae5; color: #059669; }
.pill-amarillo { background: #fef3c7; color: #d97706; }
.pill-rojo { background: #fee2e2; color: #dc2626; }
.pill-azul { background: #dbeafe; color: #2563eb; }
.pill-morado { background: #ede9fe; color: #7c3aed; }
.pill-gris { background: var(--bg-secondary); color: var(--text-muted); }

/* ============ ALERTAS ============ */
.alerta {
    padding: 13px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid;
}
.alerta-error { background: #fef2f2; color: #7f1d1d; border-color: var(--danger); }
.alerta-exito { background: #ecfdf5; color: #064e3b; border-color: var(--success); }
.alerta-warning { background: #fffbeb; color: #78350f; border-color: var(--warning); }
.alerta-info { background: #eff6ff; color: #1e3a8a; border-color: var(--info); }

/* ============ FILTROS CHIP ============ */
.filtros-chips {
    display: flex; gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.filtro-chip {
    padding: 6px 14px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.filtro-chip:hover { border-color: var(--primary); color: var(--primary); }
.filtro-chip.activo { background: var(--text); color: white; border-color: var(--text); }
.filtro-chip .num {
    background: rgba(255,255,255,.2);
    color: inherit;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
}
.filtro-chip:not(.activo) .num { background: var(--bg-secondary); }

/* ============ CARDS GRID (empresas, módulos) ============ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.card-empresa {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border);
    transition: all .15s;
}
.card-empresa:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-empresa.por-vencer { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb 0%, var(--bg-card) 100%); }
.card-empresa.bloqueada { border-color: #fca5a5; background: linear-gradient(180deg, #fef2f2 0%, var(--bg-card) 100%); }
.card-empresa-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.card-empresa-info { display: flex; gap: 10px; align-items: center; }
.card-empresa-nombre { font-size: 14px; font-weight: 500; }
.card-empresa-rut { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.card-empresa-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.card-empresa-stats .stat { text-align: left; }
.card-empresa-stats .stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.card-empresa-stats .stat-valor { font-size: 13px; font-weight: 500; margin-top: 2px; }
.card-empresa-stats .stat-valor.precio { color: var(--primary); }

.card-modulo {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all .15s;
    display: block;
}
.card-modulo:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-modulo .icon-mod {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary-grad);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}
.card-modulo h3 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.card-modulo p { font-size: 12px; color: var(--text-muted); }

/* ============ PLANES ============ */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.plan-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: transform .2s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.popular {
    background: var(--primary-grad);
    color: white;
    border: none;
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(99,102,241,.3);
}
.plan-icono {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 24px;
}
.plan-icono.gray { background: linear-gradient(135deg, #94a3b8, #64748b); }
.plan-icono.indigo { background: rgba(255,255,255,.2); }
.plan-icono.amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.plan-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.plan-card .plan-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.plan-card.popular .plan-desc { color: rgba(255,255,255,.85); }
.plan-precio { font-size: 36px; font-weight: 600; }
.plan-precio-clp { font-size: 11px; color: var(--text-muted); margin-bottom: 16px; }
.plan-card.popular .plan-precio-clp { color: rgba(255,255,255,.8); }
.plan-features { text-align: left; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 8px; }
.plan-card.popular .plan-features { border-top-color: rgba(255,255,255,.2); }
.plan-features li {
    list-style: none;
    padding: 6px 0;
    font-size: 12px;
    display: flex; align-items: center; gap: 8px;
}
.plan-badge {
    background: rgba(255,255,255,.25);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    display: inline-block;
    margin-bottom: 10px;
}

/* ============ PERMISOS ============ */
.permisos-bloque {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-top: 16px;
}
.permisos-bloque h3 { font-size: 13px; font-weight: 500; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.modulo-permisos {
    background: var(--bg-card);
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    border: 1px solid var(--border);
}
.modulo-permisos .titulo-modulo {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.permisos-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}
.check-item {
    display: flex; align-items: center; gap: 7px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .15s;
    font-size: 12px;
}
.check-item:hover { background: var(--bg-secondary); }
.check-item input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

/* ============ TOAST ============ */
#toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 9999;
    display: flex; flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    min-width: 280px;
    max-width: 400px;
    font-size: 13px;
    animation: slideIn .25s ease;
}
.toast.exito { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--info); }
.toast.warn { border-color: var(--warning); }
@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============ EMPRESA BLOQUEADA ============ */
.bloqueada-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 20px;
}
.bloqueada-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.bloqueada-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: #fee2e2;
    color: var(--danger);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .sidebar { width: 70px; }
    .sidebar-logo h2, .sidebar-logo .empresa-tag, .sidebar-empresa-actual,
    .sidebar-nav .seccion, .sidebar-nav a span:not(.badge), .sidebar-nav a .badge { display: none; }
    .sidebar-nav a { justify-content: center; padding: 10px; }
    .sidebar-nav a i { margin: 0; }
    .topbar .buscador kbd { display: none; }
    .topbar-user .nombre { display: none; }
    .contenido-interior { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .titulo-pagina { flex-direction: column; align-items: stretch; }
    .planes-grid .plan-card.popular { transform: none; }
}

/* ============ UTILIDADES ============ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.fw-500 { font-weight: 500; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
