/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.product-detail-page .navbar + * {
    margin-top: 0 !important;
}

/* ===== BANNER DEL PRODUCTO ===== */
.product-banner {
    position: relative;
    width: 100%;
    height: 768px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end !important;
    justify-content: center;
    overflow: hidden;
    margin-top: 0 !important;
    padding-bottom: 60px;
}

.product-banner-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.product-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.product-banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -1px;
    margin: 0;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.product-banner-title strong {
    font-weight: 700;
}

.product-banner-subtitle {
    display: none;
}

.btn-ficha-tecnica {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e6756d 0%, #d4655e 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 0 !important;
    box-shadow: 0 6px 25px rgba(230, 117, 109, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-ficha-tecnica:hover {
    background: linear-gradient(135deg, #d4655e 0%, #c4554e 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(230, 117, 109, 0.5);
    color: #ffffff;
}

.btn-ficha-tecnica i {
    font-size: 1.2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECCIÓN DE PESTAÑAS (IGUAL QUE MEDIO AMBIENTE) ===== */
.product-tabs-card {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: linear-gradient(135deg, #b8a5d6 0%, #c4b3e3 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.product-tabs-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-tabs-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.product-tabs-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #592239 !important;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 20px;
}

.product-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.product-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-tab.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #142029 !important;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
}

.product-tabs-content {
    color: #ffffff !important;
    line-height: 1.8;
    font-size: 1rem;
    min-height: 180px;
}

.product-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
}

.product-pane.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.product-pane p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== NUEVO CAROUSEL INFINITO ===== */
.gallery-carousel-section {
    width: 100%;
    padding: 80px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.gallery-carousel-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #142029;
    letter-spacing: 2px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.gallery-carousel-container {
    width: 100%;
    overflow: hidden;
}

.gallery-carousel-slider {
    display: flex;
    gap: 30px;
    animation: slideCarousel 30s linear infinite;
}

@keyframes slideCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-carousel-slider:hover {
    animation-play-state: paused;
}

.gallery-slide {
    flex: 0 0 350px;
    width: 350px;
    height: 350px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.gallery-slide:hover img {
    transform: scale(1.15);
}

/* ===== PRODUCTOS RELACIONADOS ===== */
.related-products-section {
    padding: 80px 0;
    background: #ffffff;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.related-products-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.related-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #142029;
    margin-bottom: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.related-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.related-image-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.related-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.related-card:hover .related-image {
    transform: scale(1.1);
}

.related-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #142029;
    margin-bottom: 15px;
}

.related-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #142029;
    color: #142029;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-btn:hover {
    background: #142029;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 32, 41, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .product-banner {
        height: 520px;
    }
    
    .product-banner-title {
        font-size: 2.75rem;
    }
    
    .product-banner-subtitle {
        font-size: 1.2rem;
    }
    
    .card-inner {
        padding: 0 40px;
    }
    
    .product-tabs-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .product-tabs {
        gap: 10px;
    }
    
    .product-tab {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .carousel-item {
        flex: 0 0 280px;
        height: 280px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 575.98px) {
    .product-banner {
        height: 340px;
    }
    
    .product-banner-title {
        font-size: 2rem;
    }
    
    .product-banner-subtitle {
        font-size: 1rem;
    }
    
    .product-tabs-card {
        padding: 50px 0;
    }
    
    .card-inner {
        padding: 0 25px;
    }
    
    .product-tabs-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .product-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-tab {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .product-tabs-content {
        font-size: 0.9rem;
        min-height: 150px;
    }
    
    .product-carousel-section {
        padding: 60px 0;
    }
    
    .carousel-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .carousel-item {
        flex: 0 0 220px;
        height: 220px;
        padding: 20px;
    }
    
    .related-products-section {
        padding: 60px 0;
    }
    
    .related-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .related-image-wrapper {
        height: 180px;
    }
}

/* Descripción Simple */
.product-description-simple {
    padding: 40px;
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.product-description-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Nueva Sección de Descripción - Sin Interferencias */
.desc-section-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #b8a5d6 0%, #c4b3e3 100%);
    padding: 80px 0;
    position: relative;
}

.desc-section-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/static/img/PANTALLA PATTERN 2.0.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.desc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.desc-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #592239;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.desc-card-white {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 50px;
    position: relative;
    z-index: 10;
}

.desc-text-content {
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: justify;
}

.desc-text-content p {
    margin: 0;
    color: #333333;
}

@media (max-width: 768px) {
    .desc-section-wrapper {
        padding: 60px 0;
    }
    
    .desc-container {
        padding: 0 20px;
    }
    
    .desc-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .desc-card-white {
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .desc-text-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* ===== NUEVO BANNER PRODUCTO ===== */
.banner-producto-nuevo {
    position: relative;
    width: 100%;
    height: 768px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding-bottom: 60px;
}

.banner-producto-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.banner-producto-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.banner-producto-titulo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -1px;
    margin: 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.banner-producto-boton-wrapper {
    padding-bottom: 20px;
}

.boton-ficha-nuevo {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e6756d 0%, #d4655e 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(230, 117, 109, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.boton-ficha-nuevo:hover {
    background: linear-gradient(135deg, #d4655e 0%, #c4554e 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(230, 117, 109, 0.5);
    color: #ffffff;
}

.boton-ficha-nuevo i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .banner-producto-nuevo {
        height: 500px;
        padding-bottom: 40px;
    }
    
    .banner-producto-titulo {
        font-size: 2rem;
    }
    
    .boton-ficha-nuevo {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .product-description-simple {
        padding: 30px 25px;
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .product-description-card {
        border-radius: 10px;
        margin-top: 20px;
    }
}
