html {
  scroll-padding-top: 50px;
}

#plataformas .card {
  height: 100%;
  display: flex;
}

#plataformas .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#plataformas .card-text {
  overflow: visible !important;
  word-break: break-word;
}

/* #plataformas .card img {
  max-height: 110px;
  object-fit: contain;
  margin: 0 auto;
} */

#servicios .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#servicios .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#servicios .card-text {
  overflow: visible !important;
  word-break: break-word;
}

#carouserltop {
  margin-top: 58px;
}

@media (max-width: 991px) {
  #carouserltop {
    margin-top: 44px;
  }
}

/* BLOG HERO */
.blog-hero {
    position: relative;
    height: 80vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.blog-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero-content {
    max-width: 700px;
    color: white;
}

.blog-hero-content h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
}

.blog-hero-content p {
    font-size: 22px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
}

/* BLOG POSTS */
.blog-posts-section {
    padding: 100px 0;
    background: #f5f5f5;
}

.blog-section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #0A4594;
}

.blog-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post-card {
    background: white;
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.blog-post-image {
    display: block;
    height: 100%;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.blog-post-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.blog-post-title a {
    color: #111;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: #0A4594;
}

.blog-post-excerpt {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.blog-read-more {
    width: fit-content;
    padding: 12px 28px;
    background: #0A4594;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.blog-read-more:hover {
    background: #083776;
    color: white;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .blog-post-card {
        grid-template-columns: 1fr;
    }
    .blog-post-image {
        height: 350px;
    }
    .blog-hero-content h1 {
        font-size: 48px;
    }
    .blog-section-title {
        font-size: 38px;
    }
    .blog-post-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 500px;
    }
    .blog-hero-content h1 {
        font-size: 36px;
    }
    .blog-hero-content p {
        font-size: 18px;
    }
    .blog-post-content {
        padding: 30px;
    }
    .blog-post-title {
        font-size: 26px;
    }
    .blog-post-excerpt {
        font-size: 16px;
    }
}

/* FOOTER */
footer {
    background: #F3F3F3;
}

/* LOGO */
.footer_logo {
    text-align: center;
}

.footer_logo img {
    margin: 3% auto;
}

/* CONTENIDO PRINCIPAL */
.contenido {
    max-width: 1400px;
    margin: auto;
    padding: 0px 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Articulos */
.articulos {
    width: 30%;
    padding-right: 2rem;
}

.articulos h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.articulos ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.articulos ul li {
    margin-bottom: 18px;
}

.articulos ul li a {
    color: #000;
    text-decoration: none;
    font-size: 17px;
    line-height: 1.5;
    transition: 0.3s ease;
}

.articulos ul li a:hover {
    color: #0A4594;
}

/* OFICINAS */
.oficina {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 2rem 2rem;
    width: 70%;
    border-left: 1px solid #bcbcbc;
}

.oficina-single {
    min-width: 280px;
}

.h4_footer {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
}

.oficina-single ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.oficina-single ul li {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 100%;
    color: #000;
    font-size: 16px;
}

.footer-icon {
    width: 16px;
    /* min-width: 20px;
    margin-top: 4px; */
}

/* FOOTER AZUL */
.redes_sociales {
    background: #02234F;
    padding: 30px 20px;
    text-align: center;
}

.redes_sociales ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
}

.redes_sociales img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: 0.3s ease;
}

.redes_sociales img:hover {
    transform: translateY(-4px);
}

.consultas__footer p {
    color: white;
    margin-bottom: 12px;
    font-size: 15px;
}

.consultas__footer a {
    color: white;
    font-weight: 700;
    text-decoration: underline !important;
}

.__copy p {
    color: white;
    font-size: 14px;
    margin: 0;
}

.__copy a {
    color: white;
    font-weight: 700;
}

.articulos-desktop {
    display: block;
}

.articulos-mobile {
    display: none;
    margin-top: 3rem !important;
}

@media (max-width: 768px) {
    /* CONTENEDOR */
    .contenido {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        padding: 0;
    }

    /* ORDEN */
    .oficina {
        order: 1;
    }
    .articulos {
        order: 2;
    }

    /* LOGO */
    .footer_logo img {
        width: 200px;
        margin: 3rem auto 2rem;
    }

    /* OFICINAS */
    .oficina {
        width: 100%;
        gap: 20px;
        border-left: none;
        padding: 1% 7% !important;
    }
    .oficina-single {
        width: 100%;
        min-width: 100%;
    }
    .h4_footer {
        font-size: 16px;
        margin-bottom: 18px;
    }
    .oficina-single ul li {
        font-size: 13px;
        font-weight: 400;
        line-height: 18px;
        height: unset;    
        margin: 0.5rem 0 1rem;
    }

    /* ARTICULOS */
    .articulos {
        width: 100%;
        padding-right: 0;
    }
    .articulos h4 {
        font-size: 18px;
        margin-bottom: 0;
    }
    .articulos ul li a {
        font-size: 15px;
        line-height: 1.5;
    }

    /* ACCORDION REAL */
    .articulos-desktop {
        display: none;
    }
    .articulos-mobile {
        display: block;
    }
    .footer-accordion-btn {
        width: 100%;
        background: transparent;
        border: none;
        padding: 0.9rem 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        font-weight: 700;
        color: #000;
        border-top: 1px solid #d8d8d8;
        border-bottom: 1px solid #d8d8d8;
    }
    .footer-accordion-btn span {
        font-weight: 700;
    }
    .accordion-icon {
        width: 18px;
        transition: transform 0.3s ease;
    }
    .accordion-icon.active {
        transform: rotate(-180deg);
        filter:
        brightness(0)
        saturate(100%)
        invert(36%)
        sepia(98%)
        saturate(2317%)
        hue-rotate(210deg)
        brightness(95%)
        contrast(95%);
    }

    .footer-accordion-content {
        display: none;
        padding: 1rem 1.25rem;
    }
    .footer-accordion-content.active {
        display: block;
    }
    .footer-accordion-content ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .footer-accordion-content ul li {
        margin: 3% 0;
    }
    .footer-accordion-content ul li a {
        color: #000;
        text-decoration: none;
        font-size: 16px;
        line-height: 150%;
    }

    /* FOOTER AZUL */
    .redes_sociales {
        margin-top: 0;
    }
    .blog-posts-section {
        padding-bottom: 50px;
    }
}
