:root {
    --primary: #000000;
    --background: #ffffff;
    --text: #000000;
    --text-light: #666666;
    --accent: #f5f5f7;
    --border: #eeeeee;
    --max-width: 1400px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Top Bar */
#top-bar {
    background: #fdfdfd;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.social-links { display: flex; gap: 1rem; }
.search-bar input {
    border: none;
    background: #f5f5f7;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Header Redesign */
header {
    height: 110px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .container {
    width: 100%;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Logo | Spacer | NavGroup */
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary);
    white-space: nowrap;
}

.nav-group {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 4rem; /* Big gap between menu and button */
}

nav ul {
    display: flex;
    gap: 3.5rem;
}

nav ul a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

.header-actions .cart-btn {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.cart-btn:hover {
    background: #333;
}

.cart-count {
    background: #fff;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}


/* Hero */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('assets/home.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Encima del video y el overlay */
}

.sub-hero {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-content p {
    color: white;
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary.btn-hero {
    background: white;
    color: black;
    border: none;
    transition: var(--transition);
}

.btn-primary.btn-hero:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.container-hero {
    position: relative;
    z-index: 2;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Offers */
#offers { padding: 4rem 0; }
.offer-card {
    height: 400px;
    background: var(--accent);
    display: flex;
    align-items: center;
    padding: 4rem;
    position: relative;
}

.offer-card.sale { background: #f0f0f4; }
.offer-card.family { background: #e8eaed; }

.offer-text h3 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 400; }
.discount {
    display: block;
    font-size: 3rem;
    font-weight: 600;
    margin: 1rem 0;
}

.btn-sm {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Carousel */
#featured-carousel { padding: 3rem 0; }
.section-header { margin-bottom: 3rem; }
.carousel-wrapper { position: relative; padding: 0 50px; }
.carousel-container { overflow: hidden; }
.carousel-track { display: flex; gap: 1.5rem; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }

.carousel-track .product-card {
    flex: 0 0 calc(16.666% - 1.25rem);
    min-width: calc(16.666% - 1.25rem);
}

.ctrl-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.ctrl-btn.prev { left: 0; }
.ctrl-btn.next { right: 0; }

/* Product Cards */
.product-card { transition: var(--transition); }
.product-image { aspect-ratio: 4/3; background: #fdfdfd; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; border: 1px solid var(--border); }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: var(--transition); padding: 5px; }
.product-card:hover .product-image img { transform: scale(1.02); }
.placeholder-text { font-size: 0.7rem; color: #999; text-transform: uppercase; position: absolute; z-index: 1; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 600; }
.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f5f5f7;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 0.8rem;
}
.price { display: block; font-weight: 600; margin-bottom: 1rem; font-size: 0.9rem; }
.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Grid layout for full catalog */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem 2rem; }

.catalog-section { padding: 3rem 0; }
.category-title { 
    grid-column: 1 / -1;
    font-size: 1.8rem; 
    font-weight: 400; 
    margin: 3rem 0 2rem; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #000;
    margin: 1.5rem auto 0;
}

/* Table styling */
#full-price-table { padding: 8rem 0; background: #fafafa; }
.table-responsive { overflow-x: auto; }
.premium-table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: white; }
.premium-table th, .premium-table td { padding: 1.5rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.premium-table th { background: #fdfdfd; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }
.premium-table tr:hover td { background: #fcfcfc; }

/* Badges */
#badges { padding: 3rem 0; border-top: 1px solid var(--border); }
.badge-item { text-align: center; }
.badge-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.badge-item h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.badge-item p { font-size: 0.9rem; color: var(--text-light); }

/* Footer */
footer { padding: 5rem 0 2rem; background: #fafafa; border-top: 1px solid var(--border); }
.footer-top { margin-bottom: 4rem; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; margin-bottom: 2rem; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-light); }
.footer-col p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
.social-footer { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; font-size: 0.8rem; color: var(--text-light); }

/* Responsivity */
@media (max-width: 1200px) {
    .carousel-track .product-card { flex: 0 0 calc(25% - 1.2rem); min-width: calc(25% - 1.2rem); }
}

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .nav-group nav { display: none; }
}

@media (max-width: 600px) {
    .container { padding: 0 1.2rem; }
    
    header { height: 80px; }
    .header-inner { display: flex; justify-content: space-between; gap: 0.5rem; }
    .logo { 
        font-size: 1.1rem; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        max-width: 160px;
    }
    
    .nav-group { gap: 0.8rem; }
    .cart-btn { padding: 0.6rem 0.8rem; font-size: 0.65rem; gap: 0.5rem; }
    .cart-btn span:not(.cart-count) { display: none; } /* Hide "Carrito" text, keep count */
    
    #hero { height: 60vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 2rem; padding: 0 1rem; }
    
    .product-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 0.8rem; }
    .category-title { font-size: 1.1rem; padding: 0 1rem; margin: 2rem 0 1.5rem; }
    
    .product-info h3 { font-size: 0.9rem; height: 2.4rem; overflow: hidden; }
    .price { font-size: 0.8rem; margin-bottom: 0.5rem; }
    .btn-outline { display: block; width: 100%; text-align: center; padding: 0.8rem 0.5rem; font-size: 0.7rem; }
    .category-tag { font-size: 0.55rem; padding: 0.2rem 0.5rem; }

    #top-bar .container { padding: 0.4rem 1rem; }
    #top-bar .flex-between { flex-direction: column; gap: 0.4rem; text-align: center; }
    .top-contact { font-size: 0.7rem; }

    footer { padding: 3rem 0 2rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-col h4 { margin-bottom: 1rem; }
    .social-footer { justify-content: center; }
    .footer-bottom { font-size: 0.7rem; }

    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav ul li {
    margin-bottom: 2.5rem;
}

.mobile-nav ul li a {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
}

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

#product-detail-page {
    padding: 4rem 0;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #fdfdfd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-selection h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1;
}

.product-selection .price {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

#detail-description {
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 500px;
}

.option-group {
    margin-bottom: 2rem;
}

.option-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

#size-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.9rem;
}

.color-swatches {
    display: flex;
    gap: 1rem;
}

.swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.swatch:hover {
    transform: scale(1.1);
}

.swatch.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px white, 0 0 0 3px var(--primary);
}

.swatch.white { background: #fff; }
.swatch.black { background: #000; }
.swatch.wood { background: #d7b494; }
.swatch.chocolate { background: #3c2a21; }
.swatch.vino { background: #800020; }

.purchase-actions {
    display: flex;
    gap: 1.5rem;
    margin: 4rem 0;
}

.quantity-picker {
    display: flex;
    border: 1px solid var(--border);
}

.quantity-picker button {
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    width: 50px;
}

.quantity-picker input {
    width: 50px;
    border: none;
    text-align: center;
    font-family: inherit;
    font-weight: 600;
}

.extra-info {
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.extra-info p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Page Layouts */
.page-hero {
    background: #fdfdfd;
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.content-section {
    padding: 4rem 0;
}

.container.narrow {
    max-width: 1000px;
}

.text-block h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.text-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

.align-center {
    align-items: center;
}

/* Testimonials */
.testimonials-section {
    padding: 8rem 0;
    background: #fafafa;
}

.center { text-align: center; margin-bottom: 4rem; }

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.testimonial-card p {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Help Blocks */
.help-grid {
    display: grid;
    gap: 4rem;
}

.help-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-top: 2rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-info .info-item {
    margin-bottom: 2rem;
}

.contact-info strong {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    font-family: inherit;
}

/* Checkout Page */
.checkout-page {
    background: #f9fafb;
}

.checkout-step-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.header-spacer {
    grid-column: 2;
}

.checkout-layout {
    padding: 6rem 0;
}

.checkout-forms {
    background: white;
    padding: 4rem;
    border: 1px solid var(--border);
}

.order-summary {
    background: white;
    padding: 4rem;
    border: 1px solid var(--border);
    position: sticky;
    top: 130px;
    height: fit-content;
}

.form-section {
    margin-bottom: 4rem;
}

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.col-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #888;
}

.form-group input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus {
    border-color: #000;
    outline: none;
}

/* Payment styles */
.payment-method-selector {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.method {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.method.active {
    background: white;
    border-left: 4px solid var(--primary);
}

.item-img img {
    max-width: 80px;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 5px;
}

.summary-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.item-info p {
    font-size: 0.8rem;
    color: #666;
}

.item-price {
    margin-left: auto;
    font-weight: 600;
    font-size: 1rem;
}

.summary-footer {
    margin-top: 3rem;
}

.summary-footer .flex-between {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.total-row {
    border-top: 2px solid #000;
    padding-top: 2rem;
    margin-top: 2rem;
    color: #000 !important;
    font-weight: 700;
    font-size: 1.2rem !important;
}

/* Success Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 5rem;
    text-align: center;
    max-width: 500px;
    border-radius: 8px;
    animation: slideUp 0.5s ease;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .checkout-layout .grid-2 {
        grid-template-columns: 1fr;
    }
    .checkout-layout .order-summary {
        order: -1;
        position: static;
        margin-bottom: 2rem;
    }
    .checkout-forms {
        padding: 2rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #FFF;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}
