:root {
    --primary-color: #0066cc;
    --secondary-color: #000000;
    --accent-color: #000000;
    --background-color: #ffffff;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    font-family: var(--body-font);
}

h1, h2, h3 {
    font-family: var(--heading-font);
}

/* Navbar */
.navbar {
    background-color: #000000;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1002;
    font-family: 'Montserrat', sans-serif;
}

.nav-barcode i {
    font-size: 1.8rem;
    color: #ffffff;
}

/* Menú principal desktop */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.nav-links li a:hover {
    color: #0066cc;
}

.nav-links li a i {
    margin-right: 5px;
    font-size: 1.1rem;
}

.fa-home {
    transition: transform 0.3s ease;
}

.nav-links li a:hover .fa-home {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/factory.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: var(--background-color);
}

.barcode {
    margin: 1rem 0;
}

.barcode i {
    font-size: 4rem;
    color: var(--background-color);
    animation: scanEffect 2s infinite;
}

@keyframes scanEffect {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0052a3;
}

/* Secciones comunes */
.products, .featured-products, .brands, .about-us, .contact {
    padding: 4rem 2rem;
}

.products, .featured-products {
    background-color: #f5f5f5;
}

.brands, .about-us {
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.contact {
    background: #f8f9fa;
}

/* Estilos unificados para títulos de sección */
.products h2, 
.featured-products h2, 
.brands h2, 
.about-content h2, 
.contact-content h2,
.promo-carousel h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.6rem;      /* Reducido de 2rem */
    font-size: 1.4rem;          /* Reducido de 1.75rem */
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;        /* Reducido de 1.2px */
    padding-top: 0.6rem;        /* Reducido de 0.8rem */
}

.products h2::after, 
.featured-products h2::after, 
.brands h2::after, 
.about-content h2::after, 
.contact-content h2::after,
.promo-carousel h2::after {
    content: '';
    display: block;
    width: 40px;                /* Reducido de 50px */
    height: 2px;
    background-color: var(--primary-color);
    margin: 0.6rem auto;        /* Reducido de 0.8rem */
}

.products h2::before, 
.featured-products h2::before, 
.brands h2::before, 
.about-content h2::before, 
.contact-content h2::before,
.promo-carousel h2::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -10px;              /* Ajustado de -12px */
    transform: translateX(-50%);
    width: 25px;             /* Reducido de 30px */
    height: 2px;             /* Reducido de 3px */
    background-color: var(--primary-color);
}

/* Grid de productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: var(--background-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.footer-social a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dropdown desktop */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #ffffff; 
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #0066cc;
    color: #ffffff !important; 
    padding-left: 20px;
}

.fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

/* Carousel ajustes para dispositivos pequeños */
@media (max-width: 1024px) {
    .carousel-container {
        padding: 0 50px;
        max-width: 900px;
    }

    .carousel-slide {
        flex: 0 0 calc(50% - 20px);
        min-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 45px;
    }

    .carousel-slide {
        flex: 0 0 calc(100% - 20px);
        min-width: calc(100% - 20px);
    }

    .carousel-slide img {
        height: 200px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        padding: 0 35px;
    }

    .carousel-slide {
        padding: 15px;
    }

    .carousel-slide img {
        height: 180px;
        padding: 0.5rem;
    }

    .carousel-button {
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 361px) and (max-width: 412px) {
    .carousel-container {
        padding: 0 30px;
    }

    .carousel-slide {
        padding: 12px;
    }

    .carousel-slide img {
        height: 160px;
        padding: 0.4rem;
    }

    .carousel-slide h3 {
        font-size: 1.1rem;
        margin: 0.8rem 0;
    }
}

@media (max-width: 360px) {
    .carousel-container {
        padding: 0 25px;
    }

    .carousel-slide {
        padding: 10px;
    }

    .carousel-slide img {
        height: 140px;
        padding: 0.3rem;
    }

    .carousel-slide h3 {
        font-size: 1rem;
        margin: 0.6rem 0;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
    }
}
.carousel {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    padding: 20px;
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    margin-bottom: 15px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-button:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

/* Contact Section */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form, .contact-info {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h3, .contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0052a3;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Brands Section */
.brands-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.brand-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.brand-item img {
    max-width: 100px;
    height: auto;
    filter: grayscale(1);
    transition: all 0.4s ease;
    object-fit: contain;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.brand-item:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 1rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; padding: 0 1rem; }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background-color: rgba(255,255,255,0.1);
        box-shadow: none;
        padding: 0.5rem 0;
    }

    .dropdown.active .dropdown-content { display: block; }
    .dropdown-content a { padding: 0.8rem 2rem; }
    .dropdown > a { padding: 1rem; justify-content: space-between; }

    .fa-chevron-down { transition: transform 0.3s ease; }
    .dropdown.active .fa-chevron-down { transform: rotate(180deg); }

    .brands-grid { grid-template-columns: repeat(2, 1fr); padding: 1.5rem; gap: 1.5rem; }
    .brand-item { padding: 1rem; }
    .brand-item img { max-width: 100px; }

    /* Hamburger Menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        padding: 0;
        margin-left: auto;
        z-index: 1001;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--background-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 1.8rem; }
    .product-grid { grid-template-columns: 1fr; }
    .carousel-slide { flex: 0 0 100%; min-width: 100%; }
    .footer-content { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .cta-button { width: 100%; text-align: center; }
    .about-features { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .hero-content h1 { font-size: 1.6rem; margin-bottom: 0.8rem; }
    .hero-content p { font-size: 0.85rem; margin-bottom: 1.2rem; }
    .barcode i { font-size: 2.2rem; }
    .product-card { padding: 1.5rem; }
    .product-card i { font-size: 2.5rem; }
    .carousel-slide { padding: 15px; }
    .carousel-slide img { height: 150px; }
    .carousel-button { width: 40px; height: 40px; }
    .footer-content { padding: 1.5rem; }
    .navbar { padding: 0.8rem; }
    .logo { font-size: 1.5rem; }
    .nav-barcode i { font-size: 1.5rem; }
    .hero::before { background-position: center 25%; }
}

@media (max-width: 360px) {
    .hero-content h1 { font-size: 1.4rem; }
    .hero-content p { font-size: 0.8rem; }
    .barcode i { font-size: 2rem; }
    .product-card { padding: 1.2rem; }
    .product-card i { font-size: 2.2rem; }
    .carousel-slide { padding: 10px; }
    .carousel-slide img { height: 130px; }
    .carousel-button { width: 35px; height: 35px; }
    .brands-grid { grid-template-columns: 1fr; gap: 1rem; }
    .brand-item img { max-width: 80px; }
    .contact-form, .contact-info { padding: 1.5rem; }
    .navbar { padding: 0.6rem; }
    .logo { font-size: 1.3rem; gap: 10px; }
    .nav-barcode i { font-size: 1.3rem; }
    .hamburger span { width: 22px; height: 2.5px; }
    .hero::before { background-position: center 20%; }

}

/* Promo Carousel Styles */

.promo-carousel {
    padding: 4rem 2rem;
    background: #f8f9fa;
    margin: 2rem 0;
}


.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.promo-content {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.promo-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.promo-image img {
    width: 90%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    display: none;
    transition: transform 0.8s ease;
}

.promo-image img.active {
    display: block;
}

.promo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.promo-text-content {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.promo-text-content.active {
    display: block;
    opacity: 1;
}

.promo-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.promo-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #666;
}

.promo-text ul {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.promo-text ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.promo-text ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
}

.promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.promo-nav:hover {
    background: #0066cc;
    color: white;
}

.promo-nav.prev {
    left: -20px;
}

.promo-nav.next {
    right: -20px;
}

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #0066cc;
}

.dot.active {
    background: #0066cc;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
        min-height: auto;
    }

    .promo-image {
        flex: 0 0 auto;
    }

    .promo-image img {
        height: 250px;
    }

    .promo-text {
        padding: 1rem 0;
    }

    .promo-text h3 {
        font-size: 1.5rem;
    }
}


