/* =============================================
   4TOOLS — CSS Completo Mobile First
   ============================================= */

/* ─── Variables (Modo Noche - default) ─── */
:root {
    --primary: #2159C4;
    --primary-dark: #193f8a;
    --primary-light: #4b7fe0;
    --primary-glow: rgba(33, 89, 196, 0.4);
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;
    --warning: #f59e0b;

    --bg-dark: #0a1628;
    --bg-card: #111d33;
    --bg-card-hover: #162542;
    --bg-input: #0f1a2e;
    --bg-surface: #0d1829;
    
    --text-primary: #f0f4fc;
    --text-secondary: #8899b4;
    --text-muted: #5a6d87;
    
    --border: rgba(255,255,255,0.06);
    --border-focus: rgba(33, 89, 196, 0.5);
    
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    --tabbar-height: 70px;
    --topbar-height: 56px;
    
    --font-main: 'Outfit', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Variables (Modo Día) ─── */
body.light-mode {
    --bg-dark: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f1f5f9;
    --bg-surface: #e8eef4;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    --border: rgba(0,0,0,0.08);
    --border-focus: rgba(33, 89, 196, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(33, 89, 196, 0.2);
    
    --primary-glow: rgba(33, 89, 196, 0.25);
}

/* ─── Ajustes específicos Modo Día ─── */
body.light-mode .landing-page {
    background: linear-gradient(180deg, #e8eef4 0%, #f0f4f8 100%);
}

body.light-mode .landing-page::before {
    background: radial-gradient(ellipse at 30% 0%, rgba(33, 89, 196, 0.08) 0%, transparent 60%);
}

body.light-mode .topbar {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border-bottom: 1px solid var(--border);
}

body.light-mode .tabbar {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border-top: 1px solid var(--border);
}

body.light-mode .modal {
    background: var(--bg-card);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

body.light-mode .modal-overlay {
    background: rgba(0,0,0,0.4);
}

body.light-mode .price-zoom-overlay {
    background: rgba(0,0,0,0.6);
}

body.light-mode .input-group select option {
    background: #ffffff;
    color: #1a202c;
}

body.light-mode .toast {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: #f7fafc;
}

body.light-mode .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(33, 89, 196, 0.3);
}

body.light-mode .action-icon {
    background: rgba(33,89,196,0.08);
}

body.light-mode .stat-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
}

body.light-mode .profile-avatar {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    color: #4a5568;
}

body.light-mode .welcome-avatar {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    color: #4a5568;
}

body.light-mode .mp-info-banner,
body.light-mode .home-banner {
    background: linear-gradient(135deg, rgba(33,89,196,0.08), rgba(33,89,196,0.03));
}

body.light-mode .admin-sidebar {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-surface));
}

body.light-mode .price-card.zoomed {
    box-shadow: 0 0 0 4px rgba(33,89,196,0.2), 0 25px 80px rgba(0,0,0,0.25);
}

body.light-mode .cotizar-item,
body.light-mode .cot-result-item {
    background: var(--bg-input);
}

body.light-mode .btn-primary {
    box-shadow: 0 4px 15px rgba(33, 89, 196, 0.25);
}

body.light-mode .historial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

body.light-mode .precios-chip:not(.active) {
    background: var(--bg-card);
    border-color: var(--border);
}

body.light-mode .price-fav-btn {
    background: rgba(0, 0, 0, 0.5);
}

/* Transición suave entre modos */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.topbar, .tabbar, .modal, .price-card, .btn, input, select, textarea {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ─── Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
img { max-width: 100%; display: block; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }

/* =============================================
   ANIMATIONS
   ============================================= */

/* Fade Up */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s var(--ease-out) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(33, 89, 196, 0.2); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   SPLASH SCREEN
   ============================================= */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.splash.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-4 {
    font-family: var(--font-accent);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    z-index: 2;
    position: relative;
    animation: scaleIn 0.6s var(--ease-spring) both;
}

.splash-rings .ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
}

.ring-1 {
    animation: ringExpand 2s 0.3s var(--ease-out) infinite;
}
.ring-2 {
    animation: ringExpand 2s 0.8s var(--ease-out) infinite;
}
.ring-3 {
    animation: ringExpand 2s 1.3s var(--ease-out) infinite;
}

@keyframes ringExpand {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.splash-title {
    font-family: var(--font-accent);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: fadeUp 0.6s 0.3s var(--ease-out) both;
}

.splash-subtitle {
    color: var(--text-secondary);
    margin-top: 6px;
    font-size: 0.95rem;
    animation: fadeUp 0.6s 0.5s var(--ease-out) both;
}

.splash-loader {
    width: 160px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 3px;
    margin: 30px auto 0;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    animation: loadBar 2s 0.5s var(--ease-smooth) forwards;
}

@keyframes loadBar {
    to { width: 100%; }
}

/* =============================================
   LANDING PAGE
   ============================================= */
.page {
    min-height: 100vh;
    min-height: 100dvh;
}

.landing-container {
    padding-bottom: 50px;
}

.landing-hero {
    position: relative;
    padding: 70px 24px 50px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(33,89,196,0.12) 0%, transparent 100%);
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100px) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-200px) scale(1); }
}

.landing-logo-wrap {
    margin-bottom: 20px;
    text-align: center;
}

/* Logo imagen para landing */
.landing-logo-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(33, 89, 196, 0.3));
}

.landing-logo-icon {
    display: none; /* Ya no se usa, reemplazado por imagen */
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
}

.landing-title {
    display: none; /* Ya no se usa, incluido en imagen */
    font-family: var(--font-accent);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* Features */
.landing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 20px;
    margin-bottom: 36px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s var(--ease-out);
}

.feature-card:active {
    transform: scale(0.97);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* CTA */
.landing-cta {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 36px;
}

.landing-trial-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* Trust */
.landing-trust {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 24px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.trust-item i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

/* Landing Footer */
.landing-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.expressatech-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.expressatech-link:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.expressatech-logo {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.1));
    transition: all 0.3s ease;
}

body.light-mode .expressatech-logo {
    filter: invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* =============================================
   AUTH PAGES (Login / Register)
   ============================================= */
.auth-container {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* =============================================
   ADMIN PANEL
   ============================================= */

/* Admin Sub-Navigation */
.admin-subnav {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-subnav::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.admin-tab i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.admin-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.admin-tab:not(.active):active {
    background: rgba(255,255,255,0.05);
    transform: scale(0.95);
}

/* Admin Panels */
.admin-panel {
    display: none;
    animation: fadeUp 0.35s ease-out;
}

.admin-panel.active {
    display: block;
}

/* Admin Header */
.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-panel-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:active {
    background: rgba(255,255,255,0.05);
}

/* Admin Loading */
.admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--text-muted);
}

.admin-loading i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

/* Admin List */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Category Card */
.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeUp 0.4s ease-out backwards;
}

.category-card:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.cat-info {
    flex: 1;
    min-width: 0;
}

.cat-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cat-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.cat-meta i {
    font-size: 0.65rem;
}

.cat-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.cat-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.cat-action-btn:active {
    transform: scale(0.9);
}

.cat-action-btn.edit:active {
    background: rgba(33, 89, 196, 0.2);
    color: var(--primary-light);
    border-color: var(--primary);
}

.cat-action-btn.delete:active {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border-color: var(--danger);
}

/* Admin Empty State */
.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
}

.admin-empty i {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.admin-empty h4 {
    color: var(--text-secondary);
    font-weight: 600;
}

.admin-empty p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Tab Admin special styling */
.tab-admin {
    position: relative;
}

.tab-admin i {
    color: var(--accent);
}

.tab-admin.active i {
    color: white;
}

/* =============================================
   MODAL
   ============================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-y: auto;
    animation: modalSlideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0.5;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 12px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.modal-close:active {
    background: rgba(255,255,255,0.12);
    transform: scale(0.9);
}

.modal-body {
    padding: 20px;
}

.modal-body .auth-form,
.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Icon Preview */
.icon-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(33, 89, 196, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(33, 89, 196, 0.15);
}

.icon-preview-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.icon-preview span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Icon Quick Select */
.icon-quick-select {
    margin-top: -4px;
}

.icon-select-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.icon-option {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.icon-option:active,
.icon-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(0.9);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* =============================================
   CONFIRM DIALOG
   ============================================= */

.confirm-modal {
    width: 85%;
    max-width: 340px;
    border-radius: var(--radius-xl);
    padding: 32px 24px 24px;
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--danger);
}

.confirm-modal h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.confirm-modal p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-actions .btn {
    flex: 1;
}

/* =============================================
   ADMIN — PRODUCTOS
   ============================================= */

/* Filtro por categoría */
.admin-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.admin-filter::-webkit-scrollbar {
    display: none;
}

.filter-chips-scroll {
    display: flex;
    gap: 8px;
}

.filter-chip {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.filter-chip:not(.active):active {
    background: rgba(255,255,255,0.05);
    transform: scale(0.95);
}

/* Barra de búsqueda */
.admin-search {
    margin-bottom: 16px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s;
}

.search-input-wrap:focus-within {
    border-color: var(--border-focus);
}

.search-input-wrap i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

/* Product Card */
.product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeUp 0.4s ease-out backwards;
}

.product-card:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.prod-image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-image .prod-no-img {
    font-size: 1.3rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.prod-info {
    flex: 1;
    min-width: 0;
}

.prod-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-info .prod-sku {
    font-size: 0.7rem;
    color: var(--primary-light);
    font-family: var(--font-mono, monospace);
    margin-bottom: 2px;
}

.prod-info .prod-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 2px 8px;
    border-radius: 10px;
}

.prod-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.prod-action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.prod-action-btn:active {
    transform: scale(0.9);
}

.prod-action-btn.edit:active {
    background: rgba(33, 89, 196, 0.2);
    color: var(--primary-light);
}

.prod-action-btn.delete:active {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Image Upload Area */
.image-upload-area {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.image-upload-area:active {
    border-color: var(--primary);
    background: rgba(33, 89, 196, 0.05);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.image-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 0.8rem;
}

#prod-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-spinner {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Modal Product - taller */
.modal-product {
    max-height: 95vh;
}

/* Textarea styling */
.input-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 14px 14px 48px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.92rem;
    resize: vertical;
    min-height: 60px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group textarea:focus {
    border-color: var(--border-focus);
}

.input-group textarea::placeholder {
    color: var(--text-muted);
}

/* =============================================
   ADMIN — PRECIOS
   ============================================= */

.price-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.price-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(33, 89, 196, 0.1), rgba(33, 89, 196, 0.05));
    border: 1px solid rgba(33, 89, 196, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.price-product-info img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.price-product-info .ppi-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.price-product-info .ppi-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price-product-info .ppi-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Price Types Form */
.price-types-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.price-type-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s;
    animation: fadeUp 0.3s ease-out backwards;
}

.price-type-row:focus-within {
    border-color: var(--border-focus);
}

.price-type-label {
    flex: 1;
    min-width: 0;
}

.price-type-label h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price-type-label p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.price-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    min-width: 120px;
    transition: border-color 0.3s;
}

.price-input-wrap:focus-within {
    border-color: var(--primary);
}

.price-input-wrap .currency-symbol {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.price-input-wrap input {
    width: 80px;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
}

.price-input-wrap input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.price-current {
    font-size: 0.7rem;
    color: var(--success);
    margin-top: 2px;
}

/* Price Summary / Table */
.price-summary {
    margin-top: 16px;
}

.price-summary-card {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    animation: fadeUp 0.3s ease-out backwards;
}

.price-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.price-summary-header img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.price-summary-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.price-row:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.price-row .pr-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.price-row .pr-label i {
    font-size: 0.7rem;
    width: 16px;
    text-align: center;
}

.price-row .pr-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-row .pr-value.empty {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

/* =============================================
   ADMIN — USUARIOS
   ============================================= */

.user-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.user-stat {
    padding: 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    animation: fadeUp 0.3s ease-out backwards;
}

.user-stat .us-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.user-stat .us-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-stat.trial .us-number { color: var(--info); }
.user-stat.activo .us-number { color: var(--success); }
.user-stat.vencido .us-number { color: var(--warning); }
.user-stat.suspendido .us-number { color: var(--danger); }

/* User Card */
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    animation: fadeUp 0.4s ease-out backwards;
}

.user-card:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.user-avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .user-badges {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.user-badge.role-admin {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.user-badge.role-suscriptor {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.user-badge.role-invitado {
    background: rgba(136, 153, 180, 0.15);
    color: #8899b4;
}

.user-badge.estado-trial {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.user-badge.estado-activo {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.user-badge.estado-vencido {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.user-badge.estado-suspendido {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.user-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.user-action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.user-action-btn:active {
    transform: scale(0.9);
}

.user-action-btn.edit:active {
    background: rgba(33, 89, 196, 0.2);
    color: var(--primary-light);
}

.user-action-btn.delete:active {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* User Modal Info */
.user-modal-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(33, 89, 196, 0.08), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(33, 89, 196, 0.12);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
}

.user-modal-info .umi-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-modal-info .umi-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-modal-info .umi-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-modal-info .umi-details .umi-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Quick action buttons */
.user-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-outline:active {
    background: var(--primary);
    color: white;
    transform: scale(0.95);
}

/* =============================================
   CATÁLOGO — Sección Usuario
   ============================================= */

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-historial-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(33, 89, 196, 0.3);
    background: rgba(33, 89, 196, 0.08);
    color: var(--primary-light);
    font-size: 0.78rem;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-historial-link:active {
    transform: scale(0.95);
    background: rgba(33, 89, 196, 0.2);
}

.cat-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
    padding-bottom: 4px;
}

.cat-filter-row::-webkit-scrollbar { display: none; }

.cat-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
}

.cat-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.cat-filter-btn:not(.active):active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.05);
}

.catalog-search {
    margin-bottom: 16px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeUp 0.4s ease-out backwards;
}

.catalog-card:active {
    transform: scale(0.96);
}

.catalog-card-img {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, rgba(33,89,196,0.06), rgba(33,89,196,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.catalog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-card-img .no-img {
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.catalog-card-body {
    padding: 10px;
}

.catalog-card-body h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-light);
}

.catalog-card-price .price-label {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* =============================================
   PRECIOS — Sección Usuario
   ============================================= */

.price-country-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(33, 89, 196, 0.1);
    border: 1px solid rgba(33, 89, 196, 0.15);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.prices-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeUp 0.3s ease-out backwards;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), z-index 0s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Prevenir selección de texto durante touch */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Clase para prevenir selección en todo el documento durante zoom */
body.no-select,
body.no-select * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Estado de zoom activo */
.price-card.zoomed {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: calc(100vw - 40px) !important;
    max-width: 380px;
    z-index: 10001 !important;
    padding: 24px;
    box-shadow: 
        0 0 0 4px rgba(33,89,196,0.3),
        0 25px 80px rgba(0,0,0,0.7);
    animation: zoomInBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    border: 2px solid var(--primary);
}

@keyframes zoomInBounce {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.price-card.zoomed .price-card-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.price-card.zoomed .price-card-img img {
    border-radius: var(--radius-lg);
}

.price-card.zoomed .price-card-info h4 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.price-card.zoomed .price-card-prices {
    flex-direction: column;
    gap: 10px;
}

.price-card.zoomed .price-tag {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(33,89,196,0.12), rgba(33,89,196,0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(33,89,196,0.15);
}

.price-card.zoomed .pt-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-card.zoomed .pt-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
    text-shadow: 0 2px 8px rgba(16,185,129,0.2);
}

/* Instrucción de soltar */
.price-card.zoomed::after {
    content: 'Suelta para cerrar';
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Overlay para zoom */
.price-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.price-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Indicador visual de que se puede hacer zoom (icono de lupa sutil) */
.price-card {
    position: relative;
}

.price-card::before {
    content: '\\f00e'; /* fa-search-plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.4;
    z-index: 2;
    transition: opacity 0.2s, transform 0.2s;
}

.price-card:active::before {
    opacity: 0.8;
    transform: scale(1.2);
}

.price-card.zoomed::before {
    display: none;
}

/* Hint de zoom (pulso sutil) */
@keyframes zoomIn {
    from {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.price-card-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.price-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-card-info {
    flex: 1;
    min-width: 0;
}

.price-card-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.price-card-prices {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
}

.price-tag .pt-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-tag .pt-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* =============================================
   COTIZADOR — Sección Usuario
   ============================================= */

.cotizar-country-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(33, 89, 196, 0.1);
    border: 1px solid rgba(33, 89, 196, 0.15);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.cotizar-items {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cotizar-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.cotizar-empty i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 12px;
}

.cotizar-empty h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.cotizar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeUp 0.3s ease-out backwards;
}

.cotizar-item-info {
    flex: 1;
    min-width: 0;
}

.cotizar-item-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cotizar-item-info .ci-price {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cotizar-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cotizar-qty button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cotizar-qty button:active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(0.9);
}

.cotizar-qty .qty-value {
    font-size: 1rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--text-primary);
}

.cotizar-item-total {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    min-width: 70px;
    text-align: right;
}

.cotizar-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cotizar-item-remove:active {
    background: var(--danger);
    color: white;
    transform: scale(0.9);
}

.cotizar-totales {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cotizar-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.cotizar-total-row.total-main {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cotizar-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Product Detail Modal */
.detail-image {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(33,89,196,0.08), rgba(33,89,196,0.03));
    margin-bottom: 16px;
    padding: 16px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-section {
    margin-bottom: 14px;
}

.detail-section h4 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.detail-prices {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-price-card {
    flex: 1;
    min-width: 80px;
    padding: 10px;
    background: rgba(33, 89, 196, 0.08);
    border: 1px solid rgba(33, 89, 196, 0.12);
    border-radius: var(--radius-md);
    text-align: center;
}

.detail-price-card .dp-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-price-card .dp-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-light);
}

/* Price Type Selector */
.cotizar-price-type {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    margin-top: 10px;
    animation: fadeUp 0.25s ease-out;
}

.cpt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cpt-header span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cpt-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.cpt-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpt-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.cpt-option:active {
    background: rgba(33, 89, 196, 0.15);
    border-color: var(--primary);
    transform: scale(0.98);
}

.cpt-option .cpt-tipo {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cpt-option .cpt-valor {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Envío */
.cotizar-envio {
    margin-top: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeUp 0.3s ease-out;
}

.envio-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.envio-header i {
    color: var(--primary-light);
}

.envio-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.envio-check-row {
    display: flex;
    align-items: center;
}

.envio-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    user-select: none;
}

.envio-check-label input[type="checkbox"] {
    display: none;
}

.envio-checkmark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.envio-check-label input:checked + .envio-checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.envio-check-label input:checked + .envio-checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.envio-monto-row {
    display: flex;
    align-items: center;
}

.envio-incluido-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal footer actions */
.modal-footer-actions {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    justify-content: center;
}

/* Cotización Result */
.cot-result-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    color: white;
    text-align: center;
}

.cot-result-header .cot-id {
    font-size: 0.72rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cot-result-header .cot-cliente {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 4px 0;
}

.cot-result-header .cot-meta {
    font-size: 0.78rem;
    opacity: 0.85;
}

.cot-result-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.cot-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.cot-result-item .cri-info {
    flex: 1;
}

.cot-result-item .cri-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cot-result-item .cri-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.cot-result-item .cri-total {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-light);
}

.cot-result-totals {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cot-result-totals .crt-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.cot-result-totals .crt-row.crt-total {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cot-result-notas {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Historial */
.historial-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.historial-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeUp 0.3s ease-out backwards;
}

.historial-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.historial-card .hc-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(33, 89, 196, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}

.historial-card .hc-info {
    flex: 1;
    min-width: 0;
}

.historial-card .hc-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.historial-card .hc-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.historial-card .hc-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-light);
    white-space: nowrap;
}

.historial-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.historial-actions .ha-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.ha-btn:active {
    transform: scale(0.95);
}

.ha-btn.ha-share {
    color: var(--primary-light);
    border-color: rgba(33, 89, 196, 0.3);
}

.ha-btn.ha-share:active {
    background: rgba(33, 89, 196, 0.15);
}

.ha-btn.ha-edit {
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.ha-btn.ha-edit:active {
    background: rgba(245, 158, 11, 0.1);
}

.ha-btn.ha-delete {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.ha-btn.ha-delete:active {
    background: rgba(239, 68, 68, 0.1);
}

/* Solo pantallas altas (Xiaomi K40, etc): llenar toda la pantalla */
@media (min-height: 851px) {
    .auth-container {
        justify-content: space-evenly;
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .auth-header {
        margin-bottom: 24px;
    }
    
    .auth-logo {
        width: 76px;
        height: 76px;
        font-size: 2.4rem;
    }
    
    .auth-header h2 {
        font-size: 1.9rem;
    }
    
    .auth-header p {
        font-size: 1.05rem;
    }
    
    .auth-form {
        gap: 22px;
    }
    
    .input-group input,
    .input-group select {
        padding: 18px 14px 18px 48px;
        font-size: 1.05rem;
    }
    
    .btn-lg {
        padding: 18px;
        font-size: 1.15rem;
    }
    
    .auth-footer {
        font-size: 1rem;
        margin-top: 32px;
    }
    
    .btn-link-inline {
        font-size: 1rem;
    }
    
    /* Landing también más grande */
    .landing-hero {
        padding: 80px 28px 55px;
    }
    
    .landing-logo-icon {
        width: 95px;
        height: 95px;
        font-size: 3rem;
    }
    
    .landing-title {
        font-size: 3.2rem;
    }
    
    .landing-tagline {
        font-size: 1.15rem;
        max-width: 360px;
    }
    
    .landing-features {
        gap: 18px;
        padding: 0 24px;
        margin-bottom: 44px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.92rem;
    }
    
    .landing-cta {
        margin-bottom: 44px;
    }
    
    .landing-trust {
        gap: 40px;
    }
    
    .trust-item {
        font-size: 0.9rem;
    }
    
    .trust-item i {
        font-size: 1.4rem;
    }
}

.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
    z-index: 5;
}

.btn-back:active {
    transform: scale(0.9);
    background: var(--bg-card-hover);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: none; /* Reemplazado por imagen */
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Logo imagen para auth (login/register) */
.auth-logo-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(33, 89, 196, 0.25));
}

.auth-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-row {
    display: flex;
    gap: 12px;
}

.input-row .input-group {
    flex: 1;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
    z-index: 2;
    pointer-events: none;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 14px 15px 44px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899b4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.input-group select option {
    background: #111d33;
    color: #f0f4fc;
    padding: 10px;
}

.input-group select {
    padding-right: 40px;
    cursor: pointer;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    background: rgba(33, 89, 196, 0.06);
    box-shadow: 0 0 0 4px rgba(33, 89, 196, 0.1);
}

.input-group input:focus + .input-line,
.input-group select:focus + .input-line {
    transform: scaleX(1);
}

.input-group input:focus ~ .input-icon,
.input-group select:focus ~ .input-icon {
    color: var(--primary-light);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
    border-radius: 2px;
}

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 4px;
    transition: color 0.3s;
    z-index: 2;
}

.toggle-pass:active { color: var(--primary-light); }

/* Error msg */
.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #fca5a5;
    font-size: 0.88rem;
    animation: fadeUp 0.3s var(--ease-out);
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.btn-link-inline {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-link-inline:active { color: var(--accent); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:active::after {
    opacity: 0.1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-lg {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #1a1a1a;
}

.btn-glow {
    animation: glow 3s infinite;
}

.btn-link {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 8px;
    padding: 8px;
}

.btn-link strong { color: var(--primary-light); }

/* =============================================
   APP SHELL
   ============================================= */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Top bar */
.app-topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 100;
}

.topbar-logo {
    display: none; /* Reemplazado por imagen */
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-light);
}

.topbar-logo span {
    color: var(--text-primary);
}

/* Logo imagen para topbar */
.topbar-logo-img {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.topbar-status.trial {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.topbar-status.activo {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.topbar-status.vencido {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.topbar-status.admin {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.topbar-notification {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.topbar-notification:active {
    transform: scale(0.9);
    background: var(--bg-card-hover);
}

/* Content area */
.app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.app-section {
    display: none;
    animation: fadeIn 0.35s var(--ease-out);
}

.app-section.active {
    display: block;
}

.section-inner {
    padding: 20px 18px;
    padding-bottom: 30px;
}

/* ─── Tab Bar ─── */
.app-tabbar {
    height: var(--tabbar-height);
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.tab-item i {
    font-size: 1.2rem;
    transition: all 0.3s var(--ease-spring);
}

.tab-item span {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tab-item.active {
    color: var(--primary-light);
}

.tab-item.active i {
    transform: translateY(-2px) scale(1.15);
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
    animation: scaleIn 0.3s var(--ease-spring);
}

.tab-item:active {
    transform: scale(0.9);
}

/* =============================================
   HOME SECTION
   ============================================= */
.home-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    animation: slideInRight 0.5s var(--ease-out);
}

.welcome-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.welcome-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.welcome-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 4px;
}

.welcome-badge.trial {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
}

.welcome-badge.activo {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.welcome-badge.admin {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

/* Section labels */
.section-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

/* Action grid */
.home-actions {
    margin-bottom: 24px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s var(--ease-out);
}

.action-card:active {
    transform: scale(0.95);
    background: var(--bg-card-hover);
}

.action-card .action-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.3s var(--ease-spring);
}

.action-card:active .action-icon {
    transform: scale(1.1);
}

.action-card span {
    font-size: 0.88rem;
    font-weight: 600;
}

/* Banner */
.home-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    animation: slideInRight 0.5s 0.2s var(--ease-out) both;
}

.banner-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: rgba(245,158,11,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text strong {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

.banner-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stats-row-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    transition: all 0.3s var(--ease-out);
}

.stat-animated {
    animation: fadeUp 0.4s ease-out backwards;
}

.stat-card:active {
    transform: scale(0.96);
}

.stat-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
    opacity: 0.8;
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Top Product */
.top-product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-lg);
    animation: fadeUp 0.4s ease-out 0.25s backwards;
}

.top-product-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-product-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.top-product-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.top-product-badge {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #f59e0b;
    white-space: nowrap;
}

/* Recent Cotizaciones (Home) */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.recent-cot-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    animation: fadeUp 0.3s ease-out backwards;
}

.recent-cot-card:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.06);
}

.recent-cot-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(33, 89, 196, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.recent-cot-info {
    flex: 1;
    min-width: 0;
}

.recent-cot-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-cot-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.recent-cot-total {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    white-space: nowrap;
}

/* =============================================
   COMING SOON (Placeholders)
   ============================================= */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    animation: fadeUp 0.5s var(--ease-out);
}

.coming-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.coming-soon h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.coming-soon p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.coming-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.coming-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPulse 1.4s infinite;
}

.coming-dots span:nth-child(2) { animation-delay: 0.2s; }
.coming-dots span:nth-child(3) { animation-delay: 0.4s; }

/* =============================================
   PROFILE SECTION
   ============================================= */
.profile-header {
    text-align: center;
    padding: 20px 0 28px;
    animation: fadeUp 0.5s var(--ease-out);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    overflow: hidden;
    border: 3px solid var(--bg-dark);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar wrapper con botón de cambiar */
.profile-avatar-wrapper {
    position: relative;
    width: 90px;
    margin: 0 auto 16px;
}

.avatar-change-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    border: 2px solid var(--bg-dark);
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.avatar-change-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.avatar-change-btn:active {
    transform: scale(0.95);
}

/* Avatar uploading state */
.profile-avatar.uploading {
    opacity: 0.6;
    pointer-events: none;
}

.profile-avatar.uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    border: 3px solid transparent;
    border-top-color: var(--primary-light);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.profile-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 20px;
    margin-top: 6px;
    background: rgba(33,89,196,0.15);
    color: var(--primary-light);
}

/* Profile Menu */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    animation: slideInRight 0.4s var(--ease-out) both;
}

.profile-menu-item:nth-child(1) { animation-delay: 0.05s; }
.profile-menu-item:nth-child(2) { animation-delay: 0.1s; }
.profile-menu-item:nth-child(3) { animation-delay: 0.15s; }
.profile-menu-item:nth-child(4) { animation-delay: 0.2s; }

.profile-menu-item:active {
    transform: scale(0.97);
    background: var(--bg-card-hover);
}

.profile-menu-item i:first-child {
    width: 20px;
    text-align: center;
    color: var(--primary-light);
}

.profile-menu-item span { flex: 1; }

.profile-menu-item i:last-child {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.profile-menu-item.logout {
    border-color: rgba(239,68,68,0.2);
}

.profile-menu-item.logout i:first-child {
    color: var(--danger);
}

/* Theme Toggle Switch */
.theme-toggle-item {
    cursor: pointer;
}

.theme-toggle-item i:first-child {
    color: var(--warning) !important;
}

body.light-mode .theme-toggle-item i:first-child {
    color: var(--primary-light) !important;
}

.theme-switch {
    margin-left: auto;
    pointer-events: none;
}

.theme-switch-track {
    width: 48px;
    height: 26px;
    background: var(--bg-input);
    border-radius: 50px;
    position: relative;
    transition: background 0.3s ease;
    border: 2px solid var(--border);
    pointer-events: none;
}

.theme-switch-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Modo día activo */
body.light-mode .theme-switch-track {
    background: var(--primary);
    border-color: var(--primary);
}

body.light-mode .theme-switch-thumb {
    left: calc(100% - 23px);
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
}

/* Profile Info Card */
.profile-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    animation: fadeUp 0.5s 0.2s var(--ease-out) both;
}

.profile-info-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* =============================================
   QUIÉNES SOMOS — Profile About Card
   ============================================= */

.profile-about-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    animation: fadeUp 0.5s var(--ease-out) both;
    animation-delay: 0.3s;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.about-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.1));
}

body.light-mode .about-logo {
    filter: invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.about-icon {
    display: none; /* Reemplazado por logo */
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(33, 89, 196, 0.3);
}

.about-title h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.about-brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.about-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.about-text strong {
    color: var(--primary-light);
}

.about-closing {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.signature-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.signature-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.signature-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signature-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.signature-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.signature-contact:active {
    transform: scale(0.97);
}

.signature-contact i {
    font-size: 1.1rem;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 380px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s var(--ease-spring);
    pointer-events: auto;
    backdrop-filter: blur(12px);
}

.toast.removing {
    animation: toastOut 0.3s var(--ease-out) forwards;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--info); }
.toast.warning .toast-icon { color: var(--warning); }

.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.info { border-color: rgba(59,130,246,0.3); }
.toast.warning { border-color: rgba(245,158,11,0.3); }

.toast-message {
    font-size: 0.88rem;
    line-height: 1.4;
    flex: 1;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* =============================================
   PAGE TRANSITIONS
   ============================================= */
.page-enter {
    animation: pageSlideIn 0.45s var(--ease-out);
}

.page-exit {
    animation: pageSlideOut 0.3s var(--ease-out) forwards;
}

@keyframes pageSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pageSlideOut {
    to { opacity: 0; transform: translateX(-40px); }
}

/* Section transitions */
.section-enter {
    animation: sectionFadeIn 0.35s var(--ease-out);
}

@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }

/* =============================================
   RESPONSIVE — Tablets
   ============================================= */
@media (min-width: 768px) {
    .auth-container {
        max-width: 440px;
        margin: 0 auto;
    }
    
    .landing-hero {
        padding: 100px 40px 60px;
    }
    
    .landing-features {
        flex-direction: row;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        flex: 1;
    }
    
    .section-inner {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =============================================
   MIS PRECIOS — Precios personalizados
   ============================================= */

.mp-country-selector {
    margin-bottom: 16px;
}

.mp-country-selector select {
    font-size: 14px;
    font-weight: 500;
    min-height: 50px;
}

.mp-search-wrap {
    margin-bottom: 12px;
}

.mp-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(33,89,196,0.08), rgba(33,89,196,0.03));
    border: 1px solid rgba(33,89,196,0.15);
    border-radius: 12px;
    margin-bottom: 16px;
    animation: fadeDown 0.4s ease;
}

.mp-info-banner i {
    color: #2159c4;
    margin-top: 2px;
    flex-shrink: 0;
}

.mp-info-banner p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.mp-search-wrap {
    margin-bottom: 12px;
}

.mp-cat-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mp-cat-filter::-webkit-scrollbar { display: none; }

.mp-chip {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.mp-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(33,89,196,0.3);
}

.mp-chip i { font-size: 11px; }

.mp-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mp-card:hover {
    border-color: rgba(33,89,196,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.mp-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
}

.mp-card-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.mp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-card-title h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.mp-sku {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', monospace;
}

.mp-card-prices {
    padding: 0 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.mp-label i { font-size: 10px; }

.mp-locked .mp-label { color: var(--text-muted); }
.mp-locked .mp-label i { color: #9ca3af; }

.mp-value-fixed {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-hover);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'SF Mono', monospace;
}

.mp-editable .mp-label { color: var(--primary); }
.mp-editable .mp-label i { color: var(--primary); }

.mp-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.mp-currency {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mp-input {
    width: 100px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    transition: all 0.25s ease;
    font-family: 'SF Mono', monospace;
    -moz-appearance: textfield;
}

.mp-input::-webkit-outer-spin-button,
.mp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33,89,196,0.12);
}

.mp-input.mp-saving {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.05);
}

.mp-input.mp-success {
    border-color: #10b981;
    background: rgba(16,185,129,0.05);
    animation: successPulse 0.4s ease;
}

.mp-input.mp-error {
    border-color: #ef4444;
    background: rgba(239,68,68,0.05);
    animation: shake 0.3s ease;
}

.mp-saved {
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Badge "Personalizar" in profile menu */
.mp-badge-new {
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #2159c4, #3b82f6);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 8px;
}

/* Responsive */
@media (min-width: 500px) {
    .mp-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

/* =============================================
   PRECIOS — Selector de país + buscador
   ============================================= */

.precios-country-selector {
    margin-bottom: 12px;
}

.precios-country-selector .input-group {
    position: relative;
}

.precios-country-selector select {
    font-size: 14px;
    font-weight: 500;
    min-height: 50px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.precios-search-wrap {
    margin-bottom: 12px;
}

/* =============================================
   CHIPS DE CATEGORÍAS
   ============================================= */

.precios-cat-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.precios-cat-chips::-webkit-scrollbar {
    display: none;
}

.precios-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s var(--ease-out);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.precios-chip i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.precios-chip:hover {
    background: rgba(33, 89, 196, 0.08);
    border-color: var(--primary);
}

.precios-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(33, 89, 196, 0.35);
}

.precios-chip.active i {
    opacity: 1;
}

/* Chip de favoritos especial */
.precios-chip.chip-fav {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.03));
    border-color: rgba(239, 68, 68, 0.2);
}

.precios-chip.chip-fav i {
    color: var(--danger);
}

.precios-chip.chip-fav.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
}

.precios-chip.chip-fav.active i {
    color: white;
}

/* Badge contador en chip */
.chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 2px;
}

.precios-chip:not(.active) .chip-badge {
    background: var(--danger);
    color: white;
}

/* =============================================
   BOTÓN FAVORITO EN TARJETA
   ============================================= */

.price-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-out);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.price-fav-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.price-fav-btn.active {
    background: var(--danger);
    color: white;
}

.price-fav-btn.active i {
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Tarjeta favorita - borde sutil */
.price-card.is-fav {
    border-color: rgba(239, 68, 68, 0.3);
}

/* Ocultar botón fav en estado zoom */
.price-card.zoomed .price-fav-btn {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.precios-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 0 10px;
}

.precios-count i {
    font-size: 11px;
    color: var(--primary);
}

/* =============================================
   ADMIN — PAÍSES
   ============================================= */

.pais-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 80px;
    transition: all 0.3s ease;
}

.stat-mini i {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-mini span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-mini small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-mini.active i { color: var(--success); }
.stat-mini.inactive i { color: var(--text-muted); }

/* País Card */
.pais-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    animation: fadeUp 0.3s ease-out backwards;
    transition: all 0.3s ease;
}

.pais-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pais-card.inactive {
    opacity: 0.5;
    border-color: var(--border);
}

.pais-card.inactive:hover {
    opacity: 0.7;
}

.pais-card.inactive .pais-flag {
    filter: grayscale(100%);
}

.pais-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pais-flag {
    font-size: 2rem;
    line-height: 1;
    transition: filter 0.3s ease;
}

.pais-details h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.pais-details p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pais-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 55px;
}

/* Switch Toggle */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    transition: 0.3s ease;
    border-radius: 26px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .switch-slider {
    background: var(--primary);
}

.switch-toggle input:checked + .switch-slider:before {
    transform: translateX(22px);
}

.switch-toggle input:focus + .switch-slider {
    box-shadow: 0 0 0 3px rgba(33, 89, 196, 0.2);
}

/* Animación hover en toggle */
.switch-toggle:hover .switch-slider {
    background: var(--text-muted);
}

.switch-toggle input:checked:hover + .switch-slider {
    background: var(--primary-dark, #1a4db3);
}

/* =============================================
   CRM: Actividad del distribuidor
   ============================================= */

.home-actividad {
    margin-bottom: 1.5rem;
}

.actividad-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.actividad-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    animation: fadeUp 0.5s ease-out both;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.actividad-card:active {
    transform: scale(0.97);
}

.actividad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.actividad-hoy::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.actividad-semana::before { background: linear-gradient(90deg, #10b981, #34d399); }
.actividad-mes::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.actividad-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.actividad-hoy .actividad-icon { background: rgba(59,130,246,0.12); color: #3b82f6; }
.actividad-semana .actividad-icon { background: rgba(16,185,129,0.12); color: #10b981; }
.actividad-mes .actividad-icon { background: rgba(245,158,11,0.12); color: #f59e0b; }

[data-theme="dark"] .actividad-hoy .actividad-icon { background: rgba(59,130,246,0.2); }
[data-theme="dark"] .actividad-semana .actividad-icon { background: rgba(16,185,129,0.2); }
[data-theme="dark"] .actividad-mes .actividad-icon { background: rgba(245,158,11,0.2); }

.actividad-data {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.actividad-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    font-family: 'Space Grotesk', monospace;
}

.actividad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actividad-monto {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
    width: 100%;
}

@media (max-width: 380px) {
    .actividad-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .actividad-card {
        padding: 0.75rem 0.5rem;
    }
    .actividad-number {
        font-size: 1.3rem;
    }
}

/* =============================================
   Compartir Ficha de Producto
   ============================================= */

.detail-share-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:active {
    transform: scale(0.96);
}

.share-btn-image {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.share-btn-image:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.share-btn-text {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.share-btn-text:hover {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.share-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 400px) {
    .detail-share-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =============================================
   Tarjeta del Distribuidor — Componente reutilizable
   ============================================= */

.dist-card {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    border: 1px solid rgba(33, 89, 196, 0.12);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-top: 1rem;
}

[data-theme="dark"] .dist-card {
    background: linear-gradient(135deg, #1e1e3a, #252548);
    border-color: rgba(74, 144, 217, 0.2);
}

.dist-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dist-card-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.dist-card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 89, 196, 0.1);
    color: var(--primary);
    font-size: 1.2rem;
}

.dist-card-info {
    flex: 1;
    min-width: 0;
}

.dist-card-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.dist-card-role {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dist-card-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(33, 89, 196, 0.1);
}

[data-theme="dark"] .dist-card-contact {
    border-top-color: rgba(74, 144, 217, 0.15);
}

.dist-card-row {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dist-card-row i {
    width: 14px;
    text-align: center;
    color: var(--primary);
    font-size: 0.75rem;
}

.dist-card-row .fa-instagram { color: #E1306C; }
.dist-card-row .fa-tiktok { color: #000000; }
[data-theme="dark"] .dist-card-row .fa-tiktok { color: #e8e8e8; }
.dist-card-row .fa-youtube { color: #FF0000; }

/* Versión compacta */
.dist-card-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-top: 0.75rem;
}

.dist-card-photo-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.dist-card-info-compact {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dist-card-name-sm {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.dist-card-role-sm {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dist-card-social-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
}

.dist-card-social-compact i {
    width: 12px;
    text-align: center;
    margin-right: 3px;
    font-size: 0.68rem;
}

/* Versión para flyer (fondo blanco forzado) */
.dist-card-flyer {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff) !important;
    border-color: rgba(33, 89, 196, 0.12) !important;
}

.dist-card-flyer .dist-card-name {
    color: #1a1a2e !important;
}

.dist-card-flyer .dist-card-row {
    color: #6c757d !important;
}

/* =============================================
   Tarjeta del Distribuidor — Componente reutilizable
   ============================================= */

.dist-card {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    border: 1px solid rgba(33, 89, 196, 0.12);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-top: 1rem;
}

[data-theme="dark"] .dist-card {
    background: linear-gradient(135deg, #1e1e3a, #252548);
    border-color: rgba(74, 144, 217, 0.2);
}

.dist-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dist-card-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.dist-card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 89, 196, 0.1);
    color: var(--primary);
    font-size: 1.2rem;
}

.dist-card-info {
    flex: 1;
    min-width: 0;
}

.dist-card-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.dist-card-role {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dist-card-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(33, 89, 196, 0.1);
}

[data-theme="dark"] .dist-card-contact {
    border-top-color: rgba(74, 144, 217, 0.15);
}

.dist-card-row {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dist-card-row i {
    width: 14px;
    text-align: center;
    color: var(--primary);
    font-size: 0.75rem;
}

.dist-card-row .fa-instagram { color: #E1306C; }
.dist-card-row .fa-tiktok { color: #000000; }
[data-theme="dark"] .dist-card-row .fa-tiktok { color: #e8e8e8; }
.dist-card-row .fa-youtube { color: #FF0000; }

/* Versión compacta */
.dist-card-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-top: 0.75rem;
}

.dist-card-photo-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.dist-card-info-compact {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dist-card-name-sm {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.dist-card-role-sm {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dist-card-social-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
}

.dist-card-social-compact i {
    width: 12px;
    text-align: center;
    margin-right: 3px;
    font-size: 0.68rem;
}

/* =============================================
   Compartir Ficha de Producto
   ============================================= */

.detail-share-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:active {
    transform: scale(0.96);
}

.share-btn-image {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.share-btn-image:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.share-btn-text {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.share-btn-text:hover {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.share-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 400px) {
    .detail-share-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =============================================
   Compartir Cotización — 3 botones
   ============================================= */

.cot-share-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.cot-share-row .share-btn {
    flex: 1;
    padding: 0.65rem 0.5rem;
    font-size: 0.78rem;
    gap: 0.35rem;
}

.share-btn-pdf {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.share-btn-pdf:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

@media (max-width: 380px) {
    .cot-share-row {
        flex-direction: column;
        gap: 0.4rem;
    }
}