/* Estilos base */
:root {
    --primary-color: #a5d8ff;
    --secondary-color: #4e5f8d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --section-padding: 4rem 0;
    --card-radius: 0.5rem;
    --transition-speed: 0.3s;

    /* Fondo principal */
    --gradient-block: linear-gradient(to right, #8ac7de, #ebf8ff);

    /* Color secundario */
    --fondo-secundario: #ffffff;

    /* color de la tarjeta de productos */
    --card-product: #e9ecef;

    /* Color del texto titulo */
    --letra-titulo: #000;
    /* texto Subtitulo */
    --letra-subtitulo: #000;
    
    /* Boton principal*/
    --btn-fondo-store: #001e2d;
    --btn-letra-store: #fff;
    
    /* Boton secundario */
    --btn-fondo-secondary: #001e2d;

    /* Color del botón de whatsapp */
    --background-whatsapp: #21c063;

}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    height: 50vh;
    max-height: 600px;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: black;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Banner */
.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.category-navigation-section {
    padding: 2rem 0;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.product-modal-details .modal-body-store {
    height: auto !important;
    min-height: unset !important;
}

.category-navigation-section h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.btn-store{
    background: var(--btn-fondo-secondary);
    color: var(--letra-subtitulo);
}

.btn-whatsapp{
    background: var(--background-whatsapp);
    color: white;
}

.btn-store:hover{
    color: white;
}

.category-btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border: 2px solid black;
    color: black;
    transition: all var(--transition-speed) ease;
}

.category-btn:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    border-color: black !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.product-section {
    padding: var(--section-padding);
    margin-bottom: 3rem;
    position: relative;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--letra-titulo);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--fondo-secundario);
}

.section-description {
    font-size: 1.1rem;
    color: var(--letra-subtitulo);
    max-width: 700px;
    margin: 0 auto;
}

/* Sub categorias */

.subcategory-btn {
    border-radius: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-left: 0;
    margin-right: 0;
}

.card-store {
    border: 25px;
}

.product-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #eee;
}

.product-image-container {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-bottom: 1px solid #f5f5f5;
}

.product-details {
    padding: 1.25rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--card-product);
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--letra-subtitulo);
    text-align: left;
    min-height: 40px;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.product-price-wrapper {
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.75rem;
    text-align: left;
}
.text-muted {
    color: var(--letra-subtitulo) !important;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--letra-subtitulo);
}

.product-meta {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.product-sizes {
    margin-top: 0;
}

.size-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    text-align: left;
    font-size: 0.8rem;
    color: #555;
}

.size-guidance {
    display: none;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 0;
}

.size-option-label {
    display: inline-block;
    padding: 4px 8px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 0.75rem;
}

.size-option-label:hover {
    background: #6c757d;
    color: white;
    border-color: black;
}
.hidden-radio:checked + .size-option-label {
    background: #6c757d;
    color: white;
    border-color: black;
}

.product-category {
    color: #777;
    background: #f9f9f9;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.product-description {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-actions {
    margin-top: 0;
    display: flex;
    justify-content: center;
    padding-top: 0.25rem;
}

.product-details .product-actions:nth-of-type(2) {
    margin-top: 0.5rem;
}

.product-actions .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.product-actions .btn:hover {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.85;
    color: white;
}

.product-actions .btn i {
    font-size: 0.9rem;
}

.section-odd {
    /* background-color: #f3f4fe; */
}

.section-even {
    background-color: white;
}

.no-products {
    text-align: center;
    padding: 5rem 0;
}

.input-buscar {
  border-radius: 10px;
}

.input-buscar:focus {
  z-index: 0 !important;
}

.btn-buscar {
  border-radius: 10px;
    z-index: 0 !important;
}

.product-catalog-container .row {
    padding: 0 15px;
}

#sidebar-categories {
    background-color: #ffffff;
    padding: 20px;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    border: 1px solid #f0f0f0;
    position: static;
}

#sidebar-categories .sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
    color: var(--letra-titulo);
    text-align: center;
}

.category-list {
    padding-left: 0;
    list-style-type: none;
    margin-bottom: 0;
}

.category-list-item {
    border: none;
    padding: 0;
    background-color: transparent;
    border-bottom: 1px solid #f5f5f5;
}

.category-list-item:last-child {
    border-bottom: none;
}

.sidebar-category-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--letra-titulo);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
}

.sidebar-category-link:hover {
    background-color: #f8f9fa;
    color: var(--dark-color, #212529);
    transform: translateX(5px);
}

.sidebar-category-link.active {
    background-color: var(--fondo-secundario);
    color: var(--letra-subtitulo);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-list-item {
    border: none;
    padding: 0;
}

.sidebar-category-link {
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.category-list-item:last-child > .sidebar-category-link {
    border-bottom: none;
}

.sidebar-category-link.parent-toggle .fa-chevron-down {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform var(--transition-speed) ease;
    font-size: 0.8rem;
    color: #999;
}

.sidebar-category-link.parent-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: translateY(-50%) rotate(180deg);
    color: var(--secondary-color, #4e5f8d);
}

.sub-category-list {
    list-style: none;
    padding-left: 1.2rem;
    margin: 0.25rem 0 0.5rem 0;
    background-color: #fcfcfc;
}

.sidebar-category-link.sub-link {
    font-size: 0.85rem;
    font-weight: 400;
    padding: 8px 15px; 
    color: #555;
    border-bottom: none;
}

.sidebar-category-link.sub-link:hover {
    background-color: #f1f1f1;
    transform: none;
    color: #222;
}

.sidebar-category-link.parent-toggle.active {
    background-color: #f8f9fa;
    color: var(--dark-color, #212529);
    font-weight: bold;
    box-shadow: none;
}

.sidebar-category-link.sub-link.active {
    background-color: var(--fondo-secundario);
    color: var(--letra-subtitulo);
    font-weight: 500;
    border-radius: 4px;
}

.sidebar-category-link:not(.parent-toggle):not(.sub-link).active {
    background-color: var(--fondo-secundario);
    color: var(--letra-subtitulo);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- INICIO DE ESTILOS DEL MODAL MEJORADO --- */

.product-card.clickable-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color) !important;
}

.product-modal-details .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.product-modal-details .modal-header {
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    border-bottom: none;
}

.product-modal-details .btn-close {
    padding: 1.5rem;
    margin: 0;
    background-color: transparent;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}
.product-modal-details .btn-close:hover {
    opacity: 1;
}

.product-modal-details .modal-body {
    padding: 2.5rem 2rem;
}

.sub-content {
    padding: 10px;
}

.modal-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    min-height: 450px;
    max-height: 600px;
    overflow: hidden;
}

.modal-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

.modal-product-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    text-align: center;
    padding: 20px;
}

.modal-product-price {
    font-size: 1.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 2rem;
}

.product-modal-details .btn-whatsapp {
    background-color: var(--background-whatsapp) !important;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
}
.product-modal-details .btn-whatsapp:hover {
    background-color: var(--background-whatsapp) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.product-modal-details .btn-outline-dark {
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    border-width: 2px;
}
.product-modal-details .btn-outline-dark:hover {
    background-color: var(--dark-color);
    color: white;
}

.product-modal-details .size-option-label {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .product-modal-details .modal-body {
        padding: 1.5rem;
    }
    .modal-image-wrapper {
        min-height: 200px;
        max-height: 300px;
        margin-bottom: 1.5rem;
    }
    .modal-product-title {
        font-size: 1.8rem;
    }
    .modal-product-price {
        font-size: 1.5rem;
    }
    .modal-product-description {
        max-height: 120px;
    }
    .product-modal-details .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    #sidebar-categories {
        position: static;
        margin-bottom: 2rem;
    }

    .search-section h2 {
        font-size: 1.8rem;
    }
}

/* Responsive */
 @media (min-width: 992px){
    .content-product {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .category-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
    }

    .subcategory-title {
    padding: 10px 0 0 0;
    } 

    .product-grid {
        grid-template-columns: 1fr;
    }

    .category-navigation-section {
        padding: 1.5rem 0;
    }
}

/* ---------------------------------------- */
/* Estilos para el contenedor de paginación */
/* ---------------------------------------- */

.pagination-container .pagination {
    margin-top: 20px;
}

.pagination-container li {
    border: 2px solid black;
    margin: 0 3px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination-container li:hover {
    background: #6c757d;
    color: white;
    border-color: black;
    transform: translateY(-3px);
}

.pagination-container a {
    color: black;
    text-decoration: none;
    padding: 8px 14px;
    display: flex;
}

.pagination-container li:hover a {
    color: white;
}

.pagination-container li.active {
    background-color: #6c757d;;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(76, 81, 191, 0.3);
    padding: 8px 14px;
}

/* Permite que las flechitas no se opaquen cuando el usuario este en las páginas laterales */
.pagination-container li.disabled {
    padding: 8px 14px;
}

/* Selección de las tallas */
.size-buttons button {
    padding: 0px 10px 0 0;
}

.hidden-radio {
    display: none;
}

/* Estilo para las etiquetas de las tallas */
.size-option-label {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.size-option-label:hover {
    background: #6c757d;
    color: white;
    border-color: black;
}

.hidden-radio:checked + .size-option-label {
    background: #6c757d;
    color: white;
    border-color: black;
}

.product-sizes {
    margin-top: 15px;
}

.size-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.size-guidance {
    color: #666;
    margin-top: 10px;
    display: block;
}

/* CARRUSEL DE LOS PRODUCTOS NUEVOS */

.promo-carousel-container {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.promo-banner {
    flex: 0 0 300px;
    background: var(--gradient-block);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.promo-content .promo-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.promo-content .promo-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-top: -10px;
}

.product-description {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 1rem;
    text-align: justify;
}

.promo-content .btn-buy {
    margin-top: 25px;
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.promo-content .btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.product-carousel-section {
    flex: 1;
    position: relative;
    padding: 20px 40px;
    min-width: 0;
}

.product-carousel-section .swiper-wrapper {
    height: auto !important;
}

.product-carousel-section .swiper-slide {
    height: auto;
    display: flex;
    padding-bottom: 40px;
}

.promo-carousel-container .new-product-card {
    background: var(--card-product);
    border: 1px solid #e9ecef;
    border-radius: var(--card-radius, 8px);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.btn-action {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.promo-carousel-container .new-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.promo-carousel-container .new-product-image-wrapper {
    height: 200px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.promo-carousel-container .new-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promo-carousel-container .new-product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.promo-carousel-container .new-product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--letra-subtitulo);
    margin-bottom: 10px;
    min-height: 40px;
}

.promo-carousel-container .new-product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}


.promo-carousel-container .new-product-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
}

.promo-carousel-container .btn-action {
    border: none;
    border-radius: 10%;
} 

.promo-carousel-container .btn-whatsapp-new:hover {
    background-color: var(--background-whatsapp);
    color: white;
}

.product-carousel-section .swiper-button-next,
.product-carousel-section .swiper-button-prev,
.modal-product-carousel .swiper-button-next,
.modal-product-carousel .swiper-button-prev {
    color: var(--secondary-color, #007bff);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.product-carousel-section .swiper-button-next::after,
.product-carousel-section .swiper-button-prev::after,
.modal-product-carousel .swiper-button-next::after,
.modal-product-carousel .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: bold;
}

.product-carousel-section .swiper-button-next { 
    right: 1px; 
}
.product-carousel-section .swiper-button-prev { 
    left: 1px; 
}

.modal-product-carousel .swiper-button-next { right: 10px; }
.modal-product-carousel .swiper-button-prev { left: 10px; }

.product-carousel-section .swiper-pagination {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.product-carousel-section .swiper-pagination-bullet-active {
    background-color: var(--fondo-secundario);
}

@media (max-width: 992px) {
    .promo-carousel-container {
        flex-direction: column;
    }
    
    .promo-banner {
        flex: 0 0 auto;
        text-align: center;
    }
    
    .product-carousel-section {
        padding: 20px;
    }
}

/* MODAL DE DETALLES DE LOS PRODUCTOS */

.modal-product-carousel {
    height: 350px;
    width: 100%;
    margin-bottom: 1rem;
}

.modal-product-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-product-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.col-md-6 .new-product-actions {
    margin-top: 0;
}

.modal-body {
    height: auto;; 
}

.modal-product .modal-dialog {
    max-width: 800px;
}

.modal-content {
    border-radius: var(--card-radius, 8px);
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    border-radius: var(--card-radius, 8px);
    overflow: hidden;
}

#modalProductImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-product-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.modal-product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2b2c2e;
    margin-bottom: 1rem;
}

.modal-product-actions .btn {
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.modal-product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#productDetailModal .new-product-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 1.5rem !important;
    width: 100%;
}

#productDetailModal .btn-action {
    flex: 1;
    height: auto;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center; 
}

#productDetailModal #modalStoreLink.mb-2 {
margin-bottom: 0 !important;
}

#productDetailModal #modalStoreLink {
    background-color: var(--btn-fondo-store, #001e2d);
    color: var(--btn-letra-store, #fff);
    border: 2px solid var(--btn-fondo-store, #001e2d);
}

#productDetailModal #modalStoreLink:hover {
    background-color: #003a5a;
    border-color: #003a5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#productDetailModal #modalWhatsappLink {
    background-color: var(--background-whatsapp, #21c063);
    color: white;
    border: 2px solid var(--background-whatsapp, #21c063);
}

#productDetailModal #modalWhatsappLink:hover {
    background-color: #1faa58;
    border-color: #1faa58;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 192, 99, 0.3);
}

#productDetailModal .btn-action[style*="visibility: hidden"] {
    display: none;
}

@media (max-width: 767px) {
    .modal-product-image-wrapper {
        height: 300px;
        margin-bottom: 1rem;
    }
    .modal-product-title {
        font-size: 1.5rem;
    }
    .modal-product-price {
        font-size: 1.3rem;
    }

    .modal-body {
        height: auto;
    }

    .modal-product-details {
        padding: 2rem 1rem;
    }

    .product-description {
        max-height: 1120px;
    }
}

/*-------------------------*/
/*-- SECCIÓN DEL MOSAICO --*/
/*-------------------------*/

#new-products-section .card-mosaics {
  padding: 0;
  height: 100%;
}

#new-products-section .product-card-mosaics {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  color: white;
  text-shadow: 1px 1px 3px black;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#new-products-section .product-card-mosaics:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

#new-products-section .fire-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#new-products-section .content-card {
  background-color: rgba(0, 0, 0, 0.45);
  padding: 15px;
  border-radius: 8px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

#new-products-section .product-card-mosaics .product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

#new-products-section .product-card-mosaics .product-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  padding: 0;
  text-align: left;
  margin-bottom: 5px;
}

#new-products-section .product-card-mosaics .product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 0;
}

#new-products-section .product-card-mosaics .product-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 15px;
}

#new-products-section .product-card-mosaics .product-actions-group .btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.1rem;
}

#new-products-section .card-text-mosaics {
  color: white;
}

@media (max-width: 1200px) {
  #new-products-section .product-grid-container .top-seller-highlight {
    grid-column: span 2; /* Ocupa 2 de ancho */
    grid-row: span 1;    /* Ocupa 1 de alto */
    min-height: 350px;
  }
}

@media (max-width: 992px) {
  #new-products-section .product-grid-container .top-seller-highlight {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 350px;
  }
}

@media (max-width: 576px) {
  #new-products-section .product-grid-container .top-seller-highlight {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 300px;
  }
  
  #new-products-section .content-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #new-products-section .product-card-mosaics .product-actions-group {
    flex-direction: row;
    margin-left: 0;
    margin-top: 15px;
  }

  #new-products-section .product-card-mosaics .product-name {
    font-size: 1.2rem;
  }
}

#new-products-section {
  padding: 2rem 0;
  background: var(--gradient-block);
}

#new-products-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #333;
  text-align: center;
}

#new-products-section .product-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 0 auto;
  max-width: 1400px;
}

#new-products-section .new-product-card {
  background-color: var(--card-product);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

#new-products-section .new-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

#new-products-section .new-product-card:nth-child(3n+1) {
  grid-row: span 1;
}

#new-products-section .new-product-card:nth-child(3n+2) {
  grid-row: span 1;
}

#new-products-section .new-product-card:nth-child(3n+3) {
  grid-row: span 1;
}

#new-products-section .product-image-container {
  width: 100%;
  height: 220px;
  position: relative;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#new-products-section .product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

#new-products-section .new-product-card:hover .product-image {
  transform: scale(1.05);
}

#new-products-section .product-content-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

#new-products-section .product-info {
  flex-grow: 1;
  margin-bottom: 15px;
}

#new-products-section .product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--letra-subtitulo);
  margin-bottom: 8px;
  line-height: 1.3;
  padding: 10px;
  text-align: center;
}

#new-products-section .product-description {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

#new-products-section .product-price {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

#new-products-section .product-actions-group {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

#new-products-section .product-actions-group .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem; 
    border-radius: 50%;
    
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

#new-products-section .product-actions-group .btn-store {
  background: #000;
  color: white;
  border: 2px solid #000;
}

#new-products-section .product-actions-group .btn-store:hover {
  background: #333;
  border-color: #333;
  color: white;
}

#new-products-section .product-actions-group .btn-whatsapp {
  background: var(--background-whatsapp);
  color: white;
  border: 2px solid #25d366;
}

#new-products-section .product-actions-group .btn-whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  color: white;
}

#new-products-section .product-actions-group .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    width: 40px; 
    height: 40px;
}

#new-products-section .no-products {
  text-align: center;
  padding: 3rem 1rem;
}

#new-products-section .no-products h2 {
  color: #6c757d;
  margin-bottom: 1rem;
}

#new-products-section .no-products p {
  color: #6c757d;
  font-size: 1.1rem;
}

@media (max-width: 1200px) {
  #new-products-section .product-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) {
  #new-products-section .product-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  #new-products-section h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  #new-products-section .product-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  #new-products-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  #new-products-section .product-image-container {
    height: 180px;
  }
  
  #new-products-section .product-content-body {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  #new-products-section .product-grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 400px;
  }
  
  #new-products-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  #new-products-section .product-image-container {
    height: 200px;
  }
  
  #new-products-section .product-actions-group {
    flex-direction: row;
  }
  
  #new-products-section .product-actions-group .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

#new-products-section .container {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 1400px) {
  #new-products-section .product-grid-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* SECCIÓN DEL BANNER DE PRODUCTOS */

.container-banner {
   background: var(--gradient-block);
}

.banner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1500px;
    margin: 40px auto;
    padding: 15px 15px;
}

.banner-item {
    position: relative;
    flex: 1 1 480px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 260px;
    transition: none;
}

.banner-image-only img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-background-text {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    padding: 30px;
}

.banner-content-overlay {
    position: relative;
    z-index: 2;
    max-width: 60%;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.banner-content-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.banner-content-overlay p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .banner-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .banner-item {
        flex: 1 1 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .banner-image-only img,
    .banner-background-text {
        height: 100%;
        object-fit: cover;
    }

    .banner-content-overlay {
        max-width: 80%;
        padding: 10px;
    }

    .banner-content-overlay h3 {
        font-size: 1.2rem;
    }

    .banner-content-overlay p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .banner-item {
        aspect-ratio: 4 / 3;
    }

    .banner-content-overlay {
        max-width: 90%;
        padding: 8px;
    }
}

@media (min-width: 769px) {
    .banner-item:first-child:last-child {
        flex-grow: 0;
    }
}