﻿/* ================================================
           VARIABLES
           ================================================ */
:root {
    /*--navy: #1e2660;*/
    --navy-light: #2d3561;
    --orange: #ff9800;
    --orange-soft: #fff3e0;
    --orange-dark: #e65100;
    --teal: #20c5cb;
    --teal-soft: #e0f7f8;
    --white: #ffffff;
    --bg-page: #f5f6fb;
    --bg-card: #ffffff;
    --bg-soft: #f8f9ff;
    --text-primary: #1e2660;
    --text-body: #3d4466;
    --text-muted: #9099b8;
    --border: #e8eaf0;
    --border-dark: #d0d3e8;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 2px 12px rgba(30, 38, 96, 0.07);
    --shadow-hover: 0 8px 32px rgba(30, 38, 96, 0.13);
    --content-w: 680px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================
           BREADCRUMB
           ================================================ */
.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    /*padding: 18px 24px 0;*/
    padding-top: 7rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

    .breadcrumb a {
        color: var(--text-muted);
        transition: color .15s ease;
    }

        .breadcrumb a:hover {
            color: var(--navy);
        }

    .breadcrumb .sep {
        opacity: .5;
    }

    .breadcrumb .current {
        color: var(--text-body);
        font-weight: 500;
    }

/* ================================================
           HERO DEL ARTÍCULO
           ================================================ */
.post-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 0;
}

.post-hero-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* Imagen de portada */
.post-cover {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.post-cover-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #1e2660 0%, #2d3561 50%, #20c5cb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header del post dentro de la card */
.post-header {
    padding: 36px 48px 32px;
    border-bottom: 1px solid var(--border);
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.post-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 12px;
    border-radius: 100px;
}

.cat-wishpoints {
    background: var(--teal-soft);
    color: #0a7c82;
}

.cat-guia {
    background: #ede7f6;
    color: #512da8;
}

.cat-tips {
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.cat-destinos {
    background: #e8f5e9;
    color: #2e7d32;
}

.post-date, .post-read-time {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.meta-dot {
    color: var(--border-dark);
}

.post-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 16px;
}

.post-excerpt-lead {
    font-size: 1.08rem;
    color: var(--text-body);
    line-height: 1.75;
    font-style: italic;
    border-left: 3px solid var(--orange);
    padding-left: 16px;
    margin: 0;
}

/* ================================================
           LAYOUT: CONTENIDO + SIDEBAR
           ================================================ */
.post-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 72px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

/* ================================================
           CONTENIDO DEL ARTÍCULO
           ================================================ */
.post-content-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 48px;
}

/* Tipografía del artículo */
.post-content p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 24px;
}

.post-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.post-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 28px 0 12px;
}

.post-content strong {
    color: var(--navy);
    font-weight: 600;
}

.post-content em {
    color: var(--text-muted);
    font-style: italic;
}

/* Imagen interior del artículo */
.post-image-block {
    margin: 36px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

    .post-image-block img {
        width: 100%;
        height: auto;
        display: block;
    }

.post-image-caption {
    padding: 10px 16px;
    background: var(--bg-soft);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Blockquote destacado */
.post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-soft);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

    .post-content blockquote p {
        font-size: 1.05rem;
        font-style: italic;
        color: var(--navy-light);
        margin: 0;
        line-height: 1.7;
    }

/* Lista */
.post-content ul, .post-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.post-content li {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 8px;
}

/* CTA inline dentro del contenido */
.post-cta-inline {
    margin: 36px 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f0f2ff 0%, #fff8f2 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
}

    .post-cta-inline .cta-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--navy);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .post-cta-inline .cta-text h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 4px;
    }

    .post-cta-inline .cta-text p {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin: 0;
    }

    .post-cta-inline .btn-cta {
        flex-shrink: 0;
        background: var(--orange);
        color: var(--white);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 10px 22px;
        border-radius: 100px;
        white-space: nowrap;
        transition: opacity .15s ease;
    }

        .post-cta-inline .btn-cta:hover {
            opacity: .88;
        }

/* ================================================
           SECCIÓN FAQ
         
.post-faq {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

    .post-faq h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 24px;
        border: none;
        padding: 0;
    }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-card);
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease;
}

    .faq-question:hover {
        background: var(--bg-soft);
    }

    .faq-question span {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--navy);
        line-height: 1.4;
    }

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .15s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--orange-soft);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.75;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.faq-item.open .faq-answer {
    display: block;
}
      ================================================ */
/* ================================================
           TAGS Y COMPARTIR
           ================================================ */
.post-footer-meta {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    transition: all .15s ease;
}

    .post-tag:hover {
        border-color: var(--navy);
        color: var(--navy);
    }

.share-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border-dark);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
    color: var(--text-muted);
}

    .share-btn:hover {
        border-color: var(--navy);
        color: var(--navy);
        background: var(--bg-soft);
    }

/* ================================================
           ARTÍCULOS RELACIONADOS
           ================================================ */
.related-posts {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

    .related-posts h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 20px;
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .related-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

.related-thumb {
    height: 120px;
    background: linear-gradient(135deg, #f0f2ff, #e8f5f0);
    overflow: hidden;
}

    .related-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.related-body {
    padding: 16px;
}

    .related-body .post-cat {
        margin-bottom: 8px;
    }

    .related-body h4 {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--navy);
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .related-body .read-link {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--navy);
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

        .related-body .read-link:hover {
            color: var(--orange-dark);
        }

/* ================================================
           SIDEBAR
           ================================================ */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.sidebar-card-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border);
}

    .sidebar-card-header h3 {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--navy);
    }

/* CTA sidebar */
.sidebar-cta-body {
    padding: 22px 20px;
    background: var(--navy);
}

    .sidebar-cta-body h3 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 8px;
    }

    .sidebar-cta-body p {
        font-size: 0.83rem;
        color: rgba(255,255,255,.6);
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .sidebar-cta-body .btn-cta {
        display: block;
        background: var(--orange);
        color: var(--white);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 10px;
        border-radius: var(--radius-sm);
        text-align: center;
        transition: opacity .15s ease;
    }

        .sidebar-cta-body .btn-cta:hover {
            opacity: .88;
        }

/* Posts recientes sidebar */
.sidebar-posts {
    padding: 6px 0;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--border);
    transition: background .15s ease;
}

    .sidebar-post-item:last-child {
        border-bottom: none;
    }

    .sidebar-post-item:hover {
        background: var(--bg-soft);
    }

.sidebar-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2ff, #e8f5f0);
}

    .sidebar-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.sidebar-post-info h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 3px;
}

.sidebar-post-info span {
    font-size: 0.73rem;
    color: var(--text-muted);
}

/* Progreso de lectura */
.reading-progress {
    padding: 18px 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--navy), var(--teal));
    border-radius: 100px;
    transition: width .3s ease;
}

/* ================================================
           RESPONSIVE
         
@media (max-width: 960px) {
    .post-layout {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .post-header {
        padding: 24px;
    }

    .post-content-wrap {
        padding: 28px 24px;
    }

    .post-cover {
        height: 240px;
    }

    .post-sidebar {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-cta-inline {
        flex-direction: column;
        text-align: center;
    }

    .post-footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.faq-section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
}

    .faq-section h2 {
        font-size: 1.6rem;
        color: #1e2660;
        margin-bottom: 2rem;
    }

.faq-item {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid #e8eaf0;
}

    .faq-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .faq-item h3 {
        font-size: 1.05rem;
        color: #1e2660;
        margin-bottom: 0.6rem;
        font-weight: 700;
    }

    .faq-item p {
        font-size: 0.97rem;
        color: #555e7a;
        line-height: 1.7;
        margin: 0;
    }
      ================================================ */
/*.blog-content section strong {
    margin-top: 30px;
    display: block;
}*/

.blog-content section strong + p {
    margin-top: 0.3rem;
}
