/* Estilos para el contenido principal del blog */
.article-terminal {
    padding-bottom: 48px;
    background: #f7f8fa;
    scroll-behavior: smooth;
}

/* Anula el overlay absoluto de stylesheet.css en la nota terminal */
.article-terminal .div_width,
.article-terminal .div_width:first-of-type {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
    border-radius: 0;
    z-index: auto;
    box-sizing: border-box;
}

.article-terminal .div_width:first-of-type h1.main_heding {
    color: #0f172a;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px 0 12px;
    font-size: 13px;
    color: #6b7280;
    font-family: 'NimbusSanL', sans-serif;
}

.article-breadcrumb a {
    color: #1e3a5f;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-header {
    padding-bottom: 20px;
}

.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 0 0 16px;
    font-family: 'NimbusSanL', sans-serif;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
    font-family: 'NimbusSanL', sans-serif;
}

.article-meta-item i {
    color: #1e3a5f;
}

/* Estilos para el título principal */
.main_heding {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 14px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    color: #0f172a;
    max-width: 920px;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #4b5563;
}

/* Estilos para los botones de compartir */
.social_share_buttons {
    display: flex;
    gap: 12px;
    margin: 0;
    flex-wrap: nowrap;
}

.share_btn {
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F4F4F5;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.share_btn i {
    font-size: 18px;
    color: #232536;
}

.share_btn.meta:hover {
    background: #1877F2;
}

.share_btn.meta:hover i {
    color: #fff;
}

.share_btn.whatsapp:hover {
    background: #25D366;
}

.share_btn.whatsapp:hover i {
    color: #fff;
}

.share_btn.twitter:hover {
    background: #1DA1F2;
}

.share_btn.twitter:hover i {
    color: #fff;
}

.date {
    font-size: 14px;
    margin-bottom: 10px;
    color: #6b7280;
}

.btn_yell {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background-color: #ffc248;
    color: #1a1a1a;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.article-hero {
    margin: 0 auto 36px;
    max-width: 1480px;
    padding: 0 20px;
}

.article-hero #blogimg,
#blogimg {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    display: block;
    height: 460px;
    object-fit: cover;
    border-radius: 4px;
}

.article-hero figcaption,
.article-figure figcaption,
.article-video-caption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.article-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    box-sizing: border-box;
    width: 100%;
}

.article-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    font-family: 'NimbusSanL', sans-serif;
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
    flex-shrink: 0;
}

.article-author-label {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    font-family: 'NimbusSanL', sans-serif;
}

.article-author-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    font-family: 'NimbusSanL', sans-serif;
}

.article-contact {
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    font-family: 'NimbusSanL', sans-serif;
}

.article-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-contact-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.article-contact-field span {
    font-family: 'NimbusSanL', sans-serif;
}

.article-contact-field input,
.article-contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'NimbusSanL', sans-serif;
    font-weight: 400;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: vertical;
}

.article-contact-field input::placeholder,
.article-contact-field textarea::placeholder {
    color: #9ca3af;
}

.article-contact-field input:focus,
.article-contact-field textarea:focus {
    border-color: #ffc248;
    background: #fff;
}

.article-contact-submit {
    margin-top: 4px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: #1e3a5f;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'NimbusSanL', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}

.article-contact-submit:hover {
    background: #0b5cab;
}

.article-related-products {
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    font-family: 'NimbusSanL', sans-serif;
}

.article-sidebar-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1e3a5f;
    font-family: 'NimbusSanL', sans-serif;
}

.article-sidebar-sub {
    margin: 0 0 14px;
    font-size: 12px;
    color: #6b7280;
    font-family: 'NimbusSanL', sans-serif;
}

.article-related-products ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-related-products li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.sidebar-product {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.sidebar-product img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.sidebar-product-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    font-family: 'NimbusSanL', sans-serif;
}

.sidebar-product-cat {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #6b7280;
    font-family: 'NimbusSanL', sans-serif;
}

.sidebar-product:hover .sidebar-product-name {
    color: #0b5cab;
}

.sidebar-products-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
    font-family: 'NimbusSanL', sans-serif;
}

.sidebar-products-link:hover {
    text-decoration: underline;
}

.article-body {
    max-width: 820px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding: 28px 32px 36px;
    border: 1px solid #e5e7eb;
    font-family: 'NimbusSanL', sans-serif;
}

.article-body section {
    scroll-margin-top: 24px;
}

.article-body section + section {
    margin-top: 36px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.blog_content_h {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    font-family: 'NimbusSanL', sans-serif;
    color: #0f172a;
    margin: 0 0 16px;
}

.blog_content_p {
    font-size: 16px;
    line-height: 1.7;
    color: #232536;
    margin: 0 0 18px;
    font-family: 'NimbusSanL', sans-serif;
}

.article-figure {
    margin: 24px 0;
}

.article-figure img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    background: #e5e7eb;
}

.article-figure--wide img {
    height: 380px;
}

.article-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.article-media-grid .article-figure {
    margin: 0;
}

.article-media-grid img {
    height: 220px;
}

.article-callout {
    margin: 24px 0;
    padding: 18px 20px;
    background: #eef4fb;
    border-left: 4px solid #1e3a5f;
}

.article-callout-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e3a5f;
}

.article-callout p:last-child {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #1f2937;
}

.article-video {
    margin: 24px 0 8px;
}

.article-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #0f172a;
    border-radius: 4px;
}

.article-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-key-points {
    margin: 8px 0 28px;
    padding: 0 0 0 20px;
}

.article-key-points li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.55;
    color: #232536;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.article-tags a {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f5f9;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.article-tags a:hover {
    background: #ffc248;
    color: #111;
}

.article-related {
    grid-column: 2;
    max-width: 820px;
    margin-top: 56px;
    padding-bottom: 8px;
    font-family: 'NimbusSanL', sans-serif;
}

.article-related-head {
    margin-bottom: 14px;
}

.article-related-head h2 {
    margin: 0;
    font-family: 'NimbusSanL', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.01em;
}

.article-related-head p {
    display: none;
}

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

.related-card {
    display: block;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    overflow: hidden;
}

.related-card:hover {
    background: #eef2f7;
    border-color: transparent;
    box-shadow: none;
}

.related-card img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
    border-radius: 6px;
}

.related-card > div {
    padding: 8px 4px 4px;
    min-width: 0;
}

.related-card-tag {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #9ca3af;
    font-family: 'NimbusSanL', sans-serif;
}

.related-card h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #374151;
    font-family: 'NimbusSanL', sans-serif;
}

@media (max-width: 1024px) {
    .article-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .article-body {
        order: 1;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
        padding: 24px 20px 28px;
    }

    .article-sidebar {
        order: 2;
        position: static;
        align-items: center;
        width: 100%;
        max-width: 360px;
        margin: 8px auto 0;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

    .article-author,
    .article-contact,
    .article-related-products {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .article-author {
        justify-content: center;
        flex-direction: column;
    }

    .article-contact-form {
        text-align: left;
    }

    .article-related-products ul {
        text-align: left;
    }

    .sidebar-product {
        justify-content: flex-start;
    }

    .sidebar-products-link {
        display: inline-block;
    }

    .article-related {
        order: 3;
        grid-column: auto;
        margin-top: 28px;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

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

@media (max-width: 768px) {
    .article-terminal .div_width,
    .article-terminal .div_width:first-of-type {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        margin: 0 auto !important;
        background: transparent;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        box-sizing: border-box;
    }

    .article-layout.div_width {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .main_heding {
        font-size: 28px !important;
        line-height: 1.2 !important;
        font-weight: 600;
        color: #0f172a !important;
        text-align: center;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .article-header {
        text-align: center;
    }

    .article-meta-top {
        justify-content: center;
    }

    .article-byline {
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .social_share_buttons {
        justify-content: center;
    }

    .article-breadcrumb {
        justify-content: center;
        text-align: center;
    }

    .article-dek {
        font-size: 16px;
    }

    .article-hero {
        padding: 0 16px;
        margin-bottom: 24px;
        box-sizing: border-box;
        width: 100%;
    }

    .article-hero #blogimg,
    #blogimg {
        height: 240px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .article-hero figcaption {
        text-align: center;
        padding: 0;
    }

    .article-body {
        padding: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }

    .blog_content_h {
        font-size: 22px;
        line-height: 1.3;
        text-align: left;
    }

    .blog_content_p {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
    }

    .article-callout {
        text-align: left;
        box-sizing: border-box;
    }

    .article-key-points {
        text-align: left;
    }

    .article-tags {
        justify-content: flex-start;
    }

    .article-figure,
    .article-video,
    .article-media-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .article-figure img,
    .article-figure--wide img,
    .article-media-grid img {
        height: 200px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .article-figure figcaption,
    .article-video-caption {
        text-align: left;
    }

    .article-media-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        margin-top: 24px;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .article-related {
        margin-top: 32px;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .article-related-head h2 {
        text-align: left;
    }

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

    .related-card img {
        height: 120px;
    }

    .btn_yell {
        padding: 6px 12px;
        font-size: 12px;
    }
}


/* SEO semantic helpers */
.article-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'NimbusSanL', sans-serif;
}

.article-breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #9ca3af;
}

.article-tags ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.article-tags li {
    margin: 0;
}

.related-card-wrap {
    margin: 0;
}

a.btn_yell {
    text-decoration: none;
}
