:root {
    --soil: #24150e;
    --roast: #3b2418;
    --ink: #2a1810;
    --muted: #6d5648;
    --cream: #f4ecdf;
    --paper: #fbf7f1;
    --foam: #fffdf9;
    --gold: #c9843a;
    --gold-deep: #8d5a22;
    --leaf: #2d4634;
    --line: rgba(36, 21, 14, 0.12);
    --shadow: 0 24px 50px rgba(36, 21, 14, 0.16);
    --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --wrap: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#contenido,
#presentaciones,
#origen,
#visita {
    scroll-margin-top: 5.75rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--gold);
    color: var(--soil);
    padding: 0.6rem 1rem;
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 6vw;
    background: var(--leaf);
    color: #f3eadf;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.topbar a {
    color: #fff8ee;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 6vw;
    background: rgba(251, 247, 241, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: grid;
    text-decoration: none;
    line-height: 1;
}

.brand small {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.brand strong {
    font-family: var(--serif);
    font-weight: 560;
    font-size: 1.55rem;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--gold-deep);
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
}

.nav-cta,
.btn-primary {
    background: var(--soil);
    color: var(--cream);
}

.btn-primary:hover,
.nav-cta:hover,
.btn-primary:focus-visible,
.nav-cta:focus-visible {
    background: var(--roast);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(244, 236, 223, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.page-hero {
    background: var(--soil);
    color: var(--cream);
    padding: 4.2rem 6vw 3.4rem;
}

.page-hero h1 {
    margin: 0;
    max-width: 16ch;
    font-family: var(--serif);
    font-weight: 460;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - 7.2rem);
    background: var(--soil);
    color: var(--cream);
}

.hero-copy,
.hero-visual {
    min-height: 34rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.5rem 6vw 3.5rem;
}

.eyebrow {
    margin: 0 0 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #e6a756;
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 460;
    font-size: clamp(3.4rem, 7vw, 6.4rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.hero h1 em {
    font-style: italic;
    font-weight: 450;
    color: #f0d7b0;
}

.lede {
    max-width: 36rem;
    margin: 1.4rem 0 0;
    color: rgba(244, 236, 223, 0.82);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-visual {
    position: relative;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stamp {
    position: absolute;
    left: 1.4rem;
    bottom: 1.4rem;
    width: 8.2rem;
    height: 8.2rem;
    border: 1px dashed rgba(255, 248, 238, 0.75);
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(36, 21, 14, 0.55);
    color: #fff8ee;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
}

.facts article {
    padding: 1.4rem 1.5rem;
    border-right: 1px solid var(--line);
}

.facts article:last-child {
    border-right: 0;
}

.facts strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 520;
}

.facts span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 5.5rem 6vw;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.2rem;
}

.section-head h2,
.origin h2,
.visit h2,
.closing h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 26rem;
    margin: 0;
    color: var(--muted);
}

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

.product {
    background: var(--foam);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

.product img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.product:first-child img {
    height: 100%;
    min-height: 22rem;
}

.product div {
    padding: 1.15rem 1.2rem 1.3rem;
}

.product:first-child div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.product span {
    color: var(--gold-deep);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product h3 {
    margin: 0.25rem 0 0.4rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 520;
}

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

.origin {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(251, 247, 241, 0.92), rgba(251, 247, 241, 0.92)),
        url("../assets/img/bg.webp") center/cover;
}

.origin img,
.video-frame {
    border-radius: 1.6rem;
    width: 100%;
}

.origin img {
    height: 34rem;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.origin p {
    color: var(--ink);
    font-size: 1.08rem;
}

.video-frame {
    margin-top: 1.5rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--soil);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.promise {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    background: var(--roast);
    color: var(--cream);
}

.promise p {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.5vw, 2.05rem);
    line-height: 1.35;
    font-weight: 450;
}

.visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.hours {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.hours li.today {
    color: var(--gold-deep);
    font-weight: 650;
}

.contact-card {
    background: var(--foam);
    border-radius: 1.6rem;
    padding: 1.6rem;
    border: 1px solid var(--line);
}

.contact-card a {
    color: var(--gold-deep);
}

.contact-card p {
    margin: 0 0 1rem;
}

.closing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: var(--leaf);
    color: #f6efe4;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 6vw 2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.visit-count {
    color: var(--ink);
}

.visit-count span {
    font-family: var(--serif);
    font-size: 1.3rem;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

@media (max-width: 1040px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 6vw 1.3rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .site-header.is-open .site-nav {
        display: flex;
    }

    .hero,
    .facts,
    .products,
    .origin,
    .promise,
    .visit,
    .closing,
    .site-footer,
    .topbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topbar,
    .closing,
    .site-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy,
    .hero-visual {
        min-height: 0;
    }

    .hero-visual {
        height: 24rem;
    }

    .facts article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .product:first-child {
        grid-column: auto;
        display: flex;
    }

    .product:first-child img,
    .product img,
    .origin img {
        height: 16rem;
        min-height: 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
