:root {
  color-scheme: light;
  --terracotta: #8b3f24;
  --espresso: #24130d;
  --coffee: #5b3324;
  --cream: #f7efe2;
  --kraft: #c7a27a;
  --warm-white: #fff9f0;
  --green: #6fa77a;
  --caramel: #c78a3b;
  --ink: #2b1810;
  --muted: #765c4c;
  --line: rgba(91, 51, 36, 0.18);
  --surface: rgba(255, 249, 240, 0.88);
  --shadow: 0 24px 70px rgba(36, 19, 13, 0.18);
  --radius: 8px;
  --shell: 1180px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff9f0 0, #f7efe2 560px, #fff9f0 100%),
    var(--warm-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(139, 63, 36, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 63, 36, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(111, 167, 122, 0.8);
  outline-offset: 4px;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  color: var(--warm-white);
  background: var(--espresso);
  border-radius: var(--radius);
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 240, 0.88);
  border-bottom: 1px solid rgba(91, 51, 36, 0.14);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-logo,
.footer-brand img {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(199, 162, 122, 0.5);
  border-radius: 50%;
  background: var(--espresso);
  box-shadow: 0 10px 26px rgba(36, 19, 13, 0.18);
}

.brand-logo img,
.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.footer-brand strong {
  display: block;
  color: var(--espresso);
  font-family: var(--font-title);
  font-size: 1.08rem;
  line-height: 1;
}

.brand small,
.footer-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a:not(.button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--coffee);
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.nav-menu a:not(.button):hover {
  color: var(--terracotta);
  background: rgba(199, 162, 122, 0.2);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--warm-white);
  padding: 10px;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 150ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  color: var(--warm-white);
  background: linear-gradient(135deg, var(--terracotta), #a8512d);
  box-shadow: 0 14px 32px rgba(139, 63, 36, 0.25);
}

.button-primary:hover {
  background: linear-gradient(135deg, #9a4628, var(--coffee));
}

.button-secondary {
  color: var(--espresso);
  background: rgba(255, 249, 240, 0.7);
  border-color: rgba(91, 51, 36, 0.22);
}

.button-secondary:hover {
  background: var(--warm-white);
  border-color: rgba(139, 63, 36, 0.42);
}

.button-full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--warm-white);
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(36, 19, 13, 0.9), rgba(36, 19, 13, 0.72) 48%, rgba(36, 19, 13, 0.28)),
    linear-gradient(180deg, rgba(36, 19, 13, 0.12), rgba(36, 19, 13, 0.6));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  padding: 86px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--caramel);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6.2vw, 5.45rem);
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 249, 240, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.badge-list li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: rgba(255, 249, 240, 0.9);
  background: rgba(255, 249, 240, 0.1);
  border: 1px solid rgba(255, 249, 240, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-product {
  position: relative;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  border: 1px solid rgba(255, 249, 240, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(1.5deg);
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.product-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  min-width: 116px;
  padding: 14px;
  color: var(--espresso);
  background: rgba(255, 249, 240, 0.93);
  border: 1px solid rgba(199, 162, 122, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(36, 19, 13, 0.18);
}

.product-note span,
.product-note small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-note strong {
  font-family: var(--font-title);
  font-size: 2.35rem;
  line-height: 1;
}

.trust-strip {
  position: relative;
  z-index: 2;
  padding: 18px 0;
  background: var(--espresso);
  color: var(--cream);
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 249, 240, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip span {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 10px 12px;
  text-align: center;
  color: rgba(255, 249, 240, 0.86);
  background: rgba(255, 249, 240, 0.045);
  font-weight: 800;
}

.section {
  padding: clamp(76px, 10vw, 118px) 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.section-copy,
.section-heading,
.order-intro {
  max-width: 720px;
}

.section h2 {
  color: var(--espresso);
  font-size: clamp(2.25rem, 5.2vw, 4.6rem);
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  margin-bottom: 30px;
}

.image-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(91, 51, 36, 0.15);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.image-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  color: var(--warm-white);
  background: rgba(36, 19, 13, 0.72);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.feature-grid,
.shipping-cards,
.product-card-grid,
.flavor-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  margin-top: 28px;
}

.feature-grid article,
.shipping-cards article,
.product-card,
.flavor-card,
.order-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(36, 19, 13, 0.08);
}

.feature-grid article {
  padding: 18px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--warm-white);
  background: var(--terracotta);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-grid h3,
.shipping-cards strong,
.product-card h3,
.flavor-card strong {
  margin: 0;
  color: var(--espresso);
  font-family: var(--font-title);
  font-size: 1.34rem;
  line-height: 1.1;
}

.feature-grid p,
.product-card p {
  margin: 8px 0 0;
  font-size: 0.98rem;
}

.flavors-section,
.shipping-section {
  background:
    linear-gradient(180deg, rgba(199, 162, 122, 0.16), rgba(111, 167, 122, 0.12)),
    var(--cream);
  border-block: 1px solid rgba(91, 51, 36, 0.12);
}

.flavor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flavor-card {
  position: relative;
  min-height: 132px;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 18px;
  isolation: isolate;
}

.flavor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--flavor-color, var(--kraft));
}

.flavor-card::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  z-index: -1;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 249, 240, 0.45);
  border-radius: 50%;
  background: rgba(255, 249, 240, 0.18);
}

.flavor-card span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: var(--espresso);
  background: rgba(255, 249, 240, 0.82);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flavor-card strong,
.flavor-card p {
  color: var(--warm-white);
  text-shadow: 0 1px 16px rgba(36, 19, 13, 0.28);
}

.flavor-card p {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.products-layout {
  align-items: start;
}

.edit-note {
  display: inline-flex;
  padding: 10px 12px;
  color: var(--coffee);
  background: rgba(199, 162, 122, 0.2);
  border: 1px solid rgba(199, 162, 122, 0.42);
  border-radius: var(--radius);
}

code {
  color: var(--terracotta);
  font-weight: 900;
}

.product-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.product-card .price {
  color: var(--terracotta);
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 750;
  line-height: 1;
}

.product-card small {
  color: var(--muted);
  font-weight: 800;
}

.shipping-image {
  min-height: 420px;
}

.shipping-cards {
  margin-top: 26px;
}

.shipping-cards article {
  padding: 18px;
}

.shipping-cards span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.order-section {
  background:
    linear-gradient(140deg, rgba(36, 19, 13, 0.94), rgba(91, 51, 36, 0.9)),
    var(--espresso);
  color: var(--warm-white);
}

.order-section h2,
.order-section .eyebrow {
  color: var(--cream);
}

.order-section p {
  color: rgba(255, 249, 240, 0.76);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.order-intro {
  position: sticky;
  top: 104px;
}

.order-highlight {
  display: grid;
  gap: 2px;
  width: min(100%, 320px);
  margin-top: 24px;
  padding: 18px;
  color: var(--espresso);
  background: var(--cream);
  border-radius: var(--radius);
}

.order-highlight strong {
  color: var(--terracotta);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-highlight a {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 750;
  line-height: 1.1;
}

.order-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 30px);
  color: var(--espresso);
  background: var(--warm-white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
}

label span,
legend {
  color: var(--coffee);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  color: var(--espresso);
  background: #fffdf8;
  border: 1px solid rgba(91, 51, 36, 0.2);
  border-radius: var(--radius);
  padding: 12px 13px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(111, 167, 122, 0.16);
  outline: 0;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid,
fieldset.is-invalid {
  border-color: #b62920;
  box-shadow: 0 0 0 4px rgba(182, 41, 32, 0.12);
}

fieldset {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(91, 51, 36, 0.2);
  border-radius: var(--radius);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-card {
  position: relative;
}

.checkbox-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-card span {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--coffee);
  background: #fffdf8;
  border: 1px solid rgba(91, 51, 36, 0.2);
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 900;
  text-align: center;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.checkbox-card input:checked + span {
  color: var(--warm-white);
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.checkbox-card input:focus-visible + span {
  outline: 3px solid rgba(111, 167, 122, 0.8);
  outline-offset: 3px;
}

.checkbox-card:hover span {
  transform: translateY(-1px);
  border-color: rgba(139, 63, 36, 0.45);
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status.error {
  color: #b62920;
}

.form-status.success {
  color: #367447;
}
.order-reminder-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease);
}

.order-reminder-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.order-reminder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 8, 6, 0.72);
  backdrop-filter: blur(10px);
}

.order-reminder-card {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 34px);
  text-align: center;
  color: var(--espresso);
  background: var(--warm-white);
  border: 1px solid rgba(91, 51, 36, 0.16);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 28px 80px rgba(19, 8, 6, 0.34);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms var(--ease);
}

.order-reminder-modal[aria-hidden="false"] .order-reminder-card {
  transform: translateY(0) scale(1);
}

.order-reminder-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--espresso);
  background: rgba(91, 51, 36, 0.08);
  border: 0;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.order-reminder-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  background: rgba(199, 138, 59, 0.16);
  border: 1px solid rgba(199, 138, 59, 0.28);
  border-radius: 999px;
  font-size: 1.65rem;
}

.order-reminder-card h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  line-height: 1.05;
}

.order-reminder-card p {
  margin: 14px auto 0;
  color: rgba(36, 19, 13, 0.74);
  line-height: 1.7;
}

.order-reminder-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

body.modal-open {
  overflow: hidden;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 1.35rem;
  color: var(--warm-white);
  background:
    radial-gradient(circle at top left, rgba(199, 138, 59, 0.16), transparent 34rem),
    linear-gradient(135deg, #1c0d08 0%, #2a130b 48%, #130806 100%);
  border-top: 1px solid rgba(255, 249, 240, 0.1);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 249, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 249, 240, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  pointer-events: none;
}

.footer-content,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1.1fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}

.footer-brand-card {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.footer-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border: 1px solid rgba(255, 249, 240, 0.24);
  border-radius: 50%;
  background: var(--espresso);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.footer-brand-card strong {
  display: block;
  color: var(--warm-white);
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1;
}

.footer-brand-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--kraft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-copy {
  max-width: 42ch;
  margin: 0;
  color: rgba(255, 249, 240, 0.74);
  font-size: 1rem;
  line-height: 1.75;
}

.footer-contact {
  display: grid;
  gap: 0.85rem;
  font-style: normal;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  max-width: 100%;
  color: var(--warm-white);
  text-decoration: none;
  border-bottom: 0;
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}

.footer-contact-link:hover {
  color: #f2c56f;
  transform: translateX(4px);
}

.footer-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: currentColor;
  background: rgba(255, 249, 240, 0.1);
  border: 1px solid rgba(255, 249, 240, 0.16);
  border-radius: 999px;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.25rem);
  padding-top: 1.2rem;
  color: rgba(255, 249, 240, 0.62);
  border-top: 1px solid rgba(255, 249, 240, 0.12);
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--warm-white);
  background: #1f9d54;
  border: 1px solid rgba(255, 249, 240, 0.32);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(21, 111, 61, 0.34);
  font-weight: 900;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #188b49;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

@media (min-width: 680px) {
  .shell {
    width: min(100% - 48px, var(--shell));
  }

  .split-layout,
  .products-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flavor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .shipping-section .split-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .shipping-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: rgba(255, 249, 240, 0.98);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 18px 48px rgba(36, 19, 13, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a:not(.button),
  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 88px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    max-width: 100%;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(36, 19, 13, 0.88), rgba(36, 19, 13, 0.7) 58%, rgba(36, 19, 13, 0.82)),
      rgba(36, 19, 13, 0.3);
  }

  .hero-product {
    max-width: 340px;
    justify-self: start;
    transform: none;
  }

  .trust-strip-grid {
    grid-template-columns: 1fr;
  }

  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-intro {
    position: static;
  }
}

@media (max-width: 520px) {
  .order-reminder-actions,
  .order-reminder-actions .button {
    width: 100%;
  }
  .site-footer {
    padding-bottom: 5rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-contact-link {
    width: 100%;
    word-break: break-word;
  }

  .nav {
    min-height: 70px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
  }

  .badge-list li {
    width: 100%;
    justify-content: center;
  }

  .flavor-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .image-frame img {
    min-height: 300px;
  }

  .product-note {
    min-width: 98px;
  }

  .product-note strong {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.field-hint {
  margin: -6px 0 18px;
  color: rgba(91, 51, 36, 0.72);
  font-size: 0.98rem;
}

.single-field {
  grid-template-columns: minmax(0, 1fr);
}

.flavor-choice {
  min-height: 82px;
  cursor: pointer;
}

.flavor-choice small {
  display: block;
  margin-top: 6px;
  color: rgba(91, 51, 36, 0.66);
  font-size: 0.82rem;
  font-weight: 700;
}

.flavor-choice.is-selected small {
  color: var(--terracotta);
  font-weight: 900;
}

.selected-flavors-panel {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255, 249, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.selected-flavors-panel > strong {
  display: block;
  color: var(--espresso);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.selected-flavors-panel p {
  margin: 0;
  color: rgba(91, 51, 36, 0.72);
}

#selected-flavors-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#selected-flavors-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

#selected-flavors-list span {
  font-weight: 800;
  color: var(--espresso);
}

#selected-flavors-list strong {
  color: var(--terracotta);
  margin-left: auto;
}

#selected-flavors-list button {
  color: var(--warm-white);
  background: var(--terracotta);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.flavor-quantity-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease);
}

.flavor-quantity-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.flavor-quantity-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 8, 6, 0.72);
  backdrop-filter: blur(10px);
}

.flavor-quantity-card {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 34px);
  color: var(--espresso);
  background: var(--warm-white);
  border: 1px solid rgba(91, 51, 36, 0.16);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 28px 80px rgba(19, 8, 6, 0.34);
}

.flavor-quantity-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--espresso);
  background: rgba(91, 51, 36, 0.08);
  border: 0;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.flavor-quantity-card h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  line-height: 1.05;
}

.flavor-quantity-card p {
  margin: 12px 0 0;
  color: rgba(36, 19, 13, 0.74);
  line-height: 1.7;
}

.quantity-control {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.quantity-control span {
  color: var(--espresso);
  font-weight: 800;
}

.quantity-control input {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  color: var(--espresso);
  background: rgba(255, 249, 240, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
}

.flavor-quantity-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 560px) {
  #selected-flavors-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  #selected-flavors-list strong {
    margin-left: 0;
  }

  .flavor-quantity-actions,
  .flavor-quantity-actions .button {
    width: 100%;
  }
}

/* Tarjetas de sabores con fotografía del producto */
.flavor-grid-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.flavor-grid-products .flavor-card {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--warm-white);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--flavor-color) 88%, black 12%) 0%,
      color-mix(in srgb, var(--flavor-color) 76%, black 24%) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(36, 19, 13, 0.16);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.flavor-grid-products .flavor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(36, 19, 13, 0.24);
}

.flavor-grid-products .flavor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(20, 8, 5, 0.78) 0%,
      rgba(20, 8, 5, 0.52) 42%,
      rgba(20, 8, 5, 0.08) 72%,
      transparent 100%
    );
  pointer-events: none;
}

.flavor-grid-products .flavor-card::after {
  content: "";
  position: absolute;
  top: -72px;
  right: -58px;
  width: 190px;
  height: 190px;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  pointer-events: none;
}

.flavor-card-content {
  position: relative;
  z-index: 2;
  width: min(64%, 260px);
}

.flavor-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--espresso);
  background: rgba(255, 249, 240, 0.92);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flavor-grid-products .flavor-card strong {
  display: block;
  margin: 0;
  color: var(--warm-white);
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.95;
}

.flavor-grid-products .flavor-card p {
  max-width: 16ch;
  margin: 16px 0 0;
  color: rgba(255, 249, 240, 0.9);
  font-size: 1.05rem;
  line-height: 1.45;
}

.flavor-card-image-wrap {
  position: absolute;
  top: 18px;
  right: 8px;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 52%;
  pointer-events: none;
}

.flavor-card-image {
  width: 100%;
  max-width: 230px;
  max-height: 94%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 22px 24px rgba(20, 8, 5, 0.34));
  transform: translateY(8px) rotate(1deg);
  transition: transform 240ms var(--ease);
}

.flavor-card:hover .flavor-card-image {
  transform: translateY(0) rotate(0deg) scale(1.035);
}

.flavor-card.no-image .flavor-card-content {
  width: 100%;
}

.flavor-card.no-image::before {
  background:
    linear-gradient(
      180deg,
      rgba(20, 8, 5, 0.12),
      rgba(20, 8, 5, 0.34)
    );
}

@media (max-width: 1100px) {
  .flavor-grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .flavor-grid-products {
    grid-template-columns: 1fr;
  }

  .flavor-grid-products .flavor-card {
    min-height: 300px;
    padding: 24px;
  }

  .flavor-card-content {
    width: 62%;
  }

  .flavor-card-image-wrap {
    width: 50%;
  }

  .flavor-card-image {
    max-width: 190px;
  }
}

@media (max-width: 430px) {
  .flavor-grid-products .flavor-card {
    min-height: 340px;
    justify-content: flex-start;
  }

  .flavor-card-content {
    width: 100%;
  }

  .flavor-grid-products .flavor-card p {
    max-width: 18ch;
  }

  .flavor-card-image-wrap {
    top: auto;
    right: 8px;
    bottom: 0;
    width: 58%;
    height: 62%;
  }

  .flavor-card-image {
    max-height: 100%;
  }
}

/* Vista ampliada de la fotografía del sabor */
.flavor-grid-products .flavor-card.has-image {
  cursor: zoom-in;
}

.flavor-image-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease);
}

.flavor-image-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.flavor-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 8, 6, 0.82);
  backdrop-filter: blur(12px);
}

.flavor-image-card {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(92vw, 560px);
  max-height: 88vh;
  margin: 0;
  padding: 18px;
  background: rgba(255, 249, 240, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(14px) scale(0.97);
  transition: transform 180ms var(--ease);
}

.flavor-image-modal[aria-hidden="false"] .flavor-image-card {
  transform: translateY(0) scale(1);
}

.flavor-image-preview {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(88vh - 36px);
  object-fit: contain;
  border-radius: 16px;
}

.flavor-image-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--warm-white);
  background: rgba(36, 19, 13, 0.82);
  border: 1px solid rgba(255, 249, 240, 0.18);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 520px) {
  .flavor-image-modal {
    padding: 12px;
  }

  .flavor-image-card {
    width: 100%;
    padding: 12px;
    border-radius: 18px;
  }

  .flavor-image-preview {
    max-height: calc(90vh - 24px);
    border-radius: 12px;
  }
}