/* ============================================================
   Tutto Passa — hoja de estilos principal
   Mobile-first. Paleta de marca + acento terracota complementario.
   ============================================================ */

:root{
  --sage: #A2A694;
  --sage-deep: #7C8069;
  --greige: #BFBFB0;
  --sand: #D9D8C7;
  --cream: #F2EDDF;
  --cream-2: #F2EBDF;

  --accent: #B4502C;
  --accent-dark: #93401F;
  --accent-ink: #FBF6EC;

  --ink: #33352B;
  --ink-soft: #55584A;
  --line: rgba(51, 53, 43, 0.14);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px rgba(51, 53, 43, 0.12);
  --shadow-sm: 0 4px 14px rgba(51, 53, 43, 0.10);

  --font-display: "Yellowtail", "Segoe Script", cursive;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.3em;
}

h2{ font-size: clamp(2rem, 6vw, 2.9rem); }
h3{ font-size: clamp(1.2rem, 4vw, 1.5rem); font-family: var(--font-body); font-weight: 600; }

p{ margin: 0 0 0.9em; color: var(--ink-soft); }
p:last-child{ margin-bottom: 0; }

a{ color: inherit; }

.wrap{ width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link{
  position: absolute; left: -999px; top: auto;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus{ left: 12px; top: 12px; }

:focus-visible{ outline: 3px solid var(--accent); outline-offset: 2px; }

.eyebrow{
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 0.5em;
}

/* ---------- Botones ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.5em; border-radius: 999px; font-weight: 600; font-size: 0.96rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px; white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }
.btn--accent{ background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn--accent:hover{ background: var(--accent-dark); }
.btn--ghost{ background: transparent; border-color: currentColor; color: var(--ink); }
.btn--ghost:hover{ background: var(--ink); color: var(--cream); }
.btn--ghost-light{ background: rgba(251,246,236,0.1); border-color: rgba(251,246,236,0.55); color: var(--accent-ink); }
.btn--ghost-light:hover{ background: rgba(251,246,236,0.92); color: var(--ink); }
.btn--small{ padding: 0.55em 1.1em; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 237, 223, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled{ box-shadow: var(--shadow-sm); }
.site-header__inner{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 14px; transition: padding 0.25s var(--ease);
}
.site-header.is-scrolled .site-header__inner{ padding-block: 8px; }
.brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__mark{
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--sage);
  color: var(--cream-2); font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  flex-shrink: 0; transition: width 0.25s var(--ease), height 0.25s var(--ease);
}
.site-header.is-scrolled .brand__mark{ width: 28px; height: 28px; font-size: 0.85rem; }
.brand__name{ font-family: var(--font-display); font-size: 1.6rem; line-height: 1; white-space: nowrap; transition: font-size 0.25s var(--ease); }
.site-header.is-scrolled .brand__name{ font-size: 1.35rem; }
.site-nav{ display: none; gap: 26px; font-size: 0.92rem; font-weight: 500; }
.site-nav a{ text-decoration: none; color: var(--ink-soft); position: relative; }
.site-nav a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--accent); transition: right 0.2s var(--ease);
}
.site-nav a:hover{ color: var(--ink); }
.site-nav a:hover::after{ right: 0; }
@media (min-width: 760px){ .site-nav{ display: flex; } }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 88vh; min-height: 88svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--sage) 0%, var(--sage-deep) 46%, #5f6350 100%);
  color: var(--accent-ink);
  padding-bottom: 4vh;
}
.hero__noise{
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner{
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo{
  width: min(340px, 62vw); height: auto; margin-bottom: 0.4em;
  animation: heroPop 0.9s var(--ease) both;
}
.hero__tagline{
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  color: var(--accent-ink); opacity: 0.95; margin-bottom: 1.6em;
  font-weight: 300; letter-spacing: 0.01em;
}
.hero__actions{ display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero__wave{
  position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0;
  color: var(--cream);
}
.hero__wave svg{ width: 100%; height: 60px; display: block; }
.hero__wave path{ fill: currentColor; }

@keyframes heroPop{
  from{ opacity: 0; transform: translateY(14px) scale(0.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Secciones ---------- */
.section{ padding-block: clamp(52px, 9vw, 92px); }
.section--tinted{ background: var(--sand); }
.section__head{ max-width: 60ch; margin-bottom: 2.2em; }
.section__intro{ font-size: 1.02rem; }
.section__note{ font-size: 0.88rem; color: var(--ink-soft); }

.section--split{ display: grid; gap: 36px; align-items: center; }

.section__media{ position: relative; }
.section__media::before{
  content: ""; position: absolute; inset: 10px -10px -10px 10px;
  background: var(--sage); border-radius: var(--radius); z-index: 0;
}
.section__media img{
  position: relative; z-index: 1;
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover;
  max-height: clamp(240px, 38vw, 380px);
}
.section__media--map::before{ display: none; }
.section__media--map iframe{
  width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.2;
}

@media (min-width: 860px){
  .section--split{ grid-template-columns: 0.85fr 1.15fr; }
}

.tag-row{
  list-style: none; margin: 0 0 1.2em; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tag-row li{
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45em 1em; font-size: 0.85rem; font-weight: 500;
}

.address-card{
  font-style: normal; display: flex; flex-direction: column; gap: 2px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 1.4em; max-width: 320px;
}
.address-card__line{ font-weight: 500; }
.address-card__line:first-child{ font-weight: 700; }

/* ---------- Selector ---------- */
.selector__group{ margin-bottom: 2.2em; }
.selector__title{ display: flex; align-items: center; gap: 10px; margin-bottom: 1em; }
.selector__optional{ font-weight: 400; font-size: 0.78rem; color: var(--ink-soft); text-transform: lowercase; }
.step{
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--cream);
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}

.option-grid{ display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px){ .option-grid--pasta{ grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px){ .option-grid--salsa{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .option-grid--salsa{ grid-template-columns: repeat(3, 1fr); } }

.option-card{
  appearance: none; border: 1.5px solid var(--line); background: var(--cream);
  border-radius: var(--radius-sm); padding: 16px 14px; text-align: left; cursor: pointer;
  font-family: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
  min-height: 44px;
}
.option-card:hover{ border-color: var(--sage); transform: translateY(-2px); }
.option-card[aria-pressed="true"]{ background: var(--ink); border-color: var(--ink); color: var(--cream); }
.option-card[aria-pressed="true"] .option-card__ing{ color: var(--sand); }

.option-card--plain{
  align-items: center; text-align: center; justify-content: center;
  position: relative; padding-block: 20px;
}
.option-card--plain::after{
  content: ""; display: block; width: 26px; height: 2px; background: var(--accent);
  margin-top: 4px; transition: width 0.2s var(--ease);
}
.option-card--plain[aria-pressed="true"]::after{ width: 44px; background: var(--cream); }
.option-card__name{ font-weight: 600; font-size: 1.02rem; }
.option-card__ing{ font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; }

.chip-group{ display: flex; flex-wrap: wrap; gap: 10px; }
.chip{
  appearance: none; border: 1.5px solid var(--sage); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 0.6em 1.1em; font-family: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; min-height: 40px; transition: background-color 0.15s ease, color 0.15s ease;
}
.chip[aria-pressed="true"]{ background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.preview{
  margin-top: 1.8em; position: relative; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
  transition: background-image 0.3s ease;
}
.preview__scrim{ position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,20,0.55), rgba(28,28,20,0.85)); }
.preview__content{ position: relative; z-index: 1; padding: 30px 26px; color: var(--accent-ink); }
.preview__eyebrow{ font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); font-weight: 600; margin-bottom: 0.5em; }
.preview__title{ font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.1rem); color: var(--accent-ink); margin-bottom: 0.3em; }
.preview__desc{ color: var(--cream-2); max-width: 55ch; }
.preview__toppings{
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em;
  background: var(--accent-ink); color: var(--ink);
  border-radius: 999px; padding: 0.4em 1em; margin-bottom: 0.8em; box-shadow: var(--shadow-sm);
}
.preview__note{ font-size: 0.8rem; color: var(--sand); margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contact{ max-width: 640px; }
.contact-list{
  list-style: none; margin: 1.4em 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-list li{
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.contact-list__label{ font-weight: 600; }
.contact-list__status{ font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--sand); padding-block: 34px; }
.site-footer__inner{ text-align: center; }
.site-footer__brand{ display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--cream); margin-bottom: 0.6em; }
.site-footer__line{ font-size: 0.88rem; margin-bottom: 0.3em; color: var(--sand); }
.site-footer__copy{ font-size: 0.78rem; color: var(--greige); margin-top: 1em; }

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--ink); color: var(--cream); font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__logo{ animation: none; }
  .back-to-top{ transition: none; }
}

/* ---------- Utilidades responsive ---------- */
@media (min-width: 620px){ .hero__actions{ flex-direction: row; } }
