:root {
  --navy: #152c47;
  --ink: #20242b;
  --muted: #555d65;
  --cream: #f3eee3;
  --paper: #fdfcf9;
  --rose: #e2a5b4;
  --border: #e2d9ca;
  --heading-font: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-block: 24px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ab5970; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 700; }
h2, h3 { color: var(--navy); }
p { line-height: 1.5; }
ul { list-style: none; padding: 0; }
.wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: var(--navy); color: white; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 68px; }
.brand img { width: 114px; filter: brightness(0) invert(1); }
.coverage { border: 1px solid #fff9; border-radius: 100px; padding: 10px 17px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.coverage:hover, .coverage:focus-visible { background: var(--paper); color: var(--navy); }

.intro {
  background: linear-gradient(104deg, #111f32ee, #1019277a), url('../assets/fondo.jpg') center 52% / cover, var(--navy);
  color: white;
  overflow: hidden;
}
.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(24px, 6vw, 84px);
  padding-block: clamp(38px, 6vw, 72px);
}
.intro h1 { max-width: 10ch; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: .98; }
.intro p { max-width: 30ch; margin-top: 17px; color: #fffdf6; font-size: clamp(.97rem, 1.6vw, 1.1rem); }
.intro-photo { width: 100%; filter: drop-shadow(0 12px 18px #080b16b8); }
.delivery-promotion { margin-top: 16px; }
.intro .delivery-promotion-label { margin-top: 0; margin-bottom: 6px; font-size: 1rem; font-weight: 600; }
.delivery-promotion .offer-prices { gap: clamp(10px, 2vw, 19px); }
.delivery-promotion .offer-regular { color: #f1d1d9; font-size: clamp(1rem, 2vw, 1.4rem); }
.delivery-promotion .offer-price { color: #f3b9c9; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; }
.delivery-promotion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; margin-top: 12px; }
.delivery-promotion-actions .button { padding-inline: 17px; }
.delivery-saving { color: #ffdee8; font-weight: 700; }

.shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(288px, 338px); align-items: start; gap: clamp(24px, 4vw, 46px); padding-block: 44px 66px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 19px; }
.section-heading h2, .order h2, .flavor-dialog h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.12; }
.order-jump { color: var(--navy); font-size: .9rem; white-space: nowrap; }
.pack-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.pack { min-width: 0; background: var(--paper); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pack-photo { width: 100%; aspect-ratio: 2; object-fit: contain; padding: 14px; background: #eee4d3; }
.pack:nth-child(2) .pack-photo { background: #efe0e3; }
.pack-details { display: grid; gap: 8px; padding: 15px; }
.pack-details h3 { font-size: 1.12rem; line-height: 1.18; }
.pack-price { color: var(--navy); font-weight: 700; }
.pack .button { margin-top: 3px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 100px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}
.button-outline { border-color: var(--navy); background: transparent; color: var(--navy); }
.button-outline:hover { background: #e8edf4; }
.button-primary { background: var(--rose); color: #182a3d; }
.button-primary:hover:not(:disabled):not([aria-disabled='true']) { background: #edb6c4; }
.button:disabled, .button[aria-disabled='true'] { background: #e9e6e1; color: #5d5e62; cursor: default; }

.order { position: sticky; top: 22px; border: 1px solid var(--border); padding: 22px; border-radius: 18px; background: var(--paper); }
.order h2 { font-size: 1.55rem; }
.empty { color: var(--muted); margin-top: 11px; }
.order-lines { margin: 0; }
.order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding-block: 13px;
  border-bottom: 1px solid var(--border);
}
.order-line h3 { font-family: inherit; font-size: 1rem; }
.order-line p { margin-top: 3px; font-size: .85rem; color: var(--muted); }
.order-line strong { white-space: nowrap; }
.totals { display: grid; gap: 7px; margin: 18px 0 10px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt, .totals dd { margin: 0; font-size: .9rem; }
.totals dd { text-align: right; font-weight: 700; }
.totals .discount-row { color: #79364e; font-weight: 700; }
.order-note { font-size: .85rem; color: var(--muted); }
.checkout { width: 100%; margin-block: 12px 8px; }

.flavor-dialog { width: min(482px, 100% - 24px); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); color: var(--ink); }
.flavor-dialog::backdrop { background: #121f30aa; }
.dialog-heading, .flavor { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flavor-step { color: #79364e; font-size: .86rem; font-weight: 700; margin-bottom: 4px; }
.flavor-dialog > p { margin-top: 6px; color: var(--muted); }
.flavor-status { color: var(--navy); font-size: .9rem; font-weight: 700; margin-top: 11px; }
.flavor-progress-bar { display: block; width: 100%; height: 6px; margin-block: 5px 9px; border: 0; border-radius: 100px; overflow: hidden; background: var(--cream); accent-color: #964c66; }
.flavor-progress-bar::-webkit-progress-bar { background: var(--cream); }
.flavor-progress-bar::-webkit-progress-value { background: #964c66; }
.flavor-list { display: grid; gap: 5px; margin: 0 0 10px; }
.flavor { border: 1px solid var(--border); border-radius: 11px; padding: 3px 8px 3px 4px; }
.flavor[data-selected='true'] { border-color: #c38399; background: #faeef1; }
.flavor-details { min-width: 0; display: flex; align-items: center; gap: 7px; }
.flavor-photo { flex: none; width: 44px; height: 46px; object-fit: contain; padding: 3px; border-radius: 8px; background: #f4ede2; }
.flavor-name { color: var(--navy); font-size: .92rem; font-weight: 700; line-height: 1.17; }
.quantity { display: inline-flex; align-items: center; justify-self: start; gap: 7px; font-variant-numeric: tabular-nums; }
.quantity span, .quantity output { min-width: 1.35ch; text-align: center; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.25rem; }
.icon-button:disabled { color: #777; }
.icon-button:hover:not(:disabled) { background: var(--cream); }
.dialog-back { border: 0; padding: 8px 0; background: none; color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.dialog-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; background: var(--paper); }

.site-footer { background: var(--navy); color: white; }
.footer-inner { padding-block: 23px; flex-wrap: wrap; font-size: .9rem; }

@media (max-width: 900px) and (min-width: 651px), (max-width: 480px) {
  .pack-list { grid-template-columns: 1fr; }
  .pack { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .pack-photo { height: 100%; min-height: 115px; aspect-ratio: auto; }
  .pack-details { padding: 12px; justify-items: start; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  .coverage { padding-inline: 12px; font-size: .84rem; }
  .intro-inner { grid-template-columns: 1fr; gap: 19px; padding-block: 27px 30px; }
  .intro h1 { max-width: 13ch; }
  .intro p { margin-top: 9px; }
  .intro-photo { width: min(100%, 330px); }
  .shop { grid-template-columns: 1fr; padding-block: 27px 44px; }
  .order { position: static; }
  .flavor-dialog { padding: 14px; }
  .flavor-dialog .quantity { gap: 4px; }
  .flavor-dialog .icon-button { width: 40px; height: 40px; }
  .dialog-actions .button { font-size: .87rem; }
}
