/* ============================================
   ecommercemayorista.com — Design System
   Dark Premium B2B Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@700;800;900&display=swap');

:root {
    --bg: #07070d;
    --bg-card: #0f0f1a;
    --bg-elevated: #16162a;
    --bg-surface: #1c1c35;
    --primary: #6366f1;
    --primary-soft: rgba(99, 102, 241, 0.12);
    --primary-glow: rgba(99, 102, 241, 0.25);
    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f43f5e;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: #1e293b;
    --border-light: #334155;
    --glass: rgba(15, 15, 26, 0.85);
    --glass-border: rgba(99, 102, 241, 0.08);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 999px;
    --max-width: 1200px;
    --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ── Header ─────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex; align-items: center;
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.site-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: var(--text);
    font-family: var(--font-display); font-weight: 900; font-size: 1.2rem;
}

.logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem; color: white;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
    color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: color 0.25s;
}
.site-nav a:hover { color: var(--text); }

.nav-cta {
    background: var(--primary) !important; color: white !important;
    padding: 0.6rem 1.2rem; border-radius: var(--radius-sm);
    font-weight: 700 !important; font-size: 0.85rem !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); }

.header-spacer { height: var(--header-height); }

/* ── Mobile Menu ─────────────────────────── */
.mobile-toggle {
    display: none; background: none; border: none;
    color: var(--text); cursor: pointer; padding: 0.5rem;
}

/* ── Hero ────────────────────────────────── */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block; padding: 0.5rem 1.25rem;
    background: var(--primary-soft); color: var(--primary);
    border-radius: var(--radius-full); font-weight: 700;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 2rem; border: 1px solid rgba(99, 102, 241, 0.15);
}

.hero h1 { margin-bottom: 1.5rem; position: relative; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
    font-size: 1.2rem; color: var(--text-muted);
    max-width: 640px; margin: 0 auto 3rem;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.75rem; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white; box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); color: white; }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Cards Grid ──────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.35s ease;
    position: relative; overflow: hidden;
}
.card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.card-accent { border-top: 3px solid; }

.card-icon {
    width: 48px; height: 48px;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); margin-bottom: 1.25rem;
}

.card h3 { margin-bottom: 0.75rem; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-meta {
    display: flex; align-items: center; gap: 1rem;
    color: var(--text-dim); font-size: 0.82rem; margin-top: 1.25rem;
}
.card-meta span { display: flex; align-items: center; gap: 0.3rem; }

.card-tag {
    display: inline-block; padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full); font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-link {
    text-decoration: none; color: inherit;
    display: block;
}

/* Featured card */
.card-featured {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    align-items: center; padding: 2.5rem;
}
.card-featured img {
    border-radius: var(--radius-sm); width: 100%; height: 280px;
    object-fit: cover;
}

/* ── Article Template ────────────────────── */
.article-header { padding: 100px 0 40px; text-align: center; }
.article-header .card-tag { font-size: 0.85rem; }

.article-meta {
    display: flex; gap: 1.5rem; justify-content: center;
    color: var(--text-dim); font-size: 0.88rem; margin-top: 1.5rem;
}

.article-body {
    max-width: 780px; margin: 0 auto;
    font-size: 1.1rem; line-height: 1.85; color: var(--text-muted);
}
.article-body h2 {
    color: var(--text); margin: 3rem 0 1.25rem;
    padding-top: 1rem; border-top: 1px solid var(--border);
}
.article-body h3 { color: var(--text); margin: 2rem 0 1rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--accent); border-bottom: 1px solid rgba(34,211,238,0.3); }
.article-body a:hover { border-color: var(--accent); }

.article-lead {
    font-size: 1.3rem; color: var(--text); font-weight: 500;
    margin-bottom: 2.5rem; line-height: 1.6;
}

/* Callout / highlight box */
.callout {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.75rem 2rem; margin: 2rem 0;
}
.callout h4 { color: var(--text); margin-bottom: 0.75rem; font-family: var(--font-display); }
.callout p { margin-bottom: 0; }

/* Blockquote */
.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem; margin: 2.5rem 0;
    font-size: 1.25rem; font-style: italic; color: var(--text);
    background: var(--bg-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Check list */
.check-list { list-style: none; margin-left: 0 !important; }
.check-list li {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 0.5rem 0;
}
.check-list li::before {
    content: '✓'; color: var(--success); font-weight: 700;
    flex-shrink: 0; margin-top: 2px;
}

/* Data table */
.table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius-sm); }
.data-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.92rem;
}
.data-table th {
    background: var(--bg-elevated); color: var(--text);
    padding: 0.85rem 1rem; text-align: left; font-weight: 700;
    border-bottom: 2px solid var(--primary);
    white-space: nowrap;
}
.data-table td {
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.data-table tr:hover td { background: var(--bg-card); }
.data-table .yes { color: var(--success); font-weight: 700; }
.data-table .no { color: var(--danger); font-weight: 700; }
.data-table .partial { color: var(--warning); font-weight: 700; }

/* FAQ Accordion */
.faq-section { margin: 3rem 0; }
.faq-section details {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 0.75rem; overflow: hidden;
}
.faq-section summary {
    padding: 1.1rem 1.5rem; font-weight: 700; cursor: pointer;
    color: var(--text); background: var(--bg-card);
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); }
.faq-section details[open] summary::after { content: '−'; }
.faq-section details[open] summary { border-bottom: 1px solid var(--border); }
.faq-section .faq-answer { padding: 1.25rem 1.5rem; color: var(--text-muted); }

/* ── Author Bio ──────────────────────────── */
.author-bio {
    display: flex; gap: 1.5rem; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
    margin: 4rem 0;
}
.author-img {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--primary);
    flex-shrink: 0;
}
.author-bio h4 { margin-bottom: 0.3rem; }
.author-bio p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Related Articles ────────────────────── */
.related-section { padding: 4rem 0; border-top: 1px solid var(--border); }
.related-section h2 { margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────── */
.site-footer {
    background: var(--bg-card); border-top: 1px solid var(--border);
    padding: 60px 0 30px; margin-top: 80px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-col h4 { color: var(--text); margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col p, .footer-col a { color: var(--text-dim); font-size: 0.9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center; color: var(--text-dim); margin-top: 3rem;
    padding-top: 1.5rem; border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

/* ── Lead Capture ────────────────────────── */
.lead-capture {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 3rem;
    text-align: center; margin: 4rem 0;
}
.lead-capture h3 { margin-bottom: 0.75rem; }
.lead-capture p { color: var(--text-muted); margin-bottom: 1.5rem; }
.lead-form {
    display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto;
}
.lead-form input {
    flex: 1; padding: 0.8rem 1rem;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: 0.95rem; font-family: var(--font-body);
}
.lead-form input::placeholder { color: var(--text-dim); }
.lead-form input:focus { outline: none; border-color: var(--primary); }
.lead-form button {
    padding: 0.8rem 1.5rem; background: var(--primary);
    color: white; border: none; border-radius: var(--radius-sm);
    font-weight: 700; cursor: pointer; font-size: 0.9rem;
    transition: all 0.2s;
}
.lead-form button:hover { background: #4f46e5; }

/* ── Reading Progress ────────────────────── */
.reading-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 2000; transition: width 0.1s;
}

/* ── Section Titles ──────────────────────── */
.section-title {
    margin-bottom: 3rem;
}
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p { color: var(--text-muted); max-width: 600px; }

/* ── Categories Grid ─────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0; }
.cat-pill {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.25rem; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text); font-weight: 600;
    font-size: 0.9rem; transition: all 0.25s;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.cat-icon { font-size: 1.2rem; }

/* ── Animations ──────────────────────────── */
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .card-featured { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero { padding: 80px 0 60px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .lead-form { flex-direction: column; }
    .cat-grid { grid-template-columns: 1fr; }
    .article-body { font-size: 1.05rem; }
    .cta-group { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .author-bio { flex-direction: column; text-align: center; }

    /* Mobile nav open state */
    .site-nav.open {
        display: flex; flex-direction: column;
        position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
        background: var(--bg); padding: 2rem;
        gap: 1.5rem; z-index: 999;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .hero-badge { font-size: 0.72rem; }
}
