<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <!-- SEO Meta Tags -->
    <title>Decoración y Muebles | Directorio en España</title>
    <meta name="description" content="Directorio de tiendas de decoración y muebles en España. Encuentra el mueble perfecto para tu hogar.">
    <meta name="keywords" content="directorio, españa, empresas">
    <meta name="author" content="Decoración y Muebles">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="https://decoracionymuebles.net/">
    
    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://decoracionymuebles.net/">
    <meta property="og:title" content="Decoración y Muebles | Directorio en España">
    <meta property="og:description" content="Directorio de tiendas de decoración y muebles en España. Encuentra el mueble perfecto para tu hogar.">
    <meta property="og:image" content="https://decoracionymuebles.net/img/og-image.jpg">
    <meta property="og:locale" content="es_ES">
    <meta property="og:site_name" content="Decoración y Muebles">
    
    <!-- Twitter -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="https://decoracionymuebles.net/">
    <meta name="twitter:title" content="Decoración y Muebles | Directorio en España">
    <meta name="twitter:description" content="Directorio de tiendas de decoración y muebles en España. Encuentra el mueble perfecto para tu hogar.">
    <meta name="twitter:image" content="https://decoracionymuebles.net/img/og-image.jpg">
    
    <!-- Favicon -->
    <link rel="icon" type="image/svg+xml" href="https://decoracionymuebles.net/favicon.svg">
    <link rel="apple-touch-icon" sizes="180x180" href="https://decoracionymuebles.net/img/apple-touch-icon.png">
    
    <!-- CSS Variables para branding dinámico -->
    <style>
        :root {
            --color-primary: #c2410c;
            --color-secondary: #9a3412;
            --color-accent: #fb923c;
        }
    </style>
    
    <!-- Schema.org WebSite -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "WebSite",
        "name": "Decoración y Muebles",
        "url": "https://decoracionymuebles.net",
        "description": "Directorio de tiendas de decoración y muebles en España. Encuentra el mueble perfecto para tu hogar.",
        "potentialAction": {
            "@type": "SearchAction",
            "target": "https://decoracionymuebles.net/buscar/?q={search_term_string}",
            "query-input": "required name=search_term_string"
        }
    }
    </script>
    
        
    <!-- BreadcrumbList automático (si hay contexto, no en home) -->
        <script type="application/ld+json">
    {"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Inicio","item":"https://decoracionymuebles.net"}]}    </script>
        
    <!-- Google Analytics (por site) -->
        
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        // Tailwind config dinámico por site
        tailwind.config = {"theme":{"extend":{"colors":{"primary":"#c2410c","secondary":"#9a3412","accent":"#fb923c"}}}};
    </script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    
    <link rel="stylesheet" href="https://decoracionymuebles.net/css/styles.css">
    <style>
        body { font-family: 'Inter', sans-serif; }
        
        /* Gradientes dinámicos con CSS variables */
        .hero-gradient { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); }
        .btn-gradient { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); }
        
        .card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
        
        .nav-link { position: relative; }
        .nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width 0.3s; }
        .nav-link:hover::after { width: 100%; }
        
        /* Scrollbar con colores del site */
        ::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }
    </style>
</head>
<body class="bg-gray-50">
<nav class="bg-white shadow-sm sticky top-0 z-50">
    <div class="container mx-auto px-4">
        <div class="flex justify-between items-center h-16">
            <!-- Logo dinámico -->
            <a href="https://decoracionymuebles.net" class="flex items-center gap-2">
                <i class="fas fa-couch text-2xl" style="color:#c2410c"></i>
            <span class="font-bold text-xl text-gray-900">Decoración y Muebles</span>            </a>
            
            <!-- Desktop Menu -->
            <div class="hidden md:flex items-center gap-6">
                <a href="https://decoracionymuebles.net" class="nav-link text-gray-600 hover:text-primary font-medium">Inicio</a>
                <a href="https://decoracionymuebles.net/provincias/" class="nav-link text-gray-600 hover:text-primary font-medium">Provincias</a>
                <a href="https://decoracionymuebles.net/sectores/" class="nav-link text-gray-600 hover:text-primary font-medium">Sectores</a>
                <a href="https://decoracionymuebles.net/blog/" class="nav-link text-gray-600 hover:text-primary font-medium">Blog</a>
                <a href="https://decoracionymuebles.net/buscar/" class="bg-primary text-white px-4 py-2 rounded-lg font-medium hover:bg-secondary transition">
                    <i class="fas fa-search mr-1"></i> Buscar                </a>
                <a href="https://decoracionymuebles.net/contacto/" class="nav-link text-gray-600 hover:text-primary font-medium">Contacto</a>
            </div>
            
            <!-- Mobile Menu Button -->
            <button id="menu-toggle" class="md:hidden text-gray-600 hover:text-primary focus:outline-none">
                <i class="fas fa-bars text-2xl"></i>
            </button>
        </div>
        
        <!-- Mobile Menu -->
        <div id="mobile-menu" class="hidden md:hidden pb-4">
            <div class="flex flex-col gap-3">
                <a href="https://decoracionymuebles.net" class="text-gray-600 hover:text-primary font-medium py-2 border-b border-gray-100">
                    <i class="fas fa-home mr-2"></i>Inicio                </a>
                <a href="https://decoracionymuebles.net/provincias/" class="text-gray-600 hover:text-primary font-medium py-2 border-b border-gray-100">
                    <i class="fas fa-map mr-2"></i>Provincias                </a>
                <a href="https://decoracionymuebles.net/sectores/" class="text-gray-600 hover:text-primary font-medium py-2 border-b border-gray-100">
                    <i class="fas fa-th-large mr-2"></i>Sectores                </a>
                <a href="https://decoracionymuebles.net/blog/" class="text-gray-600 hover:text-primary font-medium py-2 border-b border-gray-100">
                    <i class="fas fa-newspaper mr-2"></i>Blog                </a>
                <a href="https://decoracionymuebles.net/buscar/" class="text-primary font-medium py-2 border-b border-gray-100">
                    <i class="fas fa-search mr-2"></i>Buscar empresas                </a>
                <a href="https://decoracionymuebles.net/contacto/" class="text-gray-600 hover:text-primary font-medium py-2">
                    <i class="fas fa-envelope mr-2"></i>Contacto                </a>
            </div>
        </div>
    </div>
</nav>

<script>
document.getElementById('menu-toggle').addEventListener('click', function() {
    const menu = document.getElementById('mobile-menu');
    const icon = this.querySelector('i');
    menu.classList.toggle('hidden');
    if (menu.classList.contains('hidden')) {
        icon.classList.remove('fa-times');
        icon.classList.add('fa-bars');
    } else {
        icon.classList.remove('fa-bars');
        icon.classList.add('fa-times');
    }
});
</script>

<!-- Hero -->
<style>
.hero-v3{position:relative;overflow:hidden;min-height:520px;display:flex;align-items:center;background:linear-gradient(135deg,var(--color-primary) 0%,color-mix(in srgb,var(--color-primary) 60%,#000) 50%,var(--color-secondary) 100%)}
.hero-v3 .hero-inner{position:relative;z-index:10;width:100%}

/* Floating orbs */
.orb{position:absolute;border-radius:50%;pointer-events:none;z-index:1}
.orb-1{width:450px;height:450px;top:-120px;left:-100px;background:radial-gradient(circle,rgba(255,255,255,.14) 0%,transparent 70%);animation:orbDrift 10s ease-in-out infinite}
.orb-2{width:350px;height:350px;bottom:-80px;right:-60px;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);animation:orbDrift 13s ease-in-out infinite reverse}
.orb-3{width:220px;height:220px;top:30%;left:55%;background:radial-gradient(circle,rgba(255,255,255,.07) 0%,transparent 70%);animation:orbDrift 16s ease-in-out infinite 2s}
.orb-4{width:280px;height:280px;top:10%;right:15%;background:radial-gradient(circle,rgba(255,255,255,.09) 0%,transparent 70%);animation:orbDrift 11s ease-in-out infinite 4s}
.orb-5{width:180px;height:180px;bottom:20%;left:10%;background:radial-gradient(circle,rgba(255,255,255,.06) 0%,transparent 70%);animation:orbDrift 14s ease-in-out infinite 1s}
@keyframes orbDrift{
    0%,100%{transform:translate(0,0) scale(1)}
    25%{transform:translate(30px,-40px) scale(1.08)}
    50%{transform:translate(-20px,30px) scale(.94)}
    75%{transform:translate(25px,15px) scale(1.04)}
}

/* Staggered slide reveal */
.hero-v3 .slide{opacity:0;transform:translateY(40px);animation:slideReveal .8s cubic-bezier(.16,1,.3,1) forwards}
.hero-v3 .d1{animation-delay:.15s}
.hero-v3 .d2{animation-delay:.3s}
.hero-v3 .d3{animation-delay:.45s}
.hero-v3 .d4{animation-delay:.6s}
.hero-v3 .d5{animation-delay:.75s}
.hero-v3 .d6{animation-delay:.9s}
@keyframes slideReveal{to{opacity:1;transform:translateY(0)}}

/* Pulse badge dot */
.pulse-dot{width:10px;height:10px;border-radius:50%;background:#34d399;display:inline-block;position:relative}
.pulse-dot::after{content:'';position:absolute;inset:-3px;border-radius:50%;background:#34d399;animation:dotPulse 2s ease-out infinite}
@keyframes dotPulse{0%{transform:scale(1);opacity:.6}100%{transform:scale(2.5);opacity:0}}

/* Shimmer border on search */
.shimmer-wrap{position:relative;border-radius:18px;padding:2px;overflow:hidden}
.shimmer-wrap::before{content:'';position:absolute;inset:-50%;background:conic-gradient(from 0deg,transparent 0deg,rgba(255,255,255,.3) 40deg,transparent 80deg,transparent 180deg,rgba(255,255,255,.2) 220deg,transparent 260deg);animation:shimmerSpin 5s linear infinite}
@keyframes shimmerSpin{to{transform:rotate(360deg)}}
.shimmer-inner{position:relative;z-index:1;background:rgba(255,255,255,.1);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:16px}
.shimmer-inner:focus-within{background:rgba(255,255,255,.15)}

/* Pill sectors */
.sector-pill{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);transition:all .3s}
.sector-pill:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.3);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.2)}

/* Stats */
.stat-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(8px);border-radius:16px;padding:16px 24px;text-align:center}
.stat-num{font-variant-numeric:tabular-nums}
</style>

<section class="hero-v3">
    <!-- Floating orbs -->
    <div class="orb orb-1"></div>
    <div class="orb orb-2"></div>
    <div class="orb orb-3"></div>
    <div class="orb orb-4"></div>
    <div class="orb orb-5"></div>
    
    <div class="hero-inner py-16 md:py-24">
        <div class="container mx-auto px-4 text-center text-white">
            
            <!-- Badge with pulse -->
            <div class="slide d1 mb-6 flex justify-center">
                <span class="inline-flex items-center gap-2.5 bg-white/10 backdrop-blur-sm rounded-full px-5 py-2.5 text-sm font-medium border border-white/15">
                    <span class="pulse-dot"></span>
                    6.373 empresas verificadas en toda España                </span>
            </div>
            
            <!-- Title with slide reveal -->
            <h1 class="slide d2 text-3xl md:text-5xl lg:text-6xl font-extrabold mb-4 leading-tight tracking-tight">
                Encuentra los mejores muebles y decoración            </h1>
            
            <!-- Subtitle -->
            <p class="slide d3 text-lg md:text-xl opacity-90 mb-10 max-w-2xl mx-auto px-4 leading-relaxed">
                Tiendas de muebles y decoración en España            </p>
            
            <!-- Search with shimmer border -->
            <div class="slide d4 max-w-4xl mx-auto">
                <div class="shimmer-wrap">
                    <div class="shimmer-inner p-2 md:p-3">
                        <form action="https://decoracionymuebles.net/buscar/" method="GET" class="flex flex-col sm:flex-row gap-2">
                            <div class="relative flex-grow">
                                <div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none text-gray-400">
                                    <i class="fas fa-search"></i>
                                </div>
                                <input type="text" name="q" id="heroSearch" 
                                       class="w-full pl-11 pr-4 py-3.5 rounded-xl border-0 focus:ring-2 focus:ring-white/40 text-gray-800 placeholder-gray-400 outline-none h-full bg-white text-base"
                                       autocomplete="off" placeholder="¿Qué buscas?">
                            </div>
                            <div class="relative sm:w-44">
                                <div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none text-gray-400">
                                    <i class="fas fa-map-marker-alt"></i>
                                </div>
                                <select name="provincia" class="w-full pl-11 pr-10 py-3.5 rounded-xl border-0 focus:ring-2 focus:ring-white/40 text-gray-800 outline-none appearance-none cursor-pointer bg-white h-full text-base">
                                    <option value="">Toda España</option>
                                                                            <option value="08">Barcelona</option>
                                                                            <option value="28">Madrid</option>
                                                                            <option value="33">Asturias</option>
                                                                            <option value="46">Valencia</option>
                                                                            <option value="03">Alicante</option>
                                                                            <option value="30">Murcia</option>
                                                                            <option value="31">Navarra</option>
                                                                            <option value="29">Málaga</option>
                                                                            <option value="15">A Coruña</option>
                                                                            <option value="39">Cantabria</option>
                                                                            <option value="26">La Rioja</option>
                                                                            <option value="17">Girona</option>
                                                                    </select>
                                <div class="absolute inset-y-0 right-0 pr-4 flex items-center pointer-events-none text-gray-400">
                                    <i class="fas fa-chevron-down text-xs"></i>
                                </div>
                            </div>
                            <button type="submit" class="bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white font-bold py-3.5 px-7 rounded-xl shadow-lg shadow-orange-500/25 transition-all duration-200 flex items-center justify-center gap-2 whitespace-nowrap hover:shadow-xl hover:-translate-y-0.5 active:translate-y-0">
                                <i class="fas fa-search"></i>
                                <span>Buscar</span>
                            </button>
                        </form>
                    </div>
                </div>
            </div>
            
            <!-- Quick sectors -->
            <div class="slide d5 mt-8 flex flex-wrap justify-center gap-2.5">
                                    <a href="https://decoracionymuebles.net/sector/tiendas-de-muebles/" class="sector-pill inline-flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium text-white">
                        <i class="fas fa-wrench text-xs opacity-80"></i>
                        Tiendas de Muebles                    </a>
                                    <a href="https://decoracionymuebles.net/sector/bricolaje-y-ferreteria/" class="sector-pill inline-flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium text-white">
                        <i class="fas fa-wrench text-xs opacity-80"></i>
                        Bricolaje y Ferretería                    </a>
                            </div>
        </div>
    </div>
    
    <!-- Stats bar -->
    <div class="slide d6" style="position:absolute;bottom:0;left:0;right:0;z-index:10">
        <div class="container mx-auto px-4 pb-6">
            <div class="flex justify-center gap-4 md:gap-8">
                <div class="stat-card text-white min-w-[100px]">
                    <div class="text-xl md:text-2xl font-extrabold stat-num" data-count="6373">0</div>
                    <div class="text-xs opacity-70 mt-0.5">Tiendas</div>
                </div>
                <div class="stat-card text-white min-w-[80px]">
                    <div class="text-xl md:text-2xl font-extrabold stat-num" data-count="2">0</div>
                    <div class="text-xs opacity-70 mt-0.5">Categorías</div>
                </div>
                <div class="stat-card text-white min-w-[80px]">
                    <div class="text-xl md:text-2xl font-extrabold stat-num" data-count="49">0</div>
                    <div class="text-xs opacity-70 mt-0.5">Provincias</div>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
// === Typing placeholder ===
(function(){
    const el=document.getElementById('heroSearch');if(!el)return;
    const words=['Tiendas de Muebles','Bricolaje y Ferretería'];
    let wi=0,ci=0,del=false,t;
    function tick(){
        const w=words[wi];
        if(!del){ci++;el.placeholder=w.slice(0,ci);if(ci>=w.length){del=true;t=setTimeout(tick,2000);return}t=setTimeout(t,70+Math.random()*50)}
        else{ci--;el.placeholder=w.slice(0,ci);if(ci<=0){del=false;wi=(wi+1)%words.length;t=setTimeout(tick,400);return}t=setTimeout(tick,35)}
    }
    el.placeholder='';setTimeout(tick,1400);
    el.addEventListener('focus',()=>{clearTimeout(t);el.placeholder='¿Qué buscas?';});
    el.addEventListener('blur',()=>{if(!el.value){el.placeholder='';setTimeout(tick,600);}});
})();

// === Counter animation ===
(function(){
    const els=document.querySelectorAll('[data-count]');if(!els.length)return;
    const io=new IntersectionObserver(entries=>{
        entries.forEach(e=>{
            if(!e.isIntersecting)return;
            const el=e.target,target=+el.dataset.count,start=performance.now();
            (function f(now){
                const p=Math.min((now-start)/1400,1),ease=1-Math.pow(1-p,3);
                el.textContent=Math.floor(ease*target).toLocaleString('es-ES');
                if(p<1)requestAnimationFrame(f);
            })(start);
            io.unobserve(el);
        });
    },{threshold:.3});
    els.forEach(c=>io.observe(c));
})();
</script>

<!-- Sectores -->
<section class="py-8 md:py-12 bg-gray-50">
    <div class="container mx-auto px-4">
        <h2 class="text-2xl md:text-3xl font-bold text-center mb-6 md:mb-8">Sectores</h2>
        <style>
            .sectores-grid-home { display: grid !important; gap: 1rem; grid-template-columns: repeat(2, 1fr) !important; }
            @media (min-width: 768px) { .sectores-grid-home { grid-template-columns: repeat(4, 1fr) !important; } }
        </style>
        <div class="sectores-grid-home md:gap-6">
                            <a href="https://decoracionymuebles.net/sector/tiendas-de-muebles/" class="bg-white rounded-xl p-6 shadow hover:shadow-lg transition group flex flex-col items-center text-center">
                    <div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mb-4 group-hover:bg-primary/10 transition">
                        <i class="fas fa-wrench text-2xl" style="color:#c2410c"></i>
                    </div>
                    <h3 class="font-bold text-lg text-gray-900 group-hover:text-primary transition mb-2">
                        Tiendas de Muebles                    </h3>
                    <span class="text-sm text-gray-500">4.954 tiendas</span>
                </a>
                            <a href="https://decoracionymuebles.net/sector/bricolaje-y-ferreteria/" class="bg-white rounded-xl p-6 shadow hover:shadow-lg transition group flex flex-col items-center text-center">
                    <div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mb-4 group-hover:bg-primary/10 transition">
                        <i class="fas fa-wrench text-2xl" style="color:#c2410c"></i>
                    </div>
                    <h3 class="font-bold text-lg text-gray-900 group-hover:text-primary transition mb-2">
                        Bricolaje y Ferretería                    </h3>
                    <span class="text-sm text-gray-500">1.420 tiendas</span>
                </a>
                    </div>
    </div>
</section>

<!-- Destacados -->

<!-- Provincias -->
<section class="py-12 bg-gray-50">
    <div class="container mx-auto px-4">
        <h2 class="text-3xl font-bold text-center mb-8">Provincias</h2>
        <div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4">
                            <a href="https://decoracionymuebles.net/cataluna/barcelona/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Barcelona</h3>
                    <p class="text-sm text-gray-500">1.281</p>
                </a>
                            <a href="https://decoracionymuebles.net/madrid/madrid/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Madrid</h3>
                    <p class="text-sm text-gray-500">794</p>
                </a>
                            <a href="https://decoracionymuebles.net/asturias/asturias/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Asturias</h3>
                    <p class="text-sm text-gray-500">338</p>
                </a>
                            <a href="https://decoracionymuebles.net/comunidad-valenciana/valencia/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Valencia</h3>
                    <p class="text-sm text-gray-500">301</p>
                </a>
                            <a href="https://decoracionymuebles.net/comunidad-valenciana/alicante/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Alicante</h3>
                    <p class="text-sm text-gray-500">233</p>
                </a>
                            <a href="https://decoracionymuebles.net/murcia/murcia/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Murcia</h3>
                    <p class="text-sm text-gray-500">232</p>
                </a>
                            <a href="https://decoracionymuebles.net/navarra/navarra/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Navarra</h3>
                    <p class="text-sm text-gray-500">212</p>
                </a>
                            <a href="https://decoracionymuebles.net/andalucia/malaga/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Málaga</h3>
                    <p class="text-sm text-gray-500">189</p>
                </a>
                            <a href="https://decoracionymuebles.net/galicia/a-coruna/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">A Coruña</h3>
                    <p class="text-sm text-gray-500">173</p>
                </a>
                            <a href="https://decoracionymuebles.net/cantabria/cantabria/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Cantabria</h3>
                    <p class="text-sm text-gray-500">156</p>
                </a>
                            <a href="https://decoracionymuebles.net/la-rioja/la-rioja/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">La Rioja</h3>
                    <p class="text-sm text-gray-500">146</p>
                </a>
                            <a href="https://decoracionymuebles.net/cataluna/girona/" class="bg-white rounded-xl p-4 text-center shadow hover:shadow-md transition">
                    <h3 class="font-semibold">Girona</h3>
                    <p class="text-sm text-gray-500">145</p>
                </a>
                    </div>
    </div>
</section>

<!-- CTA -->
<style>
.cta-v2{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--color-primary),color-mix(in srgb,var(--color-primary) 60%,#000))}
.cta-v2::before{content:'';position:absolute;width:500px;height:500px;border-radius:50%;background:rgba(255,255,255,.03);top:-200px;right:-100px;pointer-events:none}
.cta-v2::after{content:'';position:absolute;width:350px;height:350px;border-radius:50%;background:rgba(255,255,255,.02);bottom:-150px;left:-50px;pointer-events:none}
</style>
<section class="cta-v2 py-16 md:py-20 text-center text-white">
    <div class="relative z-10 container mx-auto px-4">
        <h2 class="text-3xl md:text-4xl font-extrabold mb-4">¿Tienes una tienda de muebles?</h2>
        <p class="text-lg opacity-90 mb-8 max-w-xl mx-auto">Regístrate gratis y llega a miles de clientes</p>
        <a href="https://decoracionymuebles.net/admin/registro/" class="inline-flex items-center gap-2.5 bg-white text-primary font-bold px-8 py-4 rounded-2xl shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-1 active:translate-y-0">
            <i class="fas fa-plus-circle text-lg"></i>
            Registrar mi tiendas — Gratis        </a>
    </div>
</section>

<footer class="bg-gray-900 text-white py-12 mt-12">
    <div class="container mx-auto px-4">
        <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
            <!-- Logo y descripción -->
            <div class="md:col-span-2">
                <div class="flex items-center gap-2 mb-4">
                    <i class="fas fa-couch text-2xl" style="color:#c2410c"></i>
                    <span class="font-bold text-xl">Decoración y Muebles</span>
                </div>
                <p class="text-gray-400 text-sm mb-4">Directorio de tiendas de decoración y muebles en España. Encuentra el mueble perfecto para tu hogar.</p>
                            </div>
            
            <!-- Enlaces útiles -->
            <div>
                <h4 class="font-bold mb-4">Enlaces</h4>
                <ul class="space-y-2 text-sm">
                    <li><a href="https://decoracionymuebles.net/" class="text-gray-400 hover:text-primary transition">Inicio</a></li>
                    <li><a href="https://decoracionymuebles.net/provincias/" class="text-gray-400 hover:text-primary transition">Provincias</a></li>
                    <li><a href="https://decoracionymuebles.net/sectores/" class="text-gray-400 hover:text-primary transition">Sectores</a></li>
                    <li><a href="https://decoracionymuebles.net/contacto/" class="text-gray-400 hover:text-primary transition">Contacto</a></li>
                </ul>
            </div>
            
            <!-- Legal -->
            <div>
                <h4 class="font-bold mb-4">Legal</h4>
                <ul class="space-y-2 text-sm">
                    <li><a href="https://decoracionymuebles.net/aviso-legal/" class="text-gray-400 hover:text-primary transition">Aviso Legal</a></li>
                    <li><a href="https://decoracionymuebles.net/politica-privacidad/" class="text-gray-400 hover:text-primary transition">Privacidad</a></li>
                    <li><a href="https://decoracionymuebles.net/politica-cookies/" class="text-gray-400 hover:text-primary transition">Cookies</a></li>
                </ul>
            </div>
        </div>
        
        <div class="border-t border-gray-800 mt-8 pt-8">
                        <p class="text-gray-400 text-sm text-center">© 2026 Decoración y Muebles. Todos los derechos reservados.</p>
        </div>
    </div>
</footer>

<!-- Cookie Banner -->
<div id="cookie-banner" class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-lg z-50 transform translate-y-full transition-transform duration-500">
    <div class="container mx-auto px-4 py-6">
        <div class="flex flex-col lg:flex-row items-start lg:items-center justify-between gap-6">
            <!-- Texto -->
            <div class="flex-1">
                <h3 class="font-bold text-gray-900 mb-2">🍪 Configuración de Cookies</h3>
                <p class="text-gray-600 text-sm">
                    Utilizamos cookies propias y de terceros para mejorar tu experiencia de navegación, analizar el tráfico del sitio y personalizar el contenido. Puedes aceptar todas las cookies, rechazarlas o configurar tus preferencias.                    <a href="https://decoracionymuebles.net/politica-cookies/" class="text-primary hover:underline">Más información</a>
                </p>
            </div>
            
            <!-- Botones -->
            <div class="flex flex-col sm:flex-row gap-3">
                <button id="cookie-reject" class="px-5 py-2.5 border border-gray-300 text-gray-700 rounded-lg text-sm font-medium hover:bg-gray-50 transition whitespace-nowrap">
                    Rechazar todas                </button>
                <button id="cookie-config" class="px-5 py-2.5 border border-primary text-primary rounded-lg text-sm font-medium hover:bg-primary/5 transition whitespace-nowrap">
                    Configurar                </button>
                <button id="cookie-accept" class="px-5 py-2.5 bg-primary text-white rounded-lg text-sm font-medium hover:bg-secondary transition whitespace-nowrap">
                    Aceptar todas                </button>
            </div>
        </div>
    </div>
</div>

<!-- Modal Configuración de Cookies -->
<div id="cookie-modal" class="fixed inset-0 bg-black/50 z-50 hidden items-center justify-center p-4">
    <div class="bg-white rounded-2xl max-w-2xl w-full max-h-[90vh] overflow-y-auto">
        <div class="p-6 border-b border-gray-200">
            <div class="flex justify-between items-center">
                <h2 class="text-xl font-bold text-gray-900">Configuración de Cookies</h2>
                <button id="cookie-modal-close" class="text-gray-400 hover:text-gray-600 transition">
                    <i class="fas fa-times text-xl"></i>
                </button>
            </div>
        </div>
        
        <div class="p-6 space-y-6">
            <!-- Cookies Necesarias -->
            <div class="border-b border-gray-100 pb-6">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <h3 class="font-semibold text-gray-900">Cookies Técnicas (Necesarias)</h3>
                        <p class="text-sm text-gray-500">Siempre activas</p>
                    </div>
                    <span class="px-3 py-1 bg-green-100 text-green-700 text-xs font-medium rounded-full">Activas</span>
                </div>
                <p class="text-sm text-gray-600">
                    Estas cookies son esenciales para el funcionamiento del sitio web. Sin ellas, algunas funcionalidades no estarían disponibles.                </p>
            </div>
            
            <!-- Cookies Analíticas -->
            <div class="border-b border-gray-100 pb-6">
                <div class="flex justify-between items-start mb-2">
                    <div class="flex-1">
                        <h3 class="font-semibold text-gray-900">Cookies Analíticas</h3>
                        <p class="text-sm text-gray-500">Opcionales</p>
                    </div>
                    <label class="relative inline-flex items-center cursor-pointer">
                        <input type="checkbox" id="cookie-analytics" class="sr-only peer">
                        <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary/20 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary"></div>
                    </label>
                </div>
                <p class="text-sm text-gray-600">
                    Nos permiten analizar el uso del sitio web para mejorar nuestros servicios. Recopilan información anónima sobre cómo los visitantes usan el sitio.                </p>
            </div>
            
            <!-- Cookies de Marketing -->
            <div class="pb-2">
                <div class="flex justify-between items-start mb-2">
                    <div class="flex-1">
                        <h3 class="font-semibold text-gray-900">Cookies de Marketing</h3>
                        <p class="text-sm text-gray-500">Opcionales</p>
                    </div>
                    <label class="relative inline-flex items-center cursor-pointer">
                        <input type="checkbox" id="cookie-marketing" class="sr-only peer">
                        <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary/20 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary"></div>
                    </label>
                </div>
                <p class="text-sm text-gray-600">
                    Se utilizan para mostrar anuncios relevantes para ti y tus intereses. También se usan para limitar el número de veces que ves un anuncio.                </p>
            </div>
        </div>
        
        <div class="p-6 bg-gray-50 flex flex-col sm:flex-row gap-3">
            <button id="cookie-save" class="flex-1 px-5 py-2.5 bg-primary text-white rounded-lg text-sm font-medium hover:bg-secondary transition">
                Guardar preferencias            </button>
            <button id="cookie-accept-all" class="flex-1 px-5 py-2.5 border border-primary text-primary rounded-lg text-sm font-medium hover:bg-primary/5 transition">
                Aceptar todas            </button>
        </div>
    </div>
</div>

<script>
(function() {
    const banner = document.getElementById('cookie-banner');
    const modal = document.getElementById('cookie-modal');
    const acceptBtn = document.getElementById('cookie-accept');
    const rejectBtn = document.getElementById('cookie-reject');
    const configBtn = document.getElementById('cookie-config');
    const modalClose = document.getElementById('cookie-modal-close');
    const saveBtn = document.getElementById('cookie-save');
    const acceptAllBtn = document.getElementById('cookie-accept-all');
    const analyticsCheck = document.getElementById('cookie-analytics');
    const marketingCheck = document.getElementById('cookie-marketing');
    const gaId = '';
    
    function loadPreferences() {
        const prefs = localStorage.getItem('cookie_preferences');
        if (prefs) {
            const parsed = JSON.parse(prefs);
            analyticsCheck.checked = parsed.analytics || false;
            marketingCheck.checked = parsed.marketing || false;
            return true;
        }
        return false;
    }
    
    function savePreferences(analytics, marketing) {
        localStorage.setItem('cookie_preferences', JSON.stringify({
            necessary: true,
            analytics: analytics,
            marketing: marketing,
            timestamp: new Date().toISOString()
        }));
        document.cookie = 'cookies_accepted=true; max-age=31536000; path=/; SameSite=Lax';
    }
    
    if (!loadPreferences() && !document.cookie.includes('cookies_accepted')) {
        setTimeout(function() {
            banner.classList.remove('translate-y-full');
        }, 1000);
    }
    
    function acceptAll() {
        savePreferences(true, true);
        loadGoogleAnalytics();
        banner.classList.add('translate-y-full');
        modal.classList.add('hidden');
        modal.classList.remove('flex');
    }
    
    function rejectAll() {
        savePreferences(false, false);
        banner.classList.add('translate-y-full');
    }
    
    function saveConfig() {
        savePreferences(analyticsCheck.checked, marketingCheck.checked);
        if (analyticsCheck.checked) {
            loadGoogleAnalytics();
        }
        banner.classList.add('translate-y-full');
        modal.classList.add('hidden');
        modal.classList.remove('flex');
    }
    
    function loadGoogleAnalytics() {
        if (!gaId) return;
        var script = document.createElement('script');
        script.async = true;
        script.src = 'https://www.googletagmanager.com/gtag/js?id=' + gaId;
        document.head.appendChild(script);
        
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', gaId);
    }
    
    function openModal() {
        modal.classList.remove('hidden');
        modal.classList.add('flex');
    }
    
    function closeModal() {
        modal.classList.add('hidden');
        modal.classList.remove('flex');
    }
    
    acceptBtn.addEventListener('click', acceptAll);
    rejectBtn.addEventListener('click', rejectAll);
    configBtn.addEventListener('click', openModal);
    modalClose.addEventListener('click', closeModal);
    saveBtn.addEventListener('click', saveConfig);
    acceptAllBtn.addEventListener('click', acceptAll);
    
    modal.addEventListener('click', function(e) {
        if (e.target === modal) {
            closeModal();
        }
    });
})();
</script>

</body>
</html>
