/* ==============================> CLÚSTER DE ENTRADAS */

.es-cluster-entrada {
    background: #ffffff;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.es-cluster-entrada:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.es-cluster-entrada-imagen {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.es-cluster-entrada-imagen a {
    display: block;
    width: 100%;
    height: 100%;
}

.es-cluster-entrada-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.es-cluster-entrada:hover .es-cluster-entrada-imagen img {
    transform: scale(1.05);
}

.es-cluster-entrada-contenido {
    padding: 12px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.es-cluster-entrada-categoria {
    font-size: 14px;
    font-weight: 500;
    color: var(--e-global-color-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.es-cluster-entrada-titulo {
    margin: 0 0 auto 0;
    padding-bottom: 12px;
}

.es-cluster-entrada-titulo a {
    font-size: 20px;
    line-height: 23px;
    font-weight: 700;
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.es-cluster-entrada-titulo a:hover {
    color: var(--e-global-color-primary);
}

.es-cluster-entrada-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.es-cluster-entrada-fecha {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.es-cluster-entrada-ver-mas {
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.es-cluster-entrada-ver-mas::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--e-global-color-primary);
    transition: width 0.3s ease;
}

.es-cluster-entrada-ver-mas:hover {
    color: #000;
}

.es-cluster-entrada-ver-mas:hover::after {
    width: 100%;
}

/* ==============================> CARRUSEL DE ENTRADAS */

.es-carrusel-entradas-wrapper {
    position: relative;
    padding: 0 40px;
}

.es-carrusel-entradas-wrapper .swiper {
    overflow: visible;
}

.es-carrusel-entradas-wrapper .swiper-slide {
    height: auto;
}

.es-carrusel-entradas-wrapper .swiper-button-next,
.es-carrusel-entradas-wrapper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.es-carrusel-entradas-wrapper .swiper-button-next::after,
.es-carrusel-entradas-wrapper .swiper-button-prev::after {
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 700;
}

.es-carrusel-entradas-wrapper .swiper-button-next:hover,
.es-carrusel-entradas-wrapper .swiper-button-prev:hover {
    background: var(--e-global-color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.es-carrusel-entradas-wrapper .swiper-button-next:hover::after,
.es-carrusel-entradas-wrapper .swiper-button-prev:hover::after {
    color: #ffffff;
}

.es-carrusel-entradas-wrapper .swiper-pagination {
    margin-top: 24px;
    position: relative;
}

.es-carrusel-entradas-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d0d0d0;
    opacity: 1;
    transition: all 0.3s ease;
}

.es-carrusel-entradas-wrapper .swiper-pagination-bullet-active {
    background: var(--e-global-color-primary);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .es-carrusel-entradas-wrapper {
        padding: 0 20px;
    }

    .es-carrusel-entradas-wrapper .swiper-button-next,
    .es-carrusel-entradas-wrapper .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .es-carrusel-entradas-wrapper .swiper-button-next::after,
    .es-carrusel-entradas-wrapper .swiper-button-prev::after {
        font-size: 14px;
    }
}

/* ==============================> ARCHIVO DE ENTRADAS */

.es-archivo-entradas-contenedor {
    width: 100%;
}

.es-archivo-entradas-titulo-busqueda {
    text-align: center;
    margin-bottom: 40px;
}

.es-archivo-entradas-titulo-busqueda h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.es-archivo-entradas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.es-archivo-entradas-sin-resultados {
    text-align: center;
    font-size: 18px;
    color: #888;
    padding: 40px 0;
    grid-column: 1 / -1;
}

/* -> Paginación */

.es-archivo-entradas-paginacion {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.es-archivo-entradas-paginacion .page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-archivo-entradas-paginacion .page-numbers li {
    display: inline-block;
}

.es-archivo-entradas-paginacion .page-numbers a,
.es-archivo-entradas-paginacion .page-numbers span {
    display: inline-block;
    padding: 10px 16px;
    background: #ffffff;
    color: #2c2c2c;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.es-archivo-entradas-paginacion .page-numbers a:hover {
    background: var(--e-global-color-primary);
    color: #ffffff;
    border-color: var(--e-global-color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.es-archivo-entradas-paginacion .page-numbers .current {
    background: var(--e-global-color-primary);
    color: #ffffff;
    border-color: var(--e-global-color-primary);
}

@media (max-width: 768px) {
    .es-archivo-entradas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .es-archivo-entradas-titulo-busqueda h2 {
        font-size: 22px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .es-archivo-entradas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==============================> TÍTULO PERSONALIZADO */

.es-titulo-personalizado-wrapper {}

.es-titulo-personalizado {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .es-titulo-personalizado {
        font-size: 26px;
    }
}

/* ==============================> DESCRIPCIÓN PERSONALIZADA */

.es-descripcion-personalizado-wrapper {}

.es-descripcion-personalizado {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .es-descripcion-personalizado {
        font-size: 14px;
    }
}

/* ==============================> LINK PERSONALIZADO */

.es-link-personalizado-wrapper {}

.es-link-personalizado {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: var(--e-global-color-primary);
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.es-link-personalizado:hover {
    background: #ffffff;
    color: var(--e-global-color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .es-link-personalizado {
        font-size: 14px;
        padding: 10px 24px;
    }
}

/* ==============================> CARRUSEL DE PRODUCTOS */

.es-carrusel-productos-wrapper {
    position: relative;
}

.es-carrusel-productos-wrapper .swiper {
    overflow: visible;
    padding: 20px 0 40px;
}

.es-carrusel-productos-wrapper .swiper-slide {
    height: auto;
}

.es-producto-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.es-producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--e-global-color-primary);
}

.es-producto-imagen-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f9f9f9;
}

.es-producto-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.es-producto-card:hover .es-producto-imagen {
    transform: scale(1.08);
}

.es-producto-etiqueta-descuento {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.es-producto-contenido {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.es-producto-titulo {
    margin: 0 0 16px 0;
}

.es-producto-titulo a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.es-producto-titulo a:hover {
    color: var(--e-global-color-primary);
}

.es-producto-precio-container {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.es-producto-precio-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.es-producto-precio-valor {
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 700;
}

.es-producto-precio-oferta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.es-producto-precio-oferta .es-producto-precio-anterior {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.es-producto-precio-oferta .es-producto-precio-valor {
    font-size: 18px;
    color: #e74c3c;
    font-weight: 800;
}

.es-producto-boton-comprar {
    display: block;
    margin-top: 16px;
    background: var(--e-global-color-primary);
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.es-producto-boton-comprar:hover {
    background: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.es-carrusel-productos-wrapper .swiper-button-next,
.es-carrusel-productos-wrapper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    opacity: 0.95;
}

.es-carrusel-productos-wrapper .swiper-button-next:hover,
.es-carrusel-productos-wrapper .swiper-button-prev:hover {
    background: var(--e-global-color-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 1;
}

.es-carrusel-productos-wrapper .swiper-button-next::after,
.es-carrusel-productos-wrapper .swiper-button-prev::after {
    font-size: 18px;
    color: #2c2c2c;
    font-weight: 700;
}

.es-carrusel-productos-wrapper .swiper-button-next:hover::after,
.es-carrusel-productos-wrapper .swiper-button-prev:hover::after {
    color: #ffffff;
}

.es-carrusel-productos-wrapper .swiper-pagination {
    margin-top: 24px;
    position: relative;
}

.es-carrusel-productos-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d0d0d0;
    opacity: 1;
    transition: all 0.3s ease;
}

.es-carrusel-productos-wrapper .swiper-pagination-bullet-active {
    background: var(--e-global-color-primary);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .es-carrusel-productos-wrapper {
        padding: 0 30px;
    }

    .es-carrusel-productos-wrapper .swiper-button-next,
    .es-carrusel-productos-wrapper .swiper-button-prev {
        width: 36px;
        height: 36px;
        opacity: 1;
    }

    .es-carrusel-productos-wrapper .swiper-button-next::after,
    .es-carrusel-productos-wrapper .swiper-button-prev::after {
        font-size: 14px;
    }

    .es-producto-etiqueta-descuento {
        font-size: 12px;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }

    .es-producto-precio-label {
        font-size: 12px;
    }

    .es-producto-precio-valor {
        font-size: 14px;
    }

    .es-producto-precio-oferta .es-producto-precio-valor {
        font-size: 16px;
    }

    .es-producto-boton-comprar {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* ==============================> FILTROS DE ENTRADA */

.es-filtros-entrada-contenedor {
    background: #ffffff;
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* -> Buscador */

.es-filtros-entrada-buscador {
    position: relative;
    margin-bottom: 32px;
}

.es-filtros-entrada-buscador input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.es-filtros-entrada-buscador input:focus {
    border-color: var(--e-global-color-primary);
    box-shadow: 0 0 0 3px rgba(var(--e-global-color-primary-rgb), 0.1);
}

.es-filtros-entrada-resultados {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.es-filtros-entrada-ajax-resultados {
    padding: 16px;
}

.es-filtros-entrada-ajax-resultados h5 {
    font-size: 14px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.es-filtros-entrada-ajax-resultados ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.es-filtros-entrada-ajax-resultados ul:last-child {
    margin-bottom: 0;
}

.es-filtros-entrada-ajax-resultados li {
    margin-bottom: 8px;
}

.es-filtros-entrada-ajax-resultados li:last-child {
    margin-bottom: 0;
}

.es-filtros-entrada-ajax-resultados a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.es-filtros-entrada-ajax-resultados a:hover {
    background: #f5f5f5;
    color: var(--e-global-color-primary);
    padding-left: 16px;
}

.es-filtros-entrada-ajax-sin-resultados {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* -> Categorías */

.es-filtros-entrada-categorias {
    margin-bottom: 32px;
}

.es-filtros-entrada-titulo {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--e-global-color-primary);
}

.es-filtros-entrada-lista-categorias {
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-filtros-entrada-lista-categorias li {
    margin-bottom: 10px;
}

.es-filtros-entrada-lista-categorias li:last-child {
    margin-bottom: 0;
}

.es-filtros-entrada-lista-categorias a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: block;
    padding: 10px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 28px;
}

.es-filtros-entrada-lista-categorias a::before {
    content: '→';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.es-filtros-entrada-lista-categorias a:hover {
    background: #f5f5f5;
    color: var(--e-global-color-primary);
    padding-left: 32px;
}

.es-filtros-entrada-lista-categorias a:hover::before {
    opacity: 1;
    left: 14px;
}

/* -> Entradas Relacionadas */

.es-filtros-entrada-relacionadas {
    margin-bottom: 0;
}

.es-filtros-entrada-lista-relacionadas {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.es-filtro-entrada-relacionada-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.es-filtro-entrada-relacionada-item:hover {
    background: #f9f9f9;
    border-color: #e0e0e0;
}

.es-filtro-entrada-relacionada-imagen {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.es-filtro-entrada-relacionada-imagen a {
    display: block;
    width: 100%;
    height: 100%;
}

.es-filtro-entrada-relacionada-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.es-filtro-entrada-relacionada-item:hover .es-filtro-entrada-relacionada-imagen img {
    transform: scale(1.1);
}

.es-filtro-entrada-relacionada-contenido {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.es-filtro-entrada-relacionada-contenido h5 {
    margin: 0;
}

.es-filtro-entrada-relacionada-contenido a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.es-filtro-entrada-relacionada-contenido a:hover {
    color: var(--e-global-color-primary);
}

@media (max-width: 768px) {
    .es-filtros-entrada-contenedor {
        padding: 20px;
    }

    .es-filtros-entrada-buscador input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .es-filtro-entrada-relacionada-imagen {
        width: 60px;
        height: 60px;
    }
}

/* ==============================> WHATSAPP ENTRADA */

.es-whatsapp-entrada-contenedor {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.es-whatsapp-entrada-contenedor:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.es-whatsapp-entrada-titulo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.es-whatsapp-entrada-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #25d366;
    padding: 18px;
    border-radius: 32px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.es-whatsapp-entrada-boton:hover {
    background: #25d366;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.es-whatsapp-entrada-boton i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .es-whatsapp-entrada-contenedor {
        padding: 24px 20px;
    }

    .es-whatsapp-entrada-titulo {
        font-size: 20px;
    }

    .es-whatsapp-entrada-boton {
        font-size: 14px;
        padding: 14px 24px;
    }
}