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