/* ============================================================
   07-footer.css · CTA final, Footer, WhatsApp, Agente IA
   ============================================================ */

/* ── CTA FINAL (Apple-impact, generoso) ── */
.cta-final {
  background: var(--color-dominant);
  border-top: 1px solid var(--color-line);
  padding: var(--space-2xl) 0;
}

.cta-final__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  margin-bottom: var(--space-xl);
  max-width: 22ch;
}

.cta-final__accent {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 300;
}

.cta-final__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.cta-final__copy p {
  font-size: 1.2rem;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-sm);
  max-width: 38ch;
  line-height: 1.5;
}

.cta-final__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.cta-final__loc {
  margin-top: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

@media (max-width: 900px) {
  .cta-final__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ── FOOTER ── */
.footer {
  background: var(--vp-negro);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__logo {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__tagline {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.65);
}

.footer__manifesto {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--vp-lavanda);
  letter-spacing: -0.015em;
}

.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vp-lavanda);
  margin-bottom: var(--space-sm);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer__col a {
  color: inherit;
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--color-dominant); }

.footer__legal {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--container-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer__legal p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__legal strong {
  color: var(--vp-lavanda);
  font-weight: 600;
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  z-index: 90;
  animation: waPulse 6s var(--ease) infinite;
  transition: transform var(--t-fast);
}
.whatsapp-float:hover {
  transform: scale(1.08);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3); }
  50%      { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ── AGENTE IA ── */
.ai-toggle {
  position: fixed;
  bottom: 24px;
  right: 96px;
  padding: 12px 18px;
  background: var(--vp-azul-profundo);
  color: var(--color-dominant);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 89;
  transition: all var(--t-fast);
}
.ai-toggle:hover {
  background: var(--vp-azul-ejecutivo);
  transform: translateY(-2px);
}

.ai-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  max-height: 70vh;
  background: var(--color-dominant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-line);
  display: none;
  flex-direction: column;
  z-index: 95;
  overflow: hidden;
}
.ai-panel.is-open { display: flex; }

.ai-panel__head {
  padding: var(--space-sm);
  background: var(--vp-azul-profundo);
  color: var(--color-dominant);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-panel__head h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dominant);
  margin-bottom: 2px;
}
.ai-panel__head p {
  font-size: 11px;
  color: var(--vp-lavanda);
  margin: 0;
}
.ai-panel__close {
  color: var(--color-dominant);
  font-size: 24px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background var(--t-fast);
}
.ai-panel__close:hover { background: rgba(255,255,255,0.15); }

.ai-panel__messages {
  flex: 1;
  padding: var(--space-sm);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-msg {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.45;
  max-width: 85%;
}
.ai-msg--bot {
  background: var(--vp-gris-claro);
  color: var(--color-ink);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.ai-msg--user {
  background: var(--vp-azul-profundo);
  color: var(--color-dominant);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.ai-msg--typing { display: flex; gap: 4px; align-items: center; }
.ai-msg--typing span {
  width: 6px; height: 6px;
  background: var(--color-ink-soft);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.ai-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.ai-panel__form {
  padding: var(--space-sm);
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--color-line);
}
.ai-panel__form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
}
.ai-panel__form input:focus { border-color: var(--color-accent); }
.ai-panel__form button {
  width: 40px;
  background: var(--color-accent);
  color: var(--color-dominant);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  transition: background var(--t-fast);
}
.ai-panel__form button:hover { background: var(--color-accent-2); }

.ai-panel__disclaimer {
  padding: 0 var(--space-sm) var(--space-sm);
  font-size: 10px;
  color: var(--color-ink-soft);
  text-align: center;
}

@media (max-width: 500px) {
  .ai-toggle { bottom: 96px; right: 24px; padding: 10px 14px; }
  .ai-toggle span { display: none; }
  .ai-panel { bottom: 168px; right: 12px; width: calc(100vw - 24px); }
}

/* ── Utility: accent text ── */
.t-accent {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 300;
}

/* ── section__lead (sub-headline bajo title) ── */
.section__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--color-ink-soft);
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-md);
  max-width: 56ch;
  font-weight: 400;
  line-height: 1.4;
}
