/* Variables globales de style.css para tipografía y separación lateral.
   El padding horizontal global se aplica una sola vez al bloque completo.
   La imagen compensa el margen izquierdo para llegar al borde del bloque.
   Las columnas interiores mantienen padding cero; flechas y estados se conservan. */

/* ================================================================
LOMISA · FEATURE SLIDER
PATRÓN NO SINCRONIZADO · 2 COLUMNAS CON CONTENIDO DINÁMICO

Componente reutilizable:
- Imagen intercambiable
- Contenido intercambiable
- Flechas
- Pestañas
================================================================ */

/* ================================================================
01. ESTRUCTURA GENERAL
================================================================ */

.lm-feature-slider {
    position: relative;

    width: 100%;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 var(--lm-space-inline) !important;

    box-sizing: border-box;

    overflow: hidden;
}

/* Wrapper general de Gutenberg */

.lm-feature-slider > .wp-block-group__inner-container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* ----------------------------------------------------------------
ESTRUCTURA PRINCIPAL · 2 COLUMNAS
---------------------------------------------------------------- */

.lm-feature-slider__main {
    position: relative;

    width: 100%;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    align-items: stretch !important;
}

/* Evitar márgenes heredados de las columnas */

.lm-feature-slider__main > .wp-block-column {
    min-width: 0;

    margin: 0 !important;
}

/* ================================================================
02. COLUMNA DE IMÁGENES
================================================================ */

.lm-feature-slider__media {
    position: relative !important;

    display: grid !important;

    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;

    aspect-ratio: 16 / 9;

    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible;
}

/* ----------------------------------------------------------------
ESTADO DE IMAGEN
---------------------------------------------------------------- */

.lm-feature-slider__media-slide {
    position: relative !important;

    grid-column: 1 !important;
    grid-row: 1 !important;

    display: block !important;

    width: calc(100% + var(--lm-space-inline)) !important;
    height: 100% !important;

    min-width: 0;

    margin: 0 0 0 calc(-1 * var(--lm-space-inline)) !important;
    padding: 0 !important;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

/* Imagen activa */

.lm-feature-slider__media-slide.is-active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}

/* ----------------------------------------------------------------
WRAPPER INTERNO DE GUTENBERG
---------------------------------------------------------------- */

.lm-feature-slider
.lm-feature-slider__media-slide
> .wp-block-group__inner-container {
    width: 100% !important;
    max-width: none !important;

    height: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* ----------------------------------------------------------------
FIGURE
---------------------------------------------------------------- */

.lm-feature-slider__media-slide figure,
.lm-feature-slider__media-slide .wp-block-image {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* ----------------------------------------------------------------
IMAGEN
---------------------------------------------------------------- */

.lm-feature-slider__media-slide img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;
}

/* ================================================================
03. COLUMNA DE CONTENIDOS
================================================================ */

.lm-feature-slider__content {
    position: relative !important;

    display: grid !important;

    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 1fr auto !important;

    min-width: 0;

    align-self: stretch !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: var(--lm-font-body);
    line-height: var(--lm-line-body);
}

/* ----------------------------------------------------------------
SLIDES DE CONTENIDO
---------------------------------------------------------------- */

.lm-feature-slider__slide {
    display: block !important;

    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0;

    margin: 0 !important;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .30s ease,
        visibility .30s ease;
}

/* Slide activo */

.lm-feature-slider__slide.is-active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}

/* Wrapper interno */

.lm-feature-slider__slide > .wp-block-group__inner-container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
}

/* ================================================================
04. ENLACE · VER ÁREA
================================================================ */

.lm-feature-slider
a.gb-text.lm-feature-slider__link {
    display: inline-block !important;

    width: auto !important;
    min-width: 0 !important;
    height: auto !important;

    margin: 24px 0 0 !important;
    padding: 0 0 6px !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(0, 59, 115, .35) !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #003B73 !important;

    font-family: inherit !important;
    font-size: var(--lm-font-link, 11px) !important;
    line-height: var(--lm-line-link, 1.3) !important;
    font-weight: 600 !important;

    letter-spacing: var(--lm-tracking-link, .08em) !important;

    text-align: left !important;
    text-decoration: none !important;
    text-transform: uppercase !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        color .25s ease,
        border-color .25s ease;
}

.lm-feature-slider
a.gb-text.lm-feature-slider__link:hover {
    border-bottom-color: #0058A3 !important;

    background: transparent !important;

    color: #0058A3 !important;
}

/* ================================================================
05. NAVEGACIÓN
================================================================ */

.lm-feature-slider
.lm-feature-slider__nav {
    position: relative !important;

    grid-column: 1 !important;
    grid-row: 2 !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    width: 100% !important;
    max-width: none !important;

    margin: auto 0 0 !important;
    padding: 38px 0 50px !important;

    background: transparent !important;
}

/* ----------------------------------------------------------------
RESET WRAPPERS GUTENBERG
---------------------------------------------------------------- */

.lm-feature-slider
.lm-feature-slider__nav
> .wp-block-group__inner-container,

.lm-feature-slider
.lm-feature-slider__arrows
> .wp-block-group__inner-container,

.lm-feature-slider
.lm-feature-slider__tabs
> .wp-block-group__inner-container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
}

/* ================================================================
06. FLECHAS
================================================================ */

.lm-feature-slider
.lm-feature-slider__arrows {
    width: 100% !important;

    margin: 0 0 28px !important;
    padding: 0 !important;

    background: transparent !important;
}

.lm-feature-slider
.lm-feature-slider__arrows
> .wp-block-group__inner-container {
    display: flex !important;

    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 8px !important;
}

/* ----------------------------------------------------------------
RESET GENERATEBLOCKS · ANTERIOR / SIGUIENTE
---------------------------------------------------------------- */

.lm-feature-slider
a.gb-text.lm-feature-slider__prev,

.lm-feature-slider
a.gb-text.lm-feature-slider__next {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 38px !important;

    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;

    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(0, 59, 115, .22) !important;
    border-radius: 50% !important;

    background: transparent !important;

    color: #003B73 !important;

    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 400 !important;

    letter-spacing: 0 !important;

    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.lm-feature-slider
a.gb-text.lm-feature-slider__prev:hover,

.lm-feature-slider
a.gb-text.lm-feature-slider__next:hover {
    border-color: #0058A3 !important;

    background: #0058A3 !important;

    color: #FFFFFF !important;
}

/* ================================================================
07. PESTAÑAS
================================================================ */

.lm-feature-slider
.lm-feature-slider__tabs {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
}

.lm-feature-slider
.lm-feature-slider__tabs
> .wp-block-group__inner-container {
    display: grid !important;

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    width: 100% !important;
    max-width: none !important;

    gap: 16px !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* ----------------------------------------------------------------
RESET GENERATEBLOCKS · PESTAÑAS
---------------------------------------------------------------- */

.lm-feature-slider
a.gb-text.lm-feature-slider__tab {
    position: relative;

    overflow-wrap: anywhere;

    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 13px 0 0 !important;

    border: 0 !important;
    border-top: 1px solid rgba(0, 59, 115, .20) !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #7892AA !important;

    font-family: inherit !important;
    font-size: var(--lm-font-link, 10px) !important;
    line-height: var(--lm-line-link, 1.3) !important;
    font-weight: 600 !important;

    letter-spacing: var(--lm-tracking-link, .08em) !important;

    text-align: left !important;
    text-decoration: none !important;
    text-transform: uppercase !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        color .25s ease;
}

/* Línea superior azul */

.lm-feature-slider
a.gb-text.lm-feature-slider__tab::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--lm-color-accent);

    transition:
        width .30s ease;
}

.lm-feature-slider
a.gb-text.lm-feature-slider__tab:hover,
.lm-feature-slider
a.gb-text.lm-feature-slider__tab.is-active {
    background: transparent !important;

    color: #003B73 !important;
}

.lm-feature-slider
a.gb-text.lm-feature-slider__tab.is-active::before {
    width: 100%;
}

/* ================================================================
08. FOCO / ACCESIBILIDAD
================================================================ */

.lm-feature-slider
a.gb-text.lm-feature-slider__prev:focus-visible,

.lm-feature-slider
a.gb-text.lm-feature-slider__next:focus-visible,

.lm-feature-slider
a.gb-text.lm-feature-slider__tab:focus-visible,

.lm-feature-slider
a.gb-text.lm-feature-slider__link:focus-visible {
    outline: 2px solid #0058A3 !important;
    outline-offset: 4px;
}

/* ================================================================
RESPONSIVE · IMAGEN SOBRE EL CONTENIDO HASTA 1300px
Evita estrechar la imagen contra una columna de texto alta.
================================================================ */

@media (max-width: 1300px) {

    .lm-feature-slider .lm-feature-slider__main {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }

    .lm-feature-slider .lm-feature-slider__main > .wp-block-column {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: none !important;
    }

    /* La imagen ocupa el bloque completo, compensando ambos márgenes. */
    .lm-feature-slider .lm-feature-slider__main > .lm-feature-slider__media {
        width: calc(100% + var(--lm-space-inline) + var(--lm-space-inline)) !important;
        margin: 0 0 0 calc(-1 * var(--lm-space-inline)) !important;
        aspect-ratio: 16 / 9;
        height: auto !important;
        min-height: 0 !important;
        align-self: flex-start !important;
        overflow: hidden;
    }

    .lm-feature-slider .lm-feature-slider__media-slide {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ================================================================
09. TABLET
================================================================ */

@media (max-width: 1200px) {

    .lm-feature-slider
    .lm-feature-slider__nav {
        padding-top: 32px !important;
    }

    .lm-feature-slider
    .lm-feature-slider__arrows {
        margin-bottom: 24px !important;
    }

    .lm-feature-slider
    .lm-feature-slider__tabs
    > .wp-block-group__inner-container {
        gap: 12px !important;
    }

    .lm-feature-slider
    a.gb-text.lm-feature-slider__tab {
        font-size: var(--lm-font-link, 9px) !important;
        letter-spacing: var(--lm-tracking-link, .06em) !important;
    }

}

/* ================================================================
10. MÓVIL
================================================================ */

@media (max-width: 650px) {

    .lm-feature-slider
    .lm-feature-slider__nav {
        padding-top: 26px !important;
    }

    .lm-feature-slider
    .lm-feature-slider__arrows {
        margin-bottom: 18px !important;
    }

    .lm-feature-slider
    a.gb-text.lm-feature-slider__prev,

    .lm-feature-slider
    a.gb-text.lm-feature-slider__next {
        flex: 0 0 36px !important;

        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;

        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }

    .lm-feature-slider
    .lm-feature-slider__tabs
    > .wp-block-group__inner-container {
        gap: 9px !important;
    }

    .lm-feature-slider
    a.gb-text.lm-feature-slider__tab {
        padding-top: 10px !important;

        font-size: var(--lm-font-link, 9px) !important;
        line-height: var(--lm-line-link, 1.25) !important;

        letter-spacing: var(--lm-tracking-link, .04em) !important;
    }

    .lm-feature-slider
    a.gb-text.lm-feature-slider__link {
        margin-top: 18px !important;

        font-size: var(--lm-font-link, 10px) !important;
    }

}