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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    color: #333;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
}

/* HEADER */
.header {
    padding: 30px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    max-width: 140px;
    height: auto;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

.whatsapp-btn:hover {
    background: #1fa35c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* SEO CONTENT */
.seo-content {
    background: white;
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.seo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.seo-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.2;
}

.seo-intro {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 700px;
}

.seo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 0;
}

.seo-feature h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #379237;
}

.seo-feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* SEO CARACTERÍSTICAS SECTION */
.seo-features-section {
    background: white;
    padding: 30px 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.seo-features-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: #1a1a1a;
}

/* SEO FOOTER */
.seo-footer {
    background: white;
    padding: 30px 20px;
    border-top: 1px solid #eee;
}

.seo-footer h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: #1a1a1a;
}

.seo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.benefit h4 {
    font-size: 16px;
    font-weight: 700;
    color: #379237;
    margin-bottom: 8px;
}

.benefit p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.seo-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.seo-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* CATEGORÍAS */
.categories-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 50;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    padding: 0 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.category-btn {
    white-space: nowrap;
    padding: 10px 18px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.category-btn:hover {
    border-color: #379237;
    color: #379237;
}

.category-btn.active {
    background: #379237;
    color: white;
    border-color: #379237;
}

/* GRID MASÓNICO */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 30px;
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
}

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
}

/* Tamaños variados */
.product-card.size-big {
    grid-column: span 2;
    grid-row: span 2;
}

.product-card.size-tall {
    grid-row: span 2;
}

.product-card.size-wide {
    grid-column: span 2;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* OVERLAY OSCURO */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

/* CONTENIDO */
.product-content {
    position: absolute;
    z-index: 3;
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

.product-price {
    background: #379237;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-shadow: none;
}

.product-buy {
    background: #379237;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.product-buy:hover {
    background: #2d6b2d;
}

/* RESPONSIVE SEO */
@media (max-width: 960px) {
    .seo-content {
        padding: 40px 20px;
    }

    .seo-content h1 {
        font-size: 28px;
    }

    .seo-intro {
        font-size: 15px;
    }

    .seo-features-section {
        padding: 40px 20px;
    }

    .seo-features-section h2 {
        font-size: 24px;
    }

    .seo-footer {
        padding: 40px 20px;
    }

    .seo-footer h2 {
        font-size: 24px;
    }

    .seo-text h3 {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .seo-content {
        padding: 30px 15px;
    }

    .seo-content h1 {
        font-size: 22px;
    }

    .seo-intro {
        font-size: 14px;
    }

    .seo-features {
        gap: 20px;
    }

    .seo-feature h3 {
        font-size: 16px;
    }

    .seo-feature p {
        font-size: 13px;
    }

    .seo-features-section {
        padding: 30px 15px;
    }

    .seo-features-section h2 {
        font-size: 20px;
    }

    .seo-footer {
        padding: 30px 15px;
    }

    .seo-footer h2 {
        font-size: 20px;
    }

    .seo-benefits {
        gap: 20px;
    }

    .benefit h4 {
        font-size: 14px;
    }

    .benefit p {
        font-size: 13px;
    }

    .seo-text h3 {
        font-size: 18px;
    }

    .seo-text p {
        font-size: 13px;
    }

    .site-footer {
        padding: 30px 15px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 14px;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .social-links svg {
        width: 18px;
        height: 18px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-copyright p {
        font-size: 12px;
    }
}

/* FOOTER */
.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #379237;
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #2d6b2d;
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #379237;
}

.footer-copyright p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

.footer-copyright a {
    color: #379237;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* RESPONSIVE HEADER */
@media (max-width: 960px) {
    .header {
        padding: 25px 20px;
    }

    .header-container {
        gap: 20px;
    }

    .whatsapp-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .whatsapp-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        max-width: 100px;
    }

    .whatsapp-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* RESPONSIVE GRID */
@media (max-width: 960px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-auto-rows: 220px;
        gap: 15px;
        padding: 30px 20px;
    }

    .product-card.size-big {
        grid-column: span 1;
        grid-row: span 1;
    }

    .product-card.size-tall {
        grid-row: span 1;
    }

    .product-card.size-wide {
        grid-column: span 1;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price,
    .product-buy {
        font-size: 11px;
        padding: 6px 10px;
    }

    .categories-scroll {
        padding: 0 15px;
        gap: 8px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 20px 15px;
    }

    .logo {
        max-width: 100px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 12px;
        padding: 20px 12px;
    }

    .product-card {
        aspect-ratio: 1;
    }

    .product-title {
        font-size: 12px;
    }

    .product-price,
    .product-buy {
        font-size: 10px;
        padding: 5px 8px;
    }

    .categories-scroll {
        padding: 0 10px;
    }

    /* Sin tamaños especiales en móvil */
    .product-card.size-big,
    .product-card.size-tall,
    .product-card.size-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}
