/* ===== GoldenPass Backoffice — Base Styles ===== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #18181B;
    color: #FAFAFA;
    min-height: 100vh;
}

/* ===== Scrollbar Dark ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #27272A; }
::-webkit-scrollbar-thumb { background: #52525B; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #71717A; }

/* ===== Login Page ===== */
.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.login-bg {
    position: absolute;
    inset: 0;
    background: url('/images/bg-login.jpg') center/cover no-repeat;
    filter: brightness(0.3) blur(2px);
    z-index: 0;
}
.login-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}
.login-card {
    background: rgba(24, 24, 27, 0.75);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}
.login-logo {
    display: block;
    margin: 0 auto 2rem;
    height: 48px;
    object-fit: contain;
}
.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(113, 113, 122, 0.3);
    border-radius: 10px;
    color: #FAFAFA;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input::placeholder { color: rgba(161, 161, 170, 0.6); }
.login-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a1a2e inset !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
    transition: background-color 5000s ease-in-out 0s;
    border-color: rgba(113, 113, 122, 0.3);
}
.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.45);
}
.login-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #FCA5A5;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;              /* antes: min-height: 100vh — rompía el scroll interno */
    max-height: 100vh;
    background: #0f0f12;
    border-right: 1px solid #27272A;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    transition: width 0.3s ease;
    overflow: hidden;           /* evita que el logo u otros elementos desborden */
}
.sidebar.collapsed { width: 68px; }
.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #27272A;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;             /* el header nunca se encoge, el nav scrollea */
    overflow: hidden;
    min-width: 0;
}
.sidebar-logo { height: 32px; width: auto; max-width: 100%; object-fit: contain; flex-shrink: 0; }
.sidebar-logo-mini { width: 32px; height: 32px; flex-shrink: 0; }
.sidebar.collapsed .sidebar-logo-text { display: none; }
.sidebar.collapsed .sidebar-logo { display: none; }       /* ocultar logo grande */
.sidebar:not(.collapsed) .sidebar-logo-mini { display: none; } /* ocultar logo mini */
.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;              /* critical: permite que el flex child encoja y scrollee */
    padding: 0.75rem 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}
/* Scrollbar discreta para el nav */
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #27272A; border-radius: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: #3f3f46; }
.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717A;
    padding: 0.75rem 0.75rem 0.375rem;
}
.sidebar.collapsed .sidebar-section-title { display: none; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    color: #A1A1AA;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
}
.nav-link:hover { background: #27272A; color: #FAFAFA; }
.nav-link.active {
    background: rgba(249, 115, 22, 0.12);
    color: #F97316;
}
.nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar.collapsed .nav-link span { display: none; }

/* Main content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}
.sidebar.collapsed ~ .main-content { margin-left: 68px; }

/* TopBar */
.topbar {
    height: 60px;
    background: #0f0f12;
    border-bottom: 1px solid #27272A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.topbar-toggle {
    background: none;
    border: none;
    color: #A1A1AA;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.15s;
}
.topbar-toggle:hover { background: #27272A; color: #FAFAFA; }
.topbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FAFAFA;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.topbar-user {
    font-size: 0.875rem;
    color: #A1A1AA;
}
.topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #FCA5A5;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.topbar-logout:hover { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; }

/* Page content */
.page-content { padding: 1.5rem; flex: 1; }

/* ===== Page Header ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FAFAFA;
    margin: 0;
}
.page-header-actions { display: flex; gap: 0.5rem; }

/* ===== Cards ===== */
.card {
    background: #27272A;
    border: 1px solid #3F3F46;
    border-radius: 12px;
    padding: 1.5rem;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FAFAFA;
    margin: 0;
}

/* ===== KPI Cards ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.kpi-card {
    background: #27272A;
    border: 1px solid #3F3F46;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-icon svg { width: 24px; height: 24px; color: white; }
.kpi-info { flex: 1; }
.kpi-label { font-size: 0.8rem; color: #A1A1AA; margin-bottom: 0.25rem; }
.kpi-value { font-size: 1.5rem; font-weight: 700; color: #FAFAFA; }

/* ===== Data Table ===== */
.data-table-wrapper {
    background: #27272A;
    border: 1px solid #3F3F46;
    border-radius: 12px;
    overflow: hidden;
}
.data-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #3F3F46;
}
.data-table-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #18181B;
    border: 1px solid #3F3F46;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 280px;
}
.data-table-search svg { width: 18px; height: 18px; color: #71717A; flex-shrink: 0; }
.data-table-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #FAFAFA;
    font-size: 0.875rem;
    width: 100%;
}
.data-table-search input::placeholder { color: #71717A; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
}
table.data-table thead th {
    background: #1f1f23;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #A1A1AA;
    border-bottom: 1px solid #3F3F46;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
table.data-table thead th:hover { color: #FAFAFA; }
table.data-table thead th .sort-icon { display: inline-block; margin-left: 0.25rem; }

table.data-table tbody tr {
    border-bottom: 1px solid #3F3F46;
    transition: background 0.1s;
}
table.data-table tbody tr:hover { background: rgba(63, 63, 70, 0.3); }
table.data-table tbody tr:last-child { border-bottom: none; }
table.data-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #D4D4D8;
    vertical-align: middle;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: #F97316;
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}
.btn-primary:hover { background: #EA580C; }

.btn-secondary {
    background: #3F3F46;
    color: #FAFAFA;
}
.btn-secondary:hover { background: #52525B; }

.btn-success {
    background: #10B981;
    color: white;
}
.btn-success:hover { background: #059669; }

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-ghost {
    background: transparent;
    color: #A1A1AA;
    padding: 0.375rem;
    border-radius: 6px;
}
.btn-ghost:hover { background: #3F3F46; color: #FAFAFA; }

.btn-sm { padding: 0.375rem 0.625rem; font-size: 0.8rem; }
.btn-sm svg { width: 16px; height: 16px; }

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.badge-warning { background: rgba(249, 115, 22, 0.15); color: #FB923C; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #93C5FD; }
.badge-neutral { background: rgba(161, 161, 170, 0.15); color: #A1A1AA; }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #A1A1AA;
    margin-bottom: 0.375rem;
}
.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: #18181B;
    border: 1px solid #3F3F46;
    border-radius: 8px;
    color: #FAFAFA;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: #71717A; }
.form-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23A1A1AA' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}
select.form-input option {
    background-color: #27272A;
    color: #FAFAFA;
}
textarea.form-input { min-height: 80px; resize: vertical; }
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #F97316;
    cursor: pointer;
}
.form-error {
    color: #FCA5A5;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #3F3F46;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #3F3F46;
    margin-bottom: 1.5rem;
}
.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #A1A1AA;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab:hover { color: #FAFAFA; }
.tab.active {
    color: #F97316;
    border-bottom-color: #F97316;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}
.modal-card {
    background: #27272A;
    border: 1px solid #3F3F46;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #FAFAFA;
    margin-bottom: 0.75rem;
}
.modal-body { color: #A1A1AA; font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid #3F3F46;
}
.pagination-info { font-size: 0.8rem; color: #71717A; }
.pagination-controls { display: flex; gap: 0.25rem; }
.pagination-btn {
    padding: 0.375rem 0.75rem;
    background: #3F3F46;
    border: none;
    border-radius: 6px;
    color: #A1A1AA;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}
.pagination-btn:hover:not(:disabled) { background: #52525B; color: #FAFAFA; }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-btn.active { background: #F97316; color: white; }

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    /* z-index muy alto para que los toasts se vean sobre CUALQUIER modal —
       incluyendo fullscreen modals (z-index:1000), modales regulares (2000)
       y ConfirmDialog (2500). Antes era 60 y quedaba oculto. */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Aísla el stacking context para que ningún ancestor con transform/filter
       pueda bajar el rendering del toast debajo de otros elementos. */
    isolation: isolate;
}
.toast {
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }
.toast-success { background: #065F46; color: #A7F3D0; border: 1px solid #10B981; }
.toast-error { background: #7F1D1D; color: #FCA5A5; border: 1px solid #EF4444; }
.toast-info { background: #1E3A5F; color: #93C5FD; border: 1px solid #3B82F6; }
@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Loading ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
}
.loading-overlay .spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
    margin-bottom: 1rem;
}
.loading-overlay span {
    font-weight: 500;
    font-size: 0.9rem;
    color: #FAFAFA;
    letter-spacing: 0.5px;
}

.loading-bar {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #F97316 50%, transparent 100%);
    animation: loading-slide 1.5s infinite;
    border-radius: 2px;
    margin-bottom: 1rem;
}
@keyframes loading-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #3F3F46;
    border-top-color: #F97316;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #71717A;
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 1rem; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar { width: 0; overflow: hidden; }
    .sidebar.open { width: 260px; }
    .main-content { margin-left: 0 !important; }
    .data-table-toolbar { flex-direction: column; gap: 0.75rem; }
    .data-table-search { min-width: 100%; }
}

/* ===== HtmlEditor (TinyMCE) — statusbar + autosave UI ===== */
.html-editor-wrap { position: relative; }
.html-editor-statusbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.4rem 0.1rem 0.35rem;
    min-height: 1.75rem;
}
.html-editor-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-weight: 500;
}
.html-editor-status-idle {
    color: #71717A;
    background: rgba(113,113,122,0.08);
    border-color: rgba(113,113,122,0.18);
}
.html-editor-status-saving {
    color: #F59E0B;
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.25);
}
.html-editor-status-saved {
    color: #22C55E;
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.25);
}
.html-editor-status-warn {
    color: #F59E0B;
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.3);
}
.html-editor-status-btn {
    margin-left: 0.5rem;
    background: transparent;
    border: none;
    color: #FCA5A5;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}
.html-editor-status-btn:hover { color: #F87171; }
.html-editor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: hedit-pulse 1.2s ease-in-out infinite;
}
@keyframes hedit-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* ===== ImageUploader ===== */
.img-uploader { display: flex; flex-direction: column; gap: 0.4rem; }
.img-uploader-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.img-uploader-preview {
    position: relative;
    flex-shrink: 0;
    background: #18181B;
    border: 1px dashed #3F3F46;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-uploader-preview.circular { border-radius: 50%; }
.img-uploader-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-uploader-placeholder {
    color: #52525B;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    text-align: center;
}
.img-uploader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-uploader-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.img-uploader-hint {
    color: #71717A;
    font-size: 0.7rem;
    margin-top: 0.1rem;
}
.img-uploader-error {
    color: #FCA5A5;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

/* ===== IconPicker ===== */
.icon-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #27272A;
    border: 1px solid #3F3F46;
    border-radius: 0.5rem;
    color: #FAFAFA;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.15s;
}
.icon-picker-trigger:hover { border-color: #F59E0B; }
.icon-picker-trigger i { font-size: 1.25rem; color: #F59E0B; }
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #0F0F12;
    border: 1px solid #27272A;
    border-radius: 0.5rem;
}
.icon-picker-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.3rem;
    background: #18181B;
    border: 1px solid #27272A;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.15s;
}
.icon-picker-cell:hover { border-color: #F59E0B; background: #1F1F22; }
.icon-picker-cell.selected {
    border-color: #F59E0B;
    background: rgba(245,158,11,0.15);
}
.icon-picker-cell i {
    font-size: 1.5rem;
    color: #FAFAFA;
}
.icon-picker-cell span {
    font-size: 0.6rem;
    color: #71717A;
    text-align: center;
    line-height: 1.1;
    word-break: break-all;
}

/* ===== FeatureBannerEditor ===== */
.feature-banner-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.feature-banner-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #1C1C1F;
    border: 1px solid #27272A;
    border-radius: 0.5rem;
}
.feature-banner-item i {
    font-size: 1.4rem;
    color: #F59E0B;
    width: 28px;
    text-align: center;
}
.feature-banner-item-text {
    flex: 1;
    color: #FAFAFA;
    font-size: 0.85rem;
}
.feature-banner-item-actions {
    display: flex;
    gap: 0.3rem;
}
.feature-banner-empty {
    color: #71717A;
    font-size: 0.85rem;
    text-align: center;
    padding: 1.5rem;
    background: #18181B;
    border: 1px dashed #3F3F46;
    border-radius: 0.5rem;
}

/* ===== ImageGalleryEditor ===== */
.gallery-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.gallery-editor-item {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #18181B;
    border: 1px solid #27272A;
    border-radius: 0.4rem;
    overflow: hidden;
}
.gallery-editor-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-editor-actions {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    display: flex;
    gap: 0.2rem;
    background: rgba(0,0,0,0.55);
    padding: 0.2rem;
    border-radius: 0.3rem;
    opacity: 0;
    transition: opacity 0.15s;
}
.gallery-editor-item:hover .gallery-editor-actions { opacity: 1; }
.gallery-editor-actions .btn { padding: 0.25rem 0.35rem; flex: 1; }

/* ===== Dark overrides — Tailwind carga después y sobreescribe sin !important ===== */
.sidebar { background: #0f0f12 !important; background-image: none !important; }

/* Links dentro del contenido principal */
.page-content a { color: inherit; text-decoration: none; }
.page-content a:hover { color: #F97316; }

/* Clases Tailwind light → dark */
.bg-white      { background-color: #27272A !important; }
.bg-gray-50    { background-color: #1F1F23 !important; }
.bg-gray-100   { background-color: #18181B !important; }
.bg-gray-200   { background-color: #27272A !important; }
.text-gray-800 { color: #FAFAFA !important; }
.text-gray-700 { color: #E4E4E7 !important; }
.text-gray-600 { color: #A1A1AA !important; }
.text-gray-500 { color: #71717A !important; }
.text-gray-400 { color: #52525B !important; }
.border-gray-200 { border-color: #3F3F46 !important; }
.border-gray-300 { border-color: #52525B !important; }
.divide-gray-100 > * + * { border-color: #27272A !important; }
.hover\:bg-gray-50:hover  { background-color: #27272A !important; }
.hover\:bg-gray-100:hover { background-color: #27272A !important; }

/* Inputs, selects, textareas globales */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
select, textarea {
    background-color: #18181B !important;
    border-color: #3F3F46 !important;
    color: #FAFAFA !important;
}
select option {
    background-color: #27272A !important;
    color: #FAFAFA !important;
}
input::placeholder, textarea::placeholder { color: #52525B !important; }

/* Badges de estado con fondo claro */
.bg-blue-100   { background-color: rgba(59,130,246,.2)  !important; }
.bg-green-100  { background-color: rgba(34,197,94,.2)   !important; }
.bg-yellow-100 { background-color: rgba(234,179,8,.2)   !important; }
.bg-red-100    { background-color: rgba(239,68,68,.2)   !important; }
.text-blue-800  { color: #93C5FD !important; }
.text-green-800 { color: #86EFAC !important; }
.text-yellow-800{ color: #FDE047 !important; }
.text-red-800   { color: #FCA5A5 !important; }

/* Stepper / steps */
.border-gray-300 { border-color: #3F3F46 !important; }
.bg-amber-50 { background-color: rgba(251,191,36,.1) !important; }
.bg-green-50 { background-color: rgba(34,197,94,.1) !important; }

/* ═══════════════════════════════════════════════════════
   TAILWIND UTILITY POLYFILL — Cajero + Compra pages
   ═══════════════════════════════════════════════════════ */

/* ── Backgrounds ─────────────────────────────────────── */
.bg-gray-950 { background-color: #09090B; }
.bg-gray-900 { background-color: #18181B; }
.bg-gray-800 { background-color: #27272A; }
.bg-gray-700 { background-color: #3F3F46; }
.bg-gray-600 { background-color: #52525B; }
.bg-black    { background-color: #000; }
.bg-green-700 { background-color: #15803D; }
.bg-green-600 { background-color: #16A34A; }
.bg-amber-700 { background-color: #B45309; }
.bg-amber-600 { background-color: #D97706; }
.bg-amber-500 { background-color: #F59E0B; }
.bg-amber-400 { background-color: #FBBF24; }
.bg-red-700   { background-color: #B91C1C; }
.bg-red-600   { background-color: #DC2626; }
.bg-blue-600  { background-color: #2563EB; }

/* opacity variants — CSS escapes for / in class names */
.bg-gray-800\/60  { background-color: rgba(39,39,42,0.6); }
.bg-amber-500\/20 { background-color: rgba(245,158,11,0.2); }
.bg-amber-500\/10 { background-color: rgba(245,158,11,0.1); }
.bg-green-500\/20 { background-color: rgba(34,197,94,0.2); }
.bg-red-500\/20   { background-color: rgba(239,68,68,0.2); }
.bg-red-900\/40   { background-color: rgba(127,29,29,0.4); }
.bg-green-900\/40 { background-color: rgba(20,83,45,0.4); }
.bg-black\/95     { background-color: rgba(0,0,0,0.95); }
.bg-black\/80     { background-color: rgba(0,0,0,0.8); }
.bg-black\/50     { background-color: rgba(0,0,0,0.5); }

/* ── Text colors ─────────────────────────────────────── */
.text-white    { color: #FAFAFA; }
.text-gray-100 { color: #F4F4F5; }
.text-gray-200 { color: #E4E4E7; }
.text-gray-300 { color: #D4D4D8; }
.text-gray-400 { color: #A1A1AA; }
.text-gray-500 { color: #71717A; }
.text-gray-600 { color: #52525B; }
.text-gray-950 { color: #09090B; }
.text-amber-300 { color: #FCD34D; }
.text-amber-400 { color: #FBBF24; }
.text-amber-500 { color: #F59E0B; }
.text-green-300 { color: #86EFAC; }
.text-green-400 { color: #4ADE80; }
.text-red-300   { color: #FCA5A5; }
.text-red-400   { color: #F87171; }
.text-blue-300  { color: #93C5FD; }
.text-blue-400  { color: #60A5FA; }

/* ── Border colors ───────────────────────────────────── */
.border   { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-gray-500 { border-color: #71717A; }
.border-gray-600 { border-color: #52525B; }
.border-gray-700 { border-color: #3F3F46; }
.border-gray-800 { border-color: #27272A; }
.border-amber-400 { border-color: #FBBF24; }
.border-amber-500 { border-color: #F59E0B; }
.border-red-700   { border-color: #B91C1C; }
.border-green-700 { border-color: #15803D; }
.border-transparent { border-color: transparent; }
.border-t-transparent { border-top-color: transparent; }

/* ── Divide (border between children) ───────────────── */
.divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
.divide-x > * + * { border-right-width: 1px; border-right-style: solid; }
.divide-gray-700 > * + * { border-color: #3F3F46; }
.divide-gray-800 > * + * { border-color: #27272A; }

/* ── Border radius ───────────────────────────────────── */
.rounded-sm  { border-radius: 0.125rem; }
.rounded     { border-radius: 0.25rem; }
.rounded-md  { border-radius: 0.375rem; }
.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ── Typography ──────────────────────────────────────── */
.text-xs   { font-size: 0.75rem;   line-height: 1rem; }
.text-sm   { font-size: 0.875rem;  line-height: 1.25rem; }
.text-base { font-size: 1rem;      line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem;  line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;   line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;    line-height: 2rem; }
.text-3xl  { font-size: 1.875rem;  line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;   line-height: 2.5rem; }
.text-6xl  { font-size: 3.75rem;   line-height: 1; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.uppercase     { text-transform: uppercase; }
.tracking-wide    { letter-spacing: 0.025em; }
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.1em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-none    { line-height: 1; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.italic { font-style: italic; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ── Spacing — padding ───────────────────────────────── */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.pt-1  { padding-top: 0.25rem; }
.pt-2  { padding-top: 0.5rem; }
.pt-3  { padding-top: 0.75rem; }
.pt-4  { padding-top: 1rem; }
.pt-8  { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-2  { padding-bottom: 0.5rem; }
.pb-4  { padding-bottom: 1rem; }
.pb-6  { padding-bottom: 1.5rem; }
.pb-8  { padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.pl-2  { padding-left: 0.5rem; }
.pl-3  { padding-left: 0.75rem; }
.pl-4  { padding-left: 1rem; }
.pr-2  { padding-right: 0.5rem; }
.pr-3  { padding-right: 0.75rem; }
.pr-4  { padding-right: 1rem; }

/* ── Spacing — margin ────────────────────────────────── */
.m-0  { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4    { margin-left: 1rem; margin-right: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.-mt-2 { margin-top: -0.5rem; }

/* ── Space-y / space-x ───────────────────────────────── */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }

/* ── Sizing ──────────────────────────────────────────── */
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.w-auto  { width: auto; }
.h-auto  { height: auto; }
.w-4  { width: 1rem; }     .h-4  { height: 1rem; }
.w-5  { width: 1.25rem; }  .h-5  { height: 1.25rem; }
.w-6  { width: 1.5rem; }   .h-6  { height: 1.5rem; }
.w-8  { width: 2rem; }     .h-8  { height: 2rem; }
.w-9  { width: 2.25rem; }  .h-9  { height: 2.25rem; }
.w-10 { width: 2.5rem; }   .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }     .h-12 { height: 3rem; }
.w-16 { width: 4rem; }     .h-16 { height: 4rem; }
.w-20 { width: 5rem; }     .h-20 { height: 5rem; }
.w-24 { width: 6rem; }     .h-24 { height: 6rem; }
.w-32 { width: 8rem; }     .h-32 { height: 8rem; }
.w-36 { width: 9rem; }     .h-36 { height: 9rem; }
.w-48 { width: 12rem; }    .h-48 { height: 12rem; }
.w-56 { width: 14rem; }    .h-56 { height: 14rem; }
.w-64 { width: 16rem; }    .h-64 { height: 16rem; }
.w-72 { width: 18rem; }    .h-72 { height: 18rem; }
.w-80 { width: 20rem; }    .h-80 { height: 20rem; }
.w-96 { width: 24rem; }
.min-h-0      { min-height: 0; }
.min-h-screen { min-height: 100vh; }
.min-h-64     { min-height: 16rem; }
.max-h-64     { max-height: 16rem; }
.max-h-96     { max-height: 24rem; }
.max-h-screen { max-height: 100vh; }
.max-w-xs  { max-width: 20rem; }
.max-w-sm  { max-width: 24rem; }
.max-w-md  { max-width: 28rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* ── Layout ──────────────────────────────────────────── */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline       { display: inline; }
.inline-flex  { display: inline-flex; }
.hidden       { display: none; }
.flex-col     { flex-direction: column; }
.flex-row     { flex-direction: row; }
.flex-wrap    { flex-wrap: wrap; }
.flex-nowrap  { flex-wrap: nowrap; }
.flex-1       { flex: 1 1 0%; }
.flex-none    { flex: none; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.flex-grow,   .grow       { flex-grow: 1; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }
.self-center { align-self: center; }
.self-end    { align-self: flex-end; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-x-2 { column-gap: 0.5rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: 0.5rem; }
.gap-y-3 { row-gap: 0.75rem; }
.min-w-0 { min-width: 0; }

/* ── Grid ────────────────────────────────────────────── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2  { grid-column: span 2 / span 2; }

/* ── Position & z-index ──────────────────────────────── */
.static   { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.right-0  { right: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.z-10  { z-index: 10; }
.z-20  { z-index: 20; }
.z-50  { z-index: 50; }

/* ── Overflow & display ──────────────────────────────── */
.overflow-hidden   { overflow: hidden; }
.overflow-auto     { overflow: auto; }
.overflow-y-auto   { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* ── Object fit ──────────────────────────────────────── */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center  { object-position: center; }

/* ── Aspect ratio ────────────────────────────────────── */
.aspect-square { aspect-ratio: 1/1; }
.aspect-video  { aspect-ratio: 16/9; }

/* ── Opacity ─────────────────────────────────────────── */
.opacity-0  { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }

/* ── Cursor & pointer ────────────────────────────────── */
.cursor-pointer      { cursor: pointer; }
.cursor-not-allowed  { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }
.select-none         { user-select: none; }

/* ── Shadow ──────────────────────────────────────────── */
.shadow-sm  { box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.shadow     { box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.24); }
.shadow-lg  { box-shadow: 0 10px 15px rgba(0,0,0,.4), 0 4px 6px rgba(0,0,0,.3); }
.shadow-xl  { box-shadow: 0 20px 25px rgba(0,0,0,.5), 0 8px 10px rgba(0,0,0,.3); }

/* ── Hover states ────────────────────────────────────── */
.hover\:text-white:hover        { color: #FAFAFA; }
.hover\:text-amber-300:hover    { color: #FCD34D; }
.hover\:text-amber-400:hover    { color: #FBBF24; }
.hover\:text-gray-300:hover     { color: #D4D4D8; }
.hover\:text-gray-400:hover     { color: #A1A1AA; }
.hover\:bg-gray-600:hover       { background-color: #52525B; }
.hover\:bg-gray-700:hover       { background-color: #3F3F46; }
.hover\:bg-gray-800:hover       { background-color: #27272A; }
.hover\:bg-amber-400:hover      { background-color: #FBBF24; }
.hover\:bg-amber-500:hover      { background-color: #F59E0B; }
.hover\:bg-amber-600:hover      { background-color: #D97706; }
.hover\:bg-green-600:hover      { background-color: #16A34A; }
.hover\:bg-red-600:hover        { background-color: #DC2626; }
.hover\:border-amber-400:hover  { border-color: #FBBF24; }
.hover\:border-amber-500:hover  { border-color: #F59E0B; }
.hover\:border-gray-500:hover   { border-color: #71717A; }
.hover\:border-gray-600:hover   { border-color: #52525B; }
.hover\:opacity-80:hover        { opacity: 0.8; }

/* ── Focus states ────────────────────────────────────── */
.focus\:outline-none:focus    { outline: none; }
.focus\:ring-0:focus          { box-shadow: none; }
.focus\:border-amber-500:focus { border-color: #F59E0B; }

/* ── Disabled states ─────────────────────────────────── */
.disabled\:opacity-50:disabled    { opacity: 0.5; }
.disabled\:opacity-40:disabled    { opacity: 0.4; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ── Active states ───────────────────────────────────── */
.active\:scale-\[0\.98\]:active  { transform: scale(0.98); }
.active\:scale-95:active         { transform: scale(0.95); }

/* ── Transitions ─────────────────────────────────────── */
.transition          { transition: all 0.15s ease; }
.transition-colors   { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-all      { transition: all 0.15s ease; }
.transition-opacity  { transition: opacity 0.15s ease; }
.duration-150 { transition-duration: 0.15s; }
.duration-200 { transition-duration: 0.2s; }
.ease-in-out  { transition-timing-function: ease-in-out; }

/* ── Placeholder ─────────────────────────────────────── */
.placeholder-gray-600::placeholder { color: #52525B; }
.placeholder-gray-500::placeholder { color: #71717A; }

/* ── Spinner ─────────────────────────────────────────── */
.animate-spin   { animation: spin 1s linear infinite; }
.animate-pulse  { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes spin  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }

/* ── Misc utilities ──────────────────────────────────── */
.ring-0        { box-shadow: none; }
.ring-1        { box-shadow: 0 0 0 1px; }
.outline-none  { outline: none; }
.resize-none   { resize: none; }
.list-none     { list-style: none; }
.no-underline  { text-decoration: none; }
.underline     { text-decoration: underline; }
.line-clamp-2  { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.line-clamp-3  { overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }

/* ── Responsive: sm (640px+) ─────────────────────────── */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:flex-row    { flex-direction: row; }
    .sm\:px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ── Responsive: md (768px+) ─────────────────────────── */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row    { flex-direction: row; }
    .md\:block       { display: block; }
    .md\:hidden      { display: none; }
    .md\:px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:px-8        { padding-left: 2rem; padding-right: 2rem; }
    .md\:py-6        { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .md\:text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl    { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:h-80        { height: 20rem; }
    .md\:w-auto      { width: auto; }
}

/* ── Patch: clases extra detectadas en Compra + Cajero ── */

/* Sizes */
.text-5xl { font-size: 3rem; line-height: 1; }
.w-44 { width: 11rem; }
.h-44 { height: 11rem; }

/* Gap */
.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }

/* Margin */
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-8    { margin-bottom: 2rem; }
.mt-5    { margin-top: 1.25rem; }
.mt-8    { margin-top: 2rem; }

/* Backgrounds */
.bg-green-500     { background-color: #22C55E; }
.bg-gray-800\/50  { background-color: rgba(39,39,42,0.5); }
.bg-gray-900\/80  { background-color: rgba(24,24,27,0.8); }

/* Gradient overlay — EventoLanding hero */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-gray-950    { --tw-gradient-from: #09090B; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-black       { --tw-gradient-from: #000;    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-gray-950\/40 { --tw-gradient-stops: var(--tw-gradient-from), rgba(9,9,11,0.4), var(--tw-gradient-to, transparent); }
.to-transparent   { --tw-gradient-to: transparent; }

/* Custom font sizes for compact UI */
.text-\[10px\] { font-size: 10px; line-height: 1.2; }
.text-\[11px\] { font-size: 11px; line-height: 1.3; }
.text-\[13px\] { font-size: 13px; line-height: 1.4; }

/* Flex grow */
.flex-grow-\[2\] { flex-grow: 2; }

/* Hover */
.hover\:underline:hover     { text-decoration: underline; }
.hover\:border-gray-400:hover { border-color: #A1A1AA; }
.hover\:text-amber-400:hover  { color: #FBBF24; }

/* p-3 shadow-lg (for QR block) */
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,.5), 0 4px 6px rgba(0,0,0,.3); }

/* Border opacity variants */
.border-amber-500\/40 { border-color: rgba(245,158,11,0.4); }

/* Background opacity variant for ghost button */
.bg-gray-800\/40  { background-color: rgba(39,39,42,0.4); }

/* Border-top color (spinner top in email button) */
.border-t-amber-400 { border-top-color: #FBBF24; }

/* Active states (tap feedback on cajero cards) */
.active\:bg-gray-700:active { background-color: #3F3F46; }
.active\:bg-gray-800:active { background-color: #27272A; }

/* Space-y fractional */
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.p-3  { padding: 0.75rem; }
