/* Reset general */
.exp28-module {
    box-sizing: border-box;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 0 !important;
    overflow: visible;
    font-family: 'cid', sans-serif;
    background-color: transparent;
    position: relative;
}

.exp28-module * {
    box-sizing: border-box;
}

/* Contenedor interno */
.exp28-inner {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Encabezado */
.exp28-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    position: relative;
}

/* Título */
.exp28-title {
    font-family: 'spn', serif;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 300;
    line-height: 1;
    margin: 0;
    color: #000000;
    letter-spacing: 2px;
}

/* Contenedor derecho del header */
.exp28-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* View All */
.exp28-view-all-link {
    font-size: clamp(12px, 1.3vw, 16px);
    color: #000;
    text-decoration: none !important;
    font-weight: normal;
    text-transform: uppercase;
    font-family: 'cid', sans-serif;
    border-bottom: 1px solid;
}

.exp28-view-all-link:hover {
    text-decoration: none !important;
    color: #000;
}

/* Navegación en desktop */
.exp28-nav-desktop {
    display: flex;
    gap: 5px;
}

/* Botones de navegación */
.exp28-nav-button {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 8px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none !important;
}

.exp28-nav-button:hover,
.exp28-nav-button:focus,
.exp28-nav-button:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.exp28-nav-button svg {
    stroke: #000 !important;
    width: clamp(20px, 2.2vw, 32px);
    height: clamp(20px, 2.2vw, 32px);
}

/* Contenedor slider */
.exp28-slider {
    position: relative;
    width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    overflow: visible;
}

/* Contenedor del carrusel */
.exp28-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: clamp(350px, 40vw, 500px);
}

/* En desktop: ocultar la navegación móvil y mostrar el carousel completo */
@media (min-width: 768px) {
    .exp28-mobile-nav {
        display: block !important;
    }
    
    .exp28-mobile-arrow {
        display: none !important;
    }
    
    .exp28-carousel {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Contenedor de las slides */
.exp28-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    gap: 10px;
    align-items: stretch;
}

/* Slides individuales */
.exp28-slide {
    flex-shrink: 0;
    height: 100%;
    display: flex;
}

/* Tamaños específicos para desktop */
.exp28-slide:nth-child(odd) {
    width: calc(70% - 5px);
}

.exp28-slide:nth-child(even) {
    width: calc(40% - 5px);
}

.exp28-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    background-color: #f9f9f9;
}

.exp28-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Contenedor de imagen */
.exp28-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Desktop: Imágenes que cubren todo */
@media (min-width: 768px) {
    .exp28-module .exp28-image {
        width: 120% !important;
        height: 120% !important;
        object-fit: cover !important;
        object-position: center center !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: block;
        transition: transform 0.3s ease;
    }
    
    .exp28-card:hover .exp28-image {
        transform: translate(-50%, -50%) scale(1.05) !important;
    }
}

/* Información debajo del slider */
.exp28-info {
    text-align: left;
    max-width: 80%;
}

/* Meta categoría */
.exp28-category {
    font-family: 'cid', sans-serif;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: normal;
    text-transform: uppercase;
    color: #000000;
    display: inline-block;
    margin-bottom: 15px;
}

/* Título principal */
.exp28-main-title {
    font-family: 'spn', serif;
    font-size: 35px;
    line-height: 1.2;
    margin: 0 0 15px 0;
    font-weight: 300;
    color: #000;
}

/* Meta descripción */
.exp28-description {
    font-family: 'cid', sans-serif;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.5;
    color: #333;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
}

/* Fecha */
.exp28-date {
    font-family: 'cid', sans-serif;
    font-size: clamp(10px, 1vw, 12px);
    color: #666;
}

/* Ocultar flechas móviles en desktop */
.exp28-mobile-nav {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .exp28-module {
        padding: 40px 0 !important;
    }
    
    .exp28-header {
        margin-bottom: 30px;
    }
    
    .exp28-carousel {
        height: clamp(350px, 35vw, 450px);
    }
    
    .exp28-slider {
        margin-bottom: 30px;
    }
    
    .exp28-main-title {
        font-size: 45px;
    }
}

@media (max-width: 1024px) {
    .exp28-module {
        padding: 35px 0 !important;
    }
    
    .exp28-carousel {
        height: clamp(300px, 30vw, 400px);
    }
    
    .exp28-header-right {
        gap: 15px;
    }
    
    .exp28-slides {
        gap: 10px;
    }
    
    .exp28-main-title {
        font-size: 40px;
    }
}

@media (max-width: 900px) {
    .exp28-carousel {
        height: clamp(280px, 28vw, 380px);
    }
    
    .exp28-main-title {
        font-size: 35px;
    }
}

@media (max-width: 768px) {
    .exp28-module {
        padding: 30px 0 !important;
    }
    
    .exp28-header {
        margin-bottom: 20px;
    }
    
    .exp28-carousel {
        height: 280px;
    }
    
    .exp28-slider {
        margin-bottom: 20px;
    }
    
    .exp28-main-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .exp28-module {
        width: 100% !important;
        padding: 20px 0 !important;
        overflow: visible;
    }

    .exp28-inner {
        width: 100%;
        max-width: 100%;
        padding: 0 5%;
        margin: 0;
        position: relative;
        overflow: visible;
    }

    .exp28-header {
        margin-bottom: 20px;
        justify-content: space-between;
        align-items: center;
    }

    .exp28-header-right {
        position: static;
        gap: 0;
        display: flex;
    }

    .exp28-view-all-link {
        display: block !important;
        font-size: 14px;
    }

    .exp28-nav-desktop {
        display: none;
    }

    /* NUEVO: Contenedor con imagen y navegación - SIN padding extra */
    .exp28-slider {
        margin-bottom: 20px;
        position: relative;
        width: 100%;
        overflow: visible;
        display: block;
        padding: 0;
    }

    /* NUEVO: Navegación móvil alineada con el título */
    .exp28-mobile-nav {
        display: flex !important;
        align-items: center;
        gap: 8px;
        width: 100%;
        position: relative;
        justify-content: flex-start;
        margin: 0;
        padding: 0;
    }

    /* Botones de flecha móviles - alineados */
    .exp28-mobile-arrow {
        background: transparent !important;
        border: none !important;
        padding: 6px !important;
        cursor: pointer !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        position: static;
        z-index: 10;
        margin: 0;
    }

    .exp28-mobile-arrow svg {
        width: 20px !important;
        height: 20px !important;
        stroke: #000 !important;
        stroke-width: 2 !important;
    }

    /* Carousel más ancho y alineado */
    .exp28-carousel {
        margin: 0;
        width: 100%;
        max-width: calc(100% - 88px);
        position: relative;
        overflow: hidden;
        height: 140px;
        border-radius: 0;
        flex: 1;
    }

    .exp28-slides {
        height: 140px;
        gap: 0;
        align-items: normal;
        padding: 0;
        margin: 0;
    }

    .exp28-slide,
    .exp28-slide:nth-child(odd),
    .exp28-slide:nth-child(even) {
        width: 100%;
        height: 140px;
        display: block;
        flex-shrink: 0;
    }

    .exp28-slide .exp28-card {
        width: 100% !important;
        height: 140px !important;
        display: block;
        background-color: #f9f9f9;
        border-radius: 0;
    }

    .exp28-slide .exp28-image {
        margin-left: 0;
        width: 100% !important;
        height: 140px !important;
        object-fit: cover !important;
        object-position: center center !important;
        position: relative !important;
        transform: none !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0;
        aspect-ratio: 311/140;
    }

    .exp28-slide .exp28-image-wrapper {
        width: 100%;
        height: 140px;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
    }

    /* Información alineada con el título principal - SIN margin extra */
    .exp28-info {
        max-width: 100%;
        margin: 20px 0 0 0;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }

    .exp28-category {
        font-family: 'cid', sans-serif;
        font-size: 12px;
        font-weight: normal;
        text-transform: uppercase;
        color: #000;
        margin: 0;
        letter-spacing: 1px;
    }

    .exp28-main-title {
        font-family: 'spn', serif;
        font-weight: 300;
        font-size: 28px;
        line-height: 1.2;
        letter-spacing: 0;
        margin: 0;
        color: #000;
    }

    .exp28-description {
        font-family: 'cid', sans-serif;
        font-weight: 300;
        font-size: 14px;
        line-height: 1.5;
        letter-spacing: 0;
        color: #333;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Contenedor inferior con botón y fecha */
    .exp28-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 8px;
    }

    .exp28-button {
        width: auto;
        min-width: 120px;
        height: 40px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-family: 'cid', sans-serif;
        font-weight: normal;
        background-color: transparent;
        color: #000;
        border: 1px solid #000;
        text-decoration: none;
        text-transform: uppercase;
        transition: all 0.3s ease;
        letter-spacing: 1px;
    }

    .exp28-button:hover {
        background-color: #000;
        color: #fff;
    }

    .exp28-date {
        font-family: "cid", sans-serif;
        font-weight: 300;
        font-size: 14px; 
        line-height: 140%;
        letter-spacing: 0px;
        color: #666;
        margin: 0;
        display: block;
    }
} 