        :root {
            --primary: #D4A574;
            --primary-dark: #B8956A;
            --secondary: #2C3E50;
            --accent: #E8C4A0;
            --dark: #1A1A1A;
            --light: #FAFAFA;
            --gray: #6B7280;
            --success: #10B981;
            --gradient-1: linear-gradient(135deg, #D4A574 0%, #E8C4A0 100%);
            --gradient-2: linear-gradient(135deg, #2C3E50 0%, #4A6B8A 100%);
            --shadow: 0 10px 40px rgba(0,0,0,0.1);
            --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
            --header-h: 72px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html { scroll-padding-top: var(--header-h); scroll-behavior: smooth; }
        
        body {
            font-family: 'Poppins', sans-serif;
            background: var(--light);
            color: var(--dark);
            overflow-x: hidden;
        }
        
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Playfair Display', serif;
        }
        
        /* ========== HEADER ========== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            min-height: var(--header-h);
            box-sizing: border-box;
        }
        
        .header.scrolled {
            box-shadow: var(--shadow);
        }
        
        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            white-space: nowrap;
            max-width: 70%;
            overflow: hidden;
        }
        .logo-icon {
            width: 44px;
            height: 44px;
            min-width: 44px;
            aspect-ratio: 1;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border: 2px solid rgba(212,165,116,0.15);
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }
        .logo-icon i {
            font-size: 1.1rem;
            color: var(--primary);
        }
        .logo-text {
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1;
        }
        @media (max-width: 480px) {
            .logo { font-size: 1.15rem; gap: 0.45rem; max-width: 62%; }
            .logo-icon { width: 36px; height: 36px; min-width: 36px; }
        }
        
        .nav-menu {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        
        .nav-menu a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            padding: 0.5rem 0;
        }
        
        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }
        
        .nav-menu a:hover::after {
            width: 100%;
        }
        
        .header-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        
        .cart-btn {
            position: relative;
            background: none;
            border: none;
            font-size: 1.3rem;
            color: var(--dark);
            cursor: pointer;
            padding: 0.5rem;
        }
        
        .cart-count {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--primary);
            color: white;
            font-size: 0.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* ========== HERO SECTION ========== — corregido: ya no se corta con el header fijo */
        .hero {
            /* Empieza debajo del header fijo en vez de detrás */
            margin-top: var(--header-h);
            min-height: calc(100vh - var(--header-h));
            display: flex;
            align-items: center;
            gap: 4%;
            padding: 4rem 5%;
            background: linear-gradient(135deg, #FFF8F3 0%, #FEF6F0 50%, #FFF5EE 100%);
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 80%;
            height: 150%;
            background: radial-gradient(circle, rgba(212,165,116,0.15) 0%, transparent 70%);
            animation: pulse 8s ease-in-out infinite;
        }
        
        .hero::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 60%;
            height: 100%;
            background: radial-gradient(circle, rgba(232,196,160,0.2) 0%, transparent 60%);
            animation: pulse 10s ease-in-out infinite reverse;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.2); opacity: 0.8; }
        }
        
        .hero-content {
            max-width: 600px;
            z-index: 1;
        }
        
        .hero-badge {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(30px);
        }
        
        .hero-title {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            line-height: 1.1;
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(50px);
        }
        
        .hero-title span {
            color: var(--primary);
        }
        
        .hero-desc {
            font-size: 1.1rem;
            color: var(--gray);
            margin-bottom: 2rem;
            line-height: 1.8;
            opacity: 0;
            transform: translateY(30px);
        }
        
        .hero-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            opacity: 0;
            transform: translateY(30px);
        }
        
        .btn {
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }
        
        .btn-primary {
            background: var(--gradient-1);
            color: white;
            box-shadow: 0 10px 30px rgba(212,165,116,0.4);
        }
        
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(212,165,116,0.5);
        }
        
        .btn-secondary {
            background: white;
            color: var(--dark);
            border: 2px solid var(--primary);
        }
        
        .btn-secondary:hover {
            background: var(--primary);
            color: white;
        }
        
        .hero-image {
            position: absolute;
            right: 5%;
            top: 50%;
            transform: translateY(-50%);
            width: 45%;
            max-width: 600px;
            z-index: 1;
            /* Evita que la imagen se recorte con el header: contenida dentro del hero ya desplazado */
            max-height: calc(100vh - var(--header-h) - 4rem);
            display: flex;
            align-items: center;
        }
        
        .hero-image img {
            width: 100%;
            height: auto;
            max-height: calc(100vh - var(--header-h) - 4rem);
            object-fit: cover;
            object-position: center top;
            border-radius: 30px;
            box-shadow: var(--shadow);
            display: block;
        }
        
        .floating-card {
            position: absolute;
            background: white;
            padding: 1rem 1.5rem;
            border-radius: 20px;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 1rem;
            animation: float 6s ease-in-out infinite;
        }
        
        .floating-card-1 {
            top: 20%;
            right: 5%;
            left: auto;
            animation-delay: 0s;
        }
        
        .floating-card-2 {
            bottom: 20%;
            right: 10%;
            left: auto;
            animation-delay: 2s;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        
        .floating-card-icon {
            width: 50px;
            height: 50px;
            background: var(--gradient-1);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.3rem;
        }
        
        /* ========== PRINCIPAL CATEGORIES (destacadas, máx 5) ========== */
        .principal-categories {
            padding: 4rem 5% 5rem;
            background: white;
            border-bottom: 1px solid #f3f4f6;
        }
        .principal-grid {
            display: grid;
            gap: 1.25rem;
            /* Mobile-first: 1 col */
            grid-template-columns: 1fr;
        }
        .principal-card {
            position: relative;
            border-radius: 24px;
            overflow: hidden;
            cursor: pointer;
            text-decoration: none;
            display: block;
            background: #f9fafb;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
            transition: transform 0.35s ease, box-shadow 0.35s ease;
            /* aspect ratio responsive */
            aspect-ratio: 4 / 3;
        }
        .principal-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-hover);
        }
        .principal-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.6s ease;
        }
        .principal-card:hover img { transform: scale(1.07); }
        .principal-card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(26,26,26,0.78) 0%, rgba(26,26,26,0.15) 55%, transparent 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.25rem 1.25rem 1.1rem;
            color: white;
        }
        .principal-card-badge {
            position: absolute;
            top: 0.9rem;
            left: 0.9rem;
            background: rgba(255,255,255,0.92);
            color: var(--primary);
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            padding: 0.32rem 0.62rem;
            border-radius: 99px;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            backdrop-filter: blur(6px);
        }
        .principal-card h3 {
            font-size: 1.15rem;
            line-height: 1.2;
            margin: 0 0 0.25rem;
            color: white;
            font-family: 'Playfair Display', serif;
        }
        .principal-card p {
            font-size: 0.82rem;
            opacity: 0.88;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .principal-card-cta {
            margin-top: 0.7rem;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.78rem;
            font-weight: 600;
            color: white;
            opacity: 0.95;
        }
        .principal-card-cta i { transition: transform 0.3s ease; }
        .principal-card:hover .principal-card-cta i { transform: translateX(4px); }

        /* Responsive breakpoints para principal-grid */
        @media (min-width: 480px) {
            .principal-grid { grid-template-columns: repeat(2, 1fr); }
            .principal-card { aspect-ratio: 1 / 1; }
        }
        @media (min-width: 768px) {
            .principal-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
            .principal-card h3 { font-size: 1.25rem; }
        }
        @media (min-width: 1024px) {
            .principal-grid { grid-template-columns: repeat(5, 1fr); }
            .principal-card { aspect-ratio: 4 / 5; }
        }
        /* Si hay menos de 5, que se centren y no se estiren feo */
        @media (min-width: 1024px) {
            .principal-grid:has(> :only-child) { grid-template-columns: minmax(280px, 360px); justify-content: center; }
            .principal-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(260px, 1fr)); max-width: 720px; margin-inline: auto; }
            .principal-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
            .principal-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin-inline: auto; }
        }

        /* ========== CATEGORIES SECTION ========== */
        .categories {
            padding: 6rem 5%;
            background: white;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }
        
        .section-tag {
            display: inline-block;
            color: var(--primary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 3px;
            font-size: 0.8rem;
            margin-bottom: 1rem;
        }
        
        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            margin-bottom: 1rem;
        }
        
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .category-card {
            position: relative;
            height: 350px;
            border-radius: 30px;
            overflow: hidden;
            cursor: pointer;
        }
        
        .category-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }
        
        .category-card:hover img {
            transform: scale(1.1);
        }
        
        .category-card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 2rem;
            color: white;
        }
        
        .category-card h3 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }
        
        .category-card p {
            opacity: 0.8;
            font-size: 0.9rem;
        }
        
        .category-card-arrow {
            position: absolute;
            bottom: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark);
            transform: translateX(100px);
            opacity: 0;
            transition: all 0.4s ease;
        }
        
        .category-card:hover .category-card-arrow {
            transform: translateX(0);
            opacity: 1;
        }
        
        /* ========== FEATURED PRODUCTS ========== */
        .featured {
            padding: 6rem 5%;
            background: var(--light);
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
        }

        /* — Carrusel de Destacados (responsive + scroll-snap) — */
        .featured-carousel-section {
            padding: 6rem 5%;
            background: var(--light);
        }
        .carousel-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        .carousel-header .section-header {
            text-align: left;
            margin-bottom: 0;
            flex: 1;
            min-width: 240px;
        }
        .carousel-controls {
            display: flex;
            gap: 0.6rem;
            align-items: center;
        }
        .carousel-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid var(--primary);
            background: white;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.25s ease;
            font-size: 0.9rem;
        }
        .carousel-btn:hover { background: var(--primary); color: white; transform: scale(1.05); }
        .carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
        .carousel-btn:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
        .carousel-wrapper {
            position: relative;
            overflow: hidden;
        }
        .carousel-track {
            display: flex;
            gap: 1.25rem;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            padding: 0.5rem 0.2rem 1.2rem;
            scrollbar-width: none;
        }
        .carousel-track::-webkit-scrollbar { display: none; }
        .carousel-track .product-card {
            flex: 0 0 88%;
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }
        .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 0.45rem;
            margin-top: 1.2rem;
        }
        .carousel-dot {
            width: 8px; height: 8px;
            border-radius: 99px;
            background: #E5E7EB;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 0;
        }
        .carousel-dot.active { background: var(--primary); width: 22px; }
        .carousel-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--gray);
            background: white;
            border-radius: 20px;
            border: 1px dashed #E5E7EB;
        }
        .carousel-empty i { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.8rem; display: block; }
        @media (min-width: 480px) {
            .carousel-track .product-card { flex: 0 0 calc(50% - 0.65rem); }
        }
        @media (min-width: 768px) {
            .carousel-track .product-card { flex: 0 0 calc(33.333% - 0.85rem); }
        }
        @media (min-width: 1024px) {
            .carousel-track .product-card { flex: 0 0 calc(25% - 0.95rem); }
        }
        @media (min-width: 1280px) {
            .carousel-track .product-card { flex: 0 0 calc(25% - 0.95rem); }
        }
        
        .product-card {
            background: white;
            border-radius: 25px;
            overflow: hidden;
            transition: all 0.4s ease;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        }
        
        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }
        
        .product-image {
            position: relative;
            height: 300px;
            overflow: hidden;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .product-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: var(--primary);
            color: white;
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .product-actions {
            position: absolute;
            top: 1rem;
            right: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            opacity: 0;
            transform: translateX(20px);
            transition: all 0.3s ease;
        }
        
        .product-card:hover .product-actions {
            opacity: 1;
            transform: translateX(0);
        }
        
        .product-action-btn {
            width: 40px;
            height: 40px;
            background: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        
        .product-action-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        .product-info {
            padding: 1.5rem;
        }
        
        .product-category {
            font-size: 0.8rem;
            color: var(--primary);
            font-weight: 500;
            margin-bottom: 0.5rem;
        }
        
        .product-name {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            font-family: 'Playfair Display', serif;
        }
        
        .product-price {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }
        
        .current-price {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary);
        }
        
        .old-price {
            font-size: 1rem;
            color: var(--gray);
            text-decoration: line-through;
        }
        
        /* ========== FEATURES ========== */
        .features {
            padding: 6rem 5%;
            background: var(--gradient-2);
            color: white;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            text-align: center;
        }
        
        .feature-item {
            padding: 2rem;
        }
        
        .feature-icon {
            width: 80px;
            height: 80px;
            background: rgba(255,255,255,0.1);
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin: 0 auto 1.5rem;
        }
        
        .feature-item h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }
        
        .feature-item p {
            opacity: 0.8;
            font-size: 0.95rem;
            line-height: 1.6;
        }
        
        /* ========== NEWSLETTER ========== */
        .newsletter {
            padding: 6rem 5%;
            background: linear-gradient(135deg, #FFF8F3 0%, #FEF6F0 100%);
            text-align: center;
        }
        
        .newsletter-form {
            max-width: 500px;
            margin: 2rem auto 0;
            display: flex;
            gap: 1rem;
        }
        
        .newsletter-form input {
            flex: 1;
            padding: 1rem 1.5rem;
            border: 2px solid transparent;
            border-radius: 50px;
            font-size: 1rem;
            background: white;
            box-shadow: var(--shadow);
            outline: none;
            transition: all 0.3s ease;
        }
        
        .newsletter-form input:focus {
            border-color: var(--primary);
        }
        
        /* ========== FOOTER ========== */
        .footer {
            background: var(--dark);
            color: white;
            padding: 4rem 5% 2rem;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }
        
        .footer-col h4 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }
        
        .footer-col ul {
            list-style: none;
        }
        
        .footer-col li {
            margin-bottom: 0.8rem;
        }
        
        .footer-col a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-col a:hover {
            color: var(--primary);
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 2rem;
            text-align: center;
            opacity: 0.7;
        }
        
        /* ========== CART SIDEBAR ========== */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 400px;
            height: 100vh;
            background: white;
            box-shadow: -10px 0 40px rgba(0,0,0,0.1);
            z-index: 2000;
            transition: right 0.4s ease;
            display: flex;
            flex-direction: column;
        }
        
        .cart-sidebar.open {
            right: 0;
        }
        
        .cart-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1999;
        }
        
        .cart-overlay.open {
            opacity: 1;
            visibility: visible;
        }
        
        /* ========== MOBILE MENU ========== */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        @media (max-width: 768px) {
            :root { --header-h: 60px; }
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: white;
                flex-direction: column;
                padding: 2rem;
                gap: 1rem;
                box-shadow: var(--shadow);
            }
            
            .nav-menu.active {
                display: flex;
            }
            
            .mobile-toggle {
                display: block;
            }
            
            .hero {
                flex-direction: column;
                text-align: center;
                padding: 2.5rem 5% 3rem;
                min-height: auto;
            }
            
            .hero-content {
                max-width: 100%;
            }
            
            .hero-image {
                position: relative;
                width: 100%;
                right: 0;
                transform: none;
                margin-top: 2rem;
                max-height: none;
            }
            .hero-image img {
                max-height: 52vh;
                object-fit: cover;
            }
            
            .floating-card {
                display: none;
            }
            
            .hero-buttons {
                justify-content: center;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .cart-sidebar {
                width: 100%;
                right: -100%;
            }
        }
        
        /* Medium screens - hide floating cards to avoid text overlap */
        @media (min-width: 769px) and (max-width: 1199px) {
            .floating-card {
                display: none;
            }
        }
