:root {
            /* Variables originales mapeadas a la paleta de Baluarte */
            --primary-color: #5C3D2E;
            --accent-color: #A0522D;
            --text-dark: #3E2723;
            --text-light: #7A5C44;
            --bg-grey: #E8DCC8;
            --border-color: #C4943A;
            --card-bg: #F5ECD7;
            
            /* Nuevas variables */
            --color-terracotta: #A0522D;
            --color-green: #2D5016;
            --color-light-ochre: #D4A84B;
            --font-title: 'Constantia', Georgia, serif;
            --font-body: 'Nunito Sans', sans-serif;
            --shadow-warm: 0 4px 24px rgba(92, 61, 46, 0.25);
            --border-radius-btn: 6px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-body);
            background-color: var(--bg-grey);
            background-image:
              radial-gradient(ellipse at 20% 20%, rgba(196,148,58,0.08) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 75%, rgba(92,61,46,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 55% 45%, rgba(45,80,22,0.04) 0%, transparent 60%),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
            color: var(--text-dark);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* ANIMACIONES DE CARGA */
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .product-img.loaded,
        .modal-slider-img.loaded {
            animation: none;
            background: transparent;
        }

        /* NAVEGACIÓN */
        .navigation {
            background: rgba(62, 39, 35, 0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-bottom: 2px solid rgba(196,148,58,0.3);
            padding: 15px 50px;
            box-shadow: var(--shadow-warm);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .logo-nav {
            max-height: 80px;
            width: auto;
            transition: transform 0.3s ease;
        }

        .logo-nav:hover {
            transform: scale(1.05);
        }

        .nav-center {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }

        .nav-sections {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .search-container {
            position: relative;
            width: 100%;
            max-width: 400px;
        }

        .search-input {
            width: 100%;
            padding: 10px 40px 10px 15px;
            border: 2px solid var(--border-color);
            border-radius: 25px;
            font-size: 0.95rem;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.1);
        }

        .search-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            font-size: 1.1rem;
        }

        .nav-btn {
            background: transparent;
            color: #F5ECD7;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.82rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            transition: all 0.3s ease;
            font-family: var(--font-body);
            position: relative;
        }

        .nav-btn::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: var(--color-light-ochre);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .nav-btn:hover {
            background: transparent;
            color: var(--color-light-ochre);
            transform: translateY(-2px);
        }

        .nav-btn:hover::after {
            width: 80%;
        }

        .nav-btn.active {
            background: transparent;
            color: var(--color-light-ochre);
        }
        
        .nav-btn.active::after {
            width: 80%;
        }

        /* NAVEGACIÓN DE SUBSECCIONES */
        .subsections-nav {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
            padding: 20px 50px;
            background: rgba(255, 255, 255, 0.5);
            border-bottom: 2px solid var(--border-color);
        }

        .subsection-btn {
            background: white;
            color: var(--text-dark);
            border: 2px solid var(--border-color);
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
        }

        .subsection-btn:hover {
            background: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
            transform: translateY(-2px);
        }

        .subsection-btn.active {
            background: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
        }

        .subsection {
            animation: fadeIn 0.4s ease;
        }

        /* PÁGINAS */
        .page {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .page.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* HEADER DE SECCIÓN */
        .section-header {
            background: transparent;
            color: var(--primary-color);
            padding: 50px 50px 30px;
            text-align: center;
            margin-bottom: 20px;
            position: relative;
        }

        .section-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10%;
            right: 10%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--border-color), transparent);
            opacity: 0.5;
        }

        .section-header h1 {
            font-family: var(--font-title);
            font-size: 2.8rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-transform: uppercase;
            color: var(--primary-color);
            text-shadow: 1px 2px 0px rgba(196,148,58,0.2);
        }

        .section-header p {
            font-size: 1.1rem;
            color: var(--text-light);
            font-weight: 600;
            letter-spacing: 0.1em;
            opacity: 0.95;
        }

        .contact-info {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
            font-size: 0.9rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0.95;
        }

        .contact-item svg {
            width: 18px;
            height: 18px;
            fill: white;
        }

        /* GRID DE PRODUCTOS */
        .products-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px 40px 60px;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }

        .product-card {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(92,61,46,0.15);
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid rgba(196,148,58,0.2);
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(92,61,46,0.25);
        }

        .product-img {
            width: 100%;
            height: 200px;
            object-fit: contain;
            border-radius: 8px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            margin-bottom: 15px;
        }

        .product-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 12px;
            min-height: 2.2em;
        }

        .product-description {
            font-size: 0.85rem;
            color: var(--text-light);
            margin-bottom: 10px;
            line-height: 1.4;
            display: none;  /* Oculto en desktop (tooltip en imagen) */
        }

        .product-info {
            font-size: 0.9rem;
            color: var(--text-light);
            line-height: 1.6;
        }

        .product-info-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid var(--bg-grey);
        }

        .product-info-row:last-child {
            border-bottom: none;
        }

        .info-label {
            font-weight: 500;
            color: var(--text-dark);
        }

        .product-price {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--accent-color);
            margin-top: 10px;
            text-align: right;
        }

        .color-dots {
            display: flex;
            gap: 6px;
            margin-top: 10px;
            justify-content: center;
        }

        .dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid #ddd;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        /* MODAL DE VISTA PREVIA */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            animation: fadeIn 0.3s ease;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 16px;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp 0.3s ease;
            position: relative;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2rem;
            color: #666;
            cursor: pointer;
            background: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 10;
        }

        .modal-close:hover {
            background: var(--bg-grey);
            color: var(--text-dark);
        }

        .modal-body {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            padding: 40px;
        }

        /* SLIDER DE IMÁGENES */
        .modal-slider-container {
            position: relative;
            width: 100%;
        }

        .modal-image {
            width: 100%;
            height: auto;
            max-height: 500px;
            object-fit: contain;
            border-radius: 12px;
            background: #f8f8f8;
            display: none;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .modal-image.active {
            display: block;
            opacity: 1;
        }

        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            color: var(--text-dark);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            z-index: 5;
        }

        .slider-arrow:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-50%) scale(1.1);
        }

        .slider-arrow.prev {
            left: 10px;
        }

        .slider-arrow.next {
            right: 10px;
        }

        .slider-dots {
            display: flex;
            gap: 8px;
            justify-content: center;
            margin-top: 15px;
        }

        .slider-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .slider-dot.active {
            background: var(--primary-color);
            width: 12px;
            height: 12px;
        }

        .slider-dot:hover {
            background: var(--accent-color);
        }

        /* Indicador de auto-play */
        .slider-autoplay-indicator {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 10;
        }

        .slider-autoplay-indicator.paused {
            background: rgba(200, 168, 130, 0.8);
        }

        .autoplay-icon {
            width: 12px;
            height: 12px;
            display: inline-block;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .autoplay-icon.playing {
            animation: pulse 1.5s infinite;
        }

        .modal-info h2 {
            font-size: 2rem;
            color: var(--text-dark);
            margin-bottom: 20px;
        }

        .modal-details {
            margin-bottom: 20px;
        }

        .modal-detail-row {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid var(--bg-grey);
        }

        .modal-detail-label {
            font-weight: 600;
            color: var(--text-dark);
            min-width: 140px;
        }

        .modal-detail-value {
            color: var(--text-light);
        }

        .modal-price {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent-color);
            margin-top: 20px;
        }

        .modal-colors {
            margin-top: 15px;
        }

        .modal-colors-label {
            font-weight: 600;
            margin-bottom: 10px;
            display: block;
        }

        .whatsapp-btn {
            background: linear-gradient(135deg, var(--color-green), #1b330d);
            color: var(--card-bg);
            border: 2px solid rgba(196,148,58,0.4);
            padding: 15px 25px;
            border-radius: var(--border-radius-btn);
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(45,80,22,0.3);
            font-family: var(--font-body);
            width: 100%;
        }

        .whatsapp-btn:hover {
            background: linear-gradient(135deg, #3a681c, var(--color-green));
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(45,80,22,0.4);
        }

        .whatsapp-btn:active {
            transform: translateY(0);
        }

        /* FOOTER */
        .footer {
            background: var(--primary-color);
            color: var(--card-bg);
            padding: 60px 50px 40px;
            text-align: center;
            margin-top: 50px;
            position: relative;
            border-top: 4px solid var(--border-color);
        }

        .footer-logo {
            max-height: 80px;
            margin-bottom: 20px;
            filter: brightness(0) invert(1);
        }

        .footer h3 {
            font-family: var(--font-title);
            font-size: 1.8rem;
            margin-bottom: 10px;
            color: var(--border-color);
            text-transform: uppercase;
        }

        .footer p {
            margin-bottom: 15px;
            font-size: 0.95rem;
            letter-spacing: 0.1em;
            color: rgba(245, 236, 215, 0.8);
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .navigation {
                padding: 15px 20px;
            }

            .nav-container {
                flex-direction: column;
                gap: 10px;
            }

            .nav-center {
                width: 100%;
            }

            .nav-sections {
                flex-wrap: wrap;
                justify-content: center;
            }

            .nav-btn {
                font-size: 0.85rem;
                padding: 8px 15px;
            }

            .search-container {
                max-width: 100%;
            }

            .products-container {
                padding: 20px 15px;
            }

            .products-grid {
                grid-template-columns: 1fr !important;
                gap: 20px;
            }

            .product-card {
                max-width: 100%;
            }

            .product-description {
                display: block;  /* Mostrar descripción en móviles */
            }

            .section-header {
                padding: 30px 20px 40px;
            }

            .section-header h1 {
                font-size: 1.8rem;
            }

            .section-header p {
                font-size: 1rem;
            }

            .modal-content {
                max-width: 95%;
                margin: 20px;
            }

            .modal-body {
                grid-template-columns: 1fr;
                padding: 30px 20px;
                gap: 20px;
            }

            .modal-close {
                top: 10px;
                right: 10px;
            }

            .whatsapp-btn {
                padding: 12px 20px;
                font-size: 0.9rem;
            }

            .footer {
                padding: 40px 20px 30px;
            }

            .contact-info {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }
        }

        /* Extra pequeño (móviles pequeños) */
        @media (max-width: 480px) {
            .section-header h1 {
                font-size: 1.5rem;
            }

            .nav-btn {
                font-size: 0.8rem;
                padding: 6px 12px;
            }

            .product-title {
                font-size: 1rem;
            }

            .modal-info h2 {
                font-size: 1.5rem;
            }
        }

        /* PRINT */
        @media print {
            .navigation, .modal { display: none !important; }
            .page { display: block !important; page-break-after: always; }
            .product-card { break-inside: avoid; }
        }