/* ===== VARIABLES ===== */
:root {
    --primary: #1a1a1a;
    --secondary: #333;
    --accent: #c9a227;
    --light: #fff;
    --gray: #f8f8f8;
    --border: #e5e5e5;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    color: var(--primary);
}

/* ===== HEADER ===== */
header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Izquierda: Menú hamburguesa */
.menu-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

.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);
}

/* Menú lateral */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--light);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s;
    z-index: 1001;
    padding: 2rem;
}

.side-menu.active {
    left: 0;
}

.side-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.side-menu h3 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    margin-bottom: 1rem;
}

.side-menu a {
    text-decoration: none;
    color: var(--primary);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.side-menu a:hover {
    color: var(--accent);
}

/* Centro: Logo */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Derecha: Carrito */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--light);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.overlay.active {
    display: block;
}

/* ===== HERO ===== */
.hero {
    margin-top: 70px;
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== INFO BOX ===== */
.info-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.info-box {
    background: var(--gray);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
}

.info-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-box p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.info-box ul {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.info-box li {
    padding: 0.5rem 0;
    color: var(--secondary);
    position: relative;
    padding-left: 1.5rem;
}

.info-box li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== SECCIONES ===== */
section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* ===== PRODUCTOS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    background: var(--gray);
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== CATALOGO ===== */
.catalog-header {
    margin-top: 80px;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--gray);
}

.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.catalog-header p {
    color: var(--secondary);
}

/* ===== PRODUCTO DETALLE ===== */
.product-detail {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-gallery {
    padding: 3rem;
    background: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1;
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--light);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0.5rem;
    transition: all 0.2s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--accent);
}

.product-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-category-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    width: fit-content;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-subtitle {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.product-price-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--secondary);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-add {
    background: var(--primary);
    color: var(--light);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== CONTACTO ===== */
.contact-section {
    background: var(--gray);
    border-radius: 20px;
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info > p {
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.contact-form {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--light);
}

footer p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price-big {
        font-size: 2rem;
    }
}
