/* General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #bd0404; /* Red */
    color: white;
    border: 1px solid #bd0404;
}

.btn-primary:hover {
    background-color: #a00303;
}

.btn-secondary {
    background-color: transparent;
    color: #bd0404;
    border: 1px solid #bd0404;
}

.btn-secondary:hover {
    background-color: #bd0404;
    color: white;
}

.btn-whatsapp {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp .whatsapp-icon {
    width: 20px;
    height: 20px;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
}


/* Header */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust logo size */
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #bd0404;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .header-actions {
        display: none; /* Hide header actions on mobile when menu is toggled */
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}


/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/imagenes/background-dark.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.hero-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-hero {
    padding: 15px 35px;
    font-size: 1.1em;
    border-radius: 30px;
}

.btn-hero.btn-primary {
    background-color: #bd0404;
    border-color: #bd0404;
    color: white;
}
.btn-hero.btn-primary:hover {
    background-color: #a00303;
    border-color: #a00303;
}

.btn-hero.btn-secondary {
    background-color: transparent;
    border-color: white;
    color: white;
}
.btn-hero.btn-secondary:hover {
    background-color: white;
    color: #bd0404;
}

/* Value Proposition Section */
.value-proposition-section {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transform: translateY(-50px); /* Lift it up to overlap hero slightly */
    position: relative;
    z-index: 10;
    border-radius: 10px;
    margin: 0 20px; /* Add some margin to the sides */
}

.value-proposition-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.value-item {
    flex: 1;
    min-width: 280px;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fbfbfb;
    border: 1px solid #eee;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.value-item .value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) saturate(100%) invert(14%) sepia(85%) saturate(7330%) hue-rotate(352deg) brightness(97%) contrast(98%); /* Red tint */
}

.value-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #bd0404;
}

.value-item p {
    color: #666;
}

/* Sections */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.light-bg {
    background-color: #f0f0f0;
    padding: 80px 0;
}

/* Benefits Section */
.benefits-section {
    padding-top: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 2em;
    color: #25D366; /* Green checkmark */
    font-weight: bold;
}

.benefit-card p {
    font-size: 1.1em;
    color: #444;
}

.benefit-card p strong {
    color: #333;
}


/* Featured Products Section */
.featured-products-section {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 180px;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
}

.product-card .product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    padding: 15px 20px 10px;
    min-height: 70px;
    color: #444;
}

.price-info {
    padding: 0 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1em;
}

.offer-label {
    background-color: #25D366; /* Green for offer */
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 700;
    align-self: flex-start;
}

.current-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #bd0404; /* Red for main price */
}

.iva-info {
    font-size: 0.9em;
    color: #777;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px 20px;
    gap: 10px;
    border-top: 1px solid #eee;
}

.btn-view-product, .btn-add-to-cart {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.btn-view-product {
    background-color: #555;
    color: white;
}
.btn-view-product:hover {
    background-color: #333;
}

.btn-add-to-cart {
    background-color: #25D366;
    color: white;
}
.btn-add-to-cart:hover {
    background-color: #1DA851;
}

.view-all-products {
    text-align: center;
    margin-top: 40px;
}

.view-all-products .btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 30px;
}


/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    padding: 20px;
    text-align: left;
}

.category-overlay h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.category-overlay p {
    font-size: 0.9em;
    opacity: 0.9;
}


/* Partners Section (Carousel) */
.partners-section {
    padding: 80px 0;
    background-color: white;
}

.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.carousel {
    display: inline-flex; /* Use inline-flex to allow content to flow horizontally */
    animation: carousel-scroll 50s linear infinite;
}

.carousel img {
    height: 80px; /* Adjust as needed */
    margin: 0 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0; /* Prevent images from shrinking */
}

.carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls half the width of duplicated content */
}


/* FAQ/Accordion Section */
.faq-section {
    padding: 80px 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-header {
    background-color: #bd0404;
    color: white;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 8px; /* Apply initial border-radius */
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #a00303;
}

.accordion-header.active {
    border-bottom-left-radius: 0; /* Remove border-radius when active */
    border-bottom-right-radius: 0;
}


.accordion-header .icon {
    font-size: 1.8em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    background-color: #f9f9f9;
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.accordion-content p, .accordion-content ul {
    padding: 15px 0;
    color: #555;
}

.accordion-content ul {
    margin-left: 20px;
    list-style: disc;
}

.accordion-content ul li {
    margin-bottom: 8px;
}

.accordion-content p strong {
    color: #333;
}


/* Floating WhatsApp Button */
#whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#whatsapp-button:hover {
    transform: translateY(-5px);
    background-color: #1DA851;
}

#whatsapp-button .whatsapp-icon {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1); /* Makes icon white */
}


/* Footer */
.main-footer {
    background-color: #353434;
    color: white;
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #f0f0f0;
}

.footer-column ul {
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Make social icons white */
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #4a4a4a;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #ccc;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3em;
    }
    .hero-subtitle {
        font-size: 2em;
    }
    .value-proposition-section .container {
        flex-direction: column;
        align-items: center;
    }
    .value-item {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: 400px;
    }
    .hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-hero {
        width: 80%;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

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

    .product-card {
        max-width: 350px;
        margin: 0 auto;
    }

    .category-image {
        height: 180px;
    }

    .carousel img {
        height: 60px;
        margin: 0 10px;
    }

    .accordion-header {
        font-size: 1em;
        padding: 15px 20px;
    }

    .accordion-content {
        padding: 0 20px;
    }

    #whatsapp-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.9em;
    }
    #whatsapp-button .whatsapp-icon {
        width: 20px;
        height: 20px;
    }

    .main-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column {
        width: 100%;
        max-width: 300px;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 1.5em;
    }
    .btn-hero {
        width: 90%;
        padding: 12px 25px;
    }
    .value-proposition-section {
        margin: 0 10px;
    }
    .product-card, .category-card {
        border-radius: 5px;
    }
    .product-card .product-title {
        font-size: 1.1em;
        min-height: unset;
    }
    .current-price {
        font-size: 1.5em;
    }
    .btn-view-product, .btn-add-to-cart {
        padding: 8px 10px;
        font-size: 0.85em;
    }
}