@font-face {
  font-family: Outfit;
  src: url(assets/outfit.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(assets/serif.woff2) format('woff2');
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f8f6f0;
  --paper-elevated: #ffffff;
  --ink: #241f1c;
  --muted: #666059;
  --purple: #7623b7;
  --purple-deep: #58148d;
  --purple-glow: #9c4edd;
  --lilac: #ede5f4;
  --lilac-strong: #dfd1ec;
  --line: #dcd8ce;
  --lime: #e7edbc;
  --lime-deep: #d6e18f;
  --night: #11091c;
  --night-surface: #1b102b;
  --night-ink: #f6f2ec;
  --night-muted: #c6bad2;
  --night-lilac: #d5aff8;
  --night-line: rgba(246, 242, 236, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font: inherit;
}

button, a, input, select {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: 0;
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 450;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(54px, 6.6vw, 104px);
}

h2 {
  font-size: clamp(40px, 4.7vw, 68px);
}

h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.035em;
}

em {
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
  color: var(--purple);
}

.wrap {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.17em;
  font-weight: 600;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  display: inline-block;
  flex-shrink: 0;
}

.dot.pulse {
  box-shadow: 0 0 0 0 rgba(118, 35, 183, 0.55);
  animation: dotPulse 2.4s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(118, 35, 183, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(118, 35, 183, 0); }
  100% { box-shadow: 0 0 0 0 rgba(118, 35, 183, 0); }
}

/* CABECERA STICKY VIVA */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: max(40px, calc((100% - 1360px) / 2));
  background: rgba(248, 246, 240, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

header.scrolled {
  height: 76px;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(36, 31, 28, 0.04);
}

.brand {
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -1.3px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand img {
  height: 42px;
  width: 30px;
  object-fit: contain;
  margin-right: 7px;
  transition: transform 0.35s var(--ease-spring);
}

.brand:hover img {
  transform: translateY(-3px) rotate(-8deg) scale(1.06);
}

.brand-dot {
  color: var(--purple);
}

.brand-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-left: 10px;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--lilac);
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

nav a {
  position: relative;
  padding-block: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

nav a:hover {
  color: var(--purple);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
}

/* BOTONES Y ENLACES CON MICROINTERACCIÓN */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--purple);
  color: white;
  padding: 15px 20px 15px 26px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 26px rgba(118, 35, 183, 0.2);
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.button:hover {
  background: var(--purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(118, 35, 183, 0.3);
}

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

.button span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  font-size: 18px;
  transition: transform 0.3s var(--ease-spring), background 0.25s;
}

.button:hover span {
  transform: translate(2px, -2px) scale(1.06);
  background: rgba(255, 255, 255, 0.14);
}

.button.small {
  padding: 10px 14px 10px 20px;
  gap: 12px;
  box-shadow: none;
}

.button.small span {
  border: 0;
  width: 22px;
  height: 22px;
}

.text-link {
  background: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s, gap 0.25s var(--ease-out);
}

.text-link:hover {
  color: var(--purple);
  gap: 19px;
}

.vg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* REVELADO AL HACER SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1), transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}

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

/* SECCIÓN CÓMO FUNCIONA */
.how {
  padding-block: 100px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 44px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 390px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  position: relative;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s var(--ease-out);
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 20px 44px rgba(118, 35, 183, 0.08);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.step-top span,
.tool-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--purple);
  display: block;
}

.step-icon {
  font-style: normal;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 17px;
  transition: transform 0.35s var(--ease-spring), background 0.25s;
}

.step-card:hover .step-icon {
  transform: scale(1.12) rotate(6deg);
  background: var(--lime);
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.step-link {
  margin-top: auto;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  transition: gap 0.2s var(--ease-out);
}

.step-link:hover {
  gap: 14px;
}

/* CALENDARIO INTERACTIVO DE 21 DÍAS */
.journey {
  background: var(--lilac);
  padding: 96px 0;
  position: relative;
}

.progress-box {
  width: 330px;
  background: var(--paper);
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(118, 35, 183, 0.14);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(118, 35, 183, 0.06);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.milestone-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
}

progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 99px;
  margin: 12px 0;
  background: #dfd3ea;
  accent-color: var(--purple);
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: #dfd3ea;
  border-radius: 99px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--purple), #a33ce8);
  border-radius: 99px;
  transition: width 0.45s var(--ease-out);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.progress-box small {
  font-size: 11px;
  color: var(--muted);
}

.next-day-link {
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  white-space: nowrap;
}

.next-day-link:hover {
  text-decoration: underline;
}

.week-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.week-tabs button {
  background: rgba(248, 246, 240, 0.6);
  border: 1px solid #d5c6e3;
  border-radius: 16px;
  padding: 16px 20px;
  text-align: left;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.week-tabs button:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

.week-tabs button.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--purple);
  box-shadow: 0 10px 26px rgba(118, 35, 183, 0.1);
}

.week-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple);
}

.week-tabs strong {
  font-size: 17px;
  font-weight: 550;
}

.week-count {
  font-size: 12px;
  color: var(--muted);
}

.journey-guide {
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0 22px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.day {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 225px;
  text-align: left;
  padding: 18px 15px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.25s, background 0.25s;
  animation: cardEnter 0.45s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.day:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 16px 32px rgba(118, 35, 183, 0.12);
}

.day .day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.day-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lilac);
  color: var(--purple);
  font-size: 12px;
  transition: transform 0.3s var(--ease-spring), background 0.2s;
}

.day strong {
  font-size: 38px;
  font-weight: 420;
  letter-spacing: -0.06em;
  margin: 8px 0 8px;
  line-height: 1;
}

.day .day-name {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.28;
  margin-bottom: 8px;
}

.day .day-menu-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.day .day-arrow {
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day.done {
  background: var(--lime);
  border-color: var(--lime-deep);
}

.day.done .day-check {
  background: var(--purple);
  color: white;
  transform: scale(1.08);
}

.journey-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #d5c6e3;
}

.journey-bottom p {
  font-size: 13px;
  color: var(--muted);
  max-width: 540px;
}

/* SECCIÓN RECETAS DESTACADAS */
.recipes {
  padding-block: 100px;
}

.recipe-controls {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}

.filters,
.meal-chips,
.swap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button,
.meal-chip,
.swap-pill {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}

.filters button:hover,
.meal-chip:hover,
.swap-pill:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
}

.filters button.active,
.meal-chip.active,
.swap-pill.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.search {
  border-bottom: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  min-width: 260px;
  transition: border-color 0.2s;
}

.search:focus-within {
  border-bottom-color: var(--purple);
}

.search input {
  background: none;
  border: 0;
  min-width: 0;
  width: 100%;
  padding: 10px 6px;
  font-size: 14px;
}

.search input:focus {
  outline: none;
}

.search span {
  font-size: 22px;
  color: var(--purple);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.recipe-card {
  position: relative;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 14px 20px;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.25s;
  animation: cardEnter 0.45s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 65ms);
}

.recipe-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 20px 42px rgba(36, 31, 28, 0.08);
}

.recipe-image {
  width: 100%;
  aspect-ratio: 1.22;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 16px;
  background: var(--lilac);
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.recipe-card:hover .recipe-image img {
  transform: scale(1.06);
}

.recipe-open {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0 6px;
  background: none;
}

.recipe-card h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.recipe-desc-short {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.recipe-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.favorite {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2;
  background: rgba(248, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 21px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s var(--ease-spring), background 0.2s, color 0.2s;
}

.favorite:hover {
  transform: scale(1.12);
}

.favorite[aria-pressed="true"] {
  color: var(--purple);
  background: var(--lime);
  transform: scale(1.08);
}

.recipe-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.recipe-bottom span:last-child {
  font-size: 18px;
  color: var(--purple);
  transition: transform 0.25s var(--ease-out);
}

.recipe-card:hover .recipe-bottom span:last-child {
  transform: translate(3px, -3px);
}

.empty-state {
  padding: 36px;
  background: var(--lilac);
  border-radius: 16px;
  text-align: center;
  font-size: 15px;
}

.caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}

/* MENUTECA: EXPLORADOR DE LAS 83 RECETAS DE LOS 21 DÍAS */
.menuteca {
  margin-top: 72px;
  background: linear-gradient(145deg, #f3edf8 0%, #ede5f4 60%, #e9eed2 100%);
  border: 1px solid #d6c8e4;
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 24px 60px rgba(118, 35, 183, 0.07);
}

.menuteca-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 28px;
}

.menuteca-head h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  margin-bottom: 10px;
}

.menuteca-head p:not(.eyebrow) {
  color: var(--muted);
  max-width: 640px;
  font-size: 15px;
}

.surprise-btn {
  flex-shrink: 0;
}

.surprise-btn:hover span {
  transform: rotate(180deg) scale(1.1);
}

.menuteca-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(118, 35, 183, 0.16);
}

.menuteca-search {
  min-width: 310px;
  background: var(--paper);
  padding: 2px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
}

.menuteca-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  font-size: 13px;
  color: var(--muted);
}

.menuteca-pager {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pager-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--purple);
  background: var(--lime);
}

.pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.menu-spotlight {
  background: var(--paper);
  border-radius: 22px;
  padding: 32px;
  border: 1px solid rgba(118, 35, 183, 0.14);
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 36px;
  animation: cardEnter 0.35s var(--ease-out);
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.spotlight-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--lilac);
  color: var(--purple);
}

.spotlight-badge.lime {
  background: var(--lime);
  color: var(--ink);
}

.menu-spotlight h4 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 460;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.spotlight-ingredients {
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
  display: grid;
  gap: 7px;
  font-size: 14px;
}

.spotlight-ingredients li {
  padding-left: 18px;
  position: relative;
}

.spotlight-ingredients li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--purple);
  font-weight: 700;
}

.spotlight-steps {
  padding-left: 20px;
  margin: 12px 0 18px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.envase-alert {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f6f1dc;
  font-size: 12px;
  color: var(--muted);
}

/* SECCIÓN HERRAMIENTAS: TU KIT VEGETAL */
.tool-section {
  background: #eceae0;
  padding: 96px 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}

.tool-grid article {
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(36, 31, 28, 0.05);
}

.tool-grid h3 {
  font-size: 34px;
  margin: 10px 0 10px;
}

.tool-grid p {
  color: var(--muted);
  font-size: 15px;
}

.swap-pills {
  margin: 22px 0 16px;
}

.swap-pill {
  padding: 8px 13px;
  font-size: 12.5px;
}

.tool-grid label:not(.sr-only) {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 6px;
}

.tool-grid select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  background: var(--paper-elevated);
  border-radius: 12px;
  font-weight: 500;
}

.swap-card {
  margin-top: 18px;
  padding: 22px;
  background: var(--lilac);
  border-radius: 16px;
  min-height: 170px;
  transition: transform 0.25s var(--ease-out);
}

.swap-card h4 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}

.swap-ratio {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--lime);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.swap-add-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

.swap-add-btn:hover {
  text-decoration: underline;
}

.tool-grid small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}

.shopping-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.shopping-title > span {
  min-width: 36px;
  height: 36px;
  padding-inline: 10px;
  background: var(--lime);
  font-weight: 600;
  border-radius: 99px;
  display: grid;
  place-items: center;
}

.quick-staples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.quick-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}

.staple-chip {
  background: var(--lilac);
  color: var(--ink);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 99px;
  transition: background 0.2s, transform 0.2s;
}

.staple-chip:hover {
  background: var(--lime);
  transform: translateY(-1px);
}

.shopping-tool form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 4px;
}

.shopping-tool input {
  border: 0;
  background: none;
  min-width: 0;
  width: 100%;
  padding: 10px 0;
}

.shopping-tool input:focus {
  outline: none;
}

.shopping-tool form button {
  font-size: 22px;
  background: var(--purple);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}

.shopping-tool form button:hover {
  transform: scale(1.08);
  background: var(--purple-deep);
}

.shopping-tool ul {
  list-style: none;
  padding: 0;
  max-height: 230px;
  overflow: auto;
  margin: 14px 0;
}

.shopping-tool li {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 14px;
  animation: cardEnter 0.25s var(--ease-out);
}

.shopping-tool li label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  flex: 1;
  cursor: pointer;
}

.shopping-tool li input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.shopping-tool li.checked label span {
  text-decoration: line-through;
  color: var(--muted);
}

.shopping-tool li button {
  background: none;
  font-size: 20px;
  width: 30px;
  color: var(--muted);
}

.shopping-tool li button:hover {
  color: var(--purple);
}

.list-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.list-actions button {
  font-size: 12.5px;
}

.list-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#shopping-empty {
  padding: 20px 0;
  font-size: 13.5px;
}

/* SECCIÓN NOCHE PROFUNDA: DETRÁS DE CADA CAMBIO HAY ALGUIEN */
.animal-night {
  background: radial-gradient(circle at 80% 20%, #2b1344 0%, var(--night) 65%);
  color: var(--night-ink);
  padding-top: 104px;
  overflow: hidden;
}

.animal-night em {
  color: var(--night-lilac);
}

.animal-night .eyebrow {
  color: var(--night-lilac);
}

.animal-night .dot {
  background: var(--lime);
}

.animal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  padding-bottom: 84px;
  align-items: center;
}

.animal-photo-frame {
  position: relative;
  border-radius: 24px 24px 160px 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  background: var(--night-surface);
}

.animal-photo-frame img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.65s var(--ease-out);
}

.protagonist-badge {
  position: absolute;
  left: 22px;
  bottom: 24px;
  color: var(--night-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  background: rgba(17, 9, 28, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--night-line);
  padding: 9px 15px;
  border-radius: 99px;
}

.protagonist-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.prot-tab {
  background: rgba(255, 255, 255, 0.06);
  color: var(--night-muted);
  border: 1px solid var(--night-line);
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.prot-tab:hover {
  border-color: var(--night-lilac);
  color: white;
  transform: translateY(-1px);
}

.prot-tab.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-weight: 600;
}

.protagonist-story {
  margin-block: 26px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--night-line);
}

.prot-industry {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night-muted);
  margin-bottom: 10px;
}

.prot-industry s {
  color: var(--night-lilac);
}

.prot-lead {
  font-size: 18px;
  color: var(--night-ink);
  line-height: 1.55;
  margin-bottom: 12px;
}

.prot-body {
  font-size: 15px;
  color: var(--night-muted);
  margin-bottom: 12px;
}

.prot-source {
  font-size: 11.5px;
  color: var(--night-lilac);
  opacity: 0.85;
}

.animal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.night-btn {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(231, 237, 188, 0.18);
}

.night-btn:hover {
  background: white;
  color: var(--ink);
}

.night-btn span {
  border-color: rgba(36, 31, 28, 0.25);
}

.night-link {
  color: var(--night-ink);
}

.night-link:hover {
  color: var(--lime);
}

.animal-footer {
  border-top: 1px solid var(--night-line);
  margin-top: 34px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--night-muted);
  display: flex;
  gap: 18px;
  align-items: center;
}

.animal-footer img {
  width: 145px;
  max-height: 46px;
  object-fit: contain;
}

.alguien-ribbon {
  border-top: 1px solid var(--night-line);
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.marquee-track.slow {
  animation-duration: 42s;
}

.alguien-ribbon .marquee-group span {
  font-size: 20px;
  font-weight: 500;
  color: var(--night-ink);
}

.alguien-ribbon .marquee-group i {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--night-lilac);
}

/* PREGUNTAS FRECUENTES */
.faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  padding-block: 96px;
}

.faq-intro p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 18px;
  max-width: 340px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  transition: background 0.2s;
}

.faq-list summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color 0.2s;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--purple);
}

.faq-list summary::after {
  content: '+';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), background 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--purple);
  color: white;
}

.faq-body {
  animation: cardEnter 0.3s var(--ease-out);
}

.faq-list p {
  color: var(--muted);
  font-size: 15px;
  padding: 14px 20px 4px 0;
}

.faq-list a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
}

/* CIERRE PROFUNDO Y PIE */
.final-cta {
  position: relative;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #31154e 0%, var(--night) 75%);
  color: var(--night-ink);
  padding: 100px 20px;
  overflow: hidden;
}

.final-cta .eyebrow {
  color: var(--night-lilac);
}

.final-cta .dot {
  background: var(--lime);
}

.final-cta h2 {
  font-size: clamp(56px, 6.8vw, 96px);
  margin-bottom: 20px;
}

.final-cta em {
  color: var(--lime);
}

.final-lead {
  color: var(--night-muted);
  max-width: 520px;
  margin: 0 auto 34px;
  font-size: 17px;
}

.final-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.big-star {
  position: absolute;
  left: 6%;
  bottom: -110px;
  font-size: 340px;
  color: rgba(213, 175, 248, 0.08);
  line-height: 1;
  pointer-events: none;
  animation: orbitSpin 45s linear infinite;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
}

.site-footer {
  background: #0b0612;
  color: var(--night-muted);
  border-top: 1px solid var(--night-line);
  padding-block: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.site-footer .brand {
  color: var(--night-ink);
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.footer-links strong {
  color: var(--night-ink);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--lime);
}

.footer-links button {
  background: none;
  padding: 0;
  text-align: left;
  font-size: 12px;
  color: var(--night-muted);
  text-decoration: underline;
}

.menu-toggle {
  display: none;
}

.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  background: white;
  color: var(--purple);
  padding: 14px 18px;
  border-radius: 10px;
  z-index: 100;
  font-weight: 600;
}

.skip:focus {
  top: 10px;
}

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

/* MODAL / DIALOG CON ANIMACIÓN Y PESTAÑAS DE MENÚ DIARIO */
dialog {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px;
  width: min(740px, calc(100% - 28px));
  max-height: 90dvh;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 32px 90px rgba(17, 9, 28, 0.38);
  animation: dialogOpen 0.32s var(--ease-out);
}

@keyframes dialogOpen {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

dialog::backdrop {
  background: rgba(20, 11, 31, 0.68);
  backdrop-filter: blur(6px);
}

.close-dialog {
  position: sticky;
  top: 0;
  float: right;
  margin: -18px -18px 0 10px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  background: var(--lilac);
  border-radius: 50%;
  font-size: 25px;
  z-index: 3;
  transition: transform 0.2s, background 0.2s;
}

.close-dialog:hover {
  background: var(--purple);
  color: white;
  transform: rotate(90deg);
}

dialog h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 8px 0 16px;
}

dialog h3 {
  font-size: 22px;
  margin: 24px 0 12px;
}

dialog p {
  color: var(--muted);
  margin-bottom: 16px;
}

dialog li {
  margin-bottom: 8px;
}

dialog .button {
  margin-top: 14px;
}

.dialog-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 44px;
}

.dialog-step-nav {
  display: flex;
  gap: 8px;
}

.dialog-step-btn {
  background: var(--lilac);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.dialog-step-btn:hover:not(:disabled) {
  background: var(--lime);
}

.dialog-step-btn:disabled {
  opacity: 0.4;
}

.dialog-action {
  padding: 20px;
  background: var(--lilac);
  border-left: 4px solid var(--purple);
  border-radius: 14px;
  margin: 20px 0;
}

.dialog-action p {
  margin: 6px 0 0;
  color: var(--ink);
}

.day-meals-box {
  margin: 24px 0;
  padding: 22px;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.day-meals-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.day-meal-tab {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
}

.day-meal-tab.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

.day-meal-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.dialog-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 22px;
}

.servings {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 8px 16px;
  background: var(--lilac);
  border-radius: 99px;
}

.servings button {
  width: 32px;
  height: 32px;
  background: var(--paper);
  border-radius: 50%;
  font-weight: 700;
}

.servings button:hover:not(:disabled) {
  background: var(--lime);
}

.signup-preview-card {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 18px 0;
}

.signup-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.goal-pill {
  background: var(--lilac);
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
}

.goal-pill.active {
  background: var(--lime);
  font-weight: 600;
}

#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  background: var(--night);
  color: white;
  border: 1px solid var(--night-line);
  padding: 14px 24px;
  border-radius: 99px;
  z-index: 100;
  font-size: 14px;
  font-weight: 500;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.data-note {
  font-size: 12.5px;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

/* ADAPTACIÓN RESPONSIVA */
@media (min-width: 1500px) {
  .hero { padding-top: 44px; }
  .hero-visual { height: 690px; }
}

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  header { padding-inline: 28px; }
  .brand-tag { display: none; }
  nav { gap: 18px; }
  .hero { gap: 32px; }
  .hero-visual { height: 560px; }
  .floating-note { left: -18px; font-size: 11.5px; padding: 10px 14px; }
  .orbit-stamp { right: -10px; width: 108px; height: 108px; }
  .trazo-bridge { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .animal { gap: 44px; }
  .animal-photo-frame img { height: 480px; }
  .tool-grid { gap: 24px; }
  .tool-grid article { padding: 28px; }
  .recipe-controls { align-items: stretch; flex-direction: column; }
  .search { max-width: 360px; }
  .menu-spotlight { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: calc(100% - 36px); }
  header { height: 74px; padding-inline: 18px; }
  .brand { font-size: 24px; }
  .brand img { height: 34px; width: 24px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lilac);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 99px;
  }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    background: var(--paper);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  }
  nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; padding-bottom: 48px; }
  h1 { font-size: clamp(48px, 12.5vw, 76px); }
  .hero-copy .intro { margin-block: 20px; font-size: 16px; }
  .hero-visual { height: 430px; margin: 8px 10px 0; }
  .hero-stage-frame { border-radius: 160px 160px 20px 20px; }
  .orbit-stamp { right: -12px; top: 4px; width: 96px; height: 96px; }
  .orbit-stamp strong { font-size: 36px; }
  .floating-note { left: -10px; top: 44%; font-size: 11px; }
  .hero-mini-trazo { width: 62px; height: 54px; }
  .trazo-bridge { padding-top: 48px; }
  .prot-trazo-overlay { width: 136px; height: 98px; top: 12px; right: 12px; }
  .photo-label { left: 16px; bottom: 20px; padding: 12px 16px; max-width: calc(100% - 110px); }
  .photo-label strong { font-size: 16px; }
  .how, .recipes { padding-block: 64px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  h2 { font-size: 42px; }
  .steps { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .journey { padding: 64px 0; }
  .progress-box { width: 100%; }
  .week-tabs { grid-template-columns: 1fr; gap: 10px; }
  .days { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .day { min-height: 185px; }
  .day:last-child { grid-column: span 2; min-height: 140px; }
  .journey-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .recipe-grid { grid-template-columns: 1fr; gap: 22px; }
  .menuteca { padding: 24px 20px; margin-top: 48px; }
  .menuteca-head { flex-direction: column; align-items: flex-start; }
  .menuteca-search { min-width: 100%; }
  .menu-spotlight { padding: 22px 18px; }
  .tool-section { padding: 64px 0; }
  .tool-grid { grid-template-columns: 1fr; gap: 22px; }
  .tool-grid article { padding: 24px 20px; }
  .animal-night { padding-top: 64px; }
  .animal { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .animal-photo-frame img { height: 360px; border-radius: 16px 16px 100px 16px; }
  .faq { grid-template-columns: 1fr; gap: 24px; padding-block: 56px; }
  .final-cta { padding: 68px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  dialog { padding: 28px 20px; }
  .desktop { display: none; }
}

/* v2.5: sin excepciones por «menos movimiento»; las animaciones corren siempre. */

@media print {
  body > * { display: none !important; }
  body > main { display: block !important; }
  main > section { display: none !important; }
  main > .tool-section { display: block !important; background: white; padding: 0; }
  .tool-section .eyebrow,
  .tool-section h2,
  .swap-tool,
  .shopping-tool form,
  .quick-staples,
  .list-actions,
  .shopping-tool small,
  .shopping-tool .tool-number { display: none !important; }
  .tool-grid { display: block; }
  .shopping-tool { padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  .shopping-tool li button { display: none; }
  #shopping-list { max-height: none; overflow: visible; }
  .wrap { width: 100%; }
}
