/* SelvaYacu · identidad editorial, sin degradados ni efectos decorativos */
:root {
  --green-900: #26331b;
  --green-800: #435d28;
  --green-700: #536f34;
  --green-600: #668343;
  --sage-200: #d9e0ce;
  --sage-100: #eef0e8;
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --ink: #291e16;
  --ink-soft: #625a50;
  --line: #ded5c7;
  --amber-700: #754220;
  --amber-600: #97633a;
  --amber-100: #eee3d0;
  --wa: #236446;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --shadow-card: 0 10px 32px rgba(41, 30, 22, 0.08);
  --shadow-drawer: -8px 0 32px rgba(41, 30, 22, 0.18);
}

body { background: var(--bg); letter-spacing: -0.005em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; }
.container { max-width: 1280px; padding-inline: clamp(18px, 4vw, 56px); }
:focus-visible { outline-color: var(--green-800); }
.skip-link { z-index: 120; }

/* Identidad y navegación */
.top-note { background: #352619; color: #f9f1e3; font-size: 0.72rem; letter-spacing: 0.12em; text-align: center; text-transform: uppercase; padding: 8px 0; }
.top-note span { margin-inline: 10px; color: #cba572; }
.site-header { background: #faf7f0; border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: 76px; gap: 22px; }
.brand { flex-shrink: 0; gap: 11px; }
.brand-logo { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; box-shadow: none; object-fit: cover; }
.brand-text strong { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: -0.04em; font-weight: 600; line-height: 1; }
.brand-text small { margin-top: 4px; font-size: 0.66rem; letter-spacing: 0.02em; }
.header-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); margin-left: auto; }
.header-nav a { color: var(--ink); font-size: 0.84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-nav a:hover, .header-nav a[aria-current] { color: var(--green-800); text-decoration: underline; text-underline-offset: 6px; }
.header-action { color: var(--surface); background: var(--ink); padding: 11px 15px; border-radius: var(--r-sm); font-size: 0.84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-action:hover { background: var(--green-800); }
.header-action span { padding-left: 6px; }
.cart-button { border-radius: var(--r-sm); background: var(--ink); }
.cart-button:hover { background: var(--green-800); }

/* Botones y enlaces */
.btn { border-radius: var(--r-sm); font-weight: 700; min-height: 48px; transition: background-color .18s ease, color .18s ease; }
.btn:active { transform: none; }
.btn-primary { background: var(--ink); color: #fffdf8; }
.btn-primary:hover { background: var(--green-800); }
.btn-secondary { color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--amber-100); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link:hover { color: var(--green-800); }
.eyebrow, .section-kicker { color: var(--green-800); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

/* Portada */
.home-hero { background: #eee6d8; border-bottom: 1px solid var(--line); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: stretch; gap: clamp(32px, 5vw, 84px); min-height: 600px; }
.home-hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-block: clamp(56px, 7vw, 110px); }
.home-hero-copy .eyebrow { margin: 0 0 25px; }
.home-hero h1 { max-width: 12ch; font-size: clamp(3rem, 5.4vw, 5.8rem); line-height: 1.03; }
.home-hero-copy > p:not(.eyebrow) { max-width: 51ch; margin: 28px 0 0; color: var(--ink-soft); font-size: clamp(.98rem, 1.3vw, 1.12rem); line-height: 1.72; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; margin-top: 31px; }
.home-hero-actions .btn { padding-inline: 22px; }
.home-hero-foot { display: flex; gap: 24px; flex-wrap: wrap; border-top: 1px solid #c9bdad; margin-top: auto; padding-top: 22px; color: #6e6255; font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.home-hero-foot span + span::before { content: "·"; margin-right: 24px; }
.home-hero-visual { position: relative; align-self: stretch; margin: 0; min-height: 500px; background: #e5d7c4; overflow: hidden; }
.home-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-visual figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 10px; background: rgba(255, 253, 248, .94); color: var(--ink-soft); font-size: .68rem; line-height: 1.3; }

.home-categories { padding-block: clamp(64px, 8vw, 112px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading .eyebrow { margin: 0 0 10px; }
.section-heading h2, .about-copy h2, .home-contact h2 { font-size: clamp(2.1rem, 4vw, 3.9rem); line-height: 1.08; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card { display: block; min-width: 0; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); transition: border-color .18s ease, transform .18s ease; }
.category-card:hover { border-color: var(--green-700); transform: translateY(-3px); }
.category-photo { aspect-ratio: 1 / 1; overflow: hidden; background: #f1eee7; }
.category-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category-card:hover img { transform: scale(1.035); }
.category-meta { position: relative; padding: 18px 18px 22px; min-height: 146px; }
.category-meta > span:first-child { color: var(--green-800); font-size: .63rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-meta h3 { font-size: clamp(1.12rem, 1.6vw, 1.5rem); margin: 10px 0 3px; }
.category-meta p { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.category-arrow { position: absolute; right: 18px; bottom: 18px; font-size: 1.15rem; }
.photo-note { color: var(--ink-soft); font-size: .76rem; margin: 18px 0 0; }

.home-about { background: #eae1d2; padding-block: clamp(68px, 9vw, 122px); scroll-margin-top: 90px; }
.about-grid { display: grid; grid-template-columns: minmax(170px, .65fr) minmax(0, 1.35fr); gap: clamp(32px, 7vw, 110px); }
.about-aside { display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid #b9a993; padding-top: 12px; color: var(--green-800); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.about-year { color: #7e5231; font-family: var(--font-display); font-size: clamp(5rem, 13vw, 11rem); font-weight: 400; line-height: 1; letter-spacing: -.09em; }
.about-copy .eyebrow { margin: 0 0 20px; }
.about-copy h2 { max-width: 18ch; }
.about-copy p:not(.eyebrow) { max-width: 64ch; margin: 22px 0 0; color: #4f453b; line-height: 1.76; }
.about-copy .text-link { margin-top: 26px; }

.home-process { padding-block: clamp(64px, 8vw, 108px); scroll-margin-top: 90px; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.process-grid > div { padding: 28px 28px 20px 0; border-right: 1px solid var(--line); }
.process-grid > div + div { padding-left: 28px; }
.process-grid > div:last-child { border-right: 0; }
.process-grid span { color: var(--green-800); font-family: var(--font-display); font-size: 1.75rem; }
.process-grid h3 { margin-top: 18px; font-size: 1.42rem; }
.process-grid p { max-width: 31ch; color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }
.process-note { max-width: 78ch; border-top: 1px solid var(--line); margin: 20px 0 0; padding-top: 20px; color: var(--ink-soft); font-size: .86rem; }

.home-contact { background: #332418; color: #fffaf1; padding-block: clamp(64px, 8vw, 108px); scroll-margin-top: 90px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); }
.home-contact .eyebrow { color: #c6dc9e; margin: 0 0 20px; }
.home-contact h2 { max-width: 13ch; }
.home-contact p:not(.eyebrow) { max-width: 48ch; color: #e5d9cb; line-height: 1.7; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: end; }
.contact-card > div { display: flex; flex-direction: column; border-top: 1px solid #887261; padding-top: 20px; }
.contact-card span { color: #c6dc9e; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.contact-card strong { font-family: var(--font-display); font-size: 1.5rem; margin-top: 12px; font-weight: 500; }
.contact-card small { color: #e5d9cb; font-size: .76rem; line-height: 1.5; margin-top: 6px; }
.contact-card a { width: max-content; max-width: 100%; color: #fffaf1; margin-top: 22px; font-size: .83rem; font-weight: 700; text-underline-offset: 4px; }

.home-footer { background: #271b12; color: #e5d9cb; border-top: 1px solid #584636; text-align: left; padding: 42px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 32px; }
.home-footer .brand { color: #fffaf1; }
.home-footer .brand-text strong { color: #fffaf1; }
.home-footer .brand-text small { color: #e5d9cb; }
.home-footer p { margin: 14px 0 0; font-size: .83rem; line-height: 1.6; }
.home-footer nav { display: flex; flex-direction: column; gap: 9px; }
.home-footer a:not(.brand) { color: #f6efe2; text-decoration: none; font-size: .84rem; }
.home-footer a:not(.brand):hover { text-decoration: underline; }
.home-footer small { display: block; margin-top: 8px; color: #c8bbac; font-size: .73rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #584636; margin-top: 50px; padding-block: 18px; color: #c8bbac; font-size: .72rem; }

/* Catálogo y fichas: mismo lenguaje visual */
.catalog-intro { background: #eae1d2; border-bottom: 1px solid var(--line); padding-block: clamp(44px, 7vw, 92px); }
.catalog-intro-inner { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.catalog-intro .eyebrow { margin: 0 0 10px; }
.catalog-intro h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
.catalog-intro p:not(.eyebrow) { max-width: 42ch; margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }
.catalog { padding-block: clamp(36px, 5vw, 70px); }
.catalog-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.catalog-count { background: transparent; border: 0; border-radius: 0; padding: 0; font-size: .78rem; }
.catalog-search { border-radius: var(--r-sm); }
.filter-tabs { display: flex; flex-wrap: wrap; }
.chip, .subchip { border-radius: var(--r-sm); }
.chip { flex: 0 0 auto; padding-inline: 16px; }
.chip.active { background: var(--ink); border-color: var(--ink); }
.subchip.active { background: #e2e7d8; border-color: var(--green-800); }
.popular-banner { background: #ebe1d1; color: var(--ink); border-radius: 0; border-left: 3px solid var(--green-800); font-family: var(--font-body); font-size: .84rem; }
.product-card { border-radius: 0; box-shadow: none; }
.product-card:hover { transform: none; box-shadow: var(--shadow-card); }
.product-visual { background: #f1eee8; }
.product-body { padding: 16px; }
.product-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; }
.product-price { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }
.product-weight { border-radius: var(--r-sm); background: var(--sage-100); }
.product-badge, .in-cart-badge { border-radius: var(--r-sm); }
.add-btn { border-radius: var(--r-sm); background: var(--ink); border-color: var(--ink); color: white; min-height: 44px; }
.add-btn:hover, .add-btn.added { background: var(--green-800); border-color: var(--green-800); }
.photo-note.catalog-photo-note { margin: 0 0 22px; }
.shop-guide { background: #ede5d8; }
.delivery-info { background: var(--surface); border: 1px solid var(--line); }
.site-footer:not(.home-footer) { background: #eae1d2; }
.detail-photo { border-radius: 0; }
.detail-content h1 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); }
.detail-size { border-radius: var(--r-sm); }
.detail-price { color: var(--ink); }
.detail-related-grid a { border-radius: 0; }
.detail-mobile-cta { background: var(--ink); }
.detail-mobile-cta .btn { color: var(--ink); }
.mini-cart { border-radius: var(--r-sm); background: var(--ink); }
.mini-cart-cta { color: var(--ink); }
.cart-drawer, .pack-picker { background: var(--bg); }
.cart-overlay { background: rgba(41, 30, 22, .48); }

@media (min-width: 760px) {
  .home-hero-visual { margin-right: calc(-1 * clamp(18px, 4vw, 56px)); }
  .catalog-head { align-items: end; }
}

@media (min-width: 901px) {
  .home-page .header-action { display: none; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-action { margin-left: auto; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
  .top-note { font-size: .61rem; letter-spacing: .07em; }
  .header-inner { height: 66px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.13rem; }
  .brand-text small { font-size: .6rem; }
  .header-action { padding: 10px 11px; font-size: .76rem; }
  .home-hero-grid { display: flex; flex-direction: column; min-height: 0; gap: 0; padding-inline: 0; }
  .home-hero-copy { padding: 48px 20px 38px; }
  .home-hero-copy .eyebrow { margin-bottom: 16px; }
  .home-hero h1 { font-size: clamp(2.65rem, 11.4vw, 4rem); max-width: 12ch; }
  .home-hero-copy > p:not(.eyebrow) { margin-top: 20px; font-size: .95rem; }
  .home-hero-actions { gap: 19px; margin-top: 24px; }
  .home-hero-foot { margin-top: 36px; padding-top: 16px; gap: 8px; font-size: .68rem; }
  .home-hero-foot span + span::before { margin-right: 8px; }
  .home-hero-visual { min-height: 0; height: min(88vw, 430px); }
  .home-categories { padding-block: 55px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .section-heading h2 { font-size: 2.25rem; }
  .category-grid { gap: 10px; }
  .category-meta { padding: 12px 11px 28px; min-height: 135px; }
  .category-meta > span:first-child { font-size: .57rem; letter-spacing: .07em; }
  .category-meta h3 { font-size: 1.08rem; margin-top: 7px; }
  .category-meta p { font-size: .72rem; }
  .category-arrow { right: 12px; bottom: 10px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-aside { flex-direction: row; align-items: end; }
  .about-aside span:last-child { max-width: 13ch; text-align: right; }
  .about-year { font-size: 5.5rem; }
  .about-copy h2, .home-contact h2 { font-size: 2.45rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid > div, .process-grid > div + div { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .process-grid > div:last-child { border-bottom: 0; }
  .process-grid h3 { margin-top: 6px; }
  .process-grid p { max-width: none; margin: 7px 0 0; }
  .contact-card { grid-template-columns: 1fr; gap: 26px; }
  .contact-card strong { font-size: 1.35rem; }
  .contact-card a { font-size: .83rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 32px; }
  .catalog-intro-inner { flex-direction: column; align-items: start; gap: 14px; }
  .catalog-intro h1 { font-size: 2.7rem; }
  .catalog-intro p:not(.eyebrow) { font-size: .9rem; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .product-body { padding: 12px; }
  .product-name { font-size: 1rem; }
  .product-price { font-size: 1.16rem; }
}

@media (max-width: 380px) {
  .brand-text small { display: none; }
  .header-action { font-size: .7rem; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .category-card, .category-photo img { transition: none; }
}
