/* Estilos Generales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --success-color: #2ecc71;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s linear;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #f9f9f9;
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style-type: none;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo h1 span {
    color: var(--secondary-color);
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    margin-left: 3rem;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Carrito */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.cart-overlay.show {
    visibility: visible;
    opacity: 1;
}

.cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
}

.cart-overlay.show .cart {
    transform: translateX(0);
}

.close-cart {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--secondary-color);
}

.cart h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.cart-content {
    flex: 1;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 30px;
    grid-gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: bold;
}

.remove-item {
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

 .fa-chevron-up, .fa-chevron-down{
    cursor: pointer;
}


.remove-item:hover {
    color: var(--secondary-color);
}

.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.cart-footer h3 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.cart-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.clear-cart {
    background: var(--gray-color);
}

.clear-cart:hover {
    background: #7f8c8d;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.pexels.com/photos/120049/pexels-photo-120049.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    padding-top: 80px;
}

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

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Productos */
.products {
    padding: 5rem 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0 0.5rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 5px;
}

.filter-btn.active {
    background: var(--secondary-color);
    color: #fff;
}

.products-center {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-header {
    height: 200px;
    overflow: hidden;
}

.product-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product:hover .product-header img {
    transform: scale(1.1);
}

.product-footer {
    padding: 1.5rem;
}

.product-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-footer .price {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-footer .desc {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.destacado {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Testimonios */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1483721310020-03333e577078?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: #fff;
    text-align: center;
}

.testimonials-center {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonials .section-title {
    color: #fff;
}

.rating {
    color: #f1c40f;
    margin-bottom: 1.5rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial p::before,
.testimonial p::after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.5;
    position: absolute;
}

.testimonial p::before {
    top: -20px;
    left: -10px;
}

.testimonial p::after {
    bottom: -40px;
    right: -10px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1.1rem;
}

/* Contacto */
.contact {
    padding: 5rem 0;
}

.contact-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 4rem 0 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--light-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: var(--font-main);
}

.newsletter-form button {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #c0392b;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products-center {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 1rem 0;
    }
    
    .cart-icon {
        margin-right: 1.5rem;
    }
    
    .hero {
        height: auto;
        padding: 10rem 0 5rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .contact-center {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        order: -1;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .filter-btn {
        margin: 0.3rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}