/* ==============================> BLOG CARRUSEL */

.blog-carrusel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* -> CONTAINER */

.blog-carrusel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* -> SWIPER */

.blog-carrusel-swiper {
    width: 100%;
    overflow: hidden;
}

.blog-carrusel-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.blog-carrusel-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* -> NAVEGACION */

.blog-carrusel-nav {
	position: absolute;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
	font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--e-global-color-secondary);
	opacity: 0;
    z-index: 10;
}

.blog-carrusel-nav.blog-carrusel-prev {
	left: -64px;
}

.blog-carrusel-nav.blog-carrusel-next {
	right: -64px;
}

.blog-carrusel-wrapper:hover .blog-carrusel-nav {
	opacity: 1;
}

button[disabled].blog-carrusel-nav.blog-carrusel-prev{
	opacity: 0;
}

.blog-carrusel-nav:hover {
    border-color: var(--e-global-color-primary);
	background: var(--e-global-color-primary) !important;
    color: #fff;
    transform: scale(1.05);
}

.blog-carrusel-nav:active {
    transform: scale(0.95);
}

.blog-carrusel-nav.swiper-button-disabled {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
}

/* -> ITEM */

.blog-carrusel-item {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-carrusel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	background: #fff;
}

.blog-carrusel-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* -> IMAGEN */

.blog-carrusel-imagen {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.blog-carrusel-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-carrusel-item:hover .blog-carrusel-imagen img {
    transform: scale(1.05);
}

/* -> CONTENIDO */

.blog-carrusel-contenido {
    padding: 0px 16px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-carrusel-categoria {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--e-global-color-text);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.blog-carrusel-item:hover .blog-carrusel-categoria {
    color: var(--e-global-color-primary);
}

.blog-carrusel-titulo {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.blog-carrusel-item:hover .blog-carrusel-titulo {
    color: var(--e-global-color-primary);
}

.blog-carrusel-extracto {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #666;
    flex-grow: 1;
}

.blog-carrusel-fecha {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    margin-top: auto;
}

/* -> SIN RESULTADOS */

.blog-carrusel-sin-resultados {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}

/* -> RESPONSIVE TABLET */

@media (max-width: 1024px) {
    .blog-carrusel-container {
        gap: 20px;
    }

    .blog-carrusel-nav {
        width: 44px;
        height: 44px;
    }

    .blog-carrusel-nav svg {
        width: 22px;
        height: 22px;
    }

    .blog-carrusel-imagen {
        height: 160px;
    }

    .blog-carrusel-titulo {
        font-size: 22px;
    }

    .blog-carrusel-extracto {
        font-size: 15px;
    }
}

/* -> RESPONSIVE MOBILE */

@media (max-width: 768px) {
    .blog-carrusel-container {
        gap: 15px;
    }

    .blog-carrusel-nav {
        width: 40px;
        height: 40px;
    }

    .blog-carrusel-nav svg {
        width: 20px;
        height: 20px;
    }

    .blog-carrusel-imagen {
        height: 180px;
    }

    .blog-carrusel-titulo {
        font-size: 20px;
    }

    .blog-carrusel-extracto {
        font-size: 14px;
    }

    .blog-carrusel-categoria {
        font-size: 13px;
    }

    .blog-carrusel-fecha {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-carrusel-container {
        gap: 12px;
    }

    .blog-carrusel-nav {
        width: 36px;
        height: 36px;
        border-width: 1.5px;
    }

    .blog-carrusel-nav svg {
        width: 18px;
        height: 18px;
    }

    .blog-carrusel-imagen {
        height: 200px;
    }

    .blog-carrusel-titulo {
        font-size: 18px;
    }
}


/* ==============================> BLOG ARCHIVO */

.blog-archivo-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.blog-archivo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
}

/* -> ITEM */

.blog-archivo-item {
    opacity: 0;
    border-radius: 8px;
    transform: translateY(20px);
    animation: blogArchivoFadeIn 0.5s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-archivo-item:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-archivo-item:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-archivo-item:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-archivo-item:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-archivo-item:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-archivo-item:nth-child(6) {
    animation-delay: 0.6s;
}

.blog-archivo-item:nth-child(7) {
    animation-delay: 0.7s;
}

.blog-archivo-item:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes blogArchivoFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-archivo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-archivo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* -> IMAGEN */

.blog-archivo-imagen {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blog-archivo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-archivo-item:hover .blog-archivo-imagen img {
    transform: scale(1.05);
}

/* -> CONTENIDO */

.blog-archivo-contenido {
    padding: 0px 16px 12px;
}

.blog-archivo-categoria {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--e-global-color-text);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.blog-archivo-item:hover .blog-archivo-categoria {
    color: var(--e-global-color-primary);
}

.blog-archivo-titulo {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.blog-archivo-item:hover .blog-archivo-titulo {
    color: var(--e-global-color-primary);
}

.blog-archivo-extracto {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #666;
}

.blog-archivo-fecha {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

/* -> PAGINACION */

.blog-archivo-paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.blog-archivo-prev,
.blog-archivo-next,
.blog-archivo-numero {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: var(--e-global-color-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.blog-archivo-prev:hover,
.blog-archivo-next:hover,
.blog-archivo-numero:hover {
    border-color: var(--e-global-color-primary);
    color: var(--e-global-color-primary);
    transform: translateY(-2px);
}

.blog-archivo-prev:disabled,
.blog-archivo-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.blog-archivo-numero.activo {
    background: var(--e-global-color-primary);
    color: #fff;
    border-color: var(--e-global-color-primary);
}

.blog-archivo-numeros {
    display: flex;
    gap: 5px;
}

/* -> LOADER */

.blog-archivo-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loader-spinner {
    display: block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--e-global-color-primary);
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.blog-archivo-sin-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}

/* -> RESPONSIVE TABLET */

@media (max-width: 1024px) {
    .blog-archivo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* -> RESPONSIVE MOBILE */

@media (max-width: 768px) {
    .blog-archivo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-archivo-titulo {
        font-size: 20px;
    }

    .blog-archivo-extracto {
        font-size: 14px;
    }

    .blog-archivo-paginacion {
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-archivo-prev,
    .blog-archivo-next,
    .blog-archivo-numero {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-archivo-grid {
        grid-template-columns: 1fr;
    }

    .blog-archivo-imagen {
        height: 200px;
    }
}