:root {
  --wa-verde-oscuro: #075e54;
  --wa-verde: #25d366;
  --wa-fondo-chat: #e5ddd5;
  --wa-burbuja-entrante: #ffffff;
  --wa-burbuja-saliente: #dcf8c6;
  --color-text: #2b2320;
  --color-text-light: #667781;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --max-width: 640px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: #f5f2ee; }
h1, h2 { font-family: var(--font-heading); margin: 0 0 0.4em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.page-header { background: var(--wa-verde-oscuro); color: white; padding: 2rem 0 1.5rem; text-align: center; }
.page-header h1 { font-size: 1.4rem; }
.page-subtitle { color: rgba(255,255,255,0.85); font-size: 0.9rem; max-width: 46ch; margin: 0.5rem auto 0; }

main { padding: 1.5rem 0 3rem; }

.scenario-tabs { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.scenario-tab {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 999px;
  background: white;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--color-text-light);
}
.scenario-tab.active { background: var(--wa-verde-oscuro); color: white; }

.phone-frame {
  background: var(--wa-fondo-chat);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 8px solid #1a1a1a;
}
.phone-notch { display: none; }

.chat-header {
  background: var(--wa-verde-oscuro);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
}
.chat-avatar {
  width: 40px; height: 40px;
  background: var(--wa-verde);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.chat-name { font-weight: 600; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; color: rgba(255,255,255,0.75); }

.chat-body {
  min-height: 420px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bubble {
  max-width: 80%;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(6px);
  animation: bubbleIn 0.35s ease forwards;
}
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }

.bubble.in { align-self: flex-start; background: var(--wa-burbuja-entrante); border-top-left-radius: 2px; }
.bubble.out { align-self: flex-end; background: var(--wa-burbuja-saliente); border-top-right-radius: 2px; }
.bubble-time { display: block; text-align: right; font-size: 0.65rem; color: var(--color-text-light); margin-top: 0.2rem; }
.bubble-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wa-verde-oscuro);
  margin-bottom: 0.2rem;
}

.explainer {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.explainer h2 { color: var(--color-text); font-size: 1.05rem; }

.site-footer { background: var(--wa-verde-oscuro); color: white; padding: 1.2rem 0; text-align: center; font-size: 0.85rem; }
