/* ================================================
   LT Group - Estilos de Secciones
   ================================================ */

/* ---- FUENTES ---- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;900&display=swap');

html, body {
    overflow-x: hidden !important;
}

/* ================================================
   SECCIÓN 1: About / Imagen + Texto
   ================================================ */
.lt-about-section {
    font-family: 'DM Sans', sans-serif;
    width: 100%;
    margin: 0;
    padding: 40px 0;
    box-sizing: border-box;
}

.lt-about-section .lt-about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.lt-about-section .lt-about-inner .lt-about-img-col {
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    align-self: stretch;
}

.lt-about-section .lt-about-inner .lt-about-img-col .lt-about-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.lt-about-section .lt-about-inner .lt-about-text-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
}

.lt-about-section .lt-about-inner .lt-about-text-col .lt-about-eyebrow {
    font-size: 20px;
    font-weight: 400;
    color: #006CB4;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.lt-about-section .lt-about-inner .lt-about-text-col .lt-about-heading {
    font-size: 36px;
    font-weight: 700;
    color: #005EAD;
    line-height: 1.2;
    margin: 0 0 18px 0;
    font-family: 'DM Sans', sans-serif;
}

.lt-about-section .lt-about-inner .lt-about-text-col .lt-about-body {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin: 0 0 22px 0;
    text-align: justify;
}

.lt-about-section .lt-about-inner .lt-about-text-col a.lt-about-btn,
.lt-about-section .lt-about-inner .lt-about-text-col a.lt-about-btn:link,
.lt-about-section .lt-about-inner .lt-about-text-col a.lt-about-btn:visited,
.lt-about-section .lt-about-inner .lt-about-text-col a.lt-about-btn:hover,
.lt-about-section .lt-about-inner .lt-about-text-col a.lt-about-btn:focus,
.lt-about-section .lt-about-inner .lt-about-text-col a.lt-about-btn:active {
    display: inline-block !important;
    margin-top: 6px !important;
    padding: 11px 26px !important;
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #005EAD !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    align-self: flex-start !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    border-radius: 10px;
}

/* Responsive - Sección 1 */
@media (max-width: 991px) {
    .lt-about-section .lt-about-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lt-about-section .lt-about-inner .lt-about-img-col {
        max-height: 320px;
    }

    .lt-about-section .lt-about-inner .lt-about-text-col .lt-about-heading {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .lt-about-section {
        padding: 30px 15px;
    }

    .lt-about-section .lt-about-inner .lt-about-text-col .lt-about-heading {
        font-size: 22px;
    }

    .lt-about-section .lt-about-inner .lt-about-text-col .lt-about-body {
        font-size: 14px;
    }
}

/* ================================================
   SECCIÓN 2: Contenedores / Tarjetas
   ================================================ */
.lt-contenedores-section {
    font-family: 'DM Sans', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    box-sizing: border-box;
}

.lt-contenedores-section .lt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.lt-contenedores-section .lt-col-horizontal {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
    min-height: 0;
}

.lt-contenedores-section .lt-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.lt-contenedores-section .lt-card-wrapper {
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.lt-contenedores-section .lt-card-img-wrapper {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    display: flex;
    position: relative;
}

.lt-contenedores-section .lt-card.vertical .lt-card-img-wrapper {
    flex: 1;
    min-height: 0;
}

.lt-contenedores-section .lt-card.horizontal {
    flex: 1;
}

.lt-contenedores-section .lt-card.horizontal .lt-card-img-wrapper {
    flex: 1;
    min-height: 0;
}

.lt-contenedores-section .lt-card-img-wrapper picture {
    width: 100%;
    height: 100%;
    display: block;
}

.lt-contenedores-section .lt-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lt-contenedores-section .lt-card-content {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-top: -45px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    flex-shrink: 0;
}

.lt-contenedores-section .lt-card.vertical .lt-card-content {
    height: 180px;
}

.lt-contenedores-section .lt-card.horizontal .lt-card-content {
    height: 180px;
}

.lt-contenedores-section .lt-card-texts {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.lt-contenedores-section .lt-card-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-align: left;
}

.lt-contenedores-section .lt-card-text {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

.lt-contenedores-section .lt-card-logo {
    width: 65px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
}

.lt-contenedores-section .lt-section-header {
    margin-bottom: 30px;
    text-align: left;
}

.lt-contenedores-section .lt-section-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 34px;
    color: #005EAD;
    margin: 0 0 10px 0;
    font-family: 'DM Sans', sans-serif;
}

.lt-contenedores-section .lt-section-subtitle {
    font-size: 21px;
    font-weight: 400;
    line-height: 24px;
    color: #333333;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

/* Responsive - Sección 2 */
@media (max-width: 991px) {
    .lt-contenedores-section .lt-section-title {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    .lt-contenedores-section .lt-section-subtitle {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .lt-contenedores-section .lt-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .lt-contenedores-section .lt-card.vertical {
        order: 1 !important;
        grid-column: 1 / -1 !important;
    }

    .lt-contenedores-section div.lt-col-horizontal {
        grid-column: 1 / -1 !important;
        order: 2 !important;
        display: grid !important;
        grid-template-rows: 1fr !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        align-items: stretch !important;
    }

    .lt-contenedores-section div.lt-col-horizontal .lt-card.horizontal,
    .lt-contenedores-section div.lt-col-horizontal .lt-card.horizontal .lt-card-wrapper {
        height: 100% !important;
    }

    .lt-contenedores-section .lt-card.vertical .lt-card-img-wrapper,
    .lt-contenedores-section .lt-card.vertical .lt-card-img-wrapper img.lt-card-img {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }

    .lt-contenedores-section .lt-card.horizontal .lt-card-wrapper .lt-card-img-wrapper {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        width: 100% !important;
        flex: none !important;
        position: relative !important;
        overflow: hidden !important;
        display: block !important;
    }

    .lt-contenedores-section .lt-card.horizontal .lt-card-wrapper .lt-card-img-wrapper img.lt-card-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .lt-contenedores-section .lt-card-content {
        margin-top: 0 !important;
        box-shadow: none !important;
        padding: 20px !important;
        flex: 1 !important;
        display: flex !important;
        border-radius: 0 0 10px 10px !important;
    }

    .lt-contenedores-section .lt-card.vertical .lt-card-content {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        text-align: left !important;
        gap: 10px !important;
        min-height: auto !important;
    }

    .lt-contenedores-section .lt-card.horizontal .lt-card-content {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        text-align: left !important;
        flex: 1 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 20px !important;
    }

    .lt-contenedores-section .lt-card.horizontal .lt-card-texts {
        flex: none !important;
        display: block !important;
        width: 100% !important;
    }

    .lt-contenedores-section .lt-card-logo {
        display: none !important;
    }

    .lt-contenedores-section .lt-card-text {
        text-align: left !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .lt-contenedores-section .lt-card-title {
        font-size: 16px !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }

    .lt-contenedores-section .lt-card.horizontal .lt-card-title {
        min-height: 40px !important;
    }
}

@media (max-width: 600px) {
    .lt-contenedores-section {
        padding: 0px 15px;
    }

    .lt-contenedores-section .lt-grid {
        gap: 15px;
    }

    .lt-contenedores-section .lt-col-horizontal {
        gap: 20px;
    }

    .lt-contenedores-section .lt-card.horizontal .lt-card-content {
        min-height: 0 !important;
    }
}

/* ================================================
   SECCIÓN 3: Carrusel / Logos
   ================================================ */
.carrusel-section {
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    width: 100%;
}

.carrusel-section .carrusel-container {
    padding: 20px 0;
    overflow: hidden;
}

.carrusel-section .carrusel-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

.carrusel-section .logo-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.carrusel-section .logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Responsive - Sección 3 */
@media (max-width: 768px) {
    .carrusel-section .logo-item {
        width: 180px !important;
        min-width: 180px !important;
        height: 80px !important;
        min-height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
        padding: 0px !important;
        flex-shrink: 0 !important;
    }

    .carrusel-section .logo-item img {
        width: 100% !important;
        height: 100% !important;
        max-width: 180px !important;
        max-height: 80px !important;
        object-fit: contain !important;
        object-position: center !important;
        padding: 0px !important;
        margin: 0px !important;
        box-sizing: border-box !important;
    }

    .carrusel-section .carrusel-track {
        gap: 0px !important;
    }

    .carrusel-section .carrusel-container {
        padding: 8px 0 !important;
    }
}

/* ================================================
   BLOG LANDING PAGE
   ================================================ */
:root {
    --blog-primary: #006CB4;
    --blog-font-sans: 'Outfit', 'Inter', sans-serif;
}

.lt-blog-landing-isolated-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.lt-blog-landing-wrapper {
    background-color: #ffffff;
    padding: 60px 20px 80px;
    font-family: var(--blog-font-sans);
    color: #000;
    min-height: 100vh;
}

.lt-blog-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--blog-primary) !important;
    letter-spacing: -0.03em;
}

/* ================================================
   MENÚ MÓVIL (ElementsKit)
   ================================================ */
@media (max-width: 1024px) {

    .elementskit-menu-container {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        top: -110vh !important;
        height: auto !important;
        min-height: 520px;
        background-color: #006CB4 !important;
        transition: top 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        position: fixed !important;
        z-index: 99999 !important;
        padding-bottom: 50px !important;
    }

    .elementskit-menu-container.active {
        top: 0 !important;
    }

    .elementskit-nav-logo {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10 !important;
        padding: 15px 0 15px 22px !important;
        overflow: hidden !important;
    }

    /* Anular el padding del <a> dentro del logo */
    .elementskit-nav-logo a {
        padding: 0 !important;
        margin: 0 !important;
        display: inline-block !important;
    }

    .elementskit-nav-logo img {
        max-width: 240px !important;
        height: 65px !important;
        object-fit: contain !important;
        object-position: left center !important;
        margin: 0 !important;
        margin-left: -10px !important;
        display: block !important;
    }

    .elementskit-menu-close {
        position: absolute !important;
        top: 27px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: transparent !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .elementskit-menu-close:before {
        content: "\00d7" !important;
        color: #ffffff !important;
        font-size: 40px !important;
        font-family: Arial, sans-serif !important;
        line-height: 1 !important;
        display: block !important;
    }

    .elementskit-menu-close i {
        display: none !important;
    }

    .elementskit-navbar-nav {
        margin-top: 90px !important;
        padding: 0 !important;
    }

    .elementskit-navbar-nav>li>a {
        padding: 18px 22px !important;
        color: #ffffff !important;
        font-size: 20px !important;
        font-weight: 300 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .elementskit-submenu-panel,
    .elementskit-dropdown {
        position: relative !important;
        display: none;
        width: 100% !important;
        background: transparent !important;
    }

    .ekit-dropdown-active>.elementskit-submenu-panel,
    .ekit-dropdown-active>.elementskit-dropdown {
        display: block !important;
    }

    .elementskit-submenu-panel li a,
    .elementskit-dropdown li a {
        color: #ffffff !important;
        padding: 12px 25px 12px 45px !important;
        display: flex !important;
        align-items: center !important;
        min-height: 50px !important;
        background: transparent !important;
    }

    .elementskit-submenu-panel li a span,
    .elementskit-dropdown li a span {
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: normal !important;
        line-height: 1.3 !important;
    }

    .elementskit-submenu-panel img,
    .elementskit-dropdown img {
        filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
        width: 22px !important;
        height: 22px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    .elementskit-menu-overlay {
        display: none !important;
    }

    .elementskit-submenu-indicator {
        color: #ffffff !important;
        border: none !important;
    }
}

/* ================================================
   AJUSTE DE ALINEACIÓN DEL HEADER PRINCIPAL
   Alinear los elementos del header al ancho del contenido (1200px)
   ================================================ */
.elementor-location-header .e-con-inner,
.elementor-location-header .elementor-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* ================================================
   CORRECCIÓN DEL TAMAÑO Y RECORTE DEL LOGO
   Quita el exceso de espacio transparente vertical de la imagen
   ================================================ */
.lt-dynamic-logo-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    height: 60px !important; /* Alto visual deseado del contenedor */
    overflow: hidden !important;
    width: 295px !important; /* Forzamos ancho para evitar que columnas estrechas lo corten */
    min-width: 295px !important;
}

.lt-dynamic-logo-wrapper a {
    width: 100% !important;
    display: inline-block !important;
}

.lt-dynamic-logo-img {
    height: 110px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin-top: -25px !important;
    margin-bottom: -25px !important;
    display: block !important;
    margin-left: -24px !important;
}

/* En móviles reducimos el tamaño para que no desborde */
@media (max-width: 768px) {
    .lt-dynamic-logo-wrapper {
        height: 45px !important;
        width: 215px !important; /* Ancho proporcional en móviles */
        min-width: 215px !important;
    }
    .lt-dynamic-logo-img {
        height: 80px !important;
        margin-top: -18px !important;
        margin-bottom: -18px !important;
        margin-left: -18px !important; /* Ajuste proporcional del margen izquierdo */
    }
}

/* ================================================
   ENTRADAS DE BLOG INDIVIDUALES (SINGLE POSTS)
   ================================================ */
/* Ocultar el bloque de imagen con texto repetitivo (Hero) */
.single-post .lt-blog-hero {
    display: none !important;
}

/* Evitar que el header fijo tape el título del post */
.single-post .lt-blog-post {
    padding-top: 125px !important;
}

@media (max-width: 768px) {
    .single-post .lt-blog-post {
        padding-top: 110px !important; /* Espacio para el header fijo en móvil */
    }
}

/* Estilos de Tipografía y Alineación del Contenido */
.single-post .lt-blog-p,
.single-post .lt-blog-post__content p {
    text-align: left !important;
    margin-bottom: 18px !important;
    line-height: 1.8 !important;
    font-size: 17px !important;
}

.single-post .lt-blog-title,
.single-post .lt-blog-post__content h2 {
    color: #006CB4 !important;
    font-weight: 800 !important;
    text-align: left !important;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
}

.single-post .lt-blog-list {
    margin: 15px 0 25px 22px !important;
    padding: 0 !important;
    list-style-type: disc !important;
    text-align: left !important;
}

.single-post .lt-blog-list li {
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
    text-align: left !important;
    font-size: 16px !important;
}

/* Contenedores de Información Destacada (Tabla de contenidos, notas) */
.lt-blog-highlight,
.single-post .lt-blog-highlight {
    background-color: #f4f8fb !important; /* Fondo suave y elegante */
    border-left: 5px solid #006CB4 !important; /* Barra azul distintiva */
    padding: 25px 30px !important;
    border-radius: 10px !important;
    margin: 35px auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.lt-blog-highlight,
.lt-blog-highlight *,
.single-post .lt-blog-highlight,
.single-post .lt-blog-highlight * {
    text-align: left !important; /* Forzar siempre alineación izquierda en el listado/índice */
}

/* Corregir el tamaño de los emojis (como el portapapeles) en el índice y contenido de forma hiper-agresiva */
img.emoji,
.emoji,
.lt-blog-highlight img,
.lt-blog-highlight img.emoji,
.lt-blog-post img.emoji,
.lt-blog-post__content img.emoji,
.lt-blog-post__content .emoji {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 6px !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Contenedor CTA de Cotización / Diagnóstico (Fondo azul con letras blancas) */
.lt-blog-cta-container,
.single-post .lt-blog-cta-container {
    background: #006CB4 !important; /* Forzar el azul corporativo de LT Group */
    background-color: #006CB4 !important;
    background-image: none !important; /* Desactivar cualquier degradado negro */
    color: #ffffff !important;
    padding: 40px 35px !important;
    border-radius: 16px !important;
    margin: 45px auto !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 108, 180, 0.15) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ocultar la caja de contacto genérica del widget del blog ya que se incluye una caja personalizada en el contenido */
.lt-blog-post__contact-cta {
    display: none !important;
}

.lt-blog-cta-container h3,
.single-post .lt-blog-cta-container h3 {
    color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: 26px !important;
    font-weight: 800 !important;
}

.lt-blog-cta-container p,
.lt-blog-cta-container .lt-blog-p,
.single-post .lt-blog-cta-container p,
.single-post .lt-blog-cta-container .lt-blog-p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 25px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.lt-blog-cta-container strong,
.lt-blog-cta-container b,
.single-post .lt-blog-cta-container strong,
.single-post .lt-blog-cta-container b {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.lt-blog-btn,
.single-post .lt-blog-btn {
    display: inline-block !important;
    background-color: #ffffff !important; /* Botón blanco */
    color: #006CB4 !important; /* Texto azul */
    padding: 14px 32px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #ffffff !important;
}

.lt-blog-btn:hover,
.single-post .lt-blog-btn:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Forzar tamaño correcto, proporciones y diseño elegante en imágenes de las entradas */
.single-post .lt-blog-post img,
.single-post .entry-content img,
.single-post .elementor-text-editor img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

/* Centrado para figuras y contenedores de imágenes */
.single-post .lt-blog-post img.aligncenter,
.single-post .entry-content img.aligncenter,
.single-post .elementor-text-editor img.aligncenter,
.single-post .lt-blog-post figure,
.single-post .entry-content figure,
.single-post .elementor-text-editor figure,
.single-post .wp-caption {
    display: block !important;
    margin: 30px auto !important;
    text-align: center !important;
}

/* Estilo elegante para leyendas/captions debajo de las imágenes */
.single-post .wp-caption-text,
.single-post figcaption {
    font-size: 13px !important;
    color: #888888 !important;
    margin-top: 10px !important;
    text-align: center !important;
    font-style: italic !important;
}

/* Soporte para contenedores personalizados de imágenes de blogs (lt-blog-img-container) */
.single-post .lt-blog-img-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 30px auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.single-post .lt-blog-img-container img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

/* Estilos de la clase directa lt-blog-img para forzar tamaño correcto y centrado en los posts */
.lt-blog-img {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 30px auto !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

.single-post .lt-blog-caption {
    font-size: 13px !important;
    color: #888888 !important;
    margin-top: 10px !important;
    text-align: center !important;
    font-style: italic !important;
    display: block !important;
}

/* Optimización Responsive para Móviles */
@media (max-width: 768px) {
    .single-post .lt-blog-post {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .single-post .lt-blog-p,
    .single-post .lt-blog-post__content p {
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-bottom: 14px !important;
    }
    
    .single-post .lt-blog-title,
    .single-post .lt-blog-post__content h2 {
        font-size: 22px !important;
        margin-top: 25px !important;
        margin-bottom: 12px !important;
    }
    
    .single-post .lt-blog-list {
        margin: 10px 0 20px 18px !important;
    }
    
    .single-post .lt-blog-list li {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .lt-blog-highlight,
    .single-post .lt-blog-highlight {
        padding: 20px 22px !important;
        margin: 25px auto !important;
    }
    
    .lt-blog-cta-container,
    .single-post .lt-blog-cta-container {
        padding: 30px 20px !important;
        margin: 30px auto !important;
    }
    
    .lt-blog-cta-container h3,
    .single-post .lt-blog-cta-container h3 {
        font-size: 20px !important;
    }
    
    .lt-blog-cta-container p,
    .lt-blog-cta-container .lt-blog-p,
    .single-post .lt-blog-cta-container p,
    .single-post .lt-blog-cta-container .lt-blog-p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .lt-blog-btn,
    .single-post .lt-blog-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
        width: 100% !important; /* Botón de ancho completo en móvil */
        box-sizing: border-box !important;
        text-align: center !important;
    }
}

/* ================================================
   CORRECCIÓN ALTURA SÉPTIMA SECCIÓN (VIDEO BACKGROUND HERO)
   ================================================ */
.elementor-widget-lt_septima_seccion,
.elementor-widget-lt-septima-seccion,
.elementor-widget-lt_septima_seccion .elementor-widget-container,
.elementor-widget-lt-septima-seccion .elementor-widget-container {
    min-height: 500px !important;
    height: 100% !important;
}

.lt-video-hero-section {
    height: 100% !important;
    min-height: 500px !important;
}

.lt-video-hero-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.lt-video-hero-bg video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Forzar al contenedor padre a respetar la altura del hero y limpiar espacios */
.e-con:has([class*="lt_septima_seccion"]),
.e-con-inner:has([class*="lt_septima_seccion"]),
.e-con:has([class*="lt-septima-seccion"]),
.e-con-inner:has([class*="lt-septima-seccion"]),
.elementor-element-4fb1e15,
.elementor-element-4fb1e15 > .e-con-inner {
    height: auto !important;
    min-height: 500px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ocultar cualquier otro widget en la misma sección para evitar que estire el contenedor */
.e-con:has([class*="lt_septima_seccion"]) > .e-con-inner > .elementor-widget:not(.elementor-widget-lt_septima_seccion):not(.elementor-widget-lt-septima-seccion),
.e-con:has([class*="lt_septima_seccion"]) > .elementor-widget:not(.elementor-widget-lt_septima_seccion):not(.elementor-widget-lt-septima-seccion),
.elementor-element-4fb1e15 > .e-con-inner > .elementor-widget:not(.elementor-widget-lt_septima_seccion):not(.elementor-widget-lt-septima-seccion),
.elementor-element-4fb1e15 > .elementor-widget:not(.elementor-widget-lt_septima_seccion):not(.elementor-widget-lt-septima-seccion) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .elementor-widget-lt_septima_seccion,
    .elementor-widget-lt-septima-seccion,
    .elementor-widget-lt_septima_seccion .elementor-widget-container,
    .elementor-widget-lt-septima-seccion .elementor-widget-container,
    .lt-video-hero-section,
    .e-con:has([class*="lt_septima_seccion"]),
    .e-con-inner:has([class*="lt_septima_seccion"]),
    .e-con:has([class*="lt-septima-seccion"]),
    .e-con-inner:has([class*="lt-septima-seccion"]),
    .elementor-element-4fb1e15,
    .elementor-element-4fb1e15 > .e-con-inner {
        min-height: 450px !important;
    }
}

.lt-video-hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    background-image: linear-gradient(180deg, #006CB4 78%, #000000 92%) !important;
    pointer-events: none !important;
}

/* Ajustar tamaño del icono de Plásticos en el menú de soluciones */
.elementskit-navbar-nav .elementskit-submenu-panel > li > a img.icono-sub-menu-soluciones[alt*="plasticos" i],
.elementskit-navbar-nav .elementskit-submenu-panel > li > a img.icono-sub-menu-soluciones[src*="plasticos" i],
.elementskit-navbar-nav .elementskit-submenu-panel > li img.icono-sub-menu-soluciones[alt*="plasticos" i],
.elementskit-navbar-nav .elementskit-submenu-panel > li img.icono-sub-menu-soluciones[src*="plasticos" i],
img.icono-sub-menu-soluciones[alt*="plasticos" i],
img.icono-sub-menu-soluciones[src*="plasticos" i] {
    width: 20px !important;
    height: 30px !important;
    min-width: 20px !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Hacer más gruesos los iconos de Ergonomía y Automatización en escritorio */
@media (min-width: 769px) {
    img.icono-sub-menu-soluciones[alt*="ergonomia"],
    img.icono-sub-menu-soluciones[src*="ergonomia"],
    img.icono-sub-menu-soluciones[alt*="automatizacion"],
    img.icono-sub-menu-soluciones[src*="automatizacion"] {
        filter: drop-shadow(1px 0 0 #006cb4) drop-shadow(-1px 0 0 #006cb4) drop-shadow(0 1px 0 #006cb4) drop-shadow(0 -1px 0 #006cb4) !important;
    }
}