@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 650;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f7ecd9;
  --paper: #fffaf0;
  --honey: #ebd1a5;
  --chocolate: #38251c;
  --muted: #654c3b;
  --amber: #874013;
  --gold: #f3c382;
  --line: #cdb18e;
  --display: Fraunces, serif;
  --reveal-distance: .65rem;
  --reveal-time: 560ms;
  --curtain-time: 580ms;
  font-family: "Source Sans 3", sans-serif;
  color: var(--chocolate);
  background: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1.125rem; line-height: 1.55; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .lead, .philosophy-lead { font-family: var(--display); font-weight: 500; }
h1, h2, h3 { line-height: 1.06; }
h2 { font-size: clamp(2.5rem, 5.2vw, 4.85rem); letter-spacing: -.05em; }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); letter-spacing: -.035em; }
h1 em, h2 em { color: var(--amber); }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 4rem), 76rem); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 7.3vw, 7rem); }
.prose { max-width: 38rem; }
.prose > p + p { margin-top: .85rem; }
.prose > h2 + p { margin-top: 1.25rem; }
.lead { font-size: clamp(1.3rem, 2.35vw, 1.8rem); line-height: 1.35; }
.skip-link { position: absolute; inset: .75rem auto auto .75rem; z-index: 2; padding: .65rem .9rem; background: var(--paper); }
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header { border-top: .25rem solid var(--amber); border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; min-height: 5.6rem; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: .85rem; font: 500 clamp(1.2rem, 2vw, 1.55rem)/1.1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.brand em { color: var(--amber); }
.brand-mark { flex: none; width: clamp(2.7rem, 4.5vw, 3.45rem); }
.site-nav { display: flex; flex-wrap: wrap; column-gap: clamp(1rem, 2.8vw, 2.5rem); }
.site-nav a { display: flex; min-height: 2.75rem; align-items: center; font-size: .98rem; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--amber); text-decoration-color: currentColor; }
.menu-toggle { min-height: 2.75rem; padding: .3rem .85rem; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.menu-toggle[aria-expanded="true"] { background: var(--honey); }

.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 86% 18%, #ead0a5, transparent 72%), var(--cream); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(1.75rem, 5.5vw, 5.25rem); padding-block: clamp(2.75rem, 5.5vw, 5.5rem); }
.hero h1 { font-size: clamp(3.1rem, 6.1vw, 6.55rem); letter-spacing: -.055em; word-spacing: .025em; line-height: .98; }
.intro { max-width: 32ch; margin-top: 1.4rem; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.37; }
.motto { display: flex; align-items: baseline; gap: .65rem; max-width: 32ch; margin-top: 1.25rem; color: var(--amber); font: italic 500 clamp(1.05rem, 1.7vw, 1.35rem)/1.35 var(--display); }
.motto::before { content: ""; flex: none; width: .52rem; height: .52rem; background: currentColor; clip-path: polygon(50% 0, 66% 34%, 100% 50%, 66% 66%, 50% 100%, 34% 66%, 0 50%, 34% 34%); }
.photo-mat { position: relative; min-width: 0; padding: clamp(.55rem, 1.25vw, 1.1rem); border: 1px solid var(--line); color: var(--chocolate); background: var(--paper); }
.photo-mat img { width: 100%; }
.photo-mat figcaption { padding: .65rem .1rem .05rem; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .15em; text-align: center; text-transform: uppercase; }
.hero-figure { overflow: hidden; margin-block-start: clamp(0rem, 2vw, 1.5rem); box-shadow: .35rem .4rem 0 #ab78452b; }
.hero-photo { aspect-ratio: 1.43; object-fit: cover; }
.ornament-label { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.ornament-label::before, .ornament-label::after { content: ""; width: min(8%, 1.65rem); border-top: 1px solid var(--line); }

.button { display: inline-flex; min-height: 2.95rem; align-items: center; justify-content: center; gap: .85rem; margin-top: 1.55rem; padding: .55rem 1.1rem; border: 1px solid transparent; border-radius: .12rem; background: var(--chocolate); color: var(--paper); font-size: 1rem; font-weight: 650; text-align: center; text-decoration: none; }
.button:hover { background: var(--amber); }
.button:focus-visible { outline-color: var(--amber); }
.button-outline { border-color: var(--chocolate); background: transparent; color: var(--chocolate); }
.button-outline:hover { background: var(--chocolate); color: var(--paper); }
.button-light { background: var(--gold); color: var(--chocolate); }
.button-light:hover { background: var(--paper); }
.button-light:focus-visible { outline-color: var(--gold); }

.products { background: var(--paper); }
.products-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 3px double var(--line); }
.products-heading img { width: clamp(3rem, 13vw, 9rem); flex: none; }
.products-content { display: grid; gap: clamp(1.2rem, 2.5vw, 2.5rem); margin-top: clamp(1.25rem, 3vw, 2.5rem); }
.products-photo { width: min(100%, 29rem); }
.product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem clamp(.75rem, 2.3vw, 2.3rem); margin: 0; padding: 0; list-style: none; }
.product-list li { padding-block: .85rem 1.15rem; }
.product-list li:nth-child(-n+2) { background: #f1dfbe50; padding-inline: clamp(.9rem, 2.3vw, 1.85rem); border-top: 2px solid var(--line); }
.product-list li:nth-child(-n+2) h3 { font-size: clamp(1.5rem, 3vw, 2.55rem); }
.product-list li:nth-child(n+5) { border-top: 1px solid var(--line); }
.product-list p { max-width: 35ch; margin-top: .55rem; color: var(--muted); }
.product-list a:hover { color: var(--amber); }

.philosophy { border-block: 1px solid var(--line); background: radial-gradient(ellipse at center, #f4e4c8, transparent 75%), var(--honey); text-align: center; }
.philosophy-inner { position: relative; }
.philosophy-inner::before { content: ""; display: block; width: 4.5rem; margin: 0 auto 1.5rem; border-top: 3px double var(--amber); }
.philosophy-title { color: var(--amber); font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -.025em; }
.philosophy-title::after { content: ""; display: block; width: .44rem; height: .44rem; margin: 1rem auto; background: currentColor; transform: rotate(45deg); }
.philosophy-lead { max-width: 26ch; margin-inline: auto; font-size: clamp(2rem, 5vw, 4.45rem); line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.philosophy-lead em { color: var(--amber); }
.philosophy-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem clamp(1.5rem, 4vw, 3rem); width: min(100%, 48rem); margin: 1.65rem auto 0; text-align: start; }

.gifts { background: radial-gradient(ellipse at 12% 84%, #65402b, transparent 74%), var(--chocolate); color: var(--paper); }
.gifts-inner, .shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: start; gap: clamp(1.75rem, 6vw, 6rem); }
.gifts-inner { gap: clamp(.9rem, 5vw, 5rem); }
.gifts-heading { align-self: center; }
.gifts-heading img { width: clamp(3.8rem, 8vw, 6rem); margin-bottom: .7rem; }
.gifts h2 { font-size: clamp(2.3rem, 4.8vw, 4.6rem); }
.gifts h2 em { display: block; color: var(--gold); }
.gifts .lead { color: var(--gold); }
.gifts-photo { width: min(100%, 29rem); justify-self: end; align-self: center; background: #eddbba; border-color: #c29b66; }
.gifts-page-link { display: inline-block; margin: .65rem 0 0 .9rem; color: var(--gold); font-weight: 600; }
.gifts-page-link:hover { color: var(--paper); }
.shop-photo { width: min(100%, 29rem); }

.shop-info { display: grid; gap: 1.15rem clamp(1.2rem, 3vw, 3rem); padding: clamp(1.1rem, 2.5vw, 1.9rem); border-block: 3px double var(--line); background: var(--paper); }
.shop-info address { font-style: normal; }
.shop-info strong { display: block; margin-bottom: .13rem; color: var(--amber); font-size: .84rem; letter-spacing: .09em; text-transform: uppercase; }
.shop-info .button { margin-top: .65rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; }
.contact-links a:hover, .site-footer a:hover { color: var(--amber); }

.app-section { padding-block: clamp(2.5rem, 5vw, 4rem); border-block: 1px solid var(--line); background: var(--honey); }
.app-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: .7rem clamp(1.75rem, 6vw, 6rem); }
.app-inner h2 { font-size: clamp(1.95rem, 3.6vw, 3.25rem); }
.app-inner p + p { margin-top: .18rem; }

.site-footer { padding-block: 2.5rem; border-bottom: .25rem solid var(--amber); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1.15rem 2rem; font-size: .98rem; }
.footer-inner::after { content: ""; flex-basis: 100%; border-top: 3px double var(--line); }
.footer-logo { width: min(14rem, 100%); border: 1px solid var(--line); }
.footer-inner p { margin-bottom: .2rem; }

/* Cestas y regalos gourmet */
.gifts-page-intro, .gifts-page-natural, .gifts-page-contact { padding-block: clamp(3rem, 6vw, 6rem); }
.gifts-page-grid, .gifts-page-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 5rem); }
.gifts-page-grid { align-items: center; }
.gifts-page-intro h1 { font-size: clamp(3rem, 6.3vw, 6.25rem); letter-spacing: -.055em; }
.gifts-page-intro h1 em { color: var(--gold); }
.gifts-page-ornament { width: clamp(3.5rem, 6vw, 5.75rem); margin-bottom: .65rem; }
.gifts-page-examples > section { display: flex; flex-direction: column; gap: 1.4rem; }
.gifts-page-examples .gifts-category-link { align-self: start; margin-top: 0; }
.gifts-page-natural h2, .gifts-page-contact h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); }
.gifts-page-examples h2 { font-size: clamp(2.1rem, 3.5vw, 3.25rem); }
.gifts-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: start; gap: 1rem; }
.gifts-gallery img { aspect-ratio: 10 / 11; object-fit: cover; }
.gifts-gallery .photo-fit-full { object-fit: contain; background: var(--cream); }
.gifts-page-natural { text-align: start; }
.gifts-page-contact { max-width: 44rem; text-align: center; }
.gifts-page-contact p { max-width: 50ch; margin: 1rem auto 0; }
.gifts-page-back { display: table; margin: 1rem auto 0; color: var(--amber); font-weight: 600; }

@supports (grid-template-columns: subgrid) {
@media (width > 48rem) {
  .products-content { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .products-photo { grid-area: 1 / 1 / 3 / 3; align-self: center; }
  .product-list { grid-area: 1 / 1 / 5 / -1; grid-template-columns: subgrid; grid-template-rows: subgrid; }
  .product-list li { grid-column: span 2; }
  .product-list li:nth-child(-n+2) { grid-row: 1; }
  .product-list li:nth-child(n+3):nth-child(-n+4) { grid-row: 2; }
  .product-list li:nth-child(odd):nth-child(-n+4) { grid-column: 3 / 5; }
  .product-list li:nth-child(even):nth-child(-n+4) { grid-column: 5 / 7; }
  .product-list li:nth-child(n+5):nth-child(-n+7) { grid-row: 3; }
  .product-list li:nth-child(n+8) { grid-row: 4; grid-column: span 3; }
}
}

@media (min-width: 48.01rem) {
  .gifts-inner { grid-template-rows: auto auto; gap: 1.1rem clamp(2rem, 7vw, 7rem); }
  .gifts-heading { align-self: end; }
  .gifts .prose { align-self: start; }
  .gifts-photo { grid-area: 1 / 2 / 3 / 3; }
  .shop-grid { align-items: center; gap: clamp(1.75rem, 3.6vw, 3.25rem) clamp(2rem, 6vw, 6rem); }
  .shop-photo { justify-self: center; }
  .shop-info { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); }
}

@keyframes appear {
  from { opacity: .55; transform: translateY(var(--reveal-distance)); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes open-curtain {
  from { transform: translateX(0); }
  to { transform: translateX(101%); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .site-nav a, .button, .menu-toggle { transition: color 180ms ease, background-color 180ms ease, text-decoration-color 180ms ease; }
  .brand { animation: appear var(--reveal-time) ease-out; }
  .hero-copy { animation: appear var(--reveal-time) ease-out 90ms backwards; }
  .hero-figure { animation: appear var(--reveal-time) ease-out 160ms backwards; }
  .hero-figure::after { content: ""; position: absolute; inset: 0; background: var(--honey); pointer-events: none; transform: translateX(101%); animation: open-curtain var(--curtain-time) cubic-bezier(.4, 0, .2, 1) 160ms backwards; }
  .reveal-in:not(:focus-within) { animation: appear var(--reveal-time) ease-out; }
}

@media (max-width: 48rem) {
  :root { --reveal-distance: .35rem; --reveal-time: 360ms; --curtain-time: 390ms; }
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.75rem; padding-block: .6rem; flex-wrap: wrap; gap: .65rem; }
  .brand { flex: 1; gap: .6rem; }
  .site-nav { width: 100%; padding-block: .4rem 0; border-top: 1px solid var(--line); }
  .hero-inner, .products-content, .gifts-inner, .shop-grid, .app-inner { grid-template-columns: minmax(0, 1fr); }
  .gifts-photo, .shop-photo { justify-self: start; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 5.2rem); }
  .hero-photo { aspect-ratio: auto; }
  .hero-figure { margin-block-start: 0; }
  .gifts-page-grid, .gifts-page-examples { grid-template-columns: minmax(0, 1fr); }
  .gifts-page-examples { row-gap: 2.75rem; }
  .gifts-page-link { display: table; margin-inline-start: 0; }
}

@media (max-width: 33rem) {
  .products-heading h2 { font-size: clamp(2.05rem, 8vw, 3rem); }
  .product-list { display: block; }
  .product-list li { padding-block: .8rem; border-top: 1px solid var(--line); }
  .product-list li:nth-child(-n+2) { margin-bottom: .45rem; }
  .philosophy-copy { grid-template-columns: minmax(0, 1fr); }
  .gifts h2 { font-size: clamp(2.25rem, 9vw, 3rem); }
}

@media (max-width: 25rem) {
  .wrap { width: calc(100% - 2rem); }
}

/* Enlaces legales del pie y páginas de lectura */
.footer-legal { display: grid; justify-items: start; gap: .25rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 1.75rem; }
.footer-legal a[aria-current="page"] { font-weight: 650; color: var(--amber); }

.legal-document { max-width: 48rem; overflow-wrap: anywhere; }
.legal-document h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.045em; }
.legal-document h2 { margin-block: 2.1rem .65rem; font-size: clamp(1.65rem, 4vw, 2.35rem); letter-spacing: -.025em; }
.legal-document p + p { margin-top: .85rem; }
.legal-document ul { margin-block: 0 1rem; padding-inline-start: 1.35em; }
.legal-document a:hover { color: var(--amber); }
.legal-table { width: 100%; margin-top: 1.25rem; border-collapse: collapse; table-layout: fixed; font-size: .96em; background: var(--paper); }
.legal-table caption { padding-bottom: .5rem; font-weight: 650; text-align: start; }
.legal-table th, .legal-table td { padding: clamp(.45rem, 2vw, .85rem); border: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal-table th { background: var(--honey); }
