/* ==========================================================================
   Empanadas V — estilos
   Paleta: negro profundo + dorado (del logo) + crema. Acento rojo del mantel.
   ========================================================================== */

:root {
  --negro: #0b0b0b;
  --negro-2: #141210;
  --negro-3: #1d1a16;
  --borde: rgba(255, 255, 255, .08);
  --crema: #f5efe4;
  --crema-2: #cfc6b6;
  --gris: #8f877a;
  --oro: #c9962b;
  --oro-claro: #f1d27a;
  --oro-oscuro: #8a5f14;
  --oro-grad: linear-gradient(135deg, #f6dc8a 0%, #c9962b 48%, #8a5f14 100%);
  --rojo: #b3261e;
  --wa: #25d366;
  --wa-oscuro: #1aa851;

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radio: 18px;
  --wrap: 1180px;
  --sombra: 0 20px 60px rgba(0, 0, 0, .45);
  --t: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--crema);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--oro); color: #000; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.gold {
  background: var(--oro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- tipografía ----- */
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .95rem;
  color: var(--oro);
  margin-bottom: .6rem;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.lead { font-size: 1.1rem; color: var(--crema-2); max-width: 60ch; }
.lead.center { margin-inline: auto; }

/* ----- botones ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--oro-grad);
  color: #1a1200;
  box-shadow: 0 10px 30px rgba(201, 150, 43, .25);
}
.btn--gold:hover { box-shadow: 0 14px 38px rgba(201, 150, 43, .4); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
  color: var(--crema);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--wa { background: var(--wa); color: #05240f; }
.btn--wa:hover { background: var(--wa-oscuro); color: #fff; transform: translateY(-2px); }
.btn--sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ----- pill ----- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem .35rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem; font-weight: 500;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }
.pill--closed .pill__dot { background: var(--rojo); box-shadow: 0 0 0 4px rgba(179, 38, 30, .2); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: .8rem 0;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.nav.is-scrolled {
  background: rgba(11, 11, 11, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--borde);
  padding: .5rem 0;
}
.nav__in { display: flex; align-items: center; gap: 1.5rem; }
.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.nav__logo { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.nav__name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .06em; }
.nav__name em, .footer__name em { font-style: normal; color: var(--oro); }
.nav__links { display: flex; gap: 1.4rem; }
.nav__links a { text-decoration: none; font-size: .95rem; color: var(--crema-2); transition: color var(--t); }
.nav__links a:hover { color: var(--oro-claro); }
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 480px) { .nav .btn--sm { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__pic, .hero__pic img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
  z-index: -2;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .75) 38%, rgba(11, 11, 11, .15) 70%, rgba(11, 11, 11, 0) 100%),
    linear-gradient(180deg, rgba(11, 11, 11, .55) 0%, rgba(11, 11, 11, 0) 30%, rgba(11, 11, 11, .6) 100%);
}
.hero__in { max-width: 800px; }
.hero__kicker { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero__city { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--crema-2); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 10.5vw, 7.2rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 1.4rem;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .6);
}
.hero__line { display: block; }
.hero__line--gold {
  background: var(--oro-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 6px 24px rgba(201, 150, 43, .25));
}
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--crema-2); max-width: 46ch; margin-bottom: 1.8rem; }
.hero__sub strong { color: var(--crema); }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__facts { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .9rem; color: var(--crema-2); }
.hero__facts li { position: relative; padding-left: 1rem; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--oro); }
.hero__facts strong { color: var(--crema); }

@media (max-width: 640px) {
  .hero { padding: 6.5rem 0 6rem; align-items: start; }
  .hero__pic img { object-position: 50% 100%; }
  .hero__facts { display: none; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(11, 11, 11, .85) 0%, rgba(11, 11, 11, .65) 45%, rgba(11, 11, 11, .1) 75%, rgba(11, 11, 11, .7) 100%);
  }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  background: var(--oro-grad);
  color: #1a1200;
  overflow: hidden;
  padding: .7rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.marquee__track { display: flex; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track i { font-style: normal; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.sec { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

/* --- La empanada --- */
.sec--empanada { background: radial-gradient(1200px 600px at 20% 20%, rgba(201, 150, 43, .08), transparent 60%), var(--negro); }
.empanada__fig { position: relative; margin: 0; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.empanada__fig img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.empanada__stamp {
  position: absolute; right: 1rem; bottom: 1rem;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--oro-grad); color: #1a1200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.empanada__stamp span { font-size: 2rem; }
.ingredientes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.4rem 0 1.6rem; }
.ingredientes li {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem;
  border: 1px solid var(--borde); border-radius: 14px;
  background: var(--negro-2);
}
.ing__ico { font-size: 1.5rem; }
.ingredientes strong { display: block; font-size: .98rem; }
.ingredientes small { color: var(--gris); font-size: .8rem; }
@media (max-width: 480px) { .ingredientes { grid-template-columns: 1fr; } }
.precio { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.4rem; }
.precio__num { font-family: var(--font-display); font-size: 3rem; color: var(--oro-claro); line-height: 1; }
.precio__lbl { color: var(--gris); }

/* --- Por qué --- */
.sec--porque { background: var(--negro-2); }
.bento {
  display: grid; gap: 1.1rem; margin-top: 2.5rem;
  grid-template-columns: repeat(12, 1fr);
}
.bento > :nth-child(1) { grid-column: span 7; }
.bento > :nth-child(2) { grid-column: span 5; }
.bento > :nth-child(3) { grid-column: span 5; }
.bento > :nth-child(4) { grid-column: span 7; }
@media (max-width: 860px) { .bento > * { grid-column: span 12 !important; } }
.card {
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  background: var(--negro-3);
  overflow: hidden;
  min-height: 300px;
  display: flex; flex-direction: column;
}
.card h3 { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .03em; text-transform: uppercase; margin-bottom: .5rem; }
.card p { color: var(--crema-2); margin: 0; }
.card--img { position: relative; justify-content: flex-end; min-height: 340px; }
.card--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card--img:hover img { transform: scale(1.04); }
.card__body {
  position: relative; padding: 1.6rem;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0) 0%, rgba(11, 11, 11, .85) 45%, rgba(11, 11, 11, .95) 100%);
  padding-top: 5rem;
}
.card--txt { padding: 1.8rem; justify-content: flex-end; }
.card__big { font-size: 2.4rem; margin-bottom: auto; }
.card--gold { background: var(--oro-grad); color: #1a1200; border-color: transparent; }
.card--gold p { color: #3a2a05; }
.card--glass { background: rgba(11, 11, 11, .6); backdrop-filter: blur(10px); padding: 1.8rem; min-height: 0; }
.card__meta { color: var(--oro-claro) !important; font-weight: 500; font-size: .95rem; margin-top: .4rem !important; }

/* --- Pedir --- */
.sec--pedir { background: var(--negro); }
.pedido {
  margin: 2.5rem auto 0;
  max-width: 820px;
  background: var(--negro-2);
  border: 1px solid var(--borde);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  box-shadow: var(--sombra);
}
.pf { margin-bottom: 1.6rem; }
.pf__lbl, .lbl {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--oro-claro);
  margin-bottom: .6rem;
}
.pf__hint { font-size: .85rem; color: var(--gris); margin: .5rem 0 0; }
.pf__sub { margin-top: .9rem; }
.pf--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .pf--row { grid-template-columns: 1fr; } }

.in {
  width: 100%;
  background: var(--negro);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: .85rem 1rem;
  color: var(--crema);
  transition: border-color var(--t), box-shadow var(--t);
}
.in::placeholder { color: var(--gris); }
.in:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(201, 150, 43, .2); }
.in:invalid.was-touched { border-color: var(--rojo); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--oro) 50%), linear-gradient(135deg, var(--oro) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }

.qty { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.qty__btn {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--negro-3); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 1.5rem; cursor: pointer; transition: background var(--t);
}
.qty__btn:hover { background: var(--oro); color: #1a1200; }
.qty__in {
  width: 92px; height: 48px; text-align: center;
  font-family: var(--font-display); font-size: 1.8rem;
  background: var(--negro); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; color: var(--oro-claro);
  -moz-appearance: textfield;
}
.qty__in::-webkit-outer-spin-button, .qty__in::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty__quick { display: flex; gap: .4rem; margin-left: .4rem; }
.chip {
  padding: .45rem .85rem; border-radius: 999px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .16);
  color: var(--crema-2); font-size: .9rem; cursor: pointer; transition: all var(--t);
}
.chip:hover, .chip.is-on { background: var(--oro); border-color: var(--oro); color: #1a1200; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center;
  padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--negro);
  font-weight: 500; transition: all var(--t);
}
.seg__opt input:checked + span { background: var(--oro-grad); color: #1a1200; border-color: transparent; box-shadow: 0 8px 24px rgba(201, 150, 43, .25); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--oro-claro); outline-offset: 2px; }
@media (max-width: 480px) { .seg__opt span { padding: .85rem .4rem; font-size: .9rem; } }

.resumen {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: .5rem; padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: var(--negro-3); border: 1px dashed rgba(201, 150, 43, .45);
}
.resumen__txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.resumen__lbl { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.resumen__total { color: var(--oro-claro); font-weight: 600; }
@media (max-width: 600px) { .resumen .btn { width: 100%; } }
.btn.is-shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* --- Despacho --- */
.sec--despacho { isolation: isolate; overflow: hidden; }
.sec__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sec__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .55) 50%, rgba(11, 11, 11, .92) 100%); }
.grid2--cards { margin-top: 2rem; align-items: stretch; }

/* --- FAQ --- */
.sec--faq { background: var(--negro-2); }
.faq { margin-top: 2rem; display: flex; flex-direction: column; gap: .6rem; }
.faq details { border: 1px solid var(--borde); border-radius: 14px; background: var(--negro); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--oro); transition: transform var(--t);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--crema-2); margin: 0; }
.faq a { color: var(--oro-claro); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--borde); padding: 3.5rem 0 6rem; background: var(--negro); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer__in { grid-template-columns: 1fr; } }
.footer__name { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: .06em; margin: .8rem 0 .2rem; }
.footer__tag { color: var(--gris); }
.footer__col { display: flex; flex-direction: column; gap: .45rem; color: var(--crema-2); }
.footer__col h4 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); margin-bottom: .3rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--oro-claro); }
.footer__legal { text-align: center; color: var(--gris); font-size: .85rem; margin: 2.5rem 0 0; }

/* ==========================================================================
   BARRA MÓVIL FIJA
   ========================================================================== */
.mbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 11, 11, .92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--borde);
  gap: .6rem;
}
.mbar .btn--gold { flex: 1; }
.mbar .btn--wa { width: 52px; padding: 0; }
@media (max-width: 760px) { .mbar { display: flex; } }

/* ==========================================================================
   REVEAL (IntersectionObserver en main.js)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   ASISTENTE VALE
   ========================================================================== */
.chat-bubble {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem .7rem .8rem;
  border-radius: 999px; border: 1px solid rgba(201, 150, 43, .5);
  background: var(--negro-3); color: var(--crema);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  cursor: pointer; transition: transform var(--t), box-shadow var(--t);
}
.chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201, 150, 43, .25); }
.chat-bubble__ico { font-size: 1.4rem; }
.chat-bubble__txt { font-size: .92rem; font-weight: 500; }
.chat-bubble__dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--rojo); border: 2px solid var(--negro); }
@media (max-width: 760px) {
  .chat-bubble { bottom: calc(4.9rem + env(safe-area-inset-bottom)); right: .8rem; padding: .6rem .9rem .6rem .7rem; }
  .chat-bubble__txt { display: none; }
}

.chat-panel {
  position: fixed; right: 1rem; bottom: 5rem; z-index: 61;
  width: min(380px, calc(100vw - 2rem));
  height: min(600px, calc(100vh - 7rem));
  display: flex; flex-direction: column;
  background: var(--negro-2); border: 1px solid var(--borde); border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) {
  .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; }
}
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid var(--borde); background: var(--negro-3); border-radius: 20px 20px 0 0; }
@media (max-width: 760px) { .chat-head { border-radius: 0; } }
.chat-head__id { display: flex; align-items: center; gap: .7rem; }
.chat-head__id strong { display: block; line-height: 1.1; }
.chat-head__id small { color: var(--gris); font-size: .78rem; }
.chat-head__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--oro-grad); display: grid; place-items: center; font-size: 1.3rem; }
.chat-close { background: transparent; border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--crema-2); }
.chat-close:hover { background: rgba(255, 255, 255, .08); color: var(--crema); }

.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.chat-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 16px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg--bot { align-self: flex-start; background: var(--negro-3); border: 1px solid var(--borde); border-bottom-left-radius: 6px; }
.chat-msg--user { align-self: flex-end; background: var(--oro-grad); color: #1a1200; border-bottom-right-radius: 6px; }
.chat-msg--typing { display: flex; gap: 4px; padding: .8rem 1rem; }
.chat-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--oro); animation: blink 1.2s infinite; }
.chat-msg--typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-chip { padding: .45rem .8rem; border-radius: 999px; border: 1px solid rgba(201, 150, 43, .5); background: transparent; color: var(--crema); font-size: .85rem; cursor: pointer; text-decoration: none; transition: all var(--t); }
.chat-chip:hover { background: var(--oro); color: #1a1200; }
.chat-chip--wa { border-color: var(--wa); color: var(--wa); }
.chat-chip--wa:hover { background: var(--wa); color: #05240f; }

.chat-form { position: relative; display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .8rem 1.4rem; border-top: 1px solid var(--borde); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 96px; padding: .7rem .9rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: var(--negro); color: var(--crema); }
.chat-form textarea:focus { outline: none; border-color: var(--oro); }
.chat-form textarea:disabled { opacity: .6; }
.chat-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--oro-grad); color: #1a1200; display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-send:disabled { opacity: .45; cursor: default; }
.chat-count { position: absolute; right: 1rem; bottom: .35rem; font-size: .7rem; color: var(--gris); }
