/* ===============================================
   Productos - Estilos Casa Morêt
   =============================================== */

.products-header {
    margin-top: 70px;
    position: relative;
    height: 300px;
    overflow: hidden;
}

.products-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.products-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85);
}

.products-header-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 61, 47, 0.85) 0%, rgba(196, 107, 59, 0.65) 100%);
}

.products-header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.products-header .page-title {
    color: var(--beige-claro);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.products-header .page-subtitle {
    color: var(--dorado);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Products Section */
.products-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, #FAFAF8 0%, var(--beige-claro) 100%);
}

.products-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.products-intro .section-title {
    margin-bottom: var(--spacing-md);
    color: var(--verde-profundo);
}

.products-intro .intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gris-oscuro);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3.5rem 2.5rem;
    margin-top: var(--spacing-xl);
}

/* Product Card */
.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    border: none;
    position: relative;
}

.product-card::before {
    display: none;
}

.product-card:hover::before {
    display: none;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: var(--beige-claro);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Vista 360° de productos */
.product-image-360 {
    position: relative;
    height: 380px;
    overflow: visible;
    background: transparent;
}

.image-pair {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 8px;
    padding: 10px;
}

.image-pair img {
    flex: 1;
    width: 48%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 15px rgba(30, 61, 47, 0.15));
}

.product-360:hover .empaque-front {
    transform: translateX(-8px) scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 8px 25px rgba(30, 61, 47, 0.25));
}

.product-360:hover .empaque-back {
    transform: translateX(8px) scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 25px rgba(30, 61, 47, 0.25));
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--terracota) 0%, #A85430 100%);
    color: var(--blanco);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(196, 107, 59, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}

.product-badge.bestseller {
    background: linear-gradient(135deg, var(--dorado) 0%, #B8941F 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
}

/* Producto destacado - Más vendido */
.product-featured {
    border: none;
    box-shadow: none;
    position: relative;
    transform: scale(1);
    padding: 0;
    border-radius: 0;
}

.product-featured:hover {
    transform: scale(1.02);
    box-shadow: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.product-content {
    padding: 1.5rem 0;
    text-align: center;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--verde-profundo);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-description {
    color: var(--gris-oscuro);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    min-height: 48px;
    font-size: 0.95rem;
}

.product-details {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.product-detail {
    font-size: 0.85rem;
    color: var(--verde-profundo);
    background: linear-gradient(135deg, #F7F3EE 0%, #E8D7B9 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(30, 61, 47, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover .product-detail {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30, 61, 47, 0.1);
}

.product-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    border-top: none;
    gap: 1rem;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--terracota);
    font-weight: 700;
    background: linear-gradient(135deg, var(--terracota) 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-whatsapp {
    display: none;
}

.btn-whatsapp:hover {
    display: none;
}

.btn-whatsapp:active {
    display: none;
}

.btn-whatsapp img {
    display: none;
}

/* Shipping Banner */
.shipping-banner {
    background: linear-gradient(135deg, var(--verde-profundo) 0%, #2A5240 100%);
    padding: var(--spacing-md) 0;
    margin: 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shipping-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.shipping-icon {
    flex-shrink: 0;
}

.shipping-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--dorado);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.shipping-text {
    text-align: left;
}

.shipping-text h3 {
    color: #E8D7B9;
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.shipping-text p {
    color: var(--beige-calido);
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
}

/* Products Info Section */
.products-info {
    background: var(--verde-profundo);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.products-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.info-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(20, 40, 30, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    background: rgba(20, 40, 30, 0.85);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dorado);
    display: inline-block;
    transition: transform 0.4s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.15) rotateY(180deg);
}

.info-icon svg {
    width: 60px;
    height: 60px;
    stroke: var(--dorado);
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

.info-icon img {
    width: 60px;
    height: 60px;
    filter: brightness(0) saturate(100%) invert(74%) sepia(48%) saturate(477%) hue-rotate(7deg) brightness(94%) contrast(87%) drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

.info-card h3 {
    font-family: var(--font-heading);
    color: var(--beige-claro);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-card p {
    color: #E8D7B9;
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .products-header {
        height: 400px;
    }

    .products-header .page-title {
        font-size: 2.5rem;
    }

    .products-header .page-subtitle {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image-360 {
        height: 280px;
    }

    .product-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .product-price {
        text-align: center;
        font-size: 1.8rem;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shipping-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .shipping-text {
        text-align: center;
    }

    .shipping-text h3 {
        font-size: 1.3rem;
    }

    .shipping-text p {
        font-size: 0.95rem;
    }

    .shipping-icon svg {
        width: 40px;
        height: 40px;
    }

    .info-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-header {
        height: 350px;
    }

    .product-name {
        font-size: 1.4rem;
    }

    .product-description {
        font-size: 0.9rem;
    }
}
