:root {
    --brand-brown: #642717;
    --brand-deep: #42170f;
    --brand-ink: #351711;
    --brand-gold: #f5b83f;
    --brand-gold-dark: #d59319;
    --brand-cream: #fff6e9;
    --brand-cream-dark: #f8ead5;
    --brand-green: #128c49;
    --white: #fffdf9;
    --muted: #7e6557;
    --border: rgba(100, 39, 23, .14);
    --shadow: 0 14px 34px rgba(66, 23, 15, .11);
    --radius-card: 16px;
    --container-max: 1280px;
    --spacing-unit: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--brand-cream); color: var(--brand-ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #126fff; outline-offset: 3px; }
.container { width: min(calc(100% - 48px), var(--container-max)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--brand-gold); padding: .65rem 1rem; border-radius: 0 0 8px 8px; font-weight: 800; }
.skip-link:focus { top: 0; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 249, 239, .96); border-bottom: 1px solid rgba(100, 39, 23, .08); backdrop-filter: blur(12px); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 155px 1fr auto; align-items: center; gap: 22px; }
.brand { align-self: start; position: relative; z-index: 2; }
.brand img { width: 116px; height: 116px; object-fit: contain; margin-top: 7px; filter: drop-shadow(0 7px 8px rgba(66, 23, 15, .18)); }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 48px); font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; }
.main-nav a { padding: 10px 0; border-bottom: 2px solid transparent; transition: color .18s ease, border-color .18s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-brown); border-color: var(--brand-brown); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: .7rem 1.15rem; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(66, 23, 15, .18); }
.btn:active { transform: translateY(0); }
.btn-gold { color: #33170f; background: var(--brand-gold); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-whatsapp { color: #fff; background: var(--brand-green); }
.btn-full { width: 100%; }
.icon-button { position: relative; display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--brand-brown); cursor: pointer; }
.cart-button { display: grid; place-items: center; }
.cart-count { position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: var(--brand-brown); font-size: .7rem; font-weight: 800; }
.menu-button { font-size: 1.2rem; }

.hero { position: relative; min-height: 640px; overflow: hidden; isolation: isolate; color: #fff; background: var(--brand-deep); }
.hero-background { position: absolute; inset: 0; z-index: -2; background-image: url("../images/hero.png"); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(45, 14, 8, .94) 0%, rgba(53, 18, 9, .83) 30%, rgba(53, 18, 9, .16) 68%, rgba(53, 18, 9, .08)); }
.hero-content { min-height: 640px; padding: 110px 0 38px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: #f6ca70; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.hero h1 { max-width: 680px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.04em; text-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.hero h1 em { color: var(--brand-gold); font-style: normal; }
.hero-copy { max-width: 560px; margin: 22px 0 25px; font-size: clamp(1rem, 1.7vw, 1.25rem); color: rgba(255, 249, 239, .92); }
.hero-copy strong { color: var(--brand-gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-features { width: min(680px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 62px; }
.feature { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .87rem; line-height: 1.2; }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--brand-gold); font-size: 2rem; line-height: 1; }

.section { padding: 72px 0; }
.products-section { background: var(--brand-cream); }
.section-heading { position: relative; text-align: center; margin-bottom: 30px; }
.section-heading h2 { margin: 0; color: var(--brand-brown); font: 700 clamp(2rem, 3.5vw, 3.2rem)/1.1 Georgia, "Times New Roman", serif; }
.section-heading .section-kicker { color: #8a6552; margin-bottom: 8px; letter-spacing: .16em; }
.section-ornament { display: block; margin-top: 8px; color: var(--brand-brown); font-size: 1.4rem; }
.catalog-toolbar { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 28px; }
.filter-tabs { display: inline-flex; align-items: center; padding: 5px; background: #f5e5d1; border-radius: 999px; }
.filter-tab, .mobile-cart-link { border: 0; padding: .55rem 1.15rem; border-radius: 999px; color: var(--brand-brown); background: transparent; cursor: pointer; font-weight: 700; }
.filter-tab:hover, .filter-tab.is-active { color: #fff; background: var(--brand-brown); }
.mobile-cart-link { display: none; color: var(--brand-brown); text-decoration: underline; text-underline-offset: 4px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #fffaf2; border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 4px 14px rgba(100, 39, 23, .05); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card.is-hidden { display: none; }
.product-image-wrap { aspect-ratio: 1.4; padding: 8px; overflow: hidden; background: #f4dfc4; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 16px; }
.product-category { margin: 0 0 4px; color: #967461; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.product-card h3 { min-height: 47px; margin: 0; color: var(--brand-brown); font: 700 1.08rem/1.14 Georgia, "Times New Roman", serif; }
.product-description { min-height: 42px; margin: 8px 0 12px; color: var(--muted); font-size: .86rem; }
.product-meta { display: flex; flex-wrap: wrap; flex: 1; align-items: flex-end; justify-content: space-between; gap: 8px; }
.product-price { display: block; color: #9e241c; font: 700 1.45rem/1 Georgia, "Times New Roman", serif; }
.product-unit { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.add-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; color: #fff; background: var(--brand-brown); cursor: pointer; font-size: .82rem; font-weight: 800; transition: background .18s ease, transform .18s ease; }
.add-button:hover { background: var(--brand-deep); transform: translateY(-1px); }
.product-add-actions { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.product-add-actions .add-button { white-space: nowrap; }
.quantity-control button.quantity-pack { width: auto; min-width: 38px; padding-inline: 6px; border-radius: 12px; }

.benefits { padding: 28px 0; background: #f9e9d3; border-block: 1px solid rgba(100, 39, 23, .08); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 6px 26px; border-right: 1px solid rgba(100, 39, 23, .22); }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { border-right: 0; padding-right: 0; }
.benefit-icon { display: grid; place-items: center; min-width: 50px; height: 50px; color: var(--brand-brown); font-size: 2.4rem; }
.benefit h3 { margin: 0 0 3px; color: var(--brand-brown); font-size: .98rem; }
.benefit p { margin: 0; color: #866b5a; font-size: .8rem; line-height: 1.3; }

.gallery-section { background: #fffaf2; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-item { padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #f3ddc1; cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 1.5; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.contact-strip { padding: 21px 0; color: #fff; background: var(--brand-deep); }
.contact-strip-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; }
.contact-symbol { display: grid; place-items: center; width: 58px; height: 58px; border: 3px solid #fff; border-radius: 50%; color: #fff; font-size: 2rem; }
.contact-copy h2 { margin: 0; font: 700 1.65rem/1.05 Georgia, "Times New Roman", serif; }
.contact-copy p { margin: 3px 0 0; color: #f0d9b3; font-size: .9rem; }
.contact-phone { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.phone-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--brand-deep); background: var(--brand-gold); font-size: .8rem; }

.site-footer { padding: 48px 0 16px; color: #fff5e8; background: #43170f; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.35fr .85fr 1.2fr; align-items: start; gap: 32px; }
.footer-brand img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .22)); }
.footer-grid h2 { margin: 8px 0 12px; color: #f7c368; font-size: .92rem; }
.footer-grid > div:not(.footer-slogan) a, .footer-grid > div:not(.footer-slogan) span { display: block; margin: 7px 0; color: #f6e2c9; font-size: .85rem; }
.footer-grid a:hover { color: var(--brand-gold) !important; }
.socials { display: flex; gap: 14px; }
.socials a { display: grid !important; place-items: center; width: 30px; height: 30px; border: 1px solid #f3d9bb; border-radius: 50%; font-weight: 800; }
.footer-slogan { align-self: center; color: #f3c368; font: italic 2rem/1.1 Georgia, "Times New Roman", serif; text-align: center; }
.footer-slogan span { display: inline !important; color: #f3c368 !important; font-size: 1.5rem !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 14px; border-top: 1px solid rgba(255, 246, 233, .18); color: #c9a993; font-size: .73rem; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 40; visibility: hidden; opacity: 0; background: rgba(30, 10, 5, .58); transition: opacity .2s ease, visibility .2s ease; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 41; display: flex; width: min(440px, 100%); height: 100dvh; flex-direction: column; transform: translateX(100%); background: #fffaf2; box-shadow: -10px 0 35px rgba(32, 8, 2, .2); transition: transform .24s ease; }
body.cart-open .drawer-backdrop { visibility: visible; opacity: 1; }
body.cart-open .cart-drawer { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 25px 24px 17px; border-bottom: 1px solid var(--border); }
.drawer-header h2 { margin: 0; color: var(--brand-brown); font: 700 2rem/1 Georgia, "Times New Roman", serif; }
.drawer-header .section-kicker { margin: 0 0 5px; color: var(--muted); font-size: .65rem; }
.close-button, .lightbox-close { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--brand-brown); background: #f4e3cf; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 17px 24px; }
.empty-cart { margin-top: 35%; color: var(--brand-brown); font: 700 1.1rem/1.5 Georgia, "Times New Roman", serif; text-align: center; }
.empty-cart span { color: var(--muted); font: 400 .86rem/1.5 system-ui, sans-serif; }
.cart-line { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 60px; height: 52px; border-radius: 8px; object-fit: cover; }
.cart-line h3 { margin: 0; color: var(--brand-brown); font: 700 .9rem/1.15 Georgia, "Times New Roman", serif; }
.cart-line p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.cart-line-total { color: #9e241c; font-weight: 800; font-size: .9rem; white-space: nowrap; }
.quantity-control { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; }
.quantity-control button { width: 24px; height: 24px; padding: 0; border: 1px solid var(--border); border-radius: 50%; color: var(--brand-brown); background: transparent; cursor: pointer; line-height: 1; }
.quantity-control span { min-width: 18px; text-align: center; font-size: .8rem; font-weight: 800; }
.cart-footer { padding: 18px 24px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; color: var(--brand-brown); font-weight: 700; }
.cart-total strong { color: #9e241c; font-size: 1.35rem; }
.cart-notice { margin: 8px 0 14px; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.copy-order { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 0; color: var(--brand-brown); background: transparent; cursor: pointer; font-size: .8rem; text-decoration: underline; }
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; visibility: hidden; place-items: center; padding: 25px; opacity: 0; background: rgba(22, 6, 3, .9); transition: opacity .2s ease, visibility .2s ease; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox img { max-width: min(100%, 1000px); max-height: 88vh; border-radius: 12px; object-fit: contain; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; background: rgba(255, 255, 255, .18); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 99px; color: #fff; background: var(--brand-brown); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: opacity .2s ease, transform .2s ease; font-size: .86rem; font-weight: 700; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1400px) {
    .product-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
    .product-card h3 { font-size: .95rem; }
    .product-description { font-size: .76rem; }
    .add-button { padding-inline: 8px; font-size: .73rem; }
}
@media (max-width: 1100px) {
    .header-inner { grid-template-columns: 120px 1fr auto; }
    .brand img { width: 96px; height: 96px; }
    .main-nav { gap: 20px; font-size: .9rem; }
    .header-whatsapp { padding-inline: .85rem; font-size: .82rem; }
    .hero { min-height: 600px; }
    .hero-content { min-height: 600px; padding-top: 90px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-strip-inner { grid-template-columns: auto 1fr auto; }
    .contact-strip-inner > .btn { grid-column: 2 / -1; justify-self: end; margin-top: -8px; }
}
@media (max-width: 820px) {
    .container { width: min(calc(100% - 32px), var(--container-max)); }
    .header-inner { min-height: 68px; grid-template-columns: 1fr auto; }
    .brand img { width: 88px; height: 88px; margin-top: 4px; }
    .main-nav { position: absolute; top: 100%; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fffaf2; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
    .main-nav a:last-child { border-bottom: 0; }
    .header-actions { gap: 6px; }
    .header-whatsapp { display: none; }
    .icon-button { display: grid; place-items: center; }
    .hero { min-height: 700px; }
    .hero-background { background-position: 58% center; }
    .hero::after { background: linear-gradient(90deg, rgba(45, 14, 8, .88), rgba(53, 18, 9, .43) 78%, rgba(53, 18, 9, .2)); }
    .hero-content { min-height: 700px; padding: 100px 0 35px; }
    .hero h1 { font-size: clamp(2.55rem, 8vw, 4rem); }
    .hero-features { margin-top: 45px; gap: 9px; }
    .feature { gap: 5px; font-size: .72rem; }
    .feature-icon { width: 29px; font-size: 1.65rem; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
    .benefit:nth-child(2) { border-right: 0; }
    .benefit:nth-child(3) { padding-left: 0; }
    .benefit:nth-child(3), .benefit:nth-child(4) { border-top: 1px solid rgba(100, 39, 23, .15); padding-top: 18px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-row: span 2; }
    .footer-slogan { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 560px) {
    .container { width: min(calc(100% - 24px), var(--container-max)); }
    .site-header { min-height: 60px; }
    .header-inner { min-height: 60px; }
    .brand img { width: 78px; height: 78px; }
    .hero { min-height: 720px; }
    .hero-content { min-height: 720px; padding-top: 105px; }
    .hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
    .hero-copy { font-size: .98rem; }
    .hero-actions { width: 100%; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-features { grid-template-columns: repeat(2, 1fr); margin-top: 35px; gap: 18px 8px; }
    .catalog-toolbar { flex-direction: column; align-items: stretch; }
    .filter-tabs { justify-content: space-between; }
    .filter-tab { flex: 1; padding-inline: .55rem; font-size: .86rem; }
    .mobile-cart-link { display: block; align-self: center; }
    .product-grid { grid-template-columns: 1fr; gap: 12px; }
    .product-card { display: grid; grid-template-columns: 112px 1fr; }
    .product-image-wrap { aspect-ratio: 1; padding: 6px; }
    .product-card-body { padding: 10px 10px 11px; }
    .product-card h3 { min-height: auto; font-size: .98rem; }
    .product-description { min-height: auto; margin: 5px 0 8px; font-size: .75rem; }
    .product-price { font-size: 1.2rem; }
    .product-unit { font-size: .65rem; }
    .add-button { min-height: 33px; padding-inline: 8px; font-size: .74rem; }
    .benefits-grid { grid-template-columns: 1fr; }
    .benefit, .benefit:first-child, .benefit:nth-child(3) { padding: 10px 0; border-right: 0; border-top: 1px solid rgba(100, 39, 23, .15); }
    .benefit:first-child { border-top: 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-item:last-child { grid-column: 1 / -1; }
    .contact-strip-inner { grid-template-columns: auto 1fr; gap: 10px 12px; }
    .contact-symbol { width: 46px; height: 46px; font-size: 1.6rem; }
    .contact-copy h2 { font-size: 1.25rem; }
    .contact-copy p { font-size: .72rem; }
    .contact-phone { grid-column: 1 / -1; justify-content: center; font-size: 1.05rem; }
    .contact-strip-inner > .btn { grid-column: 1 / -1; width: 100%; margin-top: 2px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .footer-brand { grid-column: 1 / -1; grid-row: auto; }
    .footer-brand img { width: 112px; height: 112px; }
    .footer-slogan { font-size: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cart-line { grid-template-columns: 52px 1fr auto; }
    .cart-line img { width: 52px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Scroll reveal (progressive enhancement: sin .js todo se ve normal) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="zoom"]  { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
