/* ==========================================
   NEGOCIO LISTO — Blog Stylesheet
   Brand: Terracotta / Deep Indigo / Soft Green / Sand
   Shared by all /blog/* pages (~4KB vs 44KB main styles.css)
   ========================================== */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url(/fonts/montserrat-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url(/fonts/montserrat-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --color-primary: #E07A5F;
    --color-primary-dark: #B85A3F;
    --color-primary-light: #E8927D;
    --color-primary-text: #B5553B;
    --color-secondary: #3D405B;
    --color-accent: #81B29A;
    --color-accent-dark: #6A9A82;
    --color-accent-text: #2E6B4F;
    --color-background: #F4F1DE;
    --color-white: #FFFFFF;
    --color-light-gray: #F8F6F0;
    --color-medium-gray: #E5E2D6;
    --color-dark-gray: #595959;
    --color-text: #3D405B;
    --color-whatsapp: #0E806F;
    --color-whatsapp-dark: #075E54;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 2px 6px rgba(61, 64, 91, 0.1);
    --shadow-md: 0 4px 12px rgba(61, 64, 91, 0.1);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary-text); text-decoration: none; transition: color 150ms ease; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
svg.icon-sm { width: 18px; height: 18px; }

/* Container */
.container { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header (matches main site) ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-medium-gray);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.logo { text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary-text);
    letter-spacing: 0.05em;
}
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}
.nav-desktop a {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.nav-desktop a:hover { color: var(--color-primary-text); text-decoration: none; }
.nav-desktop a:hover::after { width: 100%; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-phone {
    display: none;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}
.header-phone:hover { color: var(--color-primary-text); text-decoration: none; }
.header-phone .icon-sm { width: 18px; height: 18px; }
.phone-text { display: none; }
.btn-whatsapp-header {
    display: none;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
}
.btn-whatsapp-header:hover { background-color: var(--color-whatsapp-dark); color: var(--color-white); text-decoration: none; }
.wa-text { display: none; }
.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    color: var(--color-secondary);
}
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--color-white);
    border-top: 1px solid var(--color-medium-gray);
    padding: 1rem 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    padding: 1rem 0;
    color: var(--color-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--color-medium-gray);
}
.nav-mobile a:hover { text-decoration: none; color: var(--color-primary-text); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-contact {
    display: flex;
    gap: 1rem;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--color-medium-gray);
}
.nav-contact-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    flex: 1;
    justify-content: center;
    color: var(--color-primary-text);
    background: var(--color-background);
}
.nav-contact-link:hover { text-decoration: none; }
.nav-contact-link .icon-sm { width: 16px; height: 16px; }
.nav-contact-whatsapp {
    background: var(--color-whatsapp);
    color: var(--color-white);
}
.nav-contact-whatsapp:hover { color: var(--color-white); background: var(--color-whatsapp-dark); }

/* ---- Breadcrumb ---- */
.breadcrumb {
    font-size: 0.8125rem;
    color: var(--color-dark-gray);
    padding: calc(64px + 1rem) 0 0;
}
.breadcrumb a { color: var(--color-dark-gray); }
.breadcrumb a:hover { color: var(--color-primary-text); }
.breadcrumb span { margin: 0 0.375rem; }

/* ---- Article ---- */
.article { padding: 1.5rem 0 3rem; }
.post-meta {
    font-size: 0.8125rem;
    color: var(--color-dark-gray);
    margin-bottom: 0.75rem;
}
.article h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}
.article-hero {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.article h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--color-secondary);
    margin: 2.5rem 0 0.75rem;
    padding-top: 0.5rem;
}
.article h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-secondary);
    margin: 1.75rem 0 0.5rem;
}
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.5rem; }
.article li { margin-bottom: 0.375rem; }
.article strong { font-weight: 600; color: var(--color-secondary); }

/* ---- TL;DR Summary ---- */
.tldr {
    background: var(--color-white);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}
.tldr strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary-text);
    margin-bottom: 0.375rem;
}
.tldr p { margin: 0; }

/* ---- Table of Contents ---- */
.toc {
    background: var(--color-white);
    border: 1px solid var(--color-medium-gray);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.toc-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
    color: var(--color-secondary);
}
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-bottom: 0.25rem; font-size: 0.9rem; }
.toc a { color: var(--color-primary-text); }

/* ---- Tables ---- */
.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.9rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article th {
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}
.article td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--color-medium-gray);
}
.article tr:last-child td { border-bottom: none; }
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
.table-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, transparent, rgba(244,241,222,0.8));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
}
.table-wrap::after { display: none; }
.table-subtext {
    display: block;
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.2rem;
    line-height: 1.3;
}
.table-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.table-note a { color: var(--color-primary-text); }
@media (max-width: 600px) {
    .table-wrap { -webkit-overflow-scrolling: touch; }
    .table-wrap table { min-width: 480px; }
    .article .table-wrap th,
    .article .table-wrap td { font-size: 0.8rem; padding: 0.5rem 0.625rem; }
}

/* ---- CTA Box ---- */
.cta-box {
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}
.cta-box p {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}
.cta-box .btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-whatsapp);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: background 150ms ease;
}
.cta-box .btn-wa:hover { background: var(--color-whatsapp-dark); text-decoration: none; }
.cta-box .btn-wa svg { flex-shrink: 0; }
.cta-box .cta-secondary {
    display: block;
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: var(--color-dark-gray);
}
.cta-box .cta-secondary a { color: var(--color-primary-text); font-weight: 500; }

/* ---- FAQ Section ---- */
.faq-section { margin: 2.5rem 0 1.5rem; }
.faq-section h2 { margin-top: 0; }
.faq-item { margin-bottom: 1rem; }
.faq-item dt {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}
.faq-item dd { margin: 0 0 0 0; }

/* ---- Disclaimer ---- */
.legal-disclaimer {
    background: var(--color-light-gray);
    border-left: 3px solid var(--color-medium-gray);
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: var(--color-dark-gray);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 2rem 0;
}

/* ---- Related Posts ---- */
.related-posts {
    border-top: 1px solid var(--color-medium-gray);
    padding-top: 2rem;
    margin-top: 2rem;
    padding-bottom: 3rem;
}
.related-posts h2 { margin-top: 0; font-size: 1.25rem; }
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.related-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 150ms ease, transform 150ms ease;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.related-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-secondary);
    margin: 0 0 0.375rem;
}
.related-card p { font-size: 0.85rem; color: var(--color-dark-gray); margin: 0; }

/* ---- Blog Index Cards ---- */
.blog-index-header {
    text-align: center;
    padding: calc(64px + 2rem) 0 1.5rem;
}
.blog-index-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--color-secondary);
}
.blog-index-header p {
    color: var(--color-dark-gray);
    margin-top: 0.5rem;
    font-size: 1rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 4rem;
}
.blog-card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 150ms ease, transform 150ms ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.blog-card h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-secondary);
    margin: 0 0 0.5rem;
}
.blog-card p { font-size: 0.9rem; color: var(--color-dark-gray); margin: 0 0 0.75rem; }
.blog-card .card-meta { font-size: 0.8rem; color: var(--color-dark-gray); }
.blog-card .read-more { color: var(--color-primary-text); font-weight: 600; font-size: 0.875rem; }

/* ---- Footer ---- */
.blog-footer {
    background: var(--color-secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.85rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.blog-footer .footer-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 0.375rem;
}
.blog-footer h4 {
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.blog-footer ul { list-style: none; }
.blog-footer li { margin-bottom: 0.25rem; }
.blog-footer a { color: rgba(255, 255, 255, 0.75); }
.blog-footer a:hover { color: var(--color-white); text-decoration: none; }
.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1.5rem;
    padding-top: 1rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(18, 140, 126, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(18, 140, 126, 0.5);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .article h1 { font-size: 2rem; }
    .article-hero { max-height: 360px; }
}

@media (min-width: 768px) {
    .article h1 { font-size: 2.25rem; }
    .article h2 { font-size: 1.5rem; }
    .header-phone { display: flex; }
    .btn-whatsapp-header { display: flex; }
    .phone-text { display: inline; }
    .wa-text { display: inline; }
    .article-hero { max-height: none; }
}

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
    .hamburger { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { transition: none; }
    .related-card, .blog-card { transition: none; }
}

@media print {
    .header, .whatsapp-float, .cta-box { display: none; }
    body { color: #000; background: #fff; }
}
