* {
    box-sizing: border-box;
}

:root {
    --navy: #082c3c;
    --navy-dark: #061f2b;
    --blue: #0f6f8f;
    --sand: #e6c487;
    --sand-light: #f5ead5;
    --white: #ffffff;
    --text: #1a2730;
    --muted: #64727b;
    --soft: #f5f7f8;
    --border: #dfe6e9;
    --shadow: 0 18px 45px rgba(6, 31, 43, 0.13);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    min-height: 650px;
    color: var(--white);
    background:
        linear-gradient(110deg, rgba(6, 31, 43, .96), rgba(8, 44, 60, .82)),
        radial-gradient(circle at 80% 20%, rgba(230, 196, 135, .38), transparent 28%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255,255,255,.035),
        0 0 0 145px rgba(255,255,255,.025);
}

.nav {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.08rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sand);
    color: var(--navy-dark);
}

.nav-link {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-weight: 700;
}

.hero-content {
    padding: 95px 0 110px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--sand);
    font-size: .77rem;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--blue);
}

.hero h1,
.detail-summary h1 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    max-width: 900px;
}

.hero-content > p {
    max-width: 660px;
    margin: 24px 0 34px;
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
}

.search-box {
    width: min(700px, 100%);
    display: flex;
    padding: 7px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 15px 16px;
    border: 0;
    outline: 0;
    font-size: 1rem;
}

.search-box button,
.button {
    border: 0;
    border-radius: 11px;
    padding: 14px 22px;
    background: var(--blue);
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: var(--soft);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2,
.cta h2,
.info-card h2 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pill {
    border: 1px solid var(--border);
    padding: 10px 17px;
    border-radius: 999px;
    text-decoration: none;
    background: var(--white);
    font-weight: 800;
    color: var(--muted);
}

.category-pill.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.clear-filter,
.primary-link {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.result-count {
    color: var(--muted);
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.local-card {
    border-radius: 22px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(6, 31, 43, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.local-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-image-link {
    position: relative;
    display: block;
}

.card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.card-category {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(6, 31, 43, .88);
    color: var(--white);
    font-size: .76rem;
    font-weight: 900;
}

.card-category.inline {
    position: static;
    margin-bottom: 14px;
    background: var(--sand-light);
    color: var(--navy-dark);
}

.card-body {
    position: relative;
    padding: 40px 22px 24px;
}

.card-logo {
    position: absolute;
    top: -34px;
    left: 22px;
    width: 68px;
    height: 68px;
    object-fit: cover;
    border: 5px solid var(--white);
    border-radius: 50%;
    background: var(--white);
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 1.28rem;
}

.card-body p {
    margin: 0 0 20px;
    color: var(--muted);
}

.primary-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.cta {
    background: var(--navy);
    color: var(--white);
    padding: 65px 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.button.light {
    background: var(--sand);
    color: var(--navy-dark);
}

.button.outline {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}

.button.whatsapp {
    background: #1f8f5f;
}

.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,.75);
    padding: 26px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer strong {
    color: var(--white);
}

.detail-header {
    background: var(--navy);
}

.detail-hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
}

.detail-cover img {
    width: 100%;
    min-height: 430px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.detail-summary {
    position: relative;
}

.detail-logo {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(6, 31, 43, .13);
}

.detail-summary h1 {
    font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.detail-summary p {
    color: var(--muted);
    font-size: 1.08rem;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 42px;
    align-items: start;
}

.product-list {
    border-top: 1px solid var(--border);
}

.product-item {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.product-item h3 {
    margin: 0 0 5px;
}

.product-item p {
    margin: 0;
    color: var(--muted);
}

.product-item strong {
    white-space: nowrap;
    color: var(--blue);
}

.info-card {
    position: sticky;
    top: 24px;
    padding: 28px;
    border-radius: 22px;
    background: var(--soft);
    border: 1px solid var(--border);
}

.info-card h2 {
    margin-bottom: 20px;
}

.info-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.info-row span {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-row strong,
.info-row a {
    color: var(--text);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
}

.empty-state {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 30px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(6, 31, 43, .07);
}

.empty-state h1,
.empty-state h3 {
    margin-top: 0;
}

.empty-state p {
    color: var(--muted);
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px;
    background: var(--soft);
}

.error-code {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--sand);
}

@media (max-width: 900px) {
    .cards-grid,
    .detail-hero,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        gap: 20px;
    }

    .info-card {
        position: static;
    }

    .detail-cover img {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
    }

    .nav-link {
        display: none;
    }

    .hero-content {
        padding: 65px 0 85px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading,
    .cta-content,
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .cards-grid {
        gap: 18px;
    }

    .detail-actions,
    .detail-actions .button {
        width: 100%;
    }

    .product-item {
        flex-direction: column;
        gap: 8px;
    }
}
