:root {
    --green: #006847;
    --red: #c92525;
    --terracotta: #d96b43;
    --gold: #e5a93b;
    --purple: #76258f;
    --dark: #202020;
    --muted: #666;
    --cream: #fffaf4;
    --white: #fff;
    --whatsapp: #25D366;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--dark);
    background:
        radial-gradient(circle at 10% 10%, rgba(229,169,59,.10) 0 2px, transparent 3px),
        radial-gradient(circle at 90% 30%, rgba(118,37,143,.07) 0 2px, transparent 3px),
        var(--cream);
    background-size: 34px 34px, 42px 42px, auto;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,250,244,.96);
    border-bottom: 1px solid rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 88px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: block;
    width: 92px;
    line-height: 0;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}

.nav a:hover {
    color: var(--terracotta);
}

.hero {
    width: min(1180px, calc(100% - 32px));
    margin: 38px auto 70px;
    padding: 52px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 48px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 18px 55px rgba(0,0,0,.08);
    border-top: 6px solid var(--green);
    border-bottom: 6px solid var(--red);
}

.hero-copy {
    max-width: 650px;
}

.construction {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 15px;
    border-radius: 30px;
    background: #fff0e2;
    border: 1px solid rgba(217,107,67,.25);
    color: var(--terracotta);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.3px;
}

h1, h2, h3 {
    font-family: "Montserrat", sans-serif;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -1.8px;
    margin-bottom: 22px;
}

h1 span {
    color: var(--green);
}

.hero-copy > p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 650px;
    margin-bottom: 28px;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    width: min(100%, 440px);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,.10);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 13px 23px;
    border-radius: 999px;
    background: var(--whatsapp);
    color: white;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37,211,102,.28);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    background: #1ebe5d;
    box-shadow: 0 14px 30px rgba(37,211,102,.35);
}

.whatsapp-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.online-note {
    margin-top: 13px;
    margin-bottom: 0 !important;
    font-size: .84rem !important;
    color: #888 !important;
}

.samples {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 70px;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.eyebrow {
    display: block;
    color: var(--terracotta);
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.section-heading h2,
.contact h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-heading p {
    color: var(--muted);
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 9px 28px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0,0,0,.10);
}

.product-image {
    height: 260px;
    background: #f1f1f1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image.missing {
    background:
        linear-gradient(135deg, rgba(0,104,71,.08), rgba(201,37,37,.08)),
        #f7f3ed;
}

.missing-text {
    display: none;
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: .9rem;
}

.product-image.missing .missing-text {
    display: block;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.05rem;
    margin-bottom: 7px;
}

.product-info p {
    color: var(--muted);
    font-size: .88rem;
}

.contact {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 70px;
    padding: 38px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, #006847, #004d36);
    color: white;
    box-shadow: 0 15px 40px rgba(0,104,71,.20);
}

.contact .eyebrow {
    color: #ffd77a;
}

.contact h2 {
    margin-bottom: 10px;
}

.contact p {
    max-width: 700px;
    color: rgba(255,255,255,.84);
}

.contact .whatsapp-button {
    flex: 0 0 auto;
    color: #11351f;
    background: white;
    box-shadow: none;
}

.contact .whatsapp-button:hover {
    background: #f4f4f4;
}

footer {
    width: 100%;
    padding: 25px 20px;
    text-align: center;
    color: #777;
    background: #181818;
    font-size: .86rem;
}

footer strong {
    color: white;
}

footer span {
    display: block;
    margin-top: 4px;
    color: #aaa;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 38px;
        text-align: center;
    }

    .hero-copy {
        margin: auto;
    }

    .hero-copy > p {
        margin-left: auto;
        margin-right: auto;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .header-inner {
        min-height: 74px;
    }

    .brand {
        width: 72px;
    }

    .nav {
        gap: 14px;
    }

    .nav a {
        font-size: .82rem;
    }

    .hero {
        width: min(100% - 20px, 1180px);
        margin-top: 20px;
        padding: 25px 18px;
        border-radius: 22px;
    }

    h1 {
        font-size: 2.35rem;
    }

    .hero-copy > p {
        font-size: .98rem;
    }

    .whatsapp-button {
        width: 100%;
    }

    .samples,
    .contact {
        width: calc(100% - 20px);
    }

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

    .product-image {
        height: 290px;
    }

    .contact {
        padding: 30px 22px;
    }
}
.contacto-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.contacto-footer p {
    margin: 0 0 20px;
}

.contacto-footer a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

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

.contador-visitas {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    font-size: 14px;
}

.contador-visitas span:last-child {
    font-weight: bold;
    margin-left: 5px;
}

.category-page {
    width: min(1180px, calc(100% - 32px));
    margin: 38px auto 70px;
}
.category-hero {
    background: var(--white);
    border-radius: 28px;
    padding: 42px;
    text-align: center;
    border-top: 6px solid var(--green);
    border-bottom: 6px solid var(--red);
    box-shadow: 0 15px 45px rgba(0,0,0,.07);
    margin-bottom: 32px;
}
.category-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 12px;
}
.category-hero p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--muted);
}
.category-back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}
.category-back:hover { color: var(--terracotta); }
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.gallery-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 9px 28px rgba(0,0,0,.06);
}
.gallery-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}
.gallery-card figcaption {
    padding: 15px 18px 18px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: .95rem;
}
.category-contact {
    margin-top: 34px;
    text-align: center;
}
.category-contact .whatsapp-button { margin-top: 15px; }
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.category-nav a {
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff0e2;
    color: var(--dark);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
}
.category-nav a:hover { color: var(--terracotta); }
.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.category-card .product-info { min-height: 145px; }
@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .category-page { width: calc(100% - 20px); }
    .category-hero { padding: 28px 18px; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-card img { height: 390px; }
}
