/* ==========================================================================
   PAGE: HOME (VISTA PRINCIPAL)
   ========================================================================== */

.home-banner-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Paneles Blancos Unificados
   -------------------------------------------------------------------------- */
.home-white-panel {
    border-radius: 4px;
    padding: 2px;
    margin-bottom: 2px;
    border: 1px solid #f0f2f5;
}

/* --------------------------------------------------------------------------
   Encabezado con Subrayado Completo y Acento Azul
   -------------------------------------------------------------------------- */
.home-section-header {
    position: relative;
    margin-bottom: 20px;
    border-bottom: 2px solid #eaedf1;
}

.home-section-title {
    font-size: 26px;
    line-height: 32px;
    font-weight: 400;
    color: var(--offi-text-dark);
    margin-bottom: 0;
    padding-bottom: 20px;
    display: inline-block;
    position: relative;
}

.home-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0084c7;
}

/* --------------------------------------------------------------------------
   1. Categorías Más Solicitadas (Grilla Plana 6 por fila)
   -------------------------------------------------------------------------- */
.home-category-item {
    background-color: #ffffff;
    padding: 20px 10px 16px 10px;
    border-radius: 4px;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.home-category-img-box {
    height: 75px;
    width: 100%;
}

.home-category-img {
    max-height: 70px;
    max-width: 90px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.home-category-name {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--offi-text-dark);
    line-height: 1.25;
    margin-top: 10px;
    text-align: center;
    transition: color 0.15s ease;
    display: block;
}

/* Hover de Categorías (Elevación con sombra y subrayado azul) */
.home-category-item:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transform: translateY(-2px);
}

.home-category-item:hover .home-category-name {
    color: #007cb9;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   2. Banner de Información Estática de la Tienda (6 Beneficios)
   -------------------------------------------------------------------------- */
.home-features-panel {
    padding: 2px 15px;
}

.store-feature-card {
    padding: 24px 12px 20px 12px;
    border-radius: 4px;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.store-feature-icon-box {
    font-size: 2.2rem;
    color: #0084c7;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    transition: transform 0.2s ease;
}

.store-feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    transition: color 0.15s ease;
}

.store-feature-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

/* Hover de Información de la Tienda (Elevación y título subrayado azul) */
.store-feature-card:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transform: translateY(-2px);
}

.store-feature-card:hover .store-feature-title {
    color: #007cb9;
    text-decoration: underline;
}
/* --------------------------------------------------------------------------
   3. Recomendación por Categoría (porCategoria - 4 Productos por Fila)
   -------------------------------------------------------------------------- */
.home-cat-rec-panel {
    padding: 10px 0px;
}

.cat-rec-product-card {
    background-color: #ffffff;
    padding: 28px 28px;
    border-radius: 4px;
    border: none;
    min-height: 180px;
    height: 100%;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* Columna izquierda: título, subtítulo y botón agrupados juntos,
   igual que 'rm-banner-plus-item-info' en la referencia. El botón
   se ancla abajo de la columna (no de la tarjeta completa) para que
   quede pegado al texto, no flotando junto a la imagen. */
.cat-rec-item-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0; /* necesario para que text-truncate funcione dentro de flex */
    padding-right: 14px;
}

.cat-rec-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.cat-rec-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.35;
}

.cat-rec-item-btn {
    margin-top: auto;
    padding-top: 0;
}

.cat-rec-tag-btn {
    background-color: var(--offi-btn-light-bg);
    color: var(--offi-text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.15s ease;
}

/* Imagen a la derecha, tamaño acotado para que nunca supere la altura
   de la tarjeta (antes 200x170 desbordaba un min-height de 165px) */
.cat-rec-img-box {
    width: 130px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cat-rec-img {
    max-height: 220px;
    max-width: 130px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Hover de Producto Recomendado (Elevación con sombra nítida) */
.cat-rec-product-card:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Últimas Reseñas (Last reviews - 4 Tarjetas por Fila)
   -------------------------------------------------------------------------- */
.home-last-reviews-panel {
    padding: 2px;
}

.last-review-card {
    background-color: #ffffff;
    padding: 22px 18px 18px 18px;
    border-radius: 4px;
    border: none;
    min-height: 280px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.review-product-img-box {
    height: 150px;
    width: 100%;
}

.review-product-img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.review-stars-box {
    line-height: 1;
}

.review-product-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: underline;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.review-product-title-link:hover .review-product-title {
    color: #007cb9;
}

.review-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
}

.review-date-badge {
    font-size: 0.78rem;
    color: #9ca3af;
}

.review-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover de Reseña (Elevación y resaltado azul) */
.last-review-card:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transform: translateY(-2px);
}

.last-review-card:hover .review-product-title {
    color: #007cb9;
}

/* --------------------------------------------------------------------------
   5. Tendencias / Noticias (4 Tarjetas por Fila con Fecha Superpuesta)
   -------------------------------------------------------------------------- */
.home-trending-news-panel {
    padding: 2;
}

.trending-news-card {
    background-color: #ffffff;
    padding: 1px;
    border-radius: 4px;
    border: none;
    min-height: 280px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.trending-news-img-box {
    height: 300px;
    width: 100%;
}

.trending-news-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.trending-news-date-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #0097a7;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.trending-news-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: underline;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.trending-news-title-link:hover .trending-news-title {
    color: #007cb9;
}

.trending-news-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover de Tendencias (Elevación y resaltado azul) */
.trending-news-card:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transform: translateY(-2px);
}

.trending-news-card:hover .trending-news-title {
    color: #007cb9;
}

.trending-news-card:hover .trending-news-img {
    transform: scale(1.03);
}



