/* =========================================================================
   OB Patisserie
   Colorway de marca: azul cobalto #00439d + crema #f4f0e5 (del logo)
   Display: Fraunces (serif editorial) · Cuerpo: Inter / system
   Texturas: grano de papel + filetes grabados
   ========================================================================= */
:root {
  --cream: #f6f1e7;
  --cream-2: #efe9da;
  --paper: #faf6ee;
  --card: #fffdf9;
  --blue: #1a4ba0;
  --blue-soft: #7d97c8;
  --blue-deep: #103a82;
  --navy: #0b2452;
  --ink: #34405a;
  --muted: #9197a6;
  --line: rgba(26, 75, 160, 0.12);
  --whats: #1faf57;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --maxw: 1180px;
  --radius: 20px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: var(--cream); }

/* ── Botones ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--blue { background: var(--blue); color: var(--cream); }
.btn--blue:hover { background: var(--blue-deep); box-shadow: 0 14px 30px -14px rgba(0, 67, 157, 0.7); }
.btn--line { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--line:hover { border-color: var(--blue); }
.btn--whats { background: var(--whats); color: #fff; width: 100%; justify-content: center; padding: 1.1em; }
.btn--whats:hover { background: #189c4b; }

/* ════════════════════ DYNAMIC ISLAND NAV ════════════════════ */
.island {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 7px 8px 7px 16px;
  background: rgba(250, 246, 238, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(26, 75, 160, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 40px -22px rgba(11, 36, 82, 0.5);
  color: var(--ink);
  transition: gap 0.5s var(--spring), padding 0.5s var(--spring), transform 0.4s var(--ease);
}
.island__brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  padding-right: 0.55rem;
  border-right: 1px solid rgba(26, 75, 160, 0.16);
}
.island__nav { display: flex; gap: 0.15rem; }
.island__nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.42em 0.8em;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.island__nav a:hover { color: var(--blue); background: rgba(26, 75, 160, 0.08); }

.island__order {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  transition: max-width 0.55s var(--spring), padding 0.5s var(--spring),
    opacity 0.4s var(--ease), transform 0.5s var(--spring);
}
.island.has-order .island__order { max-width: 230px; padding: 0.5em 0.9em; margin-left: 0.2rem; opacity: 1; transform: scale(1); }
.island__order:hover { background: var(--blue-deep); }
.island__pulse { width: 7px; height: 7px; border-radius: 999px; background: var(--cream); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.island__count {
  display: inline-grid; place-items: center;
  min-width: 1.5em; height: 1.5em; padding: 0 0.4em;
  border-radius: 999px; background: var(--cream); color: var(--blue); font-size: 0.72rem;
}
.island__total { white-space: nowrap; }

.island__burger { display: none; width: 38px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: none; border-radius: 999px; background: rgba(26, 75, 160, 0.1); cursor: pointer; }
.island__burger span { width: 15px; height: 1.6px; background: var(--blue); border-radius: 2px; transition: transform 0.3s var(--ease); }
body.msheet-open .island__burger span:nth-child(1) { transform: translateY(2.8px) rotate(45deg); }
body.msheet-open .island__burger span:nth-child(2) { transform: translateY(-2.8px) rotate(-45deg); }

.msheet { position: fixed; inset: 0; z-index: 95; background: rgba(250, 246, 238, 0.97); backdrop-filter: blur(22px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.msheet::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.05; }
body.msheet-open .msheet { opacity: 1; visibility: visible; }
.msheet nav { position: relative; display: grid; gap: 0.3rem; text-align: center; }
.msheet a { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 8vw, 3rem); color: var(--blue); padding: 0.25rem 1rem; transition: color 0.25s var(--ease); }
.msheet a:hover { color: var(--blue-deep); font-style: italic; }

/* ════════════════════ HERO MENU (inmersivo, estilo Cédric) ════════════════════ */
.home {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  transition: color 0.6s var(--ease);
}
/* capa de imagen-preview (aparece al hacer hover en una opción) */
.home__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 6s var(--ease); pointer-events: none; }
.home__scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(110deg, rgba(8, 26, 60, 0.78) 0%, rgba(8, 26, 60, 0.46) 44%, rgba(8, 26, 60, 0.14) 100%); opacity: 0; transition: opacity 0.8s var(--ease); pointer-events: none; }
.home.has-preview .home__intro, .home.has-preview .menu__item { text-shadow: 0 1px 28px rgba(0, 0, 0, 0.45); }
.home.has-preview .home__bg.is-on { opacity: 1; transform: scale(1); }
.home.has-preview .home__scrim { opacity: 1; }
.home.has-preview { color: var(--cream); }
.home::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: var(--grain); opacity: 0.05; pointer-events: none; }

.home__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.3rem, 5vw, 3rem) 0;
}
.home__logo { display: flex; align-items: center; gap: 0.7rem; }
.home__logo img { width: 54px; height: 54px; }
.home__wordmark { font-family: var(--display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--blue); transition: color 0.6s var(--ease); }
.home.has-preview .home__wordmark { color: rgba(246, 241, 231, 0.9); }
.home__lang { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); }

.home__center { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem clamp(1.3rem, 5vw, 3rem); }
.home__intro { font-family: var(--sans); font-size: 0.92rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.6rem; transition: color 0.6s var(--ease); }
.home.has-preview .home__intro { color: rgba(246, 241, 231, 0.6); }

.menu { display: flex; flex-direction: column; gap: 0.1rem; }
.menu__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 9.5vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--blue);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), color 0.4s var(--ease);
}
.home.has-preview .menu__item { color: rgba(246, 241, 231, 0.55); }
.menu__item .num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--blue-soft);
  transform: translateY(-0.7em);
  transition: color 0.4s var(--ease);
}
.menu__item .arrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  align-self: center;
}
.menu__item .count { font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--muted); align-self: center; transition: color 0.4s var(--ease); }
@media (hover: hover) {
  .menu:hover .menu__item { opacity: 0.45; }
  .menu:hover .menu__item:hover { opacity: 1; transform: translateX(18px); font-style: italic; }
}
.menu__item:hover { color: var(--cream); }
.home:not(.has-preview) .menu__item:hover { color: var(--blue-deep); }
.menu__item:hover .arrow { opacity: 1; transform: translateX(0); }
.menu__item:hover .num { color: rgba(246, 241, 231, 0.8); }
.menu__item:hover .count { color: rgba(246, 241, 231, 0.85); }

.home__foot { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(1.3rem, 5vw, 3rem) 1.6rem; font-size: 0.8rem; color: var(--muted); transition: color 0.6s var(--ease); }
.home__foot a { color: var(--blue); }
.home.has-preview .home__foot { color: rgba(246, 241, 231, 0.55); }
.home.has-preview .home__foot a { color: rgba(246, 241, 231, 0.85); }

/* ── Reveal ────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ════════════════════ BANNER de categoría ════════════════════ */
.banner {
  position: relative;
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem clamp(1.3rem, 5vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  background-color: var(--navy);
  color: var(--cream);
  overflow: hidden;
}
.banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bannerZoom 9s var(--ease) forwards;
}
@keyframes bannerZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.banner__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 26, 60, 0.12) 0%, rgba(8, 26, 60, 0.45) 55%, rgba(8, 26, 60, 0.82) 100%);
}
.banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: var(--grain); opacity: 0.08; pointer-events: none; }
.banner__inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; text-shadow: 0 1px 30px rgba(0, 0, 0, 0.35); }
.banner__kicker { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 240, 229, 0.6); margin: 0 0 1rem; }
.banner__title { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 11vw, 8rem); line-height: 0.92; letter-spacing: -0.03em; margin: 0; }
.banner__tagline { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.9rem); color: rgba(244, 240, 229, 0.82); margin: 0.8rem 0 0; }
.banner__rule { height: 1px; background: rgba(244, 240, 229, 0.25); margin-top: 1.8rem; }

/* ════════════════════ SERVICIO ════════════════════ */
.service { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.3rem, 5vw, 3rem) clamp(2rem, 4vw, 3rem); }
.service__lede { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 24ch; margin: 0 0 3rem; color: var(--blue); }
.service__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.service__item h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 0 0 0.5rem; }
.service__item p { margin: 0; color: var(--muted); }

/* ════════════════════ GRILLA de productos ════════════════════ */
.catalog { max-width: var(--maxw); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(1.3rem, 5vw, 3rem) clamp(5rem, 9vw, 7rem); }
.catalog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.catalog__head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; color: var(--blue); }
.catalog__head span { font-size: 0.86rem; color: var(--muted); }

/* ── Catálogo: tools (orden) + carrusel ────────────────────────────────── */
.catalog__tools { display: flex; align-items: center; gap: 0.8rem; }
.sort { display: inline-flex; gap: 0.3rem; background: var(--cream-2); border-radius: 999px; padding: 0.25rem; }
.sort button {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  border: none;
  background: transparent;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.sort button:hover { color: var(--blue); }
.sort button.is-active { background: var(--blue); color: var(--cream); }

/* DESKTOP: grilla ordenada (sin carrusel) */
.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
}
.carousel__ctrl { display: none; gap: 0.5rem; }
.carousel__ctrl button {
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--blue);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.2s var(--ease);
}
.carousel__ctrl button:hover { background: var(--blue); color: var(--cream); transform: translateY(-2px); }
.carousel__ctrl button:disabled { opacity: 0.3; cursor: default; transform: none; background: var(--card); color: var(--blue); }
.carousel__progress { display: none; height: 3px; border-radius: 999px; background: var(--cream-2); overflow: hidden; margin-top: 0.4rem; }
.carousel__progress i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width 0.2s var(--ease); }

/* MOBILE: carrusel — 3 productos en vertical por vista, swipe horizontal */
@media (max-width: 820px) {
  .carousel__track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-columns: 84%;
    gap: 12px;
    height: clamp(440px, 72svh, 720px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin: 0 calc(-1 * clamp(1.3rem, 5vw, 3rem));
    padding: 0.4rem clamp(1.3rem, 5vw, 3rem) 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
  }
  .carousel__track.is-drag { scroll-behavior: auto; cursor: grabbing; }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__track > .card { scroll-snap-align: start; min-height: 0; flex-direction: row; }
  .carousel__track > .card .card__media { aspect-ratio: auto; flex: 0 0 34%; min-height: 100%; }
  .carousel__track > .card .card__body { flex: 1; min-width: 0; padding: 0.7rem 0.85rem; }
  .carousel__track > .card .card__mono { font-size: 2.2rem; }
  .carousel__ctrl { display: flex; }
  .carousel__progress { display: block; }

  /* pocas piezas: sin carrusel, apiladas normal */
  .carousel__track.is-short { height: auto; grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; grid-template-rows: none; overflow: visible; }
  .carousel__track.is-short > .card { flex-direction: column; }
  .carousel__track.is-short > .card .card__media { aspect-ratio: 5 / 4; flex: none; min-height: 0; }
  .carousel__track.is-short > .card .card__body { padding: 1.05rem 1.15rem 1.2rem; }
}

.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(0, 27, 65, 0.35); border-color: rgba(0, 67, 157, 0.3); }
.card__media { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, #fbf7ec, #ebe3cf); }
.card__media::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.08; }
.card__mono { font-family: var(--display); font-weight: 500; font-size: 4rem; color: rgba(0, 67, 157, 0.16); z-index: 1; }
.card__tag { position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.35em 0.7em; border-radius: 999px; background: var(--blue); color: var(--cream); }
.card__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.05rem 1.15rem 1.2rem; flex: 1; }
.card__name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 0; }
.card__desc { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.45; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.7rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.card__price { display: flex; flex-direction: column; line-height: 1.1; }
.card__price b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--blue); }
.card__price small { font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; }
.card__price.is-quote b { font-size: 1rem; }
.card__add { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: none; background: var(--blue); color: var(--cream); font-size: 1.3rem; line-height: 1; cursor: pointer; flex-shrink: 0; transition: transform 0.35s var(--spring), background 0.3s var(--ease); }
.card__add:hover { transform: scale(1.1); background: var(--blue-deep); }
.qtyc { display: inline-flex; align-items: center; gap: 0.45rem; }
.qtyc button {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.qtyc button:hover { background: var(--blue); color: var(--cream); border-color: var(--blue); }
.qtyc span { min-width: 1.2ch; text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--blue); }

/* ════════════════════ CATERING — TEST GUIADO ════════════════════ */
.banner--short { min-height: 46vh; }
.quiz-wrap { position: relative; padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.3rem, 5vw, 3rem) 4rem; display: flex; flex-direction: column; }
.quiz-head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.quiz-head .banner__kicker { color: var(--muted); }
.quiz-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0.6rem 0 0.6rem; color: var(--blue); }
.quiz-head p { color: var(--muted); margin: 0; }

.quiz { position: relative; max-width: 720px; width: 100%; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: 0 30px 70px -50px rgba(0, 27, 65, 0.5); }
.quiz__bar { height: 4px; border-radius: 999px; background: var(--cream-2); overflow: hidden; margin-bottom: 1.6rem; }
.quiz__bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width 0.5s var(--ease); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: stepIn 0.5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quiz__count { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
.quiz__q { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.1; margin: 0 0 1.4rem; color: var(--blue); }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.opt {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); cursor: pointer; text-align: left;
  font-size: 1rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}
.opt:hover { border-color: var(--blue); transform: translateY(-2px); }
.opt.is-sel { background: var(--blue); color: var(--cream); border-color: var(--blue); }
.opt__check { width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid currentColor; display: grid; place-items: center; flex-shrink: 0; font-size: 0.7rem; }
.opt.is-sel .opt__check::after { content: "✓"; }
.quiz__field { display: grid; gap: 0.4rem; }
.quiz__field label { font-size: 0.8rem; color: var(--muted); }
.quiz__field input, .quiz__field textarea { font-family: var(--sans); font-size: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.quiz__field input:focus, .quiz__field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 67, 157, 0.12); }
.quiz__hint { font-size: 0.84rem; color: var(--muted); margin: 0.8rem 0 0; }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.quiz__back { background: transparent; border: none; color: var(--muted); font-family: var(--sans); font-size: 0.92rem; font-weight: 500; cursor: pointer; padding: 0.6em 0.2em; }
.quiz__back:hover { color: var(--blue); }
.quiz__back[hidden] { visibility: hidden; }

/* resumen */
.summary { display: grid; gap: 0.6rem; margin: 0 0 1.4rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.summary__row span { color: var(--muted); }
.summary__row b { font-weight: 600; text-align: right; }

/* ════════════════════ FOOTER ════════════════════ */
.foot { position: relative; z-index: 2; background: var(--navy); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) clamp(1.3rem, 5vw, 3rem) 2.2rem; }
.foot::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.08; pointer-events: none; }
.foot__top { position: relative; max-width: var(--maxw); margin: 0 auto 2rem; display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid rgba(244, 240, 229, 0.15); }
.foot__brand { display: flex; align-items: center; gap: 0.7rem; }
.foot__brand img { width: 46px; height: 46px; }
.foot__mark { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.06em; }
.foot__nav { position: relative; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot__nav a { color: rgba(244, 240, 229, 0.72); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.foot__nav a:hover { color: var(--cream); }
.foot__contact { position: relative; max-width: var(--maxw); margin: 0 auto 1.6rem; display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot__contact a, .foot__contact span { color: rgba(244, 240, 229, 0.72); font-size: 0.92rem; }
.foot__contact a:hover { color: var(--cream); }
.foot__legal { position: relative; max-width: var(--maxw); margin: 0 auto; font-size: 0.8rem; color: rgba(244, 240, 229, 0.45); }
.foot__legal a { color: rgba(244, 240, 229, 0.7); transition: color 0.25s var(--ease); }
.foot__legal a:hover { color: var(--cream); }

/* ════════════════════ DRAWER ════════════════════ */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 27, 65, 0.42); opacity: 0; transition: opacity 0.4s var(--ease); backdrop-filter: blur(3px); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(430px, 94vw); background: var(--cream); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.5s var(--ease); box-shadow: -24px 0 70px -34px rgba(0, 27, 65, 0.5); }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 0; }
.drawer__close { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 0.9rem; transition: all 0.3s var(--ease); }
.drawer__close:hover { background: var(--blue); color: var(--cream); }
.drawer__items { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.line__name { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.line__meta { font-size: 0.76rem; color: var(--muted); }
.line__price { font-family: var(--display); font-weight: 600; text-align: right; color: var(--blue); }
.line__qty { display: inline-flex; align-items: center; gap: 0.7rem; }
.line__qty button { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 1rem; line-height: 1; transition: all 0.25s var(--ease); }
.line__qty button:hover { background: var(--blue); color: var(--cream); }
.line__qty span { min-width: 1.4ch; text-align: center; font-weight: 600; }
.drawer__empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); display: grid; gap: 1.2rem; justify-items: center; }
.drawer__form { border-top: 1px solid var(--line); padding: 1.3rem 1.5rem 1.6rem; display: grid; gap: 0.85rem; }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; }
.drawer__total span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.drawer__total strong { font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--blue); }
.drawer__hint { font-size: 0.76rem; color: var(--muted); margin: -0.4rem 0 0.2rem; }
.field { display: grid; gap: 0.35rem; }
.field span { font-size: 0.78rem; color: var(--ink); }
.field input, .field textarea { font-family: var(--sans); font-size: 0.95rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); resize: vertical; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 67, 157, 0.12); }

/* ════════════════════ TOAST ════════════════════ */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 150%); z-index: 130; background: var(--navy); color: var(--cream); padding: 0.8rem 1.3rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: transform 0.5s var(--spring), opacity 0.4s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast b { color: #fff; font-weight: 600; }

/* ════════════════════ RESPONSIVE ════════════════════ */
@media (max-width: 820px) {
  .island { left: 12px; right: 12px; transform: none; justify-content: space-between; padding: 7px 8px 7px 16px; }
  .island__nav { display: none; }
  .island__burger { display: flex; }
  .service__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .catalog__head { flex-wrap: wrap; gap: 1rem; }
  .catalog__tools { width: 100%; justify-content: space-between; }
  .sort { flex: 1; }
  .sort button { flex: 1; text-align: center; padding: 0.5em 0.4em; }

  /* Banner mobile: imagen a sangre + texto en azul por encima */
  .banner { min-height: 56vh; padding: 6rem clamp(1.3rem, 5vw, 3rem) 1.7rem; }
  .banner--short { min-height: 46vh; }
  .banner__scrim { background: linear-gradient(180deg, rgba(246, 241, 231, 0) 28%, rgba(246, 241, 231, 0.5) 58%, rgba(246, 241, 231, 0.93) 100%); }
  .banner__inner { color: var(--blue); text-shadow: 0 1px 16px rgba(246, 241, 231, 0.85); }
  .banner__kicker { color: var(--blue); opacity: 0.85; }
  .banner__tagline { color: var(--blue); }
  .banner__rule { background: rgba(26, 75, 160, 0.3); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .card__body { padding: 0.85rem 0.9rem 1rem; }
  .card__name { font-size: 1.05rem; }
  .card__mono { font-size: 3rem; }
  .quiz__options { grid-template-columns: 1fr; }
  .home__center { padding-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
