/* 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;

    /* Color de la letra de la carta */
    --letra-subtitulo: #000;
    
    /* Boton principal*/
    --btn-fondo-store: #001e2d;

    /* Botón de las tarjetas */
    --btn-fondo-secondary: #001e2d;

    /* Letra del boton principal */
    --btn-letra-store: #FFFFFF;

    /* Letra del botón de la tarjeta */
    --btn-letra-secondary: #FFFFFF;

    /* 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(--btn-letra-secondary);
}

.btn-whatsapp{
    background-image: linear-gradient(130deg, var(--background-whatsapp) 50%, #128c7e 100%);
    color: white;
}

.btn-store:hover{
    color: var(--btn-letra-secondary);
}

.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-titulo);
    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-image: linear-gradient(130deg, var(--background-whatsapp) 50%, #128c7e 100%) !important;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    color: white;
}
.product-modal-details .btn-whatsapp:hover {
    background-image: linear-gradient(130deg, var(--background-whatsapp) 50%, #128c7e 100%) !important;
    transform: translateY(-2px);
    color: white;
    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;
    background: var(--btn-fondo-secondary);
    color: var(--btn-letra-secondary);
}
.product-modal-details .btn-outline-dark:hover {
    background-color: var(--btn-fondo-secondary);
    color: var(--btn-letra-secondary);
}

.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-secondary, #001e2d);
    color: var(--btn-letra-secondary, #fff);
    border: 2px solid var(--btn-fondo-secondary, #001e2d);
}

#productDetailModal #modalStoreLink:hover {
    background: var(--btn-fondo-secondary);
    color: var(--btn-letra-secondary);
    border-color: var(--btn-fondo-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#productDetailModal #modalWhatsappLink {
    background-image: linear-gradient(130deg, var(--background-whatsapp) 50%, #128c7e 100%);
    color: white;
    border: 2px solid var(--background-whatsapp, #21c063);
}

#productDetailModal #modalWhatsappLink:hover {
    background-image: linear-gradient(130deg, var(--background-whatsapp) 50%, #128c7e 100%);
    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 --*/
/*-------------------------*/

.title-product-mosaic {
    color: var(--letra-titulo) !important;
}

#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: var(--letra-subtitulo);
    text-align: center;
}

#new-products-section p {
    color: var(--letra-subtitulo);
}

#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 .container {
    padding-left: 15px;
    padding-right: 15px;
}

#new-products-section .product-3d-wrapper.top-seller-highlight-wrapper {
    height: 410px;
}

#new-products-section .product-3d-front.top-seller-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent !important;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 15px;
    color: white;
    text-shadow: 1px 1px 3px black;
    overflow: hidden;
}

#new-products-section .product-3d-front.top-seller-front .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-3d-front.top-seller-front .product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

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

#new-products-section .product-3d-front.top-seller-front .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 0;
}


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

#new-products-section .product-3d-right.top-seller-right {
    background: var(--card-product);
    justify-content: flex-start;
    color: var(--letra-subtitulo);
}

#new-products-section .top-seller-highlight-wrapper > .img-wrapper-3d {
    display: none;
}

#new-products-section .product-3d-wrapper {
    width: 100%;
    height: 410px;
    perspective: 800px;
    position: relative;
    margin-top: 20px;
}

#new-products-section .product-3d-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-140px);
    transition: transform 350ms cubic-bezier(0.390, 0.575, 0.565, 1.000);
    cursor: pointer;
}

#new-products-section .product-3d-card > div {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 34px 21px;
    transition: all 350ms cubic-bezier(0.390, 0.575, 0.565, 1.000);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    backface-visibility: hidden;
    color: var(--letra-titulo);
}

#new-products-section .product-3d-front {
    background-image: linear-gradient(180deg, var(--card-product-dark) 0%, var(--card-product) 100%);
    transform: rotateY(0deg) translateZ(160px);
    color: var(--letra-titulo);
    justify-content: flex-end !important;
}

#new-products-section .product-3d-right {
    background: var(--card-product);
    opacity: 0.08;
    transform: rotateY(90deg) translateZ(160px);
    color: var(--letra-subtitulo);
    justify-content: flex-start;
    position: relative;
}


#new-products-section .product-3d-card:hover {
    transform: translateZ(-160px) rotateY(-90deg);
}


#new-products-section .product-3d-card:hover .product-3d-front {
    opacity: 0;
}


#new-products-section .product-3d-card:hover .product-3d-right {
    opacity: 1;
    color: var(--letra-subtitulo);
}


#new-products-section .product-3d-front h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    max-width: 45%;
}

#new-products-section .product-3d-right h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

#new-products-section .product-3d-front p {
    margin: 0;
    font-weight: 300;
    font-size: 1rem;
    max-width: 45%;
}

#new-products-section .product-3d-front span {
    margin-left: 10px;
    opacity: .7;
    font-size: 0.9rem;
}

#new-products-section .product-3d-front .price {
    position: absolute;
    bottom: 20px;
    left: 21px;
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.8;
}

#new-products-section .product-3d-right ul {
    margin-left: 0;
    padding-left: 20px;
    font-size: 1rem;
    list-style: none;
}


#new-products-section .product-3d-right li {
    padding-bottom: 8px;
    position: relative;
    color: var(--letra-subtitulo);
}


#new-products-section .product-3d-right .button-group-3d {
    position: absolute;
    right: 21px;
    bottom: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#new-products-section .product-3d-right .btn-3d-action {
    border: none;
    background: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.25px;
    padding: 13px 25px;
    border-radius: 55px 55px 21px 55px;
    cursor: pointer;
    box-shadow: 8px 5px 13px rgba(34,34,34,.08);
    transition: all 150ms cubic-bezier(0.390, 0.575, 0.565, 1.000);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 150px;
}


#new-products-section .product-3d-right .btn-store-link {
    background: var(--btn-fondo-secondary);
    color: var(--btn-letra-secondary);
    background-size: 125% 100%;
    background-position: right;
    transform: scale(0) skewY(13deg);
    transform-origin: right bottom;
}


#new-products-section .product-3d-right .btn-store-link:hover {
    background-position: left;
}


#new-products-section .product-3d-right .btn-whatsapp-link {
    background-image: linear-gradient(130deg, var(--background-whatsapp) 50%, #128c7e 100%);
    background-size: 125% 100%;
    background-position: right;
    transform: scale(0) skewY(13deg);
    transform-origin: right bottom;
}


#new-products-section .product-3d-right .btn-whatsapp-link:hover {
    background-position: left;
}

#new-products-section .product-3d-card:hover .btn-3d-action {
    transform: scale(1) skewY(0);
}

#new-products-section .product-3d-card:not(:hover) .btn-3d-action {
    opacity: 0;
}

#new-products-section .img-wrapper-3d {
    animation: float 4s cubic-bezier(0.390, 0.575, 0.565, 1.000) infinite alternate;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    backface-visibility: hidden;
    width: 100%; 
    height: 60%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#new-products-section .img-wrapper-3d img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 300ms cubic-bezier(0.390, 0.575, 0.565, 1.000);
    transition-delay: 100ms;
    transform: none;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateZ(20px);
    }
    100% {
        transform: translateY(-15px) translateZ(30px);
    }
}

/* Acá se puede configurar la animación de la foto del producto en la tarjeta */
#new-products-section .product-3d-card:hover ~ .img-wrapper-3d img {
    transform: translateY(-50px);
}


#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-image: linear-gradient(130deg, var(--background-whatsapp) 50%, #128c7e 100%);
    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;
}


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


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

    #new-products-section .product-grid-container .top-seller-highlight-wrapper {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 350px;
    }

}

@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;

    }

    #new-products-section .product-grid-container .top-seller-highlight-wrapper {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 350px;
    }

}

@media (max-width: 576px) {
    #new-products-section .product-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }

    #new-products-section .product-grid-container .top-seller-highlight-wrapper {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 300px;
    }

    #new-products-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #new-products-section .product-3d-front.top-seller-front .content-card {
        flex-direction: column;
        align-items: flex-start;
    }

    #new-products-section .product-3d-front.top-seller-front .product-actions-group {
        flex-direction: row;
        margin-left: 0;
        margin-top: 15px;
    }

    #new-products-section .product-3d-front.top-seller-front .product-name {
        font-size: 1.2rem;
    }


    #new-products-section .product-3d-wrapper {
        perspective: none;
        height: auto;
    }

    #new-products-section .product-3d-card {
        transform: translateZ(0) rotateY(0);
        transition: none;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    #new-products-section .product-3d-card:hover {
        transform: translateZ(0) rotateY(0);
    }

    #new-products-section .product-3d-card > div {
        position: static;
        transform: none;
        opacity: 1 !important;
        box-shadow: none;
    }

    #new-products-section .product-3d-front {
        order: 2;
        padding: 15px;
    }

    #new-products-section .product-3d-right {
        order: 3;
        padding: 15px;
        border-top: 1px solid #eee;
    }

    #new-products-section .img-wrapper-3d {
        position: static;
        order: 1;
        width: 100%;
        height: 200px;
        animation: none;
        pointer-events: all;
        background-color: #f9f9f9;
        border-radius: 12px 12px 0 0;
    }

    #new-products-section .img-wrapper-3d img {
        transform: none;
    }

    #new-products-section .product-3d-card:hover ~ .img-wrapper-3d img {
        transform: none;
    }

    #new-products-section .product-3d-right .button-group-3d {
        position: static;
        flex-direction: row;
        width: 100%;
        margin-top: 15px;
        align-items: center;
        justify-content: space-around;
    }

    #new-products-section .product-3d-right .btn-3d-action {
        transform: scale(1) skewY(0);
        opacity: 1;
        width: 48%;
        border-radius: 8px;
        min-width: 0;
    }

    #new-products-section .product-3d-front .price {
        position: static;
        margin-top: 10px;
    }

    #new-products-section .product-3d-right ul {
        padding-left: 0;
    }
}


/* ------------------------ */
/* 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;
    }
}