/* =====================================================================
   hero.css — Docokids hero.

   Two parts:
     1. Hero text helpers: accent headline word, dual CTA row, stats line.
     2. The pure-CSS WhatsApp phone mockup (no image) shown beside the copy.

   Brand values come from var(--token). The phone reproduces WhatsApp's own
   chrome, so a handful of WhatsApp-specific colors are kept as documented
   COMPONENT CONSTANTS (they are not Docokids brand values and never reused
   elsewhere): #075e54 header green, #dcf8c6 outgoing bubble, #efeae2 chat
   wallpaper, #f0f2f5 input bar, #4fc3f7 read-check blue, #999 muted, #fff.
   ===================================================================== */

/* ---- Hero text helpers ---- */
.hero-accent { color: var(--p-rosado); }
.hero-stats {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--gris-secundario);
  letter-spacing: 0.02em;
}
.hero-stat-number {
  font-weight: 700;
  color: var(--p-verde);
  font-style: normal;
}
.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}


/* ---- WhatsApp phone mockup ---- */
.hero-phone {
  width: 320px;
  max-width: 100%;
  height: 640px;
  background: #1a1a1a; /* device bezel — matches --gris-oscuro */
  border-radius: 44px;
  padding: 12px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.hero-phone__screen {
  width: 100%;
  height: 100%;
  background: #efeae2; /* WhatsApp chat wallpaper */
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-phone__header {
  background: #075e54; /* WhatsApp header green */
  height: 56px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  flex-shrink: 0;
}
.hero-phone__back { font-size: 24px; line-height: 1; }
.hero-phone__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--p-verde);
  object-fit: cover; /* es una <img> (foto real de la doctora); el bg es fallback mientras carga */
  flex-shrink: 0;
}
.hero-phone__id {
  display: flex; flex-direction: column; flex: 1; min-width: 0;
  font-family: var(--font-sans);
}
.hero-phone__name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.hero-phone__status { font-weight: 400; font-size: 0.7rem; opacity: 0.75; line-height: 1.2; }
.hero-phone__menu { font-size: 18px; }
.hero-phone__chat {
  flex: 1; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  justify-content: flex-end; overflow: hidden;
}
.hero-phone__bubble {
  font-family: var(--font-sans);
  font-size: 0.875rem; line-height: 1.4;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  max-width: 85%;
  color: var(--gris-oscuro);
}
.hero-phone__bubble--in {
  background-color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.hero-phone__bubble--out {
  background-color: #dcf8c6; /* WhatsApp outgoing bubble */
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.hero-phone__time { display: block; font-size: 0.65rem; color: #999; margin-top: 2px; }
.hero-phone__time--out { text-align: right; }
.hero-phone__check { color: #4fc3f7; margin-left: 2px; } /* WhatsApp read-check blue */
.hero-phone__input {
  background: #f0f2f5; height: 48px; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.hero-phone__input-pill {
  flex: 1; background: #fff; border-radius: 22px;
  padding: 7px 14px;
  font-family: var(--font-sans); font-size: 0.8rem; color: #999;
}
.hero-phone__send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--p-verde); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
@media (max-width: 991.98px) {
  .hero-phone { width: 280px; height: 560px; }
}

/* On phones the full WhatsApp mockup costs ~600–800px of scroll between the
   hero and the proof. Instead of hiding it (which reads as suspicious), show
   a COMPACT version: only the first 2 chat bubbles, with the phone auto-sized
   so there's no empty gap below them. The mockup still sells the experience
   while keeping the proof close to the fold. Same 767.98px mobile breakpoint
   the sections use. */
@media (max-width: 767.98px) {
  .hero-phone {
    width: 280px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  /* Show only the first 2 bubbles; hide the rest. Applies to both the
     dynamic {% for %} loop and the static 4-bubble fallback, since every
     .hero-phone__bubble is a direct child of .hero-phone__chat. */
  .hero-phone__bubble:nth-of-type(n+3) { display: none; }
}
