/* public/css/ventacontrol.css - JAS VentaControl Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Base Color Palette (Light, Modern & Crystal-Clear) */
    --primary-dark: #ffffff;
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    --surface-bg: #ffffff;
    
    /* Accents */
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: rgba(37, 99, 235, 0.1);
    --accent-gold: #d97706;
    --accent-gold-hover: #b45309;
    
    /* Status Colors */
    --success: #059669;
    --success-light: rgba(5, 150, 105, 0.1);
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.1);
    --danger: #dc2626;
    --danger-light: rgba(220, 38, 38, 0.1);
    --info: #0284c7;
    --info-light: rgba(2, 132, 199, 0.1);
    --neutral: #475569;
    --neutral-light: rgba(71, 85, 105, 0.1);
    
    /* Typography Colors (Ultra High-Contrast & Legible) */
    --text-primary: #0f172a;   /* Slate 900 - Deep crisp dark text */
    --text-secondary: #334155; /* Slate 700 - Highly visible secondary text */
    --text-muted: #475569;     /* Slate 600 - High contrast muted text */
    --text-inverse: #ffffff;
    
    /* Borders & Shadows */
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --border-focus: rgba(37, 99, 235, 0.5);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    
    /* Z-index */
    --z-sidebar: 100;
    --z-header: 90;
    --z-dropdown: 200;
    --z-modal: 300;
    --z-overlay: 250;
    --z-tooltip: 400;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--info);
}

ul, ol {
    list-style: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    width: 100%;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    grid-column: 2;
}

.main-content {
    flex-grow: 1;
    min-width: 0;
    padding: var(--spacing-xl);
    overflow-y: auto;
    animation: fadeIn 0.4s ease-out;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-right: 1px solid #334155;
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo span {
    color: #86c38a;
}

.sidebar-nav {
    flex-grow: 1;
    padding: var(--spacing-md) 0;
}

.sidebar-section {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.75rem;
    font-weight: 800;
    color: #9bc59e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--spacing-md);
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem var(--spacing-lg);
    color: #cbd5e1;
    font-weight: 600;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    border-left-color: #86c38a;
}

.sidebar-nav a.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(54, 122, 78, 0.48) 0%, rgba(54, 122, 78, 0.08) 100%);
    border-left-color: #86c38a;
    font-weight: 700;
}

.sidebar-nav a span.icon {
    margin-right: var(--spacing-md);
    font-size: 1.2rem;
}

.sidebar-user {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-user-name {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.sidebar-user-role {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.sidebar-logout {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: #f87171;
    font-weight: 600;
    transition: color 0.2s ease;
}

.sidebar-logout:hover {
    color: #ef4444;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header-bar {
    height: var(--header-height);
    background-color: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 1.35rem;
}

.header-title,
.header-user {
    min-width: 0;
}

.header-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-location-label {
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: #0f172a;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    color: #0f172a;
}

/* ==========================================================================
   PAGES & CONTAINERS
   ========================================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    animation: slideInRight 0.4s ease-out;
}

.page-context {
    margin-bottom: var(--spacing-lg);
}

.breadcrumbs {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.breadcrumbs a {
    color: #27613c;
    font-weight: 700;
}

.context-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}

.task-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.task-card {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    display: flex;
    gap: var(--spacing-md);
    min-height: 154px;
    padding: var(--spacing-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.task-card:hover,
.task-card:focus-visible {
    border-color: #367a4e;
    box-shadow: 0 10px 24px rgba(39, 97, 60, 0.14);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.task-card-attention {
    border-color: #d97706;
}

.task-card-icon {
    align-items: center;
    background: #e8f3e9;
    border-radius: var(--radius-md);
    display: flex;
    flex: 0 0 46px;
    font-size: 1.35rem;
    height: 46px;
    justify-content: center;
}

.task-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.task-card-content strong {
    font-size: 1rem;
}

.task-card-content > span:not(.task-card-meta) {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.task-card-meta {
    color: #27613c;
    font-size: 0.8125rem;
    font-weight: 800;
    margin-top: auto;
}

.workflow-help .card-body {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2fr);
}

.workflow-steps {
    align-items: flex-start;
    counter-reset: none;
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-steps li {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    position: relative;
    text-align: center;
}

.workflow-steps li:not(:last-child)::after {
    background: #b7d3ba;
    content: '';
    height: 2px;
    left: calc(50% + 20px);
    position: absolute;
    top: 18px;
    width: calc(100% - 40px);
}

.workflow-steps li > span {
    align-items: center;
    background: #27613c;
    border-radius: 999px;
    color: #ffffff;
    display: flex;
    height: 36px;
    justify-content: center;
    margin: 0 auto 0.5rem;
    width: 36px;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.page-subtitle {
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInUp 0.5s ease-out both;
}

.card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
    border-color: #94a3b8;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #0f172a;
}

.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}

.card-body {
    min-width: 0;
    padding: 1.5rem;
    color: #1e293b;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

/* ==========================================================================
   STAT CARDS (Vibrant & High-Contrast Cards)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInUp 0.5s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #0284c7);
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #10b981, #059669); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.stat-label {
    font-size: 0.8125rem;
    color: #334155;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.stat-card:nth-child(1) .stat-icon { background-color: #d1fae5; color: #059669; }
.stat-card:nth-child(2) .stat-icon { background-color: #dbeafe; color: #1d4ed8; }
.stat-card:nth-child(3) .stat-icon { background-color: #fee2e2; color: #dc2626; }
.stat-card:nth-child(4) .stat-icon { background-color: #f3e8ff; color: #7c3aed; }

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    background: none;
    -webkit-text-fill-color: #0f172a;
    margin-bottom: var(--spacing-xs);
}

.stat-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.positive { color: var(--success); }
.stat-trend.negative { color: var(--danger); }
.stat-trend.neutral { color: var(--neutral); }

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-responsive {
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-list {
    min-width: 0;
    width: 100%;
}

.data-list-toolbar {
    align-items: end;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.data-list-search {
    flex: 1 1 280px;
    min-width: min(100%, 230px);
}

.data-list-filter {
    flex: 0 1 190px;
    min-width: 160px;
}

.data-list-search label,
.data-list-filter label {
    color: var(--text-secondary);
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.data-list-search-field {
    position: relative;
}

.data-list-search-field > span {
    color: var(--text-muted);
    font-size: 1.25rem;
    left: 0.8rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.data-list-search-field .form-control {
    padding-left: 2.4rem;
}

.data-list-toolbar-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: var(--spacing-sm);
    margin-left: auto;
}

.data-list-count {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.data-list-sum {
    color: #27613c;
    font-size: 0.875rem;
    white-space: nowrap;
}

.data-list .table-responsive {
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 0;
}

.data-list-no-results {
    background: #fff8eb;
    border: 1px solid #f1cc8b;
    border-radius: var(--radius-md);
    color: #70470d;
    display: none;
    font-weight: 700;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-md);
    text-align: center;
}

.data-list-no-results.is-visible {
    display: block;
}

.data-list tbody tr[hidden] {
    display: none;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th,
.table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.table th {
    color: #0f172a;
    background: #f1f5f9;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.data-table th,
.data-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f1f5f9;
    color: #0f172a;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #cbd5e1;
}

.data-table td {
    color: #1e293b;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-empty {
    text-align: center;
    padding: var(--spacing-2xl) !important;
    color: var(--text-muted);
}

.table-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(225, 112, 85, 0.2);
}

.badge-info {
    background-color: var(--info-light);
    color: var(--info);
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.badge-neutral {
    background-color: var(--neutral-light);
    color: var(--text-secondary);
    border: 1px solid rgba(113, 128, 150, 0.2);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #2a41a8);
    color: var(--text-inverse);
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3);
    background: linear-gradient(135deg, var(--accent-blue-hover), #213486);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-success {
    background-color: var(--success);
    color: var(--text-inverse);
}
.btn-success:hover:not(:disabled) { background-color: #00a383; }

.btn-warning {
    background-color: var(--warning);
    color: #000;
}
.btn-warning:hover:not(:disabled) { background-color: #eab763; }

.btn-danger {
    background-color: var(--danger);
    color: var(--text-inverse);
}
.btn-danger:hover:not(:disabled) { background-color: #cc654d; }

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
}
.btn-icon.btn-sm {
    width: 28px;
    height: 28px;
    padding: 0.25rem;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--spacing-lg);
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.finance-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
    align-items: start;
}

@media (max-width: 760px) {
    .finance-entry-grid {
        grid-template-columns: 1fr;
    }
}

.field-help {
    margin-top: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.product-photo-field {
    display: grid;
    justify-items: start;
}

.product-photo-preview,
.product-photo-placeholder {
    width: 180px;
    height: 180px;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.product-photo-preview {
    object-fit: cover;
    background: #fff;
}

.product-photo-placeholder {
    display: grid;
    place-items: center;
    background: var(--primary-bg);
    color: var(--text-muted);
}

.product-photo-input {
    max-width: 480px;
}

.product-thumb,
.product-thumb-placeholder {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
}

.product-thumb {
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.product-thumb-placeholder {
    display: inline-grid;
    place-items: center;
    background: var(--primary-bg);
    font-size: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-inline {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.reparto-form-action {
    align-self: end;
}

.reparto-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.reparto-actions,
.reparto-pay-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reparto-action select,
.reparto-pay-form input {
    min-width: 150px;
}

/* Portal móvil del repartidor */
.repartidor-body {
    min-height: 100vh;
    margin: 0;
    color: #2f261f;
    background: #f4efe4;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.repartidor-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem max(1rem, calc((100vw - 1120px) / 2));
    color: #fff;
    background: #173f35;
    box-shadow: 0 4px 16px rgba(24, 48, 41, 0.16);
}

.repartidor-brand,
.repartidor-session a {
    color: #fff;
    text-decoration: none;
}

.repartidor-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
}

.repartidor-brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 50%;
    background: #f1dfb9;
}

.repartidor-session {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.repartidor-session a {
    padding-left: 0.8rem;
    border-left: 1px solid rgba(255,255,255,.35);
    font-weight: 700;
}

.repartidor-main {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.repartidor-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    color: #fff;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #173f35, #2f6654);
    box-shadow: 0 18px 40px rgba(23, 63, 53, .18);
}

.repartidor-kicker,
.repartidor-order-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.repartidor-kicker { color: #f0cf88; }
.repartidor-hero h1 { margin: .35rem 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.repartidor-hero p { margin: 0; color: rgba(255,255,255,.78); }

.repartidor-rate {
    display: grid;
    min-width: 150px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 1rem;
    background: rgba(255,255,255,.1);
}

.repartidor-rate .money { color: #f4d894; font-size: 1.55rem; font-weight: 800; }
.repartidor-rate small { color: rgba(255,255,255,.7); }

.repartidor-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.25rem 0 2rem;
}

.repartidor-stat {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #dfd5c4;
    border-radius: 1rem;
    background: #fffdf8;
}

.repartidor-stat > span { font-size: 1.45rem; }
.repartidor-stat div { display: grid; }
.repartidor-stat strong { font-size: 1.25rem; color: #173f35; }
.repartidor-stat small { color: #76695e; }

.repartidor-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.repartidor-section-title h2 { margin: 0; }
.repartidor-section-title span { color: #76695e; }
.repartidor-orders { display: grid; gap: 1rem; }

.repartidor-order {
    padding: 1.25rem;
    border: 1px solid #ded1bd;
    border-left: 5px solid #b8493d;
    border-radius: 1.1rem;
    background: #fffdf8;
    box-shadow: 0 8px 24px rgba(73, 55, 40, .07);
}

.repartidor-order.delivered { border-left-color: #3d8068; opacity: .84; }
.repartidor-order-top,
.repartidor-order-footer,
.repartidor-order-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.repartidor-order h2 { margin: .15rem 0 0; font-size: 1.15rem; }
.repartidor-order-label { color: #8b5f3e; }

.repartidor-status {
    padding: .4rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.repartidor-status.is-waiting { color: #79521e; background: #f9e8bf; }
.repartidor-status.is-route { color: #8b3029; background: #f8d9d4; }
.repartidor-status.is-done { color: #1f5b47; background: #d9ede5; }

.repartidor-order-grid {
    justify-content: flex-start;
    margin: 1rem 0;
}

.repartidor-order-grid > div { display: grid; min-width: 180px; }
.repartidor-order-grid small,
.repartidor-address small { color: #7b6d61; }
.repartidor-order-grid .money { color: #173f35; font-weight: 800; }

.repartidor-address {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .9rem;
    border-radius: .8rem;
    background: #f3ede2;
}

.repartidor-address div { display: grid; gap: .2rem; }
.repartidor-notes { margin: .8rem 0 0; color: #6e5d50; }
.repartidor-order-footer { margin-top: 1rem; color: #6e5d50; font-size: .88rem; }
.repartidor-order-actions { display: flex; gap: .5rem; }

.repartidor-empty {
    padding: 3rem 1rem;
    text-align: center;
    border: 1px dashed #c9b9a2;
    border-radius: 1rem;
    background: rgba(255,255,255,.55);
}

.repartidor-empty > span { font-size: 2.4rem; }
.repartidor-empty h2 { margin: .6rem 0 .25rem; }
.repartidor-empty p { margin: 0; color: #76695e; }

@media (max-width: 720px) {
    .repartidor-header { padding: .8rem 1rem; }
    .repartidor-session > span { display: none; }
    .repartidor-main { width: min(100% - 1rem, 1120px); padding-top: .5rem; }
    .repartidor-hero { align-items: flex-start; flex-direction: column; padding: 1.25rem; border-radius: 1rem; }
    .repartidor-rate { width: 100%; }
    .repartidor-stats { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
    .repartidor-stat { padding: .8rem; }
    .repartidor-stat strong { font-size: 1rem; }
    .repartidor-order { padding: 1rem; }
    .repartidor-order-top,
    .repartidor-order-footer { align-items: flex-start; flex-direction: column; }
    .repartidor-order-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .repartidor-order-grid > div { min-width: 0; }
    .repartidor-order-actions,
    .repartidor-order-actions form,
    .repartidor-order-actions button { width: 100%; }
}

@media (min-width: 721px) and (max-width: 1024px) {
    .repartidor-main { width: min(100% - 2rem, 920px); }
    .repartidor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .repartidor-order-grid { flex-wrap: wrap; }
}

@media (max-width: 420px) {
    .repartidor-header { gap: .5rem; }
    .repartidor-brand { font-size: .9rem; }
    .repartidor-brand-mark { width: 2rem; height: 2rem; }
    .repartidor-session a { padding-left: 0; border-left: 0; font-size: .82rem; }
    .repartidor-stats { grid-template-columns: 1fr; }
    .repartidor-order-grid { grid-template-columns: 1fr; }
    .repartidor-section-title { align-items: flex-start; flex-direction: column; gap: .3rem; }
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #0f172a;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1.5px solid #94a3b8;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control::placeholder {
    color: #475569;
    font-weight: 500;
    opacity: 1;
}

.form-control:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-control:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0.7;
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a0aec0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-control[aria-invalid="true"] {
    border-color: var(--danger);
}
.form-control[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.25);
}

.field-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--danger);
}

.form-actions {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: var(--surface-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--border-color);
    appearance: none;
    color-adjust: exact;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.form-check-input[type="checkbox"] { border-radius: 0.25em; }
.form-check-input[type="radio"] { border-radius: 50%; }

.form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}
.form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease-out;
}

.alert-success {
    color: #a3e6d8;
    background-color: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.2);
    border-left: 4px solid var(--success);
}

.alert-warning {
    color: #fce4b3;
    background-color: rgba(253, 203, 110, 0.1);
    border-color: rgba(253, 203, 110, 0.2);
    border-left: 4px solid var(--warning);
}

.alert-danger {
    color: #f3bba8;
    background-color: rgba(225, 112, 85, 0.1);
    border-color: rgba(225, 112, 85, 0.2);
    border-left: 4px solid var(--danger);
}

.alert-info {
    color: #baddff;
    background-color: rgba(116, 185, 255, 0.1);
    border-color: rgba(116, 185, 255, 0.2);
    border-left: 4px solid var(--info);
}

/* ==========================================================================
   MONEY
   ========================================================================== */
.money {
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
}
.money-positive { color: var(--success); }
.money-negative { color: var(--danger); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin-top: var(--spacing-lg);
    justify-content: flex-end;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    text-decoration: none;
}

.pagination .active {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-inverse);
    pointer-events: none;
}

.pagination .disabled {
    color: var(--text-muted);
    background-color: transparent;
    pointer-events: none;
    opacity: 0.5;
}

/* ==========================================================================
   SEARCH & FILTERS
   ========================================================================== */
.search-box {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 400px;
}

.search-box .form-control {
    padding-left: 2.5rem;
    border-radius: var(--radius-full);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-bar {
    display: flex;
    gap: var(--spacing-md);
    background-color: var(--secondary-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
    align-items: flex-end;
}

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */
.login-page,
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-xl);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
    animation: fadeIn 0.6s ease-out;
}

.login-logo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-logo span {
    color: var(--accent-blue);
}

/* ==========================================================================
   ERROR PAGE
   ========================================================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-xl);
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: var(--spacing-md);
    text-shadow: var(--shadow-glow);
}

.error-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.error-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   RESPONSIVE DESIGN (CSS Only Sidebar Toggle)
   ========================================================================== */
#sidebar-toggle {
    display: none;
}

.sidebar-toggle-label {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .main-wrapper {
        grid-column: 1;
    }
    
    .sidebar {
        z-index: calc(var(--z-overlay) + 1);
        transform: translateX(-100%);
    }
    
    .hamburger,
    .sidebar-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #sidebar-toggle:checked ~ .app-container .sidebar {
        transform: translateX(0);
    }
    
    #sidebar-toggle:checked ~ .sidebar-overlay {
        display: block;
        opacity: 1;
    }
    
    .header-left {
        gap: var(--spacing-sm);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-help .card-body {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: var(--spacing-lg);
    }

    .data-table,
    .table {
        min-width: 680px;
    }

    .main-content > .data-table,
    .main-content > .table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .header-bar {
        min-height: 64px;
        height: auto;
        padding: .6rem 1rem;
        gap: .75rem;
    }

    .header-title {
        flex: 1;
        font-size: .92rem;
    }

    .page-header,
    .card-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: .75rem;
    }

    .page-header {
        margin-bottom: var(--spacing-lg);
    }

    .page-header h1,
    .page-header h2,
    .page-title {
        font-size: 1.55rem;
    }

    .stats-grid,
    .task-grid,
    .form-row,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .task-card {
        min-height: 0;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .workflow-steps li {
        align-items: center;
        display: flex;
        gap: var(--spacing-sm);
        text-align: left;
    }

    .workflow-steps li > span {
        flex: 0 0 36px;
        margin: 0;
    }

    .workflow-steps li:not(:last-child)::after {
        height: calc(100% - 26px);
        left: 17px;
        top: 31px;
        width: 2px;
    }

    .filter-bar,
    .form-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .data-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .data-list-search,
    .data-list-filter {
        flex-basis: auto;
        width: 100%;
    }

    .data-list-toolbar-actions {
        flex-wrap: wrap;
        justify-content: space-between;
        margin-left: 0;
        width: 100%;
    }

    .filter-bar > *,
    .form-inline > :not(input[type="hidden"]) {
        width: 100%;
        max-width: none;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions .btn,
    .form-actions button,
    .form-actions a {
        width: 100%;
    }

    .reparto-header-actions {
        width: 100%;
    }

    .reparto-header-actions .btn {
        flex: 1;
    }

    .pagination {
        flex-wrap: wrap;
    }
    
    .main-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .header-username,
    .header-user-separator {
        display: none;
    }

    .main-content {
        padding: .8rem;
    }

    .login-page,
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-logo {
        font-size: clamp(1.55rem, 8vw, 2rem);
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .card {
        border-radius: 12px;
    }

    .card-header,
    .card-body,
    .card-footer,
    .stat-card {
        padding: 1rem;
    }

    .btn:not(.btn-icon) {
        min-height: 44px;
    }

    .alert,
    .flex.flex-between {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .data-table,
    .table {
        min-width: 620px;
    }

    .data-table th,
    .data-table td,
    .table th,
    .table td {
        padding: .7rem .75rem;
    }

    .reparto-actions,
    .reparto-pay-form,
    .reparto-action,
    .reparto-action select,
    .reparto-pay-form input,
    .reparto-actions .btn,
    .reparto-pay-form .btn {
        width: 100%;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    
    .sidebar,
    .header-bar,
    .btn,
    .table-actions,
    .pagination,
    .filter-bar,
    .sidebar-toggle-label {
        display: none !important;
    }
    
    .app-container {
        display: block;
    }
    
    .main-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .main-content {
        padding: 0;
        overflow: visible;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        background: none;
        page-break-inside: avoid;
    }
    
    .card-header {
        background: #f0f0f0;
        border-bottom: 1px solid #000;
    }
    
    .data-table th {
        background-color: #f0f0f0;
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    .data-table th,
    .data-table td {
        border-color: #ccc;
        color: #000;
    }
    
    .badge {
        border: 1px solid #000;
        color: #000;
        background: transparent !important;
    }
    
    .stat-card {
        background: none;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .stat-value,
    .stat-label {
        color: #000;
        -webkit-text-fill-color: #000;
    }
}

/* Public virtual storefront */
.store-body { margin: 0; min-height: 100vh; color: #172033; background: #f5f7fb; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
.store-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.store-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #dce3ee; background: rgba(255,255,255,.96); }
.store-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.store-brand { color: #162033; font-size: 1.35rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.store-brand span { color: #2aa8e8; }
.store-nav { display: flex; align-items: center; gap: 22px; }
.store-nav a { color: #38445a; font-weight: 650; text-decoration: none; }
.store-cart-link { padding: 10px 16px; border-radius: 999px; color: white !important; background: #2357e8; }
.store-main { min-height: calc(100vh - 150px); padding-block: 44px 72px; }
.store-hero { position: relative; overflow: hidden; margin-bottom: 38px; padding: clamp(34px, 6vw, 72px); border-radius: 28px; color: white; background: linear-gradient(120deg, #111b35 0%, #174b8c 58%, #20a9df 130%); box-shadow: 0 20px 55px rgba(25,55,110,.2); }
.store-hero::after { position: absolute; width: 280px; height: 280px; right: -80px; top: -120px; border: 52px solid rgba(255,255,255,.09); border-radius: 50%; content: ''; }
.store-hero > div { position: relative; z-index: 1; max-width: 680px; }
.store-eyebrow { display: inline-block; margin-bottom: 12px; color: #67d5ff; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.store-hero h1, .store-page-heading h1, .store-thanks h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.store-hero h1 { color: white; }
.store-hero p { max-width: 590px; margin: 20px 0 0; color: #e5efff; font-size: 1.08rem; line-height: 1.7; }
.store-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 24px; }
.store-product-card { overflow: hidden; border: 1px solid #dfe6f0; border-radius: 20px; background: white; box-shadow: 0 12px 34px rgba(33,52,87,.08); transition: transform .2s, box-shadow .2s; }
.store-product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(33,52,87,.14); }
.store-product-image { display: block; width: 100%; aspect-ratio: 4 / 3; background: #edf1f7; object-fit: cover; }
.store-product-placeholder { display: grid; place-items: center; color: #8e9bb1; font-size: 4rem; }
.store-product-content { display: flex; min-height: 275px; padding: 22px; flex-direction: column; align-items: flex-start; }
.store-category { color: #238ac2; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.store-product-content h2 { margin: 8px 0 6px; font-size: 1.25rem; }
.store-product-content p { min-height: 46px; margin: 0 0 14px; color: #68748a; line-height: 1.5; }
.store-product-content small { color: #788399; }
.store-product-price { display: flex; margin-top: auto; margin-bottom: 4px; align-items: baseline; gap: 9px; font-size: 1.35rem; }
.store-old-price { color: #9ba5b5; font-size: .86rem; text-decoration: line-through; }
.store-add-form { display: flex; width: 100%; margin-top: 16px; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.store-add-form input { width: 64px; }
.store-add-form button { flex: 1; }
.store-size-field { display: flex; min-width: 0; flex: 1 1 150px; flex-direction: column; gap: 5px; color: #596579; font-size: .76rem; font-weight: 750; }
.store-size-field select { min-height: 44px; width: 100%; padding: 9px 10px; border: 1px solid #cbd4e1; border-radius: 9px; color: #172033; background: white; font: inherit; }
.store-customization-field { display: flex; width: 100%; flex-direction: column; gap: 5px; color: #596579; font-size: .76rem; font-weight: 750; }
.store-customization-field textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid #cbd4e1; border-radius: 9px; resize: vertical; color: #172033; background: white; font: inherit; box-sizing: border-box; }
.store-customization-field textarea::placeholder { color: #9a8c83; opacity: 1; }
.store-item-observation { max-width: 48ch; color: var(--cafe-green-dark) !important; line-height: 1.45; }
.store-primary { display: inline-flex; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 11px; align-items: center; justify-content: center; color: white; background: #2357e8; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.store-primary:hover { background: #1946c6; }
.store-soldout { width: 100%; margin-top: 16px; padding: 11px; border-radius: 10px; color: #7d2935; background: #fff0f1; text-align: center; font-weight: 700; }
.store-page-heading { margin-bottom: 28px; }
.store-page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); }
.store-page-heading p { color: #68748a; }
.store-checkout-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.store-panel { padding: 28px; border: 1px solid #dfe6f0; border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(33,52,87,.07); }
.store-panel h2 { margin: 0 0 22px; }
.store-cart-row { display: grid; padding: 15px 0; border-bottom: 1px solid #e9edf4; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; }
.store-cart-row small { display: block; margin-top: 5px; color: #7d8798; }
.store-link-button { border: 0; color: #c6374b; background: none; cursor: pointer; text-decoration: underline; }
.store-totals { display: flex; padding-top: 18px; flex-direction: column; align-items: flex-end; gap: 7px; color: #596579; }
.store-totals strong { color: #172033; font-size: 1.15rem; }
.store-checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.store-checkout-form h2, .store-checkout-form .store-privacy, .store-checkout-form .store-submit { grid-column: 1 / -1; }
.store-checkout-form label { display: flex; color: #3c475b; font-size: .9rem; font-weight: 650; flex-direction: column; gap: 7px; }
.store-checkout-form input, .store-checkout-form select, .store-checkout-form textarea, .store-add-form input { min-height: 44px; padding: 10px 12px; border: 1px solid #cbd4e1; border-radius: 9px; color: #172033; background: white; font: inherit; box-sizing: border-box; }
.store-checkout-form textarea { min-height: 86px; resize: vertical; }
.store-privacy { margin: 0; color: #778297; font-size: .82rem; line-height: 1.5; }
.store-error { margin-bottom: 20px; padding: 14px 18px; border-left: 4px solid #d84458; border-radius: 8px; color: #8b2332; background: #fff0f2; }
.store-empty, .store-thanks { max-width: 650px; margin: 50px auto; padding: 50px 30px; border: 1px solid #dfe6f0; border-radius: 24px; background: white; text-align: center; box-shadow: 0 14px 45px rgba(33,52,87,.08); }
.store-thanks { display: flex; align-items: center; flex-direction: column; gap: 18px; }
.store-thanks h1 { font-size: clamp(2rem, 4vw, 3rem); }
.store-thanks p { max-width: 510px; margin: 0; color: #69758a; line-height: 1.65; }
.store-check { display: grid; width: 72px; height: 72px; border-radius: 50%; place-items: center; color: white; background: #20a46b; font-size: 2.2rem; font-weight: 800; }
.store-footer { padding: 28px 0; color: #7a8597; background: #111a2e; text-align: center; }
.store-body > .skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px; color: white; background: #111a2e; }
.store-body > .skip-link:focus { top: 12px; }

@media (max-width: 760px) {
    .store-checkout-grid { grid-template-columns: 1fr; }
    .store-checkout-form { grid-template-columns: 1fr; }
    .store-checkout-form h2, .store-checkout-form .store-privacy, .store-checkout-form .store-submit { grid-column: auto; }
    .store-header-inner { min-height: 64px; }
    .store-nav { gap: 10px; }
    .store-nav > a:first-child { display: none; }
    .store-main { padding-top: 24px; }
    .store-hero { border-radius: 20px; }
    .store-cart-row { grid-template-columns: 1fr auto; }
    .store-cart-row form { grid-column: 1 / -1; }
}

/* JAS Mentor Helpers */
.sintesis-card {
    border-left: 5px solid #4361ee;
    background: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}
.sintesis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.sintesis-title {
    margin: 0;
    font-size: 1.15rem;
    color: #f59e0b;
    font-weight: 700;
}
.sintesis-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0;
}
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
}
.recom-alert {
    background: #0f172a;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    color: #f1f5f9;
}
.recom-title {
    color: #60a5fa;
    font-size: 1rem;
}
.recom-leccion {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-style: italic;
    color: #cbd5e1;
}
.recom-mensaje {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #f8fafc;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-between { justify-content: space-between; }
.flex-end { justify-content: flex-end; }
.items-center { align-items: center; }

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.inline-form {
    display: inline-block;
}

.branch-edit-details {
    display: inline-block;
    margin-right: 8px;
}

.branch-edit-form {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #2d3748;
    border-radius: 8px;
    background: #1a1a2e;
}


/* Camera and commercial QR labels */
.webcam-preview { width: 100%; max-height: 360px; background: #020617; border-radius: 10px; object-fit: contain; }
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.product-label { min-height: 50mm; border: 1px dashed #94a3b8; border-radius: 6px; padding: 4mm; text-align: center; background: #fff; color: #111827; display: flex; flex-direction: column; align-items: center; justify-content: center; break-inside: avoid; }
.label-product-name { font-size: 14px; line-height: 1.15; }
.label-sku, .label-code { font-size: 10px; overflow-wrap: anywhere; }
.label-price { font-size: 18px; font-weight: 700; margin: 2mm 0; }
.label-qr img, .label-qr canvas { display: block; max-width: 100%; height: auto; }
.qr-error { color: #b91c1c; font-size: 12px; }
@media print {
    @page { margin: 5mm; }
    .no-print, #print-labels, .page-header { display: none !important; }
    .label-sheet { display: grid !important; grid-template-columns: repeat(4, 48mm); gap: 2mm; align-items: start; }
    .product-label { width: 48mm; height: 50mm; min-height: 50mm; box-sizing: border-box; border: 0.2mm solid #999; padding: 2mm; page-break-inside: avoid; }
    .label-qr-box svg, .label-qr img, .label-qr canvas { width: 30mm !important; height: 30mm !important; }
    .label-code { font-size: 6pt; }
}


/* --- Storefront marketing refresh --- */
.store-topbar { color: #d9ebff; background: #0d1630; font-size: .92rem; }
.store-topbar-inner { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 16px; }
.store-topbar-inner span { opacity: .95; }
.store-header { top: 0; }
.store-main { padding-block: 32px 80px; }
.store-header-inner { gap: 16px; }
.store-nav { flex-wrap: wrap; }
.store-nav a { position: relative; }
.store-nav a:not(.store-cart-link)::after { position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: #2357e8; content: ''; transition: width .18s ease; }
.store-nav a:not(.store-cart-link):hover::after { width: 100%; }
.store-hero { padding: clamp(28px, 5vw, 64px); }
.store-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 28px; align-items: center; }
.store-hero-copy { position: relative; z-index: 1; }
.store-hero-copy p { margin-bottom: 0; }
.store-hero-actions { display: flex; margin-top: 28px; flex-wrap: wrap; gap: 14px; }
.store-secondary { display: inline-flex; min-height: 44px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 11px; align-items: center; justify-content: center; color: white; background: rgba(255,255,255,.08); font-weight: 700; text-decoration: none; backdrop-filter: blur(4px); }
.store-secondary:hover { background: rgba(255,255,255,.16); }
.store-hero-microcopy { display: flex; margin-top: 18px; flex-wrap: wrap; gap: 10px; }
.store-hero-microcopy span { display: inline-flex; padding: 8px 12px; border-radius: 999px; color: #edf6ff; background: rgba(255,255,255,.12); font-size: .88rem; font-weight: 600; }
.store-hero-panel { position: relative; z-index: 1; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(10,18,36,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.store-hero-panel h2 { margin: 0 0 16px; color: white; font-size: 1.35rem; }
.store-check-list { display: grid; margin: 0; padding: 0; gap: 12px; list-style: none; }
.store-check-list li { position: relative; padding-left: 28px; line-height: 1.55; }
.store-check-list li::before { position: absolute; left: 0; top: 0; color: #69d5ff; content: '✓'; font-weight: 800; }
.store-highlight-card { margin-top: 18px; padding: 18px; border-radius: 18px; color: #10213f; background: white; }
.store-highlight-card strong { display: block; font-size: 1.15rem; }
.store-highlight-card p { margin: 8px 0 0; color: #61708a; font-size: .95rem; }
.store-stats { display: grid; margin: 0 0 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.store-stat-card { padding: 22px; border: 1px solid #dfe6f0; border-radius: 18px; background: white; box-shadow: 0 10px 25px rgba(33,52,87,.06); }
.store-stat-card small { display: block; color: #6d7990; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.store-stat-card strong { display: block; margin: 12px 0 6px; color: #15213a; font-size: 1.9rem; }
.store-stat-card span { color: #5f6b80; line-height: 1.45; }
.store-benefit-strip { display: grid; margin-bottom: 34px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.store-benefit-card { padding: 24px; border: 1px solid #dfe6f0; border-radius: 20px; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); box-shadow: 0 12px 34px rgba(33,52,87,.06); }
.store-benefit-card h2 { margin: 0 0 10px; font-size: 1.08rem; }
.store-benefit-card p { margin: 0; color: #637087; line-height: 1.65; }
.store-section-heading { display: flex; margin-bottom: 18px; flex-direction: column; gap: 8px; }
.store-section-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.store-section-heading p { margin: 0; color: #637087; line-height: 1.6; }
.store-eyebrow-dark { color: #1d74b3; }
.store-categories, .store-offers, .store-catalog-section { margin-bottom: 38px; }
.store-chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-chip { display: inline-flex; padding: 10px 14px; border: 1px solid #d7e0ef; border-radius: 999px; align-items: center; gap: 10px; color: #244061; background: white; font-weight: 700; }
.store-chip small { display: inline-grid; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; place-items: center; color: white; background: #2357e8; font-size: .75rem; }
.store-offer-grid .store-product-card { border-color: #d8e6ff; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.store-product-card-highlight { box-shadow: 0 18px 40px rgba(28,72,160,.12); }
.store-product-media { position: relative; }
.store-badge-row { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.store-badge { display: inline-flex; min-height: 28px; padding: 6px 10px; border-radius: 999px; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.store-badge-accent { color: white; background: #de495f; }
.store-badge-warning { color: #704400; background: #ffe8b0; }
.store-badge-success { color: #126543; background: #daf7e8; }
.store-product-content { min-height: 305px; }
.store-product-meta { display: flex; width: 100%; margin-top: 2px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.store-save-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: #13613d; background: #e5f8ed; font-size: .78rem; font-weight: 800; }
.store-inline-note { display: inline-block; margin-top: 7px; color: #1f6a9a; font-size: .82rem; font-weight: 700; }
.store-primary { box-shadow: 0 10px 24px rgba(35,87,232,.18); }
.store-primary:hover { transform: translateY(-1px); }
.store-cta-banner { display: grid; padding: 28px; border: 1px solid #dbe5f3; border-radius: 24px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; color: #172033; background: linear-gradient(120deg, #f7fbff 0%, #edf3ff 100%); box-shadow: 0 12px 32px rgba(33,52,87,.07); }
.store-cta-banner h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.store-cta-banner p { margin: 0; color: #637087; line-height: 1.65; }
.store-steps { display: grid; margin-bottom: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-step { display: flex; padding: 16px 18px; border: 1px solid #dfe6f0; border-radius: 18px; align-items: center; gap: 14px; background: white; box-shadow: 0 10px 25px rgba(33,52,87,.05); }
.store-step.is-active { border-color: #bfd4ff; background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%); }
.store-step-number { display: grid; width: 38px; height: 38px; border-radius: 50%; place-items: center; color: white; background: #2357e8; font-weight: 800; }
.store-step strong { display: block; margin-bottom: 4px; }
.store-step small { color: #677489; line-height: 1.45; }
.store-summary-panel { position: sticky; top: 100px; }
.store-summary-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-panel-intro { margin: 0 0 14px; color: #68748a; line-height: 1.6; }
.store-mini-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; color: #184068; background: #edf4ff; font-size: .82rem; font-weight: 800; }
.store-trust-box { margin-top: 20px; padding: 18px; border-radius: 18px; background: #f7faff; }
.store-trust-box strong { display: block; margin-bottom: 12px; }
.store-field-hint { color: #738096; font-size: .79rem; line-height: 1.45; }
.store-field-wide { grid-column: 1 / -1; }
.store-thanks-next { width: min(100%, 520px); padding: 20px; border-radius: 18px; background: #f7faff; text-align: left; }
.store-thanks-next h2 { margin: 0 0 12px; font-size: 1.15rem; }
.store-thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-footer { padding: 42px 0; }
.store-footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 24px; text-align: left; }
.store-footer-brand p { margin: 10px 0 0; color: #a7b4ca; line-height: 1.65; }
.store-footer-list { display: grid; margin: 12px 0 0; padding: 0; gap: 8px; color: #ced9eb; list-style: none; }
.store-footer-list li { line-height: 1.55; }

@media (max-width: 980px) {
    .store-hero-grid, .store-cta-banner, .store-footer-grid, .store-stats, .store-benefit-strip, .store-steps { grid-template-columns: 1fr 1fr; }
    .store-hero-grid > :first-child, .store-cta-banner > :first-child, .store-footer-grid > :first-child { grid-column: 1 / -1; }
    .store-summary-panel { position: static; }
}

@media (max-width: 760px) {
    .store-topbar-inner { min-height: auto; padding: 8px 0; flex-direction: column; align-items: flex-start; }
    .store-hero-grid, .store-stats, .store-benefit-strip, .store-steps, .store-cta-banner, .store-footer-grid { grid-template-columns: 1fr; }
    .store-hero-panel { padding: 20px; }
    .store-hero-actions, .store-thanks-actions { flex-direction: column; }
    .store-secondary, .store-primary { width: 100%; }
    .store-chip-row { gap: 10px; }
}

/* --- Cafetal: customer-facing brand identity --- */
.store-body {
    --cafe-ink: #2d211c;
    --cafe-green: #0b5d46;
    --cafe-green-dark: #073f31;
    --cafe-brown: #68412f;
    --cafe-brown-dark: #432b22;
    --cafe-red: #b5342d;
    --cafe-red-dark: #8e2823;
    --cafe-beige: #e8d8c4;
    --cafe-cream: #f7f0e6;
    --cafe-paper: #fffdf8;
    --cafe-sage: #6f8c76;
    color: var(--cafe-ink);
    background: var(--cafe-cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.store-shell { width: min(1240px, calc(100% - 40px)); }
.store-topbar { color: #f9eee1; background: var(--cafe-brown-dark); font-size: .82rem; }
.store-topbar-inner { min-height: 36px; }
.store-open-status { color: #d9e5d7; font-weight: 750; }
.store-header { border-color: rgba(68,41,31,.12); background: rgba(255,253,249,.95); backdrop-filter: blur(14px); }
.store-header-inner { min-height: 82px; }
.store-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--cafe-ink); text-transform: none; }
.store-brand span { color: inherit; }
.store-brand-logo { display: block; width: 132px; height: 58px; object-fit: contain; object-position: left center; }
.store-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.store-brand-copy small { margin-top: 6px; color: #816d63; font-size: .62rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.store-brand-copy em { margin-top: 6px; color: var(--cafe-green); font-family: Georgia, "Times New Roman", serif; font-size: .78rem; font-style: italic; }
.store-nav { gap: 26px; }
.store-nav a { color: #59483f; font-size: .9rem; }
.store-nav a:not(.store-cart-link)::after { background: var(--cafe-green); }
.store-cart-link { display: inline-flex; padding: 10px 12px 10px 16px; align-items: center; gap: 8px; color: white !important; background: var(--cafe-green); box-shadow: 0 8px 20px rgba(21,56,44,.18); }
.store-cart-count { display: inline-grid; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 999px; place-items: center; color: var(--cafe-green-dark) !important; background: #e6eee2; font-size: .75rem; }
.store-main { padding-block: 34px 88px; }
.store-identity-hero { overflow: hidden; margin-bottom: 28px; border: 1px solid rgba(68,41,31,.14); border-radius: 34px; background: var(--cafe-green-dark); box-shadow: 0 28px 70px rgba(7,63,49,.2); }
.store-identity-banner { margin: 0; aspect-ratio: 1672 / 941; background: #d8dfcf; }
.store-identity-banner-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.store-banner-cta { display: flex; padding: 24px 28px; align-items: center; justify-content: space-between; gap: 28px; color: #fffaf2; background: linear-gradient(115deg, var(--cafe-green-dark), var(--cafe-green)); }
.store-banner-message { max-width: 680px; }
.store-banner-message .store-eyebrow { margin-bottom: 7px; color: #dfc890; }
.store-banner-message strong { display: block; color: #fffaf2; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.15; }
.store-banner-message p { margin: 7px 0 0; color: #dce8de; line-height: 1.55; }
.store-banner-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.store-banner-secondary { display: inline-flex; min-height: 44px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; align-items: center; justify-content: center; color: #fffaf2; font-weight: 750; text-decoration: none; }
.store-banner-secondary:hover { color: white; background: rgba(255,255,255,.1); }
.store-video-reopen { appearance: none; color: #fffaf2; background: transparent; cursor: pointer; font: inherit; }

/* Comercial de bienvenida */
.store-video-open { overflow: hidden; }
.store-video-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    width: 100%;
    height: 100%;
    padding: clamp(14px, 3vw, 38px);
    place-items: center;
    background: rgba(16, 12, 9, .82);
    backdrop-filter: blur(10px);
}
.store-video-modal.is-closed { display: none; }
.store-video-dialog {
    display: grid;
    overflow: hidden;
    width: min(1080px, 100%);
    max-height: calc(100vh - clamp(28px, 6vw, 76px));
    border: 1px solid rgba(232, 216, 196, .72);
    border-radius: 28px;
    color: var(--cafe-ink);
    background: var(--cafe-paper);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .48);
}
.store-video-header {
    display: flex;
    padding: 18px 20px 16px 26px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(110deg, #f9f1e6, #eef3e9);
}
.store-video-header .store-video-eyebrow { color: var(--cafe-green); }
.store-video-header h1 {
    margin: 4px 0 0;
    color: var(--cafe-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.1;
}
.store-video-close {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cfbda9;
    border-radius: 50%;
    flex: 0 0 44px;
    place-items: center;
    color: var(--cafe-brown-dark);
    background: #fffdf8;
    cursor: pointer;
    font: 400 2rem/1 system-ui, sans-serif;
}
.store-video-close:hover,
.store-video-close:focus-visible { color: white; border-color: var(--cafe-red); background: var(--cafe-red); outline: none; }
.store-video-frame { overflow: hidden; background: #090b09; }
.store-welcome-video {
    display: block;
    width: 100%;
    max-height: min(61vh, 608px);
    aspect-ratio: 16 / 9;
    background: #090b09;
    object-fit: contain;
    pointer-events: none;
}
.store-video-footer {
    display: flex;
    padding: 18px 24px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--cafe-paper);
}
.store-video-footer p { max-width: 680px; margin: 0; color: #715f54; line-height: 1.5; }
.store-video-continue { flex: 0 0 auto; border: 0; cursor: pointer; font: inherit; }
.store-hero { min-height: 520px; margin-bottom: 24px; padding: clamp(38px, 6vw, 78px); border-radius: 34px; color: #fffdf8; background: radial-gradient(circle at 78% 20%, rgba(232,216,196,.18), transparent 28%), linear-gradient(125deg, #073f31 0%, #0b5d46 54%, #68412f 118%); box-shadow: 0 28px 70px rgba(7,63,49,.22); }
.store-hero::before { position: absolute; inset: 0; opacity: .23; background-image: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 72% 76%, #fff 0 1px, transparent 1.5px); background-size: 46px 46px, 62px 62px; content: ''; }
.store-hero::after { width: 360px; height: 360px; right: -120px; top: -160px; border: 70px solid rgba(255,245,229,.06); }
.store-hero > div { max-width: none; }
.store-hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr); gap: clamp(32px, 6vw, 74px); }
.store-hero-copy { align-self: center; }
.store-eyebrow { color: #eadfce; font-size: .72rem; }
.store-hero h1, .store-page-heading h1, .store-thanks h1, .store-section-heading h2, .store-cta-banner h2, .store-experience-banner h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.store-hero h1 { max-width: 650px; color: #fffaf2; font-size: clamp(3rem, 6.8vw, 6rem); line-height: .96; }
.store-hero p { max-width: 610px; color: #f0ded0; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.store-primary { border-radius: 999px; background: var(--cafe-red); box-shadow: 0 10px 25px rgba(132,51,41,.22); }
.store-primary:hover { background: var(--cafe-red-dark); }
.store-secondary { border-color: rgba(255,255,255,.3); border-radius: 999px; color: #fffaf2; }
.store-hero-microcopy span { padding: 8px 0; color: #e5eee4; background: transparent; }
.store-hero-visual { position: relative; display: grid; min-height: 380px; place-items: center; }
.store-hero-visual::before { position: absolute; width: 330px; height: 330px; border-radius: 50% 38% 52% 42%; background: rgba(234,223,206,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px rgba(18,39,31,.28); content: ''; transform: rotate(-8deg); }
.store-cup { position: relative; z-index: 2; display: grid; width: 230px; height: 180px; margin-top: 40px; border-radius: 18px 18px 82px 82px; place-items: start center; background: linear-gradient(145deg, #f7ebda, #d7b995); box-shadow: inset -18px -14px 30px rgba(107,65,42,.16), 0 32px 40px rgba(22,10,6,.3); }
.store-cup::before { position: absolute; width: 188px; height: 56px; top: -16px; border: 10px solid #ead5ba; border-radius: 50%; background: radial-gradient(ellipse at center, #f6ead4 0 24%, #c58c5c 26% 46%, #77452e 49% 72%, #44251b 74%); content: ''; }
.store-cup::after { position: absolute; width: 78px; height: 94px; right: -58px; top: 32px; border: 21px solid #ddc3a3; border-left: 8px solid #ddc3a3; border-radius: 0 50% 50% 0; content: ''; }
.store-latte-art { position: relative; z-index: 2; margin-top: -2px; color: #f8ebd5; font-family: Georgia, serif; font-size: 2.2rem; transform: rotate(-8deg); }
.store-cup-logo { position: absolute; z-index: 3; width: 118px; height: 64px; left: 50%; bottom: 23px; object-fit: contain; transform: translateX(-50%); }
.store-steam { position: absolute; z-index: 1; width: 38px; height: 110px; top: 14px; border: 5px solid rgba(255,246,232,.4); border-right: 0; border-bottom: 0; border-radius: 70% 0 0 0; transform: rotate(12deg); }
.store-steam-one { left: 46%; }
.store-steam-two { left: 57%; top: 30px; height: 82px; transform: rotate(-7deg) scale(.78); }
.store-hero-note { position: absolute; z-index: 3; display: flex; padding: 13px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; flex-direction: column; color: var(--cafe-ink); background: rgba(255,253,248,.94); box-shadow: 0 16px 35px rgba(18,39,31,.2); backdrop-filter: blur(10px); }
.store-hero-note small { color: #876c5c; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.store-hero-note strong { margin-top: 4px; font-family: Georgia, serif; }
.store-hero-note-top { right: 1%; top: 10%; }
.store-hero-note-bottom { left: 0; bottom: 6%; }
.store-service-strip { display: grid; margin: 0 0 64px; padding: 24px 28px; border: 1px solid #e8d8c4; border-radius: 24px; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--cafe-paper); box-shadow: 0 12px 32px rgba(80,54,38,.06); }
.store-service-card { display: flex; padding: 10px 24px; align-items: flex-start; gap: 16px; }
.store-service-card + .store-service-card { border-left: 1px solid #eadfD2; }
.store-service-card > span { color: var(--cafe-green); font-family: Georgia, serif; font-size: 1.4rem; font-style: italic; }
.store-service-card h2 { margin: 0 0 5px; font-size: .96rem; }
.store-service-card p { margin: 0; color: #7a6960; font-size: .84rem; line-height: 1.5; }
.store-section-heading { margin-bottom: 26px; }
.store-section-heading h2 { color: var(--cafe-ink); font-size: clamp(2rem, 4vw, 3.25rem); }
.store-section-heading p { color: #79675d; }
.store-eyebrow-dark { color: var(--cafe-green); }
.store-categories, .store-offers, .store-catalog-section { margin-bottom: 72px; }
.store-menu-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.store-menu-category { display: flex; min-height: 112px; padding: 20px; border: 1px solid #eadbc9; border-radius: 22px; align-items: center; gap: 16px; color: inherit; background: var(--cafe-paper); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.store-menu-category:hover { border-color: #9bb3a0; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(31,77,58,.1); }
.store-menu-icon { display: grid; width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50% 42% 50% 40%; place-items: center; color: var(--cafe-green-dark); background: #dde8dc; font-size: 1.8rem; transform: rotate(-3deg); }
.store-menu-icon > * { transform: rotate(3deg); }
.store-menu-category h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 1.08rem; }
.store-menu-category p { margin: 0; color: #857269; font-size: .78rem; }
.store-product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.store-category-sections { display: grid; gap: 56px; }
.store-category-section { scroll-margin-top: 110px; }
.store-category-heading { display: flex; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #eadbc9; align-items: center; gap: 16px; }
.store-category-heading .store-menu-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.45rem; }
.store-category-heading h3 { margin: 0 0 4px; color: var(--cafe-ink); font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.store-category-heading p { margin: 0; color: #857269; font-size: .86rem; }
.store-product-card { border-color: #eadbc9; border-radius: 24px; background: var(--cafe-paper); box-shadow: 0 12px 28px rgba(82,51,34,.07); }
.store-product-card:hover { box-shadow: 0 22px 44px rgba(82,51,34,.13); }
.store-product-image { aspect-ratio: 1 / .84; padding: 6px; background: radial-gradient(circle at 50% 42%, #fffaf1 0%, #efe1d0 100%); object-fit: contain; }
.store-product-placeholder { background: radial-gradient(circle at 50% 42%, #fbf2e7 0 28%, transparent 29%), linear-gradient(145deg, #e9d2b7, #f6ebdc); color: var(--cafe-brown); font-size: 5rem; }
.store-product-content { min-height: 286px; padding: 22px 22px 24px; }
.store-category { color: var(--cafe-green); }
.store-product-content h2 { margin-top: 9px; color: var(--cafe-ink); font-family: Georgia, serif; font-size: 1.38rem; }
.store-product-content p { color: #796960; }
.store-product-price { color: var(--cafe-brown-dark); }
.store-old-price { color: #9e8d83; }
.store-badge-accent { background: var(--cafe-red); }
.store-badge-warning { color: #674415; background: #f6dfb3; }
.store-badge-success { color: #234d39; background: #dce9dc; }
.store-save-badge { color: #7c3028; background: #f4ded8; }
.store-inline-note { color: var(--cafe-sage); }
.store-flavor-field { display: flex; min-width: 0; flex: 1 1 170px; flex-direction: column; gap: 5px; color: #596579; font-size: .76rem; font-weight: 750; }
.store-flavor-field select { min-height: 44px; width: 100%; padding: 9px 10px; border: 1px solid #d9cabb; border-radius: 12px; color: #172033; background: #fffefa; font: inherit; }
.store-topping-field, .store-popping-flavor-field { display: flex; min-width: 0; flex: 1 1 170px; flex-direction: column; gap: 5px; color: #596579; font-size: .76rem; font-weight: 750; }
.store-popping-flavor-field.is-hidden { display: none; }
.store-topping-field select, .store-popping-flavor-field select { min-height: 44px; width: 100%; padding: 9px 10px; border: 1px solid #d9cabb; border-radius: 12px; color: #172033; background: #fffefa; font: inherit; }
.store-toppings-toggle { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.store-toppings-toggle:not(:checked) + .store-toppings-banner { display: none; }
.store-toppings-banner { position: fixed; z-index: 80; width: min(320px, calc(100vw - 32px)); right: 18px; top: 50%; padding: 24px 20px 20px; border: 1px solid rgba(255,255,255,.26); border-radius: 24px; color: #fffaf0; background: linear-gradient(150deg, #173d2d 0%, #245f43 70%, #307b51 100%); box-shadow: 0 24px 60px rgba(20,45,34,.28); transform: translateY(-50%); }
.store-toppings-banner[hidden] { display: none; }
.store-toppings-close { position: absolute; width: 34px; height: 34px; right: 12px; top: 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.store-toppings-kicker { display: block; padding-right: 34px; color: #dce9cf; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.store-toppings-banner h2 { margin: 8px 0 5px; color: #fff; font-family: Georgia, serif; font-size: 1.55rem; }
.store-toppings-banner > p { margin: 0 0 16px; color: #dbe7dd; font-size: .84rem; }
.store-toppings-option { display: grid; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.17); grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; }
.store-toppings-option strong, .store-toppings-option small { display: block; }
.store-toppings-option small { margin-top: 2px; color: #d3e1d5; font-size: .69rem; line-height: 1.35; }
.store-toppings-option b { padding: 6px 9px; border-radius: 999px; color: #213c2f; background: #f2d89e; font-size: .82rem; }
.store-toppings-art { display: grid; width: 40px; height: 40px; border-radius: 14px; place-items: center; font-size: .58rem; letter-spacing: -1px; }
.store-tapioca-art { color: #39251d; background: #ead6b9; }
.store-popping-art { color: #c93f36; background: #f4c977; text-shadow: 7px -5px #6dae4d, -6px 5px #d27ca0; }
.store-cart-dock { position: fixed; z-index: 110; display: flex; width: min(720px, calc(100vw - 32px)); left: 50%; bottom: 20px; padding: 14px 14px 14px 16px; border: 1px solid rgba(255,255,255,.32); border-radius: 20px; align-items: center; justify-content: space-between; gap: 18px; color: #fff; background: linear-gradient(135deg, #163d2d, #236348); box-shadow: 0 22px 55px rgba(17,49,36,.3); transform: translateX(-50%); }
.store-cart-dock[hidden] { display: none; }
.store-cart-dock-copy { display: flex; min-width: 0; align-items: center; gap: 12px; }
.store-cart-dock-copy strong, .store-cart-dock-copy span { display: block; }
.store-cart-dock-copy strong { color: #fff; font-size: .98rem; }
.store-cart-dock-copy span { margin-top: 2px; overflow: hidden; color: #dbe8dd; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.store-cart-dock-icon { display: grid !important; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; place-items: center; color: #1f503b !important; background: #f3d99f; font-weight: 900; }
.store-cart-dock-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.store-cart-dock-actions button, .store-cart-dock-actions a { display: inline-flex; min-height: 42px; padding: 10px 14px; border-radius: 12px; align-items: center; justify-content: center; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; text-decoration: none; }
.store-cart-dock-continue { border: 1px solid rgba(255,255,255,.36); color: #fff; background: transparent; }
.store-cart-dock-review { border: 1px solid #f3d99f; color: #1e4836; background: #f3d99f; }
.store-cart-dock.is-error { background: linear-gradient(135deg, #7e2d25, #a53b30); }
.store-cart-dock.is-error .store-cart-dock-icon { color: #7e2d25 !important; }
.store-add-form[aria-busy="true"] { opacity: .78; }
.store-add-form button[disabled] { cursor: wait; }
.store-add-form input, .store-size-field select, .store-customization-field textarea, .store-checkout-form input, .store-checkout-form select, .store-checkout-form textarea { border-color: #d9cabb; border-radius: 12px; background: #fffefa; }
.store-offer-grid .store-product-card { border-color: #d8a59d; background: linear-gradient(180deg, #fffdf8 0%, #faece8 100%); }
.store-product-card-highlight { box-shadow: 0 18px 38px rgba(123,71,39,.12); }
.store-experience-banner { display: grid; margin: 12px 0 34px; padding: clamp(28px, 5vw, 54px); border-radius: 30px; grid-template-columns: .75fr 1.25fr auto; align-items: center; gap: 30px; background: linear-gradient(115deg, #dce8dc, #eadfce); }
.store-experience-art { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.store-experience-art span:nth-child(2) { color: var(--cafe-red); font-size: 1.5rem; }
.store-experience-banner h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.store-experience-banner p { margin: 0; color: #6d5a50; line-height: 1.65; }
.store-cta-banner { border-color: #dac5ac; background: var(--cafe-paper); box-shadow: 0 12px 32px rgba(82,51,34,.07); }
.store-cta-banner h2 { color: var(--cafe-ink); }
.store-cta-banner p { color: #79675d; }
.store-page-heading p, .store-panel-intro, .store-field-hint, .store-privacy { color: #78685f; }
.store-panel { border-color: #eadbc9; background: var(--cafe-paper); box-shadow: 0 12px 30px rgba(82,51,34,.07); }
.store-step { border-color: #eadbc9; background: var(--cafe-paper); box-shadow: none; }
.store-step.is-active { border-color: #9bb3a0; background: #f0f5ef; }
.store-step-number { background: var(--cafe-green); }
.store-mini-pill, .store-trust-box, .store-thanks-next { color: var(--cafe-green-dark); background: #e7eee4; }
.store-check-list li::before { color: var(--cafe-red); }
.store-check { background: var(--cafe-green); }
.store-empty, .store-thanks { border-color: #eadbc9; background: var(--cafe-paper); box-shadow: 0 18px 45px rgba(82,51,34,.09); }
.store-footer { color: #d5dfd4; background: var(--cafe-green-dark); }
.store-footer-brand p { color: #b9c9ba; }
.store-footer-logo { display: block; width: 168px; height: 84px; padding: 8px 12px; border-radius: 14px; background: var(--cafe-cream); object-fit: contain; }
.store-footer-list { color: #e1e8df; }
.store-body > .skip-link { background: var(--cafe-green-dark); }

@media (max-width: 980px) {
    .store-banner-cta { align-items: flex-start; flex-direction: column; }
    .store-banner-actions { width: 100%; }
    .store-hero { min-height: auto; }
    .store-hero-grid { grid-template-columns: 1fr 1fr; }
    .store-checkout-grid { grid-template-columns: 1fr; }
    .store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-service-strip { grid-template-columns: 1fr; }
    .store-service-card + .store-service-card { border-top: 1px solid #eadfd2; border-left: 0; }
    .store-experience-banner { grid-template-columns: .7fr 1.3fr; }
    .store-experience-banner > .store-primary { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 760px) {
    .store-cart-dock { width: auto; left: 10px; right: 10px; bottom: 10px; padding: 13px; border-radius: 17px; align-items: stretch; flex-direction: column; transform: none; }
    .store-cart-dock-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .store-cart-dock-actions button, .store-cart-dock-actions a { width: 100%; }
    .store-cart-dock-active .store-toppings-banner { display: none; }
    .store-toppings-banner { width: auto; left: 12px; right: 12px; top: auto; bottom: 12px; padding: 19px 16px 14px; border-radius: 20px; transform: none; }
    .store-toppings-banner h2 { font-size: 1.25rem; }
    .store-toppings-banner > p { margin-bottom: 10px; }
    .store-toppings-option { padding: 9px 0; }
    .store-shell { width: min(100% - 24px, 1240px); }
    .store-topbar-inner { align-items: center; text-align: center; }
    .store-topbar-inner span:last-child { display: none; }
    .store-header-inner { min-height: 72px; }
    .store-brand-logo { width: 106px; height: 48px; }
    .store-brand-copy small { font-size: .55rem; }
    .store-brand-copy em { display: none; }
    .store-nav > a:not(.store-cart-link) { display: none; }
    .store-cart-link { width: auto !important; }
    .store-main { padding-top: 16px; }
    .store-identity-hero { border-radius: 26px; }
    .store-identity-banner { aspect-ratio: 4 / 5; }
    .store-identity-banner-image { object-position: 50% center; }
    .store-banner-cta { padding: 22px; }
    .store-banner-actions { flex-direction: column; }
    .store-banner-actions > * { width: 100%; }
    .store-video-modal { padding: 10px; }
    .store-video-dialog { max-height: calc(100dvh - 20px); border-radius: 20px; }
    .store-video-header { padding: 14px 14px 12px 18px; }
    .store-video-header h1 { font-size: 1.3rem; }
    .store-video-close { width: 40px; height: 40px; flex-basis: 40px; }
    .store-welcome-video { max-height: 56dvh; }
    .store-video-footer { padding: 15px 16px 17px; flex-direction: column; align-items: stretch; gap: 13px; }
    .store-video-footer p { font-size: .88rem; }
    .store-video-continue { width: 100%; }
    .store-hero { min-height: auto; padding: 36px 24px 24px; border-radius: 26px; }
    .store-hero-grid { grid-template-columns: 1fr; }
    .store-hero h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); }
    .store-hero-visual { min-height: 300px; transform: scale(.87); }
    .store-hero-note-top { right: -4%; }
    .store-hero-note-bottom { left: -5%; }
    .store-service-strip { margin-bottom: 48px; padding: 14px; }
    .store-service-card { padding: 16px 10px; }
    .store-menu-categories { grid-template-columns: 1fr 1fr; }
    .store-product-grid { grid-template-columns: 1fr; }
    .store-menu-category { min-height: 96px; padding: 14px; }
    .store-menu-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.45rem; }
    .store-menu-category h3 { font-size: .95rem; }
    .store-menu-category p { display: none; }
    .store-categories, .store-offers, .store-catalog-section { margin-bottom: 54px; }
    .store-experience-banner { grid-template-columns: 1fr; text-align: center; }
    .store-experience-banner > .store-primary { justify-self: stretch; }
    .store-hero-actions { align-items: stretch; }
    .store-panel { padding: 20px; }
    .store-cart-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .store-cart-row form { grid-column: 1 / -1; }
    .store-totals { align-items: stretch; }
    .store-totals .store-primary,
    .store-submit { width: 100%; }
    .store-checkout-form { grid-template-columns: 1fr; }
    .store-checkout-form h2,
    .store-checkout-form .store-privacy,
    .store-checkout-form .store-submit,
    .store-field-wide { grid-column: auto; }
}

@media (max-width: 440px) {
    .store-cart-dock-copy span { white-space: normal; }
    .store-cart-dock-actions { grid-template-columns: 1fr; }
    .store-shell { width: min(100% - 20px, 1240px); }
    .store-header-inner { gap: 8px; }
    .store-brand { gap: 0; }
    .store-brand-logo { width: 96px; height: 44px; }
    .store-brand-copy { display: none; }
    .store-cart-link { padding: 9px 10px; gap: 6px; }
    .store-cart-label { display: none; }
    .store-identity-hero { border-radius: 22px; }
    .store-banner-cta { padding: 20px 18px; }
    .store-video-eyebrow { font-size: .62rem; }
    .store-video-dialog { border-radius: 16px; }
    .store-hero { padding: 30px 18px 20px; }
    .store-hero h1 { font-size: clamp(2.35rem, 16vw, 3.35rem); }
    .store-hero-visual { min-height: 265px; transform: scale(.76); }
    .store-hero-note-top { right: -12%; }
    .store-hero-note-bottom { left: -12%; }
    .store-menu-categories { grid-template-columns: 1fr; }
    .store-menu-category p { display: block; }
    .store-panel { padding: 16px; border-radius: 16px; }
    .store-cart-row { grid-template-columns: 1fr; gap: 8px; }
    .store-cart-row > form { grid-column: auto; }
    .store-cart-row .store-link-button { padding: 8px 0; text-align: left; }
    .store-empty,
    .store-thanks { margin: 24px auto; padding: 32px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .store-product-card, .store-menu-category, .store-primary { transition: none; }
    .store-product-card:hover, .store-menu-category:hover, .store-primary:hover { transform: none; }
}

/* Cafetal Lealtad */
.store-loyalty-link{color:#a82f25!important;font-weight:800!important}
.store-loyalty-promo{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1.5rem;margin:1.5rem 0 2.5rem;padding:1.7rem 2rem;border-radius:24px;background:linear-gradient(125deg,#0b4a34,#176247);color:#fff;box-shadow:0 18px 40px rgba(18,65,48,.18);overflow:hidden}
.store-loyalty-promo h2{margin:.2rem 0 .35rem;color:#fff;font-family:Georgia,serif;font-size:clamp(1.45rem,2.4vw,2.25rem)}
.store-loyalty-promo p{margin:0;color:#f1e5cf;max-width:680px}
.store-loyalty-mark{display:grid;place-items:center;width:78px;height:78px;border:2px dashed #e7c98e;border-radius:50%;font:700 2.6rem Georgia,serif;color:#f2d79b;background:rgba(255,255,255,.08)}
.store-loyalty-cta{white-space:nowrap;background:#f7ebd6!important;color:#184a36!important}
.loyalty-hero{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:2rem;align-items:center;margin:1.5rem 0;padding:clamp(2rem,5vw,4.5rem);border-radius:28px;background:radial-gradient(circle at 90% 20%,rgba(224,188,116,.28),transparent 30%),linear-gradient(135deg,#073e2d,#176047);color:#fff;overflow:hidden}
.loyalty-hero h1{max-width:780px;margin:.5rem 0 1rem;font:700 clamp(2.2rem,5vw,4.6rem)/1.02 Georgia,serif;color:#fff}
.loyalty-hero>div>p{max-width:720px;color:#f2e7d5;font-size:1.08rem;line-height:1.7}
.loyalty-cup{font-size:9rem;text-align:center;filter:drop-shadow(0 20px 20px rgba(0,0,0,.2))}
.loyalty-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2rem}
.loyalty-steps>div{display:flex;gap:.7rem;align-items:center;padding:.85rem;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.08)}
.loyalty-steps b{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#e6c07d;color:#173e30}
.loyalty-steps span,.loyalty-steps small{display:block}.loyalty-steps small{margin-top:.15rem;color:#e7ddce}
.loyalty-entry-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:1.5rem;margin:1.5rem 0 3rem}
.loyalty-form-card{padding:clamp(1.5rem,3vw,2.5rem);border:1px solid #e6dac9;border-radius:24px;background:#fffdfa;box-shadow:0 14px 36px rgba(69,48,36,.08)}
.loyalty-lookup-card{background:#f2e9dc}.loyalty-form-card h2{margin:.35rem 0;font:700 1.8rem Georgia,serif;color:#3d2b24}
.loyalty-kicker{font-size:.76rem;font-weight:900;letter-spacing:.14em;color:#176047}
.loyalty-form{display:grid;gap:1rem;margin-top:1.4rem}.loyalty-form label,.loyalty-scan-form label{display:grid;gap:.4rem;font-weight:700;color:#49372e}
.loyalty-form input,.loyalty-scan-form input{width:100%;padding:.9rem 1rem;border:1px solid #cfbea9;border-radius:12px;background:#fff;font:inherit;color:#33251f}
.loyalty-alert{margin:1.2rem 0;padding:1rem 1.2rem;border-radius:14px;background:#dff2e7;color:#18543d;font-weight:700}.loyalty-alert-error{background:#f9dfdc;color:#8d2820}
.loyalty-wallet{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:2rem;align-items:stretch;margin:2rem 0 4rem}
.loyalty-card{min-height:430px;padding:2rem;border-radius:28px;background:radial-gradient(circle at 90% 10%,rgba(232,195,121,.34),transparent 30%),linear-gradient(140deg,#0b4b36,#123d2f);color:#fff;box-shadow:0 24px 60px rgba(9,54,39,.27);position:relative;overflow:hidden}
.loyalty-card:after{content:"";position:absolute;right:-90px;bottom:-100px;width:300px;height:300px;border:1px solid rgba(232,195,121,.28);border-radius:50%}
.loyalty-card-head,.loyalty-card-body{display:flex;justify-content:space-between;gap:2rem;align-items:center}.loyalty-card-head{padding-bottom:1.4rem;border-bottom:1px solid rgba(255,255,255,.2);font-size:.77rem;font-weight:800;letter-spacing:.15em}.loyalty-logo{width:150px;filter:brightness(0) invert(1)}
.loyalty-card-body{min-height:285px}.loyalty-member small{letter-spacing:.15em;color:#e5c886}.loyalty-member h1{margin:.5rem 0;font:700 clamp(2rem,4vw,3.7rem) Georgia,serif;color:#fff}.loyalty-member p{color:#efe3d3}.loyalty-qr{flex:0 0 220px;padding:10px;border-radius:18px;background:#fff}.loyalty-qr svg{display:block;width:100%;height:auto}.loyalty-card-foot{font-size:.84rem;color:#e9d9c3}
.loyalty-progress-panel{display:flex;flex-direction:column;justify-content:center;padding:2rem;border:1px solid #e2d2bd;border-radius:24px;background:#fffdfa}.loyalty-progress-panel h2{font:700 2rem Georgia,serif;color:#392820}.loyalty-stamps{display:flex;gap:.65rem;margin:1rem 0}.loyalty-stamp{display:grid;place-items:center;width:48px;height:48px;border:2px dashed #b9a58d;border-radius:50%;color:#8d7965;font-weight:800}.loyalty-stamp.is-earned{border-style:solid;border-color:#176047;background:#176047;color:#fff}.loyalty-reward-count{display:flex;align-items:center;gap:1rem;margin:1rem 0 1.5rem;padding:1rem;border-radius:16px;background:#f1e7d7}.loyalty-reward-count strong{font-size:2.4rem;color:#a83228}.loyalty-reward-count span{font-weight:700;color:#4c382d}.loyalty-text-button{width:100%;margin-top:1rem;border:0;background:transparent;color:#176047;text-decoration:underline;cursor:pointer}
.loyalty-admin-stats{margin-bottom:1.5rem}.loyalty-scan-card{display:grid;grid-template-columns:.8fr 1.2fr;gap:2rem;align-items:end;margin-bottom:1.5rem;padding:1.5rem}.loyalty-scan-form{display:grid;grid-template-columns:1fr 1fr auto;gap:1rem;align-items:end}.loyalty-scan-form .btn{min-height:46px}.table-subtitle{display:block;color:#786b62;margin-top:.2rem}
.loyalty-scan-actions{display:flex;gap:.65rem;align-items:center}.loyalty-scan-actions .btn{white-space:nowrap}
.loyalty-camera-modal{display:none;position:fixed;inset:0;z-index:3000;place-items:center;padding:1rem;background:rgba(5,27,20,.82);backdrop-filter:blur(7px)}.loyalty-camera-modal.is-open{display:grid}.loyalty-camera-dialog{width:min(92vw,620px);max-height:calc(100dvh - 2rem);overflow:auto;padding:1rem;border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.35)}.loyalty-camera-head{display:flex;align-items:center;justify-content:space-between;padding:.25rem .25rem .9rem}.loyalty-camera-head h3{margin:0;color:#183d2f}.loyalty-camera-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:0;border-radius:50%;background:#efe5d7;color:#402f27;font-size:1.7rem;cursor:pointer}.loyalty-camera-frame{position:relative;overflow:hidden;width:100%;aspect-ratio:4/3;max-height:calc(100dvh - 9rem);border-radius:16px;background:#091b15}.loyalty-camera-video{display:block;width:100%;height:100%;object-fit:cover}.loyalty-camera-guide{position:absolute;inset:15%;border:3px solid #f1ce85;border-radius:20px;box-shadow:0 0 0 999px rgba(0,0,0,.2)}.loyalty-camera-status{margin:.9rem .2rem .2rem;color:#176047;font-weight:700}.loyalty-camera-status.is-error{color:#a83228}
@media(max-width:900px){.store-loyalty-promo,.loyalty-hero,.loyalty-wallet,.loyalty-scan-card{grid-template-columns:1fr}.store-loyalty-promo{justify-items:start}.loyalty-cup{display:none}.loyalty-entry-grid{grid-template-columns:1fr}.loyalty-scan-form{grid-template-columns:1fr}.loyalty-card-body{align-items:flex-start}.loyalty-qr{flex-basis:180px}}
@media(max-width:620px){.loyalty-steps{grid-template-columns:1fr}.loyalty-hero{padding:1.5rem}.loyalty-card{padding:1.25rem;min-height:0}.loyalty-card-head,.loyalty-card-body{display:grid}.loyalty-card-body{padding:1.5rem 0}.loyalty-qr{width:190px}.loyalty-stamps{gap:.35rem}.loyalty-stamp{width:40px;height:40px}.store-loyalty-promo{padding:1.4rem}.store-loyalty-mark{width:60px;height:60px}}
