/* Estilos páginas públicas marketing (blog, glosario, rubros, artículos) */
:root {
    --accent: #7BAE2E;
    --accent-dark: #6B9B1E;
    --accent-light: #a8cf45;
    --accent-glow: rgba(123, 174, 46, 0.12);
    --accent-border: rgba(123, 174, 46, 0.28);
    --bg: #f4f6f8;
    --white: #fff;
    --text: #1a1a2e;
    --text-secondary: #4b5563;
    --muted: #9ca3af;
    --border: #e5e7eb;
    --radius: 16px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 28px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-border: rgba(0, 0, 0, 0.06);
    --card-hover-shadow: rgba(0, 0, 0, 0.08);
    --section-alt: #eef1f4;
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

img[loading="lazy"] { content-visibility: auto; }

/* ── Nav ── */
.mkt-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nav-border);
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.mkt-nav .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.mkt-nav .brand img {
    height: 32px;
    width: auto;
    display: block;
}

.mkt-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: center;
}

.mkt-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.mkt-nav-links a:hover { color: var(--accent); }

.mkt-nav-cta {
    padding: 7px 16px !important;
    background: var(--accent) !important;
    color: #1a1a2e !important;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.mkt-nav-cta:hover {
    background: var(--accent-light) !important;
    color: #1a1a2e !important;
    transform: translateY(-1px);
}

/* ── Layout ── */
.mkt-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 72px;
}

.mkt-wrap h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.mkt-wrap h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 28px 0 10px;
    letter-spacing: -0.02em;
}

.mkt-excerpt {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 640px;
}

/* ── Breadcrumbs ── */
.mkt-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.mkt-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.mkt-breadcrumbs a:hover { color: var(--accent-dark); }
.mkt-breadcrumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }

/* ── Page hero (listados) ── */
.mkt-page-hero {
    margin-bottom: 36px;
    padding-bottom: 8px;
}

.mkt-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--accent-glow);
    color: var(--accent-dark);
    border: 1px solid var(--accent-border);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mkt-page-hero h1 {
    margin-bottom: 10px;
}

.mkt-page-hero .mkt-excerpt {
    margin-bottom: 0;
}

/* ── Card grid ── */
.mkt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.mkt-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.mkt-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

.mkt-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.mkt-card:hover::after { transform: scaleX(1); }

.mkt-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.mkt-card-media {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--section-alt);
}

.mkt-card-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 55%, rgba(123, 174, 46, 0.35) 100%);
}

.mkt-card-media--placeholder i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.mkt-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.mkt-card-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mkt-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.mkt-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mkt-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-top: 4px;
}

.mkt-card-more i {
    font-size: 11px;
    transition: transform 0.2s;
}

.mkt-card:hover .mkt-card-more i { transform: translateX(3px); }

/* ── Empty state ── */
.mkt-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--white);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
}

.mkt-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* ── List CTA banner ── */
.mkt-list-cta {
    margin-top: 48px;
}

.mkt-list-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow);
}

.mkt-list-cta-inner h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
    letter-spacing: -0.02em;
}

.mkt-list-cta-inner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 420px;
}

/* ── Article (post individual) ── */
.mkt-article-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.mkt-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.mkt-article-meta time,
.mkt-read-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mkt-article-lead {
    font-size: 1.15rem;
    margin-bottom: 0 !important;
}

.mkt-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}

.mkt-content > * + * { margin-top: 1.1em; }

.mkt-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 2em 0 0.6em;
    letter-spacing: -0.02em;
}

.mkt-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.6em 0 0.5em;
}

.mkt-content p { color: var(--text-secondary); }

.mkt-content ul,
.mkt-content ol {
    padding-left: 1.4em;
    color: var(--text-secondary);
}

.mkt-content li + li { margin-top: 0.4em; }

.mkt-content a {
    color: var(--accent-dark);
    font-weight: 500;
}

.mkt-content blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: var(--accent-glow);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.mkt-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mkt-content code {
    font-size: 0.9em;
    background: var(--section-alt);
    padding: 2px 7px;
    border-radius: 6px;
}

.mkt-content pre {
    background: #1a1a2e;
    color: #e8e8f0;
    padding: 18px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

.mkt-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ── FAQ ── */
.mkt-faq { margin-top: 40px; }

.mkt-faq details {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 10px;
    background: var(--white);
    overflow: hidden;
}

.mkt-faq details[open] { border-color: var(--accent); }

.mkt-faq summary {
    padding: 16px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mkt-faq summary::-webkit-details-marker { display: none; }

.mkt-faq summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
}

.mkt-faq details[open] summary::after { content: '−'; }

.mkt-faq details p {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

/* ── Geo block ── */
.mkt-geo {
    margin-top: 40px;
    padding: 24px 28px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
}

.mkt-geo h2 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.mkt-geo p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* ── CTA ── */
.mkt-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--accent);
    color: #1a1a2e !important;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.mkt-cta:hover {
    background: var(--accent-light);
    color: #1a1a2e !important;
    transform: translateY(-1px);
}

.mkt-cta-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding: 24px 28px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mkt-cta-block-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mkt-cta-block-text strong {
    font-size: 1rem;
    color: var(--text);
}

.mkt-cta-block-text span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ── Footer ── */
.mkt-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 0;
    background: var(--white);
}

.mkt-hub {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 20px;
    padding: 0;
    background: none;
    border: none;
}

.mkt-hub a {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s;
}

.mkt-hub a:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.footer-trademark {
    max-width: 720px;
    margin: 14px auto 0;
    font-size: 11px;
    line-height: 1.55;
    color: var(--muted);
    opacity: 0.85;
}

/* ── Legacy list (fallback) ── */
.mkt-list { list-style: none; }
.mkt-list li { margin: 10px 0; }
.mkt-list a { font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .mkt-wrap { padding: 28px 16px 56px; }

    .mkt-nav { padding: 0 16px; }

    .mkt-nav-links {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 12px;
        gap: 12px 16px;
    }

    .mkt-card-grid {
        grid-template-columns: 1fr;
    }

    .mkt-list-cta-inner,
    .mkt-cta-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .mkt-list-cta-inner .mkt-cta,
    .mkt-cta-block .mkt-cta {
        width: 100%;
        justify-content: center;
    }
}
