/* ---------- Navegación flotante ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 0; pointer-events: none; transition: padding .45s var(--ease); }
.nav__inner {
  pointer-events: auto; position: relative; margin-inline: auto; max-width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .9rem var(--gutter); background: var(--verde); color: var(--marfil);
  transition: max-width .5s var(--ease), border-radius .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease), margin .5s var(--ease);
}
.nav.is-scrolled { padding: .7rem var(--gutter) 0; }
.nav.is-scrolled .nav__inner { max-width: 62rem; border-radius: 999px; padding: .5rem .6rem .5rem 1.3rem; box-shadow: 0 1rem 2.5rem -1rem rgba(5, 38, 32, .6), 0 0 0 1px rgba(246, 245, 240, .12); }
.nav__logo img { height: 3rem; width: auto; margin-block: -.25rem; transition: height .45s var(--ease); }
.nav.is-scrolled .nav__logo img { height: 2.3rem; }
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: var(--step--1); font-weight: 600; padding: .4rem 0; position: relative; opacity: .9; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ambar); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta { min-height: 2.6rem; padding: .5rem 1.2rem; font-size: var(--step--1); }
.nav__burger { display: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1.5px solid rgba(246, 245, 240, .4); background: transparent; place-items: center; }
.nav__burger span, .nav__burger span::before { display: block; width: 1.1rem; height: 2px; background: var(--marfil); border-radius: 2px; position: relative; transition: transform .3s var(--ease); }
.nav__burger span::before { content: ""; position: absolute; top: -6px; left: 0; }
.nav__burger[aria-expanded="true"] span { transform: translateY(0) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(-90deg); }

@media (max-width: 62rem) {
  .nav__burger { display: grid; }
  .nav__right { display: flex; align-items: center; gap: .6rem; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: calc(100% + .5rem); flex-direction: column; gap: 0; margin-inline: .25rem;
    background: var(--verde); border-radius: 1.4rem; padding: .6rem 1.4rem; box-shadow: 0 1.5rem 3rem -1rem rgba(5, 38, 32, .7);
    opacity: 0; transform: translateY(-.5rem); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s, transform .3s var(--ease), visibility 0s; }
  .nav__links a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--linea-oscura); }
  .nav__links li:last-child a { border: 0; }
  .nav__cta--desktop { display: none; }
}
@media (min-width: 62.01rem) { .nav__right { display: contents; } .nav__cta--mobile { display: none; } }

/* ---------- Teléfono reutilizable ---------- */
.phone {
  --pw: 19rem;
  position: relative; width: var(--pw); aspect-ratio: 9 / 18.6; padding: .6rem; border-radius: 2.9rem;
  background: linear-gradient(145deg, #2c3d36, #10191548 45%, #1c2924); background-color: #121c18;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 2.5rem 4rem -1.5rem rgba(0, 0, 0, .6), 0 .6rem 1.2rem rgba(0, 0, 0, .25);
}
.phone__screen { position: relative; height: 100%; border-radius: 2.35rem; overflow: hidden; background: #E9E2D6; color: var(--grafito); display: flex; flex-direction: column; }
.day { align-self: center; margin-bottom: .3rem; padding: .22rem .7rem; border-radius: 99px; background: rgba(255, 255, 255, .75); font-size: .66rem; font-weight: 700; color: #5b665f; }
.phone__notch { position: absolute; top: .55rem; left: 50%; width: 28%; height: 1.15rem; border-radius: 99px; background: #0a110e; transform: translateX(-50%); z-index: 3; }
.chat-head { display: flex; align-items: center; gap: .6rem; padding: 2.4rem .9rem .7rem; background: var(--verde); color: var(--marfil); flex: none; }
.chat-head__avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ambar); color: var(--grafito); display: grid; place-items: center; font: 800 .95rem var(--font-display); flex: none; }
.chat-head__name { font-weight: 700; font-size: .92rem; line-height: 1.15; }
.chat-head__sub { font-size: .72rem; opacity: .8; line-height: 1.2; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .45rem; padding: .8rem .7rem; overflow: hidden; justify-content: flex-end; }
.chat-foot { flex: none; display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem .8rem; }
.chat-foot__field { flex: 1; background: #fff; border-radius: 99px; padding: .5rem .9rem; font-size: .76rem; color: #7b867f; }
.chat-foot__send { width: 2rem; height: 2rem; border-radius: 50%; background: var(--verde); display: grid; place-items: center; }
.chat-foot__send svg { width: .95rem; height: .95rem; fill: var(--marfil); }

.msg { max-width: 82%; padding: .5rem .7rem .35rem; border-radius: 1rem; font-size: .86rem; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); animation: msg-in .45s var(--ease) both; }
.msg time { display: block; text-align: right; font-size: .62rem; opacity: .55; margin-top: .1rem; }
.msg--client { align-self: flex-end; background: #D9F0CE; border-bottom-right-radius: .3rem; }
.msg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: .3rem; }
.msg--typing { display: flex; gap: .28rem; padding: .7rem .8rem; }
.msg--typing i { width: .42rem; height: .42rem; border-radius: 50%; background: #8a958f; animation: dot 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
.receipt { display: grid; gap: .3rem; padding: .2rem 0 .1rem; min-width: 8.5rem; }
.receipt b { font-size: .8rem; } .receipt i { display: block; height: .35rem; border-radius: 4px; background: rgba(35, 53, 46, .16); } .receipt i:nth-child(3) { width: 60%; }
@keyframes msg-in { from { opacity: 0; transform: translateY(.6rem) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-.25rem); opacity: 1; } }

.notice { font-size: var(--step--1); opacity: .75; }
