/* =========================================================
   PJ & G · Hoja de estilos compartida
   Diseño minimalista. Paleta oliva/salvia + papel cálido.
   ========================================================= */

:root {
  --paper:      #FBFAF6;
  --paper-2:    #F5F3EC;
  --card:       #FFFFFF;
  --ink:        #2B2A26;
  --muted:      #8A857B;
  --line:       #E7E3D9;
  --line-soft:  #F0ECE3;
  --accent:     #6E7A5E;   /* oliva/salvia */
  --accent-ink: #525C44;   /* oliva oscuro (texto/botones) */
  --accent-soft:#EEF1E8;
  --error:      #A4533F;
  --radius:     14px;
  --maxw:       1080px;
  --maxw-text:  720px;
  --nav-h:      66px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Tipografía de apoyo ---------- */
.serif { font-family: "Cormorant Garamond", serif; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 0.7rem;
}
.amp { color: var(--accent); font-style: italic; font-weight: 400; padding: 0 0.08em; }
.rule { width: 46px; height: 1px; background: var(--accent); opacity: 0.6; border: 0; margin: 1.1rem 0 0; }
.rule.center { margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__brand {
  font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
}
.nav__menu { display: flex; align-items: center; gap: 1.5rem; }
.nav__menu a:not(.btn) {
  text-decoration: none; color: var(--ink); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.02em; transition: color 0.16s ease; white-space: nowrap;
}
.nav__menu a:not(.btn):hover { color: var(--accent-ink); }
.nav__menu .btn { color: #fff; }
.nav__menu a:not(.btn).is-active { color: var(--accent-ink); }
.nav__menu a.is-active::after {
  content: ""; display: block; height: 1px; background: var(--accent);
  margin-top: 3px; opacity: 0.7;
}
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 22px; height: 1.6px; background: var(--ink); transition: 0.2s ease; }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }
  .nav__menu.open { max-height: 420px; opacity: 1; pointer-events: auto; }
  .nav__menu a { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
  .nav__menu a.is-active::after { display: none; }
  .nav__menu .btn { margin-top: 0.9rem; width: 100%; text-align: center; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-block; font-family: inherit; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--accent-ink); border: 1px solid var(--accent-ink);
  border-radius: 10px; padding: 0.8rem 1.4rem; cursor: pointer;
  transition: background 0.18s ease, transform 0.08s ease;
}
.btn:hover { background: #404a35; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.btn--sm { padding: 0.62rem 1.05rem; font-size: 0.74rem; }
.btn--outline { background: transparent; color: var(--accent-ink); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent-soft); }

/* =========================================================
   HERO / PORTADA
   ========================================================= */
.hero {
  position: relative; text-align: center;
  padding: clamp(3rem, 9vw, 6rem) 1.5rem clamp(2.5rem, 7vw, 4.5rem);
  background:
    radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--paper) 45%, var(--paper-2) 100%);
}
.hero__eyebrow { letter-spacing: 0.3em; }
.hero__names {
  font-family: "Cormorant Garamond", serif; font-weight: 500;
  font-size: clamp(3rem, 13vw, 6rem); line-height: 0.98; margin: 0.4rem 0 0.2rem;
}
.hero__date {
  font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.8rem;
}
.hero__photo {
  margin: clamp(2rem, 5vw, 3rem) auto 0; width: 100%;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(43,42,38,0.04), 0 24px 60px -36px rgba(43,42,38,0.35);
  background: var(--paper-2);
}
.hero__photo img { width: 100%; height: auto; display: block; }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: var(--maxw-text); margin: 0 auto clamp(2rem, 5vw, 3rem); }
.section__head h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.section__head p { color: var(--muted); margin: 0.8rem auto 0; max-width: 52ch; }
.section__head .rule { margin-top: 1.1rem; }

.lead { max-width: var(--maxw-text); margin: 0 auto; color: var(--ink); font-size: 1.02rem; }
.muted { color: var(--muted); }

/* =========================================================
   CUENTA ATRÁS
   ========================================================= */
.countdown { display: flex; justify-content: center; gap: clamp(0.6rem, 3vw, 1.8rem); flex-wrap: wrap; }
.cd__cell { min-width: 76px; text-align: center; }
.cd__num {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cd__lbl { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
.cd__sep { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; color: var(--line); align-self: flex-start; }
.countdown--done { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; color: var(--accent-ink); }

/* =========================================================
   INFO CLAVE (fecha / lugar)
   ========================================================= */
.keyinfo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: var(--maxw-text); margin: 0 auto; }
.keyinfo .kcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
}
.keyinfo .kcard h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.keyinfo .kcard .k-eyebrow { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.keyinfo .kcard p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 560px) { .keyinfo { grid-template-columns: 1fr; } }

/* =========================================================
   ITINERARIO (timeline)
   ========================================================= */
.timeline { max-width: 560px; margin: 0 auto; position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.tl__item { position: relative; padding: 0 0 2rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ""; position: absolute; left: -2.2rem; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent);
}
.tl__item--tint::before { background: var(--accent); }
.tl__time { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; }
.tl__title { font-family: "Cormorant Garamond", serif; font-size: clamp(1.25rem, 4vw, 1.5rem); font-weight: 600; margin: 0.1rem 0 0.15rem; }
.tl__desc { color: var(--muted); font-size: 0.94rem; margin: 0; }
@media (max-width: 560px) { .section--tint .timeline, .timeline { padding-left: 1.9rem; } .tl__item::before { left: -1.9rem; } }

/* =========================================================
   TARJETAS (lugares / alojamiento)
   ========================================================= */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: #d8d2c5; transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(43,42,38,0.4); }
.card h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.card .tag { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); display: inline-block; margin-bottom: 0.6rem; }
.card p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.94rem; }
.card a.link, .card span.link { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; color: var(--accent-ink); }
.card a.link:hover { text-decoration: underline; }
.card--link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.card--link:hover span.link { text-decoration: underline; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 960px; margin-left: auto; margin-right: auto; }
.subhead { font-family: "Cormorant Garamond", serif; font-size: clamp(1.4rem, 4.5vw, 1.7rem); text-align: center; margin: 2.5rem 0 1.25rem; }

/* =========================================================
   CÓMO LLEGAR
   ========================================================= */
.places { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; }
@media (max-width: 720px) { .places { grid-template-columns: 1fr; } }
.place {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
}
.place h3 { font-size: 1.55rem; margin-bottom: 0.2rem; }
.place .addr { color: var(--muted); font-size: 0.92rem; margin: 0.3rem 0 1rem; }
.place ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.94rem; }
.place ul li { margin-bottom: 0.4rem; }

/* =========================================================
   REGALO (cuadro de cuenta)
   ========================================================= */
.gift { max-width: var(--maxw-text); margin: 0 auto; text-align: center; }
.account {
  margin: 2rem auto 0; max-width: 460px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
}
.account .k-eyebrow { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.account .iban {
  font-family: "Cormorant Garamond", serif; font-size: clamp(1.3rem, 5vw, 1.7rem);
  letter-spacing: 0.04em; margin: 0.5rem 0 0.25rem; word-spacing: 0.15em;
}
.account .holder { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; }
.copybtn {
  font-family: inherit; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid var(--accent); border-radius: 9px; padding: 0.55rem 1rem; cursor: pointer;
  transition: background 0.16s ease;
}
.copybtn:hover { background: #e4e8da; }
.copybtn.copied { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =========================================================
   FAQ (acordeón nativo)
   ========================================================= */
.faq { max-width: var(--maxw-text); margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 0.4rem 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: "Cormorant Garamond", serif; font-size: clamp(1.15rem, 4vw, 1.4rem); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-family: "Mulish", sans-serif; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.faq .answer { padding: 0 0 1.2rem; color: var(--muted); font-size: 0.97rem; max-width: 60ch; }

/* =========================================================
   MENSAJE DE AGRADECIMIENTO
   ========================================================= */
.thanks { text-align: center; }
.thanks .signature {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: clamp(1.5rem, 5vw, 1.8rem);
  color: var(--accent-ink); margin-top: 1.5rem;
}

/* =========================================================
   PIE
   ========================================================= */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 2.75rem 0; text-align: center; }
.footer .fbrand { font-family: "Cormorant Garamond", serif; font-size: clamp(1.4rem, 4.5vw, 1.7rem); letter-spacing: 0.04em; }
.footer .fdate { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.4rem 0 1rem; }
.footer .flinks { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer .flinks a { color: var(--ink); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.footer .flinks a:hover { color: var(--accent-ink); }
.footer .fnote { color: var(--muted); font-size: 0.76rem; }

/* page top spacing helper */
.page-top { padding-top: clamp(2.5rem, 6vw, 4rem); }

/* =========================================================
   OPTIMIZACIONES TÁCTILES
   ========================================================= */
a, button, .opt, .faq summary, .copybtn { -webkit-tap-highlight-color: transparent; }
.btn, button, .opt, .faq summary, .copybtn { touch-action: manipulation; }

/* =========================================================
   MÓVIL PEQUEÑO (≤480px)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero__date { letter-spacing: 0.08em; }
  .hero__eyebrow { letter-spacing: 0.18em; }
  .kcard { padding: 1.1rem; }
  .card { padding: 1.1rem; }
  .place { padding: 1.25rem; }
  .account { padding: 1.25rem; }
  .cd__cell { min-width: 60px; }
  .cd__sep { font-size: 1.8rem; }
  .footer .flinks { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   BOTÓN MÚSICA
   ========================================================= */
.music-toggle {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(43,42,38,0.15);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.music-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(43,42,38,0.22); }
.music-icon { width: 20px; height: 20px; color: var(--ink); }

/* =========================================================
   FORMULARIO DE ASISTENCIA  (compartido con rsvp.js)
   ========================================================= */
.form-wrap { max-width: 640px; margin: 0 auto; }
.card-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  box-shadow: 0 1px 2px rgba(43,42,38,0.03), 0 12px 32px -20px rgba(43,42,38,0.18);
}
.card-form fieldset { border: 0; padding: 0; margin: 0 0 1.9rem; }
.card-form fieldset:last-of-type { margin-bottom: 0; }
.card-form legend, .group-label {
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 600;
  color: var(--ink); padding: 0; margin-bottom: 0.2rem;
}
.group-note { color: var(--muted); font-size: 0.86rem; margin: 0 0 1.1rem; }
.field { margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }
label.lbl { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.45rem; }
.req { color: var(--accent); font-weight: 700; }
.hint { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.card-form input[type="text"], .card-form input[type="tel"],
.card-form select, .card-form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #FCFBF8; border: 1px solid var(--line); border-radius: 9px;
  padding: 0.72rem 0.85rem; transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  appearance: none;
}
.card-form textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.card-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A857B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.2rem; cursor: pointer;
}
.card-form input:focus, .card-form select:focus, .card-form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft);
}

.options { display: grid; gap: 0.55rem; }
.options.row { grid-template-columns: 1fr 1fr; }
@media (max-width: 460px) { .options.row { grid-template-columns: 1fr; } }
.opt {
  position: relative; display: flex; align-items: center; gap: 0.65rem;
  border: 1px solid var(--line); border-radius: 10px; padding: 0.72rem 0.9rem;
  cursor: pointer; background: #FCFBF8; transition: border-color 0.16s ease, background 0.16s ease; font-size: 0.92rem;
}
.opt:hover { border-color: #d8d2c5; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot {
  flex: 0 0 auto; width: 17px; height: 17px; border: 1.5px solid #c8c2b4; border-radius: 50%;
  display: grid; place-items: center; transition: border-color 0.16s ease;
}
.opt .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.16s ease; }
.opt input:checked ~ .dot { border-color: var(--accent); }
.opt input:checked ~ .dot::after { transform: scale(1); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input:focus-visible ~ .dot { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }

.opt .box {
  flex: 0 0 auto; width: 17px; height: 17px; border: 1.5px solid #c8c2b4; border-radius: 5px;
  display: grid; place-items: center; color: #fff; transition: border-color 0.16s ease, background 0.16s ease;
}
.opt .box svg { width: 11px; height: 11px; opacity: 0; transform: scale(0.6); transition: opacity 0.16s ease, transform 0.16s ease; }
.opt input:checked ~ .box { border-color: var(--accent); background: var(--accent); }
.opt input:checked ~ .box svg { opacity: 1; transform: scale(1); }
.opt input:focus-visible ~ .box { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }

.conditional { overflow: hidden; }
.conditional[hidden] { display: none; }
.reveal { animation: fade 0.32s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.divider { height: 1px; background: var(--line-soft); margin: 1.7rem 0; border: 0; }

.actions { margin-top: 2rem; }
button.submit {
  width: 100%; font-family: inherit; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; background: var(--accent-ink); border: 1px solid var(--accent-ink);
  border-radius: 10px; padding: 0.95rem 1rem; cursor: pointer; transition: background 0.18s ease, transform 0.08s ease;
}
button.submit:hover { background: #404a35; }
button.submit:active { transform: translateY(1px); }
button.submit:disabled { opacity: 0.6; cursor: progress; }
button.submit:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.form-error { display: none; color: var(--error); font-size: 0.86rem; margin-top: 0.9rem; text-align: center; }
.demo-note { display: none; color: var(--muted); font-size: 0.76rem; text-align: center; margin-top: 0.9rem; font-style: italic; }

.done { display: none; text-align: center; padding: 1rem 0; }
.done.show { display: block; animation: fade 0.4s ease both; }
.done .check {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--accent);
  margin: 0 auto 1.4rem; display: grid; place-items: center; color: var(--accent);
}
.done h2 { font-size: 1.9rem; margin: 0 0 0.5rem; }
.done p { color: var(--muted); margin: 0 auto; max-width: 36ch; }

/* ---- Contadores por alergia/intolerancia ---- */
.alergia-contadores {
  margin-top: 0.75rem;
  padding: 0.75rem 0.95rem 0.85rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 0.5rem;
  animation: fade 0.22s ease both;
}
.alergia-contadores-title {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 0.2rem;
}
.alergia-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.alergia-qty-label {
  font-size: 0.88rem;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  flex-shrink: 0;
}
.qty-btn {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: var(--accent-ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.14s ease;
  display: grid;
  place-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.qty-btn:hover { background: var(--accent-soft); }
.qty-btn:active { background: var(--line-soft); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-num {
  min-width: 30px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 0.3rem;
  user-select: none;
  line-height: 30px;
}
