@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,650;0,750;1,650&display=swap');

:root {
  color-scheme: light;
  --cream: #fbe7dc;
  --paper: #fffcf5;
  --wine: #711327;
  --cherry: #a51e38;
  --berry: #89182e;
  --ink: #38211f;
  --muted: #654846;
  --line: #eacebd;
  --display: "Playfair Display", Georgia, serif;
  --text: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #b7284a; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 5rem, 1270px); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; padding: .75rem 1rem; color: #fff; background: var(--wine); transform: translateY(-150%); z-index: 5; }
.skip:focus { transform: none; }
.topbar { background: var(--paper); }
.topbar-inner { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; }
.topbar-inner > .button { justify-self: end; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .55rem; color: var(--wine); line-height: 1; text-decoration: none; }
.brand small { display: block; font-size: .67rem; font-weight: 700; letter-spacing: .13em; }
.brand strong { display: block; margin-top: .08em; font: 750 2rem/.92 var(--display); }
.topbar nav { display: flex; gap: clamp(1.2rem, 4vw, 3rem); font-size: .94rem; font-weight: 700; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; padding: .72rem 1.28rem; border: 1px solid transparent; border-radius: 100vmax; font: 700 .94rem/1.25 var(--text); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.button-small { min-height: 43px; font-size: .88rem; }
.button-outline { border-color: var(--wine); color: var(--wine); }
.button-outline:hover { background: var(--wine); color: var(--paper); }
.button-dark { background: var(--wine); color: #fff9ed; }
.button-dark:hover { background: #511020; }
.text-link { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; color: var(--wine); font-weight: 700; text-underline-offset: .28em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--cherry); text-decoration-thickness: 2px; }
.hero { display: grid; grid-template-columns: 48% 52%; background: var(--cream); }
.hero-copy { align-self: center; padding: clamp(3.1rem, 7vw, 7.3rem) clamp(1.6rem, 4vw, 4.7rem) clamp(3.4rem, 7vw, 7.3rem) max(2.5rem, calc((100vw - 1270px) / 2)); }
.eyebrow { display: flex; gap: .55em; align-items: baseline; margin: 0 0 1.05rem; color: var(--wine); font-size: .82rem; font-weight: 700; letter-spacing: .14em; }
.eyebrow span { font-size: 1.12em; color: var(--cherry); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 750; color: var(--wine); }
h1 { font-size: clamp(3.25rem, 6.55vw, 7.7rem); line-height: .99; letter-spacing: -.07em; }
h2 { font-size: clamp(2.7rem, 5.4vw, 5.25rem); line-height: 1.05; letter-spacing: -.065em; }
h1 em, h2 em { color: var(--cherry); font-weight: 650; }
.hero-description { max-width: 32ch; margin: 1.55rem 0 1.6rem; color: var(--muted); font-size: clamp(1.06rem, 1.52vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 100%; margin: 0; overflow: hidden; background: #eee5dc; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-visual figcaption { position: absolute; right: 1rem; bottom: 1rem; }
.hero-visual figcaption a { display: inline-flex; min-height: 44px; align-items: center; padding: .45rem .85rem; border-radius: 100vmax; background: var(--paper); color: var(--wine); font-size: .82rem; font-weight: 700; text-underline-offset: .18em; }
.section { padding-block: clamp(3.5rem, 7vw, 6.8rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2.3rem; }
.section-heading > p { max-width: 34ch; margin: 0 0 .18rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.product { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1.3rem; background: #fff9ee; }
.product:nth-child(-n + 2) { grid-column: span 3; }
.product-photo { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: #eee5dc; }
.product-photo:focus-visible { outline-offset: -5px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transition: transform .35s; }
.product-desayuno-sorpresa .product-photo img, .product-mini-cakes .product-photo img { object-position: center 48%; }
.product:hover .product-photo img { transform: scale(1.045); }
.product-detail { display: flex; flex: 1; flex-direction: column; padding: clamp(1rem, 2.6vw, 1.75rem); }
.product-detail h3 { font-size: clamp(1.35rem, 2.45vw, 2.25rem); line-height: 1.12; letter-spacing: -.045em; }
.product-detail p { flex: 1; margin: .75rem 0 .35rem; color: var(--muted); }
.gallery-note { display: flex; flex-wrap: wrap; gap: .2rem .75rem; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); }
.gallery-note p { margin: .5rem 0; max-width: 55ch; }
.gallery-note a { font-size: .92rem; }
.story { background: #f9dbe0; }
.story-inner { display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 8vw, 7.2rem); padding-block: clamp(2.8rem, 6vw, 5.6rem); }
.story-mark { flex: 0 0 auto; width: clamp(94px, 15vw, 162px); height: auto; transform: rotate(-9deg); }
.story-inner p:last-child { max-width: 51ch; margin: 1.15rem 0 0; color: var(--muted); }
.quote { display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: clamp(2rem, 7vw, 7.2rem); align-items: center; }
.quote-copy p:not(.eyebrow) { max-width: 39ch; color: var(--muted); }
.quote-form { display: grid; gap: .55rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.3rem; background: #fff1e3; }
.quote-form label { color: var(--wine); font-weight: 700; }
.quote-form label small { color: var(--muted); font-weight: 500; }
.quote-form :is(input, select, textarea) { width: 100%; min-height: 46px; padding: .58rem .7rem; color: var(--ink); background: var(--paper); border: 1px solid #b88983; border-radius: .5rem; font: inherit; }
.quote-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-block: .2rem; }
.form-row > div { display: grid; align-content: end; gap: .45rem; }
.quote-form .button { margin-top: .5rem; }
footer { color: #ffe9cf; background: var(--wine); }
.footer-inner { min-height: 114px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
footer .brand { color: #ffe9cf; }
footer a:focus-visible { outline-color: #ffe9cf; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 3rem); }
  .hero-copy { padding-inline: 1.5rem; }
}
@media (max-width: 700px) {
  .topbar-inner { min-height: 68px; grid-template-columns: 1fr 1fr; }
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 2rem; }
  .hero-visual { min-height: 0; aspect-ratio: 5 / 4; }
  .hero-visual img { object-position: 54% 50%; }
  .section-heading { display: block; margin-bottom: 1.4rem; }
  .section-heading > p { margin-top: .9rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product, .product:nth-child(-n + 2) { grid-column: auto; }
  .product-desayuno-sorpresa { grid-column: 1 / -1; }
  .product-desayuno-sorpresa .product-photo { aspect-ratio: 2 / 1; }
  .product-photo { aspect-ratio: 16 / 11; }
  .product-detail h3 { font-size: clamp(1.35rem, 4vw, 2rem); }
  .story-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .quote { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-desayuno-sorpresa .product-photo { aspect-ratio: 5 / 4; }
  .product-detail h3 { font-size: 1.8rem; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-copy { padding-inline: 1rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
