/* ==========================================================
   Blog Post Styles — Custom design for article pages
   Used by: blog/enviar-dolares-mexico-menor-costo.html
   ========================================================== */

:root {
    --navy:   #191C46;
    --coral:  #D05C46;
    --white:  #FFFFFF;
    --ink:    #1a1a2e;
    --mist:   #f4f5f9;
    --border: #e2e4ef;
    --coral-soft: #fdf1ee;
    --navy-soft:  #ecedf5;
}

/* ── NAV ── */
.blog-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(25,28,70,0.08);
    padding: 0 5%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.nav-logo img {
    height: 40px;
    width: auto;
}
.nav-links {
    display: none;
    list-style: none;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
}
.nav-links a {
    text-decoration: none;
    color: #4A4A62;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }
.nav-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: opacity 0.2s;
}
.nav-btn:hover { opacity: 0.85; }

/* ── PROGRESS BAR ── */
#progress-bar {
    position: fixed;
    top: 56px;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--coral);
    z-index: 99;
    transition: width 0.1s linear;
}

/* ── HERO ── */
.hero {
    background: var(--navy);
    padding: 72px 2rem 64px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(208, 92, 70, 0.08);
    pointer-events: none;
}
.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.hero-tag {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    background: rgba(208,92,70,0.12);
    border: 1px solid rgba(208,92,70,0.3);
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 24px;
}
.hero h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero h1 em {
    font-style: normal;
    color: var(--coral);
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    line-height: 1.65;
}
.hero-meta {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.02em;
    flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ── LAYOUT ── */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── ARTICLE BODY ── */
article {
    padding: 56px 0 80px;
}
article p {
    margin-bottom: 1.4rem;
    color: #2a2c4a;
}
article h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin: 52px 0 16px;
    line-height: 1.25;
}
article h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--navy);
    margin: 32px 0 10px;
}
article h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--coral);
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 2px;
}

/* ── LEAD PARAGRAPH ── */
.lead {
    font-size: 1.1rem;
    color: #3a3d60;
    line-height: 1.8;
    margin-bottom: 1.6rem;
}

/* ── DIVIDER ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* ── STAT CALLOUT ── */
.stat-callout {
    background: var(--navy);
    border-radius: 8px;
    padding: 32px 36px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 28px;
}
.stat-number {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
    white-space: nowrap;
}
.stat-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}
.stat-text strong {
    color: var(--white);
    font-weight: 600;
}

/* ── TABLE ── */
.table-wrap {
    margin: 36px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
thead {
    background: var(--navy);
}
thead th {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 18px;
    text-align: left;
}
tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--mist); }
tbody tr.highlight { background: var(--coral-soft); }
tbody tr.highlight td:first-child { font-weight: 600; color: var(--navy); }
tbody td { padding: 13px 18px; color: #2a2c4a; }
.tag-mejor {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral);
    border: 1px solid var(--coral);
    border-radius: 3px;
    padding: 2px 7px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── NOTE BOX ── */
.note {
    background: var(--navy-soft);
    border-left: 3px solid var(--navy);
    border-radius: 0 6px 6px 0;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 0.92rem;
    color: var(--navy);
}
.note strong { font-family: 'Open Sans', sans-serif; }

/* ── STEPS ── */
.steps { margin: 24px 0; counter-reset: steps; }
.step { display: flex; gap: 20px; margin-bottom: 20px; align-items: flex-start; }
.step-num {
    counter-increment: steps;
    min-width: 36px; height: 36px;
    background: var(--navy); color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700; font-size: 0.85rem;
    flex-shrink: 0; margin-top: 2px;
}
.step-content p { margin-bottom: 0; }
.step-content strong {
    font-family: 'Open Sans', sans-serif;
    display: block; color: var(--navy); margin-bottom: 4px;
}

/* ── FORMULA BOX ── */
.formula {
    background: var(--mist);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px 24px;
    margin: 24px 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600; font-size: 0.95rem;
    color: var(--navy); text-align: center;
}

/* ── CTA BLOCK ── */
.cta-block {
    background: var(--coral);
    border-radius: 10px;
    padding: 44px 40px;
    margin: 48px 0;
    text-align: center;
}
.cta-block h2 {
    font-family: 'Open Sans', sans-serif;
    color: var(--white); font-size: 1.4rem;
    margin: 0 0 12px; letter-spacing: -0.02em;
}
.cta-block p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 28px; }
.cta-btn {
    display: inline-block;
    background: var(--white); color: var(--coral);
    font-family: 'Open Sans', sans-serif;
    font-weight: 700; font-size: 0.9rem;
    letter-spacing: 0.03em; text-decoration: none;
    padding: 14px 32px; border-radius: 5px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ── CONCLUSION ── */
.conclusion {
    background: var(--mist); border-radius: 8px;
    padding: 36px 40px; margin: 48px 0 0;
}
.conclusion p { font-size: 1.05rem; line-height: 1.8; color: #2a2c4a; margin-bottom: 1rem; }
.conclusion p:last-child { margin-bottom: 0; }
.conclusion strong { color: var(--navy); }

/* ── BLOG FOOTER ── */
.blog-footer {
    background: var(--navy);
    padding: 40px 2rem;
    text-align: center;
}
.footer-logo { margin-bottom: 12px; }
.footer-logo img { height: 28px; opacity: 0.92; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; }

/* ── COOKIE BANNER (blog) ── */
.tz-cookie-banner { position: fixed; bottom: -150px; left: 0; right: 0; background: #191C46; color: #fff; padding: 16px 5%; display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 1000; transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
.tz-cookie-banner.show { bottom: 0; }
.tz-cookie-banner p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.7); text-align: center; max-width: 800px; margin: 0; }
.tz-cookie-banner a { color: #FF6B5A; text-decoration: underline; font-weight: 600; }
.tz-btn-cookies { background: #FF6B5A; color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity 0.2s; white-space: nowrap; }
.tz-btn-cookies:hover { opacity: 0.9; }
@media(min-width:768px) { .tz-cookie-banner { flex-direction: row; justify-content: center; gap: 24px; } .tz-cookie-banner p { text-align: left; } }

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 768px) {
    .nav-btn { padding: 8px 16px; font-size: 13px; }
    .hero h1 { font-size: 1.6rem; }
    .hero-sub { font-size: 0.95rem; }
    article h2 { font-size: 1.25rem; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 480px; }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 600px) {
    .blog-nav { padding: 0 4%; height: 56px; }
    .nav-btn { padding: 7px 14px; font-size: 12px; }
    .nav-logo img { height: 32px; }
    .hero { padding: 48px 1.5rem 44px; }
    .hero h1 { font-size: 1.4rem; }
    .container { padding: 0 1.5rem; }
    .stat-callout { flex-direction: column; gap: 12px; padding: 24px; }
    .stat-number { font-size: 2rem; }
    .cta-block { padding: 32px 24px; }
    .conclusion { padding: 28px 24px; }
    thead th, tbody td { padding: 10px 12px; }
    .step { gap: 14px; }
    .step-num { min-width: 30px; height: 30px; font-size: 0.75rem; }
    .blog-footer { padding: 32px 1.5rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeUp 0.6s ease both; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.35s; }
