/*
Theme Name: Colombia Pharmacy Simplest
Theme URI: https://colombiapharmacynyc.com
Author: AJ Concept
Author URI: https://ajconcept.com.co
Description: Lightweight custom WordPress theme with exact Colombia Pharmacy Header, Footer, Table styles, Visible Bullet Points, Heading hierarchy and Pagination.
Version: 1.8.0
License: GNU General Public License v2 or later
Text Domain: colombia-pharmacy
*/

/* ==============================================================================
   1. RESET GLOBAL & TIPOGRAFÍA
   ============================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c2e43;
    background-color: #fcfcfc;
    line-height: 1.6;
    overflow-x: clip;
    max-width: 100%;
}

#wpadminbar {
    top: 0;
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

/* ==============================================================================
   2. JERARQUÍA DE TÍTULOS (H1, H2, H3, H4, H5, H6)
   ============================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #23263b;
    font-weight: 800;
    margin-top: 0;
}

/* H1: Título Principal */
h1, .single-post-title, .entry-title {
    font-size: 34px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #002972 !important;
    margin: 25px 0 16px !important;
    letter-spacing: -0.5px;
}

/* H2: Subtítulo Principal de Sección */
h2, .single-post-content h2, .entry-content h2 {
    font-size: 26px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #23263b !important;
    margin: 32px 0 14px !important;
    padding-bottom: 6px;
    border-bottom: 2px solid #fff9e7;
}

/* H3: Subtítulo Secundario */
h3, .single-post-content h3, .entry-content h3 {
    font-size: 21px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #002972 !important;
    margin: 26px 0 12px !important;
}

/* H4: Título de Bloque Menor */
h4, .single-post-content h4, .entry-content h4 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #23263b !important;
    margin: 20px 0 10px !important;
}

/* H5: Encabezado Pequeño */
h5, .single-post-content h5, .entry-content h5 {
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    color: #4a4d65 !important;
    margin: 16px 0 8px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* H6: Encabezado Mínimo */
h6, .single-post-content h6, .entry-content h6 {
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    color: #6b6e82 !important;
    margin: 14px 0 6px !important;
    text-transform: uppercase;
}

/* ==============================================================================
   3. TOPBAR UTILITY (#1a1d2e & #ffd523)
   ============================================================================== */
.topbar-utility {
    width: 100%;
    background-color: #1a1d2e;
    color: #e5e8f3;
    font-size: 12.5px;
    padding: 7px 0;
    margin: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    position: relative;
    z-index: 1001;
}

.topbar-container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-link strong {
    color: #ffffff;
}

.topbar-link i, .topbar-text i {
    color: #ffd523;
    font-size: 12px;
}

.topbar-link:hover {
    color: #ffd523;
}

.topbar-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d1d6e8;
}

.topbar-separator {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
}

.topbar-otc {
    color: #ffd523;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-otc:hover {
    color: #ffffff;
}

.topbar-lang {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

.topbar-lang a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.topbar-lang a.lang-active, .topbar-lang a:hover {
    color: #1a1d2e;
    background-color: #ffd523;
}

@media (max-width: 900px) {
    .topbar-utility {
        display: none;
    }
}

/* ==============================================================================
   4. HEADER PRINCIPAL (Sticky, Logo Circular, Menú con Dropdowns y CTA)
   ============================================================================== */
.site-header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.round-emblem-logo {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item-li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 11px;
    color: #23263b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13.8px;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: -0.2px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active-link {
    color: #002972;
    background-color: #fff9e7;
}

.nav-arrow-icon {
    font-size: 10px;
    margin-left: 2px;
    color: #23263b;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-arrow-icon {
    transform: rotate(180deg);
    color: #002972;
}

/* Dropdown Menu Desplegable */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    min-width: 230px;
    padding: 6px 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #2c2e43;
    text-decoration: none;
    border-bottom: 1px solid #f6f8f7;
    transition: all 0.2s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #fff9e7;
    color: #002972;
    padding-left: 22px;
}

/* Botón CTA Header */
.header-cta {
    display: flex;
    align-items: center;
}

.btn-cta-primary {
    background: #23263b;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13.5px;
    padding: 10px 22px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(35, 38, 59, 0.25);
    transition: all 0.25s ease;
}

.btn-cta-primary:hover {
    background: #002972;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 41, 114, 0.35);
}

.cta-pill-icon {
    font-size: 14px;
}

/* Menú Toggle Móvil */
.mobile-toggle-btn {
    display: none;
    font-size: 20px;
    color: #2c2e43;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-toggle-btn:hover {
    color: #2c2e43;
    background-color: #fff9e7;
}

/* Drawer Móvil Desplegable */
.mobile-drawer {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.mobile-drawer.toggled-options {
    max-height: 700px;
    border-bottom: 2px solid #FFD523;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mobile-drawer-inner {
    padding: 10px 0 0;
}

.mobile-cta-banner {
    padding: 10px 20px;
    background-color: #fff9e7;
    border-bottom: 1px solid #ffe89e;
}

.btn-mobile-drawer-cta {
    display: block;
    background: #23263b;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.25s ease;
}

.btn-mobile-drawer-cta:hover {
    background: #002972;
}

.mobile-nav-list li a {
    display: block;
    padding: 12px 24px;
    color: #2c2e43;
    font-size: 14.5px;
    text-decoration: none;
    border-bottom: 1px solid #f6f6f6;
    transition: all 0.2s ease;
}

.mobile-nav-list li a:hover {
    background-color: #2c2e43;
    color: #ffd523;
    padding-left: 30px;
}

.mobile-drawer-footer {
    padding: 14px 20px;
    background-color: #f9fafb;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.drawer-call-btn {
    color: #002972;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .header-nav, .header-cta {
        display: none;
    }
    .mobile-toggle-btn {
        display: block;
    }
}

/* ==============================================================================
   5. FOOTER EXACTO (Tono Crema #fff9e7, 4 Columnas, Badges y Redes)
   ============================================================================== */
.site-footer {
    width: 100%;
    background-color: #fff9e7;
    color: #2c2e43;
    padding: 55px 0 0;
    box-sizing: border-box;
    border-top: 1px solid #ebdcb9;
    margin-top: 60px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.15fr 1fr;
    gap: 40px;
    box-sizing: border-box;
}

.footer-title {
    color: #23263b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 26px;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.pharmacy-slogan {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4a4d65;
    margin-bottom: 22px;
    max-width: 320px;
}

.col-heading {
    color: #23263b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.col-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background-color: #ffd523;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #2c2e43;
}

.info-item .icon {
    font-size: 15px;
    color: #002972;
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    text-align: center;
}

.footer-link {
    color: #2c2e43;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #002972;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13.5px;
    color: #2c2e43;
}

.schedule-list .day, .schedule-list .hours {
    color: #2c2e43;
    font-weight: 500;
}

.otc-badges {
    margin-top: 18px;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid #ffd523;
    box-shadow: 0 4px 14px rgba(255, 213, 35, 0.18);
}

.badge-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #002972;
    font-size: 14px;
    margin-bottom: 4px;
}

.badge-tag i {
    color: #002972;
    font-size: 15px;
}

.badge-desc {
    font-size: 12px;
    line-height: 1.45;
    color: #4a4d65;
    margin-top: 6px;
}

.footer-menu li {
    margin-bottom: 9px;
}

.footer-menu a {
    color: #2c2e43;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-menu a i {
    font-size: 13px;
    color: #2c2e43;
    width: 16px;
    text-align: center;
}

.footer-menu a i.arrow-icon {
    font-size: 10px;
}

.footer-menu a:hover {
    color: #002972;
    transform: translateX(4px);
}

.highlight-link {
    color: #002972 !important;
    font-weight: 800 !important;
}

.highlight-link i {
    color: #002972 !important;
}

.delivery-note {
    font-size: 13px;
    line-height: 1.5;
    color: #4a4d65;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.delivery-note i {
    color: #002972;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-cta-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.btn-footer-map, .btn-footer-rx {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13.5px;
    transition: all 0.25s ease;
}

.btn-footer-map {
    background: #2c2e43;
    border: 1px solid #2c2e43;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(44, 46, 67, 0.15);
}

.btn-footer-map:hover {
    background: #002972;
    border-color: #002972;
    transform: translateY(-2px);
}

.btn-footer-rx {
    background: #002972;
    border: 1px solid #002972;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 41, 114, 0.25);
}

.btn-footer-rx:hover {
    background: #2c2e43;
    border-color: #2c2e43;
    transform: translateY(-2px);
}

.footer-social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-social-icons a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.footer-social-icons a:hover {
    transform: translateY(-2px) scale(1.1);
}

.footer-social-icons img {
    width: 28px;
    height: 28px;
    display: block;
    border-radius: 6px;
}

/* Barra de Copyright Footer */
.footer-bottom {
    background-color: #f5ecce;
    border-top: 1px solid #ebdcb9;
    margin-top: 50px;
    padding: 18px 0;
}

.footer-bottom-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #5a5e78;
    gap: 20px;
}

.footer-copy-text p {
    margin: 2px 0;
}

.disclaimer-text {
    font-size: 11px;
    color: #6a6e84;
}

.footer-lang-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.lang-switch a, .legal-links a {
    color: #2c2e43;
    font-weight: 700;
    font-size: 12.5px;
}

.lang-switch a:hover, .legal-links a:hover {
    color: #002972;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 680px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-lang-legal {
        align-items: center;
    }
}

/* ==============================================================================
   6. VIÑETAS CLARAS & VISIBLES (Bullet points visibles al lado)
   ============================================================================== */
.single-post-content ul,
.post-content ul,
.entry-content ul,
.blog-content ul,
.page-content ul,
.wp-block-list,
article ul {
    list-style: disc !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin: 18px 0 24px 32px !important;
    padding-left: 8px !important;
}

.single-post-content ul li,
.post-content ul li,
.entry-content ul li,
.blog-content ul li,
.page-content ul li,
.wp-block-list li,
article ul li {
    display: list-item !important;
    list-style: disc !important;
    list-style-type: disc !important;
    margin-bottom: 10px !important;
    padding-left: 6px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #2c2e43 !important;
}

.single-post-content ol,
.post-content ol,
.entry-content ol,
.blog-content ol,
.page-content ol,
ol.wp-block-list,
article ol {
    list-style: decimal !important;
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin: 18px 0 24px 32px !important;
    padding-left: 8px !important;
}

.single-post-content ol li,
.post-content ol li,
.entry-content ol li,
.blog-content ol li,
.page-content ol li,
ol.wp-block-list li,
article ol li {
    display: list-item !important;
    list-style: decimal !important;
    list-style-type: decimal !important;
    margin-bottom: 10px !important;
    padding-left: 6px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #2c2e43 !important;
}

.single-post-content ul ul,
.single-post-content ol ol,
.single-post-content ul ol,
.single-post-content ol ul,
article ul ul,
article ol ol {
    margin: 6px 0 8px 24px !important;
}

/* ==============================================================================
   7. TABLAS ESTILIZADAS & RESPONSIVAS
   ============================================================================== */
table {
    border-collapse: collapse;
    border: 4px solid #222;
    width: 100%;
    margin: 25px 0;
    background-color: #ffffff;
}

table th,
table td {
    border: 3px solid #222;
    padding: 12px 16px;
    text-align: left;
    font-size: 14.5px;
    color: #2c2e43;
    line-height: 1.5;
}

table th {
    background-color: #fff9e7;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #002972;
}

table tr:hover td {
    background-color: #fafbfc;
}

.single-post-content table,
.entry-content table {
    display: table;
    overflow-x: auto;
}

/* ==============================================================================
   8. PLANTILLAS DEL BLOG (Loop de Posts & Vista Individual)
   ============================================================================== */
.blog-main-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.blog-hero {
    margin-bottom: 35px;
    text-align: center;
}

.blog-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #002972;
    margin-bottom: 10px;
}

.blog-hero p {
    color: #55586d;
    font-size: 16px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 12px;
    color: #888c9f;
    margin-bottom: 8px;
    font-weight: 600;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2e43;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a:hover {
    color: #002972;
}

.post-excerpt {
    font-size: 13.5px;
    color: #61647a;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.post-read-more {
    color: #002972;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-read-more:hover {
    color: #ffd523;
}

/* Vista de Artículo Individual */
.single-post-wrapper {
    width: 90%;
    max-width: 860px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

.single-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #33364c;
    margin-top: 25px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* ==============================================================================
   9. PAGINACIÓN ELEGANTE (9 POSTS POR PÁGINA)
   ============================================================================== */
.pagination-container {
    margin: 50px 0 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination-container .navigation.pagination {
    display: block;
    text-align: center;
}

.pagination-container .screen-reader-text {
    display: none;
}

.pagination-container .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 35px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    color: #2c2e43;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pagination-container .page-numbers:hover {
    background-color: #fff9e7;
    color: #002972;
    transform: translateY(-2px);
}

.pagination-container .page-numbers.current {
    background: #002972;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 41, 114, 0.3);
}

.pagination-container .page-numbers.dots {
    color: #888c9f;
    background: transparent;
}

.pagination-container .page-numbers.prev,
.pagination-container .page-numbers.next {
    padding: 0 16px;
    background-color: #23263b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination-container .page-numbers.prev:hover,
.pagination-container .page-numbers.next:hover {
    background-color: #002972;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==============================================================================
   10. TABLA DE CONTENIDOS (TABLE OF CONTENTS - TOC)
   ============================================================================== */
.cp-toc-container {
    margin: 30px 0 34px;
    background: transparent;
    border: 1.5px solid #111827;
    border-radius: 4px;
    padding: 22px 26px;
    box-shadow: none;
    box-sizing: border-box;
}

.cp-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.cp-toc-title {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
    border: none !important;
}

.cp-toc-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 25px;
    background: transparent;
    border: 1.2px solid #111827;
    border-radius: 3px;
    color: #111827;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.cp-toc-toggle-btn:hover {
    background-color: #111827;
    color: #ffffff;
}

.cp-toc-list-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    display: block;
}

.cp-toc-body {
    margin-top: 14px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 2500px;
    opacity: 1;
}

.cp-toc-container.is-collapsed .cp-toc-body {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.cp-toc-list,
.cp-toc-sublist {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cp-toc-sublist {
    margin-left: 24px !important;
    padding-left: 0 !important;
    border-left: none !important;
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

.cp-toc-item {
    margin: 5px 0 !important;
    padding: 0 !important;
    line-height: 1.45;
}

.cp-toc-link {
    display: inline;
    color: #ea580c;
    font-family: 'Montserrat', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    cursor: pointer;
}

.cp-toc-item-h3 .cp-toc-link {
    font-size: 14.5px;
    font-weight: 700;
}

.cp-toc-link:hover {
    color: #c2410c;
    text-decoration: underline;
}

/* Offset para sticky header al hacer click en cualquier encabezado con ancla */
.single-post-content h2[id],
.single-post-content h3[id],
.single-post-content h4[id],
.single-post-content h5[id],
.single-post-content h6[id] {
    scroll-margin-top: 95px;
}

@media (max-width: 768px) {
    .cp-toc-container {
        padding: 16px 18px;
        margin: 22px 0 26px;
    }
    .cp-toc-title {
        font-size: 1.15rem !important;
    }
    .cp-toc-link {
        font-size: 14px;
    }
    .cp-toc-item-h3 .cp-toc-link {
        font-size: 13.5px;
    }
    .cp-toc-sublist {
        margin-left: 18px !important;
    }
}

/* ==============================================================================
   11. ARTÍCULOS RELACIONADOS (RELATED POSTS GRID)
   ============================================================================== */
.related-posts-section {
    width: 100%;
    margin: 50px 0 75px;
    padding: 0;
}

.related-posts-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.related-posts-heading {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 28px !important;
    letter-spacing: -0.01em;
}

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

.related-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 32px -8px rgba(0, 0, 0, 0.12), 0 10px 14px -5px rgba(0, 0, 0, 0.05);
}

.related-post-thumb {
    width: 100%;
    height: 195px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.related-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
    transition: transform 0.35s ease;
}

.related-post-card:hover .related-card-img {
    transform: scale(1.04);
}

.related-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 38px;
}

.related-post-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.related-post-title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.related-post-title a {
    color: #0284c7 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.related-post-title a:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

.related-post-meta {
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.related-post-excerpt {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 22px;
    flex-grow: 1;
}

.related-post-excerpt p {
    margin: 0 !important;
}

.related-post-btn-wrap {
    margin-top: auto;
}

.related-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f59e0b;
    color: #1e293b !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.related-post-btn:hover {
    background-color: #d97706;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .related-posts-heading {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }
    .related-post-body {
        padding: 18px 20px 22px;
    }
}

/* ==============================================================================
   BARRA LATERAL SINGLE POST (STICKY UBICACIÓN Y DELIVERY)
   ============================================================================== */
.single-post-page-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.single-post-grid {
    display: flex;
    gap: 35px;
    align-items: stretch;
}

.single-post-article-col {
    flex: 1 1 0%;
    min-width: 0;
}

.single-post-main-card {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    min-width: 0;
}

.single-post-sidebar-col {
    width: 340px;
    flex-shrink: 0;
    position: relative;
}

.single-sidebar-sticky-box {
    position: -webkit-sticky;
    position: sticky;
    top: 95px;
    z-index: 10;
}

.sidebar-delivery-card {
    background-color: #fff9e7;
    border: 1px solid #ebdcb9;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.sidebar-card-title {
    color: #23263b !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 23px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px;
}

.sidebar-card-line {
    width: 44px;
    height: 4px;
    background-color: #ffd523;
    border-radius: 2px;
    margin-bottom: 20px;
}

.sidebar-card-desc {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #2c2e43;
    margin: 0 0 24px 0 !important;
}

.sidebar-card-desc i {
    font-size: 18px;
    color: #002972;
    flex-shrink: 0;
    margin-top: 3px;
}

.sidebar-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-sidebar-maps,
.btn-sidebar-rx {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-sidebar-maps {
    background: #2c2e43;
    border: 1px solid #2c2e43;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(44, 46, 67, 0.15);
}

.btn-sidebar-maps:hover {
    background: #002972;
    border-color: #002972;
    transform: translateY(-2px);
}

.btn-sidebar-rx {
    background: #002972;
    border: 1px solid #002972;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 41, 114, 0.25);
}

.btn-sidebar-rx:hover {
    background: #2c2e43;
    border-color: #2c2e43;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .single-post-grid {
        display: block;
    }
    .single-post-sidebar-col {
        display: none;
    }
    .single-post-main-card {
        padding: 25px 20px;
    }
}