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

:root {
    --primary: #0EA5E9;
    --secondary: #F59E0B;
    --dark: #0F172A;
    --light: #F8FAFC;
    --text: #1E293B;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
}

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(0.625rem);
    box-shadow: 0 2px 1.25rem rgba(0,0,0,0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E40AF 50%, #0EA5E9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 7.5rem 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 56.25rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(0.625rem);
    padding: 0.5rem 1.5rem;
    border-radius: 3.125rem;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #38BDF8, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 3.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.9375rem 2.5rem rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Trust Bar */
.trust-bar {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.trust-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.trust-item i {
    color: var(--success);
    font-size: 1.5rem;
}

/* Section */
.section {
    padding: 5rem 2rem;
}

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

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3.125rem;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748B;
    max-width: 37.5rem;
    margin: 0 auto;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 3.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.625rem 2.5rem rgba(0,0,0,0.2);
}

.product-image {
    height: 15.625rem;
    background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--danger), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 3.125rem;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
}

.product-level {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 3.125rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-description {
    color: #64748B;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--secondary);
}

.product-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-old-price {
    text-decoration: line-through;
    color: #94A3B8;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), #3B82F6);
    color: white;
    border: none;
    border-radius: 3.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.buy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0.3125rem 1.25rem rgba(14, 165, 233, 0.4);
}

/* Features */
.why-section {
    background: var(--light);
    padding: 5rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: #64748B;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.15);
}

.blog-image {
    height: 12.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748B;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.blog-excerpt {
    color: #64748B;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), #3B82F6);
    color: white;
    padding: 5rem 2rem;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-benefits {
    list-style: none;
    margin-top: 2rem;
}

.newsletter-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 3.125rem;
    font-size: 1rem;
}

.newsletter-privacy {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
}

/* Testimonials */
.testimonials-section {
    background: var(--light);
    padding: 5rem 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.08);
}

.testimonial-rating {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #64748B;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #64748B;
}

/* FAQ */
.faq-section {
    padding: 5rem 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.08);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-item p {
    color: #64748B;
}

/* AdSense */
.ad-section {
    padding: 2rem;
    text-align: center;
    background: var(--light);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

.affiliate-disclosure {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.7;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .products-grid,
    .blog-grid,
    .deals-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .trust-items {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 2rem;
    }
}

/* Categorías */
.categories-section {
    background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
    padding: 4rem 2rem;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.08);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.625rem 2.5rem rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.category-card p {
    color: #64748B;
    margin-bottom: 1rem;
}

.category-count {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 3.125rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Product Widget (para blog) */
.product-widget {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, #F8FAFC, #EFF6FF);
    border: 2px solid var(--border);
    border-radius: 0.9375rem;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s;
}

.product-widget:hover {
    border-color: var(--primary);
    box-shadow: 0 0.3125rem 1.25rem rgba(14, 165, 233, 0.1);
}

.product-widget-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.product-widget-content {
    flex: 1;
}

.product-widget-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-widget-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.product-widget-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-widget-price .price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.product-widget-price .old-price {
    text-decoration: line-through;
    color: #94A3B8;
}

.product-widget-price .discount-badge {
    background: linear-gradient(135deg, var(--danger), var(--secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 3.125rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.widget-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #3B82F6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 3.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.widget-buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0.3125rem 0.9375rem rgba(14, 165, 233, 0.3);
}

/* Blog Related Products */
.blog-related-products {
    background: rgba(14, 165, 233, 0.05);
    border-left: 0.25rem solid var(--primary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.related-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.related-products-mini {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.75rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.mini-product:hover {
    transform: translateX(0.3125rem);
    box-shadow: 0 3px 0.625rem rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.mini-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mini-name {
    flex: 1;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
}

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

/* Responsive para widgets */
@media (max-width: 768px) {
    .product-widget {
        flex-direction: column;
        text-align: center;
    }

    .product-widget-icon {
        font-size: 3rem;
    }

    .product-widget-price {
        justify-content: center;
    }

    .categories-container {
        grid-template-columns: 1fr;
    }
}

/* ── Pantallas grandes i ultrawide (estàndard Grower): amplada fluida, escala de rem i més columnes ── */
:root { --gutter: clamp(1rem, 1.6vw, 3rem); --page-max: 75rem; }
@media (min-width: 1920px) { :root { --page-max: 100rem; } .container, .nav-container { padding-inline: var(--gutter); } }
@media (min-width: 2200px) { html { font-size: 112.5%; } }
@media (min-width: 2560px) { :root { --page-max: 120rem; } }
@media (min-width: 3000px) { html { font-size: 125%; } }
@media (min-width: 3440px) { :root { --page-max: 150rem; } }
@media (min-width: 4200px) { html { font-size: 150%; } :root { --page-max: 180rem; } }
body { overflow-x: clip; }
