/* REDEIL Blog Article Styles v5.1 - Optimized for 1400px Layout */

/* ========================================
   TOP BAR - Información de Contacto
   ======================================== */
.top-bar {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    position: relative;
    z-index: 1001;
}
.top-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar__contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.top-bar__text {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding-right: 1rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.top-bar__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.top-bar__item:hover {
    color: #fff;
}
.top-bar__item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.top-bar__item--whatsapp {
    color: #25d366;
}
.top-bar__item--whatsapp:hover {
    color: #2be371;
}
.top-bar__social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.top-bar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: rgba(255,255,255,0.7);
}
.top-bar__social-link:hover {
    color: #fff;
}
.top-bar__social-link svg {
    width: 16px;
    height: 16px;
}
@media (max-width: 767px) {
    .top-bar {
        padding: 0.4rem 0;
    }
    .top-bar .container {
        justify-content: center;
        gap: 1rem;
    }
    .top-bar__contact {
        gap: 1rem;
    }
    .top-bar__item span,
    .top-bar__text {
        display: none;
    }
    .top-bar__item svg {
        width: 16px;
        height: 16px;
    }
    .top-bar__social {
        display: none;
    }
}

/* ========================================
   VARIABLES & BASE
   ======================================== */
:root {
    --article-max-width: 880px;
    --sidebar-width: 340px;
    --content-max-width: 1400px;
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-muted: #6e6e73;
    --accent-blue: #0071e3;
    --bg-light: #f5f5f7;
    --border-light: rgba(0,0,0,0.08);
}

/* ========================================
   BREADCRUMB SECTION - Debajo del Header Fijo
   ======================================== */
.breadcrumb-section,
section.breadcrumb-section {
    background: #fff;
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover {
    color:#005bb5;
}
.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}
.breadcrumb svg {
    color: #86868b;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* ========================================
   ARTICLE HERO - Full Width Professional
   ======================================== */
.article-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--border-light);
}
.article-hero-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}
.article-category-tag {
    display: inline-block;
    background: var(--accent-blue);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.article-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 1rem;
    letter-spacing: -0.025em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.article-hero-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.article-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-hero-meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .article-hero {
        padding: 2rem 0 1.5rem;
    }
    .article-hero-content {
        padding: 0 1.5rem;
    }
    .article-hero h1 {
        font-size: 1.75rem;
    }
    .article-hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   ARTICLE WRAPPER - Full Width Background
   ======================================== */
.article-wrapper {
    background: #fff;
    padding: 3rem 0 4rem;
    min-height: 60vh;
}
.article-wrapper .container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr var(--sidebar-width);
        gap: 3.5rem;
        align-items: start;
    }
}
@media (min-width: 1280px) {
    .article-layout {
        gap: 4rem;
    }
}
.article-content {
    min-width: 0;
    max-width: var(--article-max-width);
}

/* ========================================
   FEATURED IMAGE - Professional Full Width
   ======================================== */
.article-featured-image {
    margin: 0 0 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.article-featured-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 1280px) {
    .article-featured-image img {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .article-featured-image {
        margin: 0 0 2rem;
        border-radius: 12px;
    }
    .article-featured-image img {
        height: 220px;
    }
}

/* ========================================
   ARTICLE BODY - Typography
   ======================================== */
.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.article-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
    line-height: 1.35;
}
.article-body h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.75rem 0 0.625rem;
    color: var(--text-primary);
}
.article-body p {
    margin-bottom: 1.5rem;
}
.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style-position: outside;
}
.article-body ul {
    list-style: none;
}
.article-body ol {
    list-style: none;
    counter-reset: item;
}
.article-body li {
    margin-bottom: 0.875rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
}
.article-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
}
.article-body ol li {
    counter-increment: item;
}
.article-body ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color:#005bb5;
    font-size: 1rem;
}
.article-body strong {
    font-weight: 600;
    color: var(--text-primary);
}
.article-body a {
    color:#005bb5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.article-body a:hover {
    border-bottom-color: var(--accent-blue);
}
/* Inline Links - Enlaces internos profesionales */
.article-body a.inline-link {
    color:#005bb5;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,113,227,0.3);
    background: linear-gradient(to bottom, transparent 60%, rgba(0,113,227,0.08) 60%);
    padding: 0 2px;
}
.article-body a.inline-link:hover {
    background: rgba(0,113,227,0.12);
    border-bottom-color: var(--accent-blue);
}
.article-body section {
    margin-bottom: 2rem;
}

/* Article Intro */
.article-intro {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}
.article-intro p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.article-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .article-body {
        font-size: 1rem;
        line-height: 1.75;
    }
    .article-body h2 {
        font-size: 1.5rem;
        margin: 2rem 0 0.875rem;
    }
    .article-body h3 {
        font-size: 1.25rem;
    }
    .article-intro {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    .article-intro p {
        font-size: 1.0625rem;
    }
}

/* ========================================
   INFO & WARNING BOXES
   ======================================== */
.info-box,
.warning-box {
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    margin: 2rem 0;
}
.info-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-left: 4px solid var(--accent-blue);
}
.warning-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
}
.info-box h4,
.warning-box h4 {
    margin: 0 0 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.info-box p,
.warning-box p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
}
.faq-section h2 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.faq-item {
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    margin-bottom: 0.625rem;
    overflow: hidden;
    background: #fff;
}
.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    background: #fafafa;
}
.faq-question:hover {
    background: #f0f0f2;
}
.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.45;
}
.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-answer {
    display: none;
    padding: 1.125rem 1.25rem;
    background: #fff;
    border-top: 1px solid #e5e5e7;
}
.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ========================================
   ARTICLE INTERLINK
   ======================================== */
.article-interlink {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
}
.article-interlink h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}
.article-interlink p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}
.article-services__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}
.article-services__item {
    background: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.article-services__item:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

/* ========================================
   ARTICLE CTA
   ======================================== */
.article-cta {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0056b3 100%);
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    text-align: center;
}
.article-cta h3 {
    color: #fff;
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}
.article-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.article-cta a,
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color:#005bb5;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-cta a:hover,
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.btn-cta svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   ARTICLE SHARE
   ======================================== */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid #e5e5e7;
}
.article-share span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}
.share-links {
    display: flex;
    gap: 0.5rem;
}
.share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-primary);
}
.share-links a:hover {
    background: var(--accent-blue);
    color: #fff;
}
.share-links svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 767px) {
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }
}

/* ========================================
   SIDEBAR
   ======================================== */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (min-width: 1024px) {
    .article-sidebar {
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
}
.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.sidebar-widget {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
}
.sidebar-widget-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-widget-title svg {
    width: 18px;
    height: 18px;
    color:#005bb5;
}

/* Sidebar CTA WhatsApp */
.sidebar-cta-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border: none;
    padding: 1.75rem;
}
.sidebar-cta-whatsapp h4 {
    color: #fff;
    margin: 0 0 0.375rem;
    font-size: 1.125rem;
    font-weight: 700;
}
.sidebar-cta-whatsapp p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
}
.sidebar-cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sidebar-cta-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    color: #25d366;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-cta-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sidebar-cta-btn-wa svg {
    width: 18px;
    height: 18px;
    fill: #25d366;
}
.sidebar-cta-phone {
    display: block;
    text-align: center;
    margin-top: 0.625rem;
    font-size: 0.8125rem;
}
.sidebar-cta-phone a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}
.sidebar-cta-phone a:hover {
    opacity: 1;
}

/* Sidebar Services Grid */
.sidebar-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.sidebar-service-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.625rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
}
.sidebar-service-item:hover {
    background: var(--accent-blue);
    color: #fff;
}
.service-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Why Us */
.sidebar-why-us {
    background: var(--bg-light);
    border: none;
}
.sidebar-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4375rem 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.benefit-check {
    color: #34c759;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* Sidebar Related Links */
.sidebar-related-links {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}
.sidebar-related-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8125rem;
}
.sidebar-related-link:hover {
    background: var(--accent-blue);
    color: #fff;
}
.related-text {
    font-weight: 500;
}
.related-arrow {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.sidebar-related-link:hover .related-arrow {
    color: #fff;
}

/* ========================================
   CTA DARK SECTION
   ======================================== */
.cta-dark {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    padding: 4rem 2rem;
    text-align: center;
}
.cta-dark__container {
    max-width: 750px;
    margin: 0 auto;
}
.cta-dark__title {
    font-size: 2rem;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.cta-dark__text {
    font-size: 1.0625rem;
    color: #a1a1a6;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}
.cta-dark__button {
    display: inline-block;
    background: var(--accent-blue);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}
.cta-dark__button:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,113,227,0.3);
}

@media (max-width: 767px) {
    .cta-dark {
        padding: 3rem 1.5rem;
    }
    .cta-dark__title {
        font-size: 1.5rem;
    }
    .cta-dark__text {
        font-size: 1rem;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .article-sidebar,
    .article-cta,
    .cta-dark,
    .article-share {
        display: none !important;
    }
    .article-layout {
        grid-template-columns: 1fr !important;
    }
    .article-body a {
        text-decoration: underline;
    }
}
