/* CSS específico para la página de productos */
:root {
    --primary-color: #6b7b6c;
    --secondary-color: #d8cdc0;
    --accent-color: #a47453; /* Nuevo color cobre/marrón */
    --dark-primary: #556155;
    --dark-accent: #8a6245; /* Versión más oscura del acento */
    --light-primary: #8a9a8b;
    --text-color: #333333;
    --background-color: #f8f5f2;
    --white-color: #ffffff;
    --transition-slow: 0.5s ease;
    --transition-medium: 0.3s ease;
    --transition-fast: 0.2s ease;
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Sección de Introducción de Productos */
.products-intro {
    padding: 80px 0;
    background-color: var(--white-color);
}

.intro-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.intro-text p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

.intro-features {
    margin-top: 30px;
}

.intro-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.intro-feature__icon {
    flex: 0 0 40px;
    margin-right: 15px;
}

.intro-feature__content h3 {
    font-family: var(--font-title);
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.intro-feature__content p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0;
}

.intro-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 68%;
}

.intro-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: 70%;
    background-color: var(--secondary-color);
    z-index: -1;
    border-radius: 10px;
    transform: translate(-20px, 20px);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Sección de Catálogo de Productos */
.products-catalog {
    padding: 80px 0;
    background-color: var(--background-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card__image {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    /*background-color: rgba(107, 123, 108, 0.1);*/
    padding-top: 75%; /* Establece una relación de aspecto 4:3 */
}

.product-card__image img {
    position: absolute;
    top: 0;
    /*left: ;*/
    width: 56%;
    height: auto;
   /* object-fit: ;*/
    transition: transform var(--transition-medium);
    margin-top: 0px;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__title {
    font-family: var(--font-title);
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.product-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.product-card__description {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.product-card__features span {
    font-family: var(--font-body);
    font-size: 12px;
    background-color: rgba(107, 123, 108, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
}

.product-card__action {
    margin-top: auto;
}

.product-card__action .btn {
    width: 100%;
}

/* Sección de Beneficios */
.product-benefits {
    padding: 80px 0;
    background-color: var(--white-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-medium);
    border-bottom: 3px solid var(--secondary-color);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card__icon {
    margin-bottom: 20px;
}

.benefit-card__title {
    font-family: var(--font-title);
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-card__description {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Sección de Cómo Usar */
.how-to-use {
    padding: 80px 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.how-to-use::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(216, 205, 192, 0.15);
    clip-path: polygon(25% 0, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

.usage-steps {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.usage-step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.usage-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 25px;
    height: calc(100% - 30px);
    width: 2px;
    background-color: var(--secondary-color);
}

.usage-step__number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 24px;
    margin-right: 20px;
    position: relative;
    z-index: 2;
}

.usage-step__content {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 20px 25px;
    flex-grow: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.usage-step__content h3 {
    font-family: var(--font-title);
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.usage-step__content p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}

.usage-note {
    background-color: rgba(164, 116, 83, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.usage-note p {
    font-family: var(--font-body);
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Sección de Preguntas Frecuentes */
.product-faq {
    padding: 80px 0;
    background-color: var(--white-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: var(--background-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item__question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    position: relative;
}

.faq-item__question h3 {
    font-family: var(--font-title);
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
    padding-right: 40px;
}

.faq-item__icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: all var(--transition-fast);
}

.faq-item__icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

.faq-item__icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.faq-item.active .faq-item__icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-item__question {
    background-color: rgba(107, 123, 108, 0.05);
}

.faq-item__answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.faq-item.active .faq-item__answer {
    padding: 0 30px 20px;
    max-height: 1000px;
}

.faq-item__answer p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.cta-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    color: var(--white-color);
    box-shadow: 0 20px 40px rgba(107, 123, 108, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/heroa.jpg') center/cover no-repeat;
    opacity: 0.05;
    z-index: 1;
}

.cta-card__title {
    font-family: var(--font-title);
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.cta-card__text {
    font-family: var(--font-body);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.cta-card__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-medium);
    letter-spacing: 1px;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn--primary:hover {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(107, 123, 108, 0.3);
}

.btn--secondary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
}

.btn--secondary:hover {
    background-color: var(--dark-accent);
    border-color: var(--dark-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(164, 116, 83, 0.3);
}

/* Media Queries */
@media (max-width: 992px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-image::before {
        width: 50%;
        height: 50%;
    }
    
    .usage-steps {
        padding: 0 20px;
    }
    
    .cta-card {
        padding: 50px 30px;
    }
    
    .cta-card__title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .products-intro,
    .products-catalog,
    .product-benefits,
    .how-to-use,
    .product-faq {
        padding: 60px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-step {
        flex-direction: column;
    }
    
    .usage-step__number {
        margin-bottom: 15px;
    }
    
    .usage-step:not(:last-child)::after {
        display: none;
    }
    
    .faq-item__question h3 {
        font-size: 18px;
    }
    
    .cta-card__buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-card__title {
        font-size: 28px;
    }
    
    .cta-card__text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .products-intro,
    .products-catalog,
    .product-benefits,
    .how-to-use,
    .product-faq {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .product-card__title {
        font-size: 20px;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .usage-step__content {
        padding: 15px 20px;
    }
    
    .cta-card {
        padding: 40px 20px;
    }
    
    .cta-card__title {
        font-size: 26px;
    }
}

        /* Popup/Modal Styles */
        .product-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            backdrop-filter: blur(5px);
        }

        .product-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .product-modal__content {
            background-color: var(--white-color);
            border-radius: 15px;
            max-width: 800px;
            max-height: 90vh;
            width: 90%;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.3s ease;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .product-modal__close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 30px;
            color: var(--text-color);
            cursor: pointer;
            z-index: 10;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all var(--transition-fast);
        }

        .product-modal__close:hover {
            background-color: rgba(0, 0, 0, 0.1);
            transform: rotate(90deg);
        }

        .product-modal__header {
            padding: 40px 40px 20px;
            border-bottom: 1px solid rgba(107, 123, 108, 0.1);
        }

        .product-modal__title {
            font-family: var(--font-title);
            font-size: 32px;
            color: var(--primary-color);
            margin-bottom: 10px;
            padding-right: 50px;
        }

        .product-modal__subtitle {
            font-family: var(--font-body);
            font-size: 18px;
            color: var(--accent-color);
            font-weight: 500;
            margin-bottom: 0;
        }

        .product-modal__body {
            padding: 30px 40px 40px;
        }

        .product-modal__description {
            font-family: var(--font-body);
            font-size: 16px;
            line-height: 1.7;
            color: var(--text-color);
            margin-bottom: 30px;
        }

        .product-modal__benefits {
            margin-bottom: 30px;
        }

        .product-modal__benefits h4 {
            font-family: var(--font-title);
            font-size: 22px;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .product-modal__benefit-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 12px;
            font-family: var(--font-body);
            font-size: 15px;
            line-height: 1.6;
            color: var(--text-color);
        }

        .product-modal__benefit-item::before {
            content: '✓';
            color: var(--primary-color);
            font-weight: bold;
            margin-right: 10px;
            font-size: 16px;
            flex-shrink: 0;
        }

        .product-modal__cta {
            background-color: var(--background-color);
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            margin-top: 20px;
        }

        .product-modal__cta p {
            font-family: var(--font-body);
            font-size: 16px;
            color: var(--text-color);
            margin-bottom: 15px;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(50px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .product-modal__content {
                width: 95%;
                max-height: 95vh;
            }

            .product-modal__header,
            .product-modal__body {
                padding: 25px;
            }

            .product-modal__title {
                font-size: 26px;
                padding-right: 40px;
            }

            .product-modal__subtitle {
                font-size: 16px;
            }

            .product-modal__close {
                top: 15px;
                right: 15px;
                font-size: 24px;
                width: 35px;
                height: 35px;
            }

            .intro-image{
                width: 100%;
            }
        }