/* ==========================================================
   Azulito — Screens (landing, auth, app, chat, admin)
   ========================================================== */

/* ---------- LANDING: HERO ---------- */
.landing { overflow-x: clip; }

.hero {
  position: relative;
  padding: 40px 24px 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -10%; width: 100%; height: 60%; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.hero__blob--a { width: 500px; height: 500px; background: var(--azulito-bright); top: -100px; left: -100px; }
.hero__blob--b { width: 420px; height: 420px; background: var(--coral-soft); bottom: -80px; right: -60px; opacity: .35; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 40px 0;
}
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 20px 0; } }

.hero__eyebrow { font-size: 13px; color: var(--olimar); margin-bottom: 24px; display: inline-flex; align-items: center; }
.hero__title { font-size: clamp(44px, 6.5vw, 84px); letter-spacing: -0.03em; margin: 0 0 24px; color: var(--ink); }
.hero__title-em { font-style: italic; color: var(--azulito-deep); font-weight: 400; }
.hero__lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-muted); max-width: 560px; margin: 0 0 32px; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__trust { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-subtle); }

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero__mascot-ring {
  position: relative;
  width: 360px;
  height: 360px;
  display: grid;
  place-items: center;
}
.hero__mascot {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(41, 184, 232, 0.35));
  position: relative;
  z-index: 2;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
.hero__ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--azulito);
  opacity: 0;
  animation: ripple 4s ease-out infinite;
}
.hero__ripple--1 { width: 100%; height: 100%; }
.hero__ripple--2 { width: 100%; height: 100%; animation-delay: 1.3s; }
.hero__ripple--3 { width: 100%; height: 100%; animation-delay: 2.6s; }
@keyframes ripple {
  0%   { transform: scale(.6); opacity: .6; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hero__bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-md);
  animation: bobble 5s ease-in-out infinite;
}
.hero__bubble--1 { top: 10%; left: -6%; animation-delay: 0s; }
.hero__bubble--2 { top: 50%; right: -8%; animation-delay: 1.6s; }
.hero__bubble--3 { bottom: 8%; left: 0%; animation-delay: 3s; }
.hero__bubble .icon { color: var(--coral-deep); }
.hero__bubble--2 .icon { color: var(--azulito-deep); }
.hero__bubble--3 .icon { color: #2D6F42; }
@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__stats {
  position: relative; z-index: 1;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 28px 40px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
}
.hero__stat { text-align: center; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--olimar); letter-spacing: -0.03em; font-weight: 500; }
.hero__stat span { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }
.hero__stat--div { width: 1px; height: 36px; background: var(--border); }
@media (max-width: 720px) { .hero__stat--div { display: none; } .hero__stats { flex-direction: column; padding: 20px; } }

/* ---------- LANDING: Quote / callout ---------- */
.quote {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--azulito);
  background: color-mix(in oklab, var(--azulito) 6%, transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  color: var(--olimar);
  font-style: italic;
}

.callout-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.callout-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, color-mix(in oklab, var(--azulito) 25%, transparent), transparent 60%);
  border-radius: 50%;
}
.callout-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; position: relative; }
.callout-card__title { font-size: 22px; color: var(--olimar); }
.callout-card__sub { font-size: 13px; color: var(--text-muted); }
.callout-card__body { color: var(--text-muted); line-height: 1.6; position: relative; }
.callout-card__drops { display: flex; gap: 8px; margin-top: 20px; position: relative; }
.callout-card__drops span {
  width: 14px; height: 16px;
  background: var(--azulito);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(0);
  opacity: .3;
}
.callout-card__drops span:nth-child(1) { opacity: 1; }
.callout-card__drops span:nth-child(2) { opacity: .8; }
.callout-card__drops span:nth-child(3) { opacity: .6; }

/* ---------- Audience cards ---------- */
.audience-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.audience-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.audience-card--azul  .audience-card__icon { background: color-mix(in oklab, var(--azulito) 18%, transparent); color: var(--azulito-deep); }
.audience-card--coral .audience-card__icon { background: color-mix(in oklab, var(--coral) 22%, transparent);   color: var(--coral-deep); }
.audience-card--sunny .audience-card__icon { background: color-mix(in oklab, var(--sunny) 30%, transparent);   color: #8A6A00; }
.audience-card--leaf  .audience-card__icon { background: color-mix(in oklab, var(--leaf) 22%, transparent);    color: #2D6F42; }
.audience-card__title { font-size: 18px; margin: 0 0 8px; color: var(--text); font-weight: 600; }
.audience-card__desc { font-size: 15px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ---------- Offer grid ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.offer-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  grid-column: span 2;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.offer-card--lg { grid-column: span 3; grid-row: span 2; background: linear-gradient(135deg, color-mix(in oklab, var(--azulito) 8%, var(--paper)), var(--paper)); }
@media (max-width: 980px) { .offer-card { grid-column: span 3; } .offer-card--lg { grid-column: span 6; grid-row: auto; } }
@media (max-width: 640px) { .offer-card { grid-column: span 6; } }

.offer-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--azulito) 18%, transparent);
  color: var(--olimar);
  margin-bottom: 14px;
}
.offer-card__icon--coral { background: color-mix(in oklab, var(--coral) 22%, transparent); color: var(--coral-deep); }
.offer-card__icon--sunny { background: color-mix(in oklab, var(--sunny) 30%, transparent); color: #8A6A00; }
.offer-card__icon--leaf  { background: color-mix(in oklab, var(--leaf) 22%, transparent);  color: #2D6F42; }
.offer-card h3 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.offer-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.offer-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  color: var(--olimar);
  font-weight: 600;
  font-size: 14px;
}
.offer-card__link:hover { color: var(--azulito-deep); }

.offer-card__demo { margin-top: 20px; }
.mini-chat { display: flex; flex-direction: column; gap: 6px; }
.mini-chat__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  max-width: 85%;
  line-height: 1.4;
}
.mini-chat__bubble--them { background: var(--bg-elev-2); color: var(--text); border-bottom-left-radius: 4px; display: inline-flex; align-items: center; gap: 8px; }
.mini-chat__bubble--me { background: var(--olimar); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

/* ---------- Steps (olimar section) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; position: relative; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  padding: 28px 24px;
  border-radius: var(--r-xl);
  color: white;
}
.step__num { font-size: 44px; color: var(--azulito-bright); letter-spacing: -0.03em; margin-bottom: 10px; font-weight: 500; }
.step__line { height: 2px; width: 40px; background: var(--azulito); margin-bottom: 14px; }
.step__title { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.step__desc { font-size: 14px; color: rgba(255,255,255,.7); margin: 0; line-height: 1.5; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.testimonial__mark {
  font-family: var(--font-display);
  font-size: 84px;
  line-height: .8;
  color: var(--azulito);
  opacity: .4;
  margin-bottom: 4px;
}
.testimonial__quote { font-size: 16px; color: var(--text); line-height: 1.55; margin: 0 0 24px; flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.testimonial__name { font-weight: 600; font-size: 14px; }
.testimonial__role { font-size: 12.5px; color: var(--text-subtle); }

/* ---------- Impulsors ---------- */
.impulsors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 840px) { .impulsors { grid-template-columns: 1fr; } }
.impulsor {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex; gap: 12px; align-items: flex-start;
}
.impulsor__badge {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--azulito) 18%, transparent);
  color: var(--olimar);
  display: grid; place-items: center; flex-shrink: 0;
}
.impulsor__title { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.impulsor__desc { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.impulsor-quote {
  margin-top: 60px;
  text-align: center;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--olimar);
  font-style: italic;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FAQ ---------- */
.faqs { display: flex; flex-direction: column; gap: 12px; }
.faq {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.faq.is-open { border-color: var(--azulito); box-shadow: var(--shadow-md); }
.faq__q {
  width: 100%;
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
}
.faq__plus {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--azulito) 15%, transparent);
  color: var(--olimar);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.faq__a { padding: 0 20px 20px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--azulito) 0%, var(--olimar) 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 40%);
}
.cta-band__inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-band__mascot { margin: 0 auto 20px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); }
.cta-band__title { font-size: clamp(32px, 4vw, 48px); margin: 0 0 14px; }
.cta-band__sub { font-size: 17px; color: rgba(255,255,255,.9); margin: 0 0 32px; line-height: 1.5; }
.cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--olimar-ink); color: rgba(255,255,255,.75); padding: 60px 24px 24px; }
.footer__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 780px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__word { color: white; font-size: 28px; }
.footer__tag { font-size: 13px; color: rgba(255,255,255,.55); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 540px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
.footer__cols h5 { color: white; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.footer__cols a, .footer__cols button, .footer__cols span {
  display: block; color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 8px; text-align: left;
}
.footer__cols a:hover, .footer__cols button:hover { color: var(--azulito-bright); }
.footer__bottom { max-width: 1200px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer__admin { color: rgba(255,255,255,.55); font-size: 12px; }

/* ---------- AUTH ---------- */
.auth { min-height: 100vh; background: var(--bg); }
.auth__stage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 980px) { .auth__stage { grid-template-columns: 1fr; } .auth__art { display: none !important; } }
.auth__art {
  background: linear-gradient(160deg, var(--olimar) 0%, var(--olimar-ink) 100%);
  color: white;
  padding: 40px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth__art::before {
  content: ""; position: absolute;
  top: -20%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--azulito) 0%, transparent 50%);
  opacity: .35;
  filter: blur(40px);
}
.auth__home {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-full);
  color: white;
  font-size: 13px;
  font-weight: 500;
  align-self: flex-start;
  position: relative; z-index: 1;
}
.auth__art-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; max-width: 440px; z-index: 1; }
.auth__mascot {
  margin-bottom: 28px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.25));
  animation: float 6s ease-in-out infinite;
}
.auth__art-title { font-size: 44px; margin: 0 0 16px; letter-spacing: -0.02em; }
.auth__art-sub { font-size: 17px; color: rgba(255,255,255,.8); line-height: 1.5; margin: 0 0 28px; }
.auth__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.auth__features li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); font-size: 15px; }
.auth__features .icon { color: var(--azulito-bright); background: rgba(41,184,232,.18); padding: 3px; border-radius: var(--r-full); box-sizing: content-box; }
.auth__art-foot { font-size: 12px; color: rgba(255,255,255,.45); position: relative; z-index: 1; }

.auth__panel { display: flex; flex-direction: column; padding: 24px; overflow-y: auto; }
.auth__panel-inner { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; }
.auth__head { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.auth__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; font-size: 22px; color: var(--olimar); }
.auth__title { font-size: clamp(28px, 3.5vw, 38px); margin: 0 0 8px; letter-spacing: -0.02em; }
.auth__subtitle { color: var(--text-muted); font-size: 16px; margin: 0 0 32px; line-height: 1.5; }

.auth__form { display: flex; flex-direction: column; }
.auth__form .btn { margin-top: 12px; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.auth__row .btn { flex: 1; margin: 0; }
.auth__link { color: var(--olimar); font-weight: 500; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.auth__divider { margin: 24px 0; display: flex; align-items: center; gap: 12px; color: var(--text-subtle); font-size: 13px; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth__swap { text-align: center; font-size: 14px; color: var(--text-muted); }
.auth__swap button { color: var(--olimar); font-weight: 600; }

.auth__demo { margin-top: 24px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.auth__demo summary { cursor: pointer; font-size: 13px; color: var(--text-subtle); font-weight: 500; }
.auth__demo-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.auth__demo-list button {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--border);
  background: var(--bg-elev-2);
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
}
.auth__demo-list button:hover { border-color: var(--azulito); color: var(--text); }

.auth__steps { display: flex; align-items: center; gap: 6px; margin-bottom: 28px; }
.auth__step {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--bg-elev-2);
  color: var(--text-subtle);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.auth__step.is-on { background: var(--olimar); color: white; }
.auth__steps-line { flex: 1; height: 3px; background: var(--bg-elev-2); border-radius: var(--r-full); overflow: hidden; }
.auth__steps-line > div { height: 100%; background: var(--olimar); transition: width var(--dur) var(--ease); }

.auth__kids-head h3 { font-size: 20px; margin: 0 0 4px; }
.auth__kids-head p { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.auth__kid {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
}
.auth__kid-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 12px; }
.auth__kid-head button { color: var(--cherry); }
.auth__kid-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 10px; }
.auth__kid-grid .field { margin-bottom: 0; }
@media (max-width: 640px) { .auth__kid-grid { grid-template-columns: 1fr; } }
.auth__addkid {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-full);
  border: 1px dashed var(--border); color: var(--olimar);
  font-size: 14px; font-weight: 500;
  align-self: flex-start;
  margin-bottom: 12px;
}

.auth__confirm { text-align: center; padding: 20px 0; }
.auth__confirm .azulito-mascot { margin: 0 auto 16px; animation: float 6s ease-in-out infinite; }
.auth__confirm h3 { font-size: 22px; margin: 0 0 10px; }
.auth__confirm p { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0 0 20px; }

.pwdmeter { display: flex; align-items: center; gap: 10px; margin: -8px 0 10px; }
.pwdmeter__bars { display: flex; gap: 4px; flex: 1; }
.pwdmeter__bar { height: 4px; flex: 1; background: var(--bg-elev-2); border-radius: var(--r-full); }
.pwdmeter__bar.is-1 { background: var(--cherry); }
.pwdmeter__bar.is-2 { background: var(--sunny); }
.pwdmeter__bar.is-3 { background: var(--leaf); }
.pwdmeter__bar.is-4 { background: var(--leaf); }
.pwdmeter__label { font-size: 12px; color: var(--text-subtle); font-weight: 500; }

.pwdrules { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pwdrules li { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-subtle); }
.pwdrules li .icon { color: var(--bg-elev-2); background: var(--bg-elev-2); border-radius: var(--r-full); padding: 2px; box-sizing: content-box; stroke: var(--text-subtle); }
.pwdrules li.is-on .icon { background: var(--leaf); stroke: white; }
.pwdrules li.is-on { color: var(--text); }

/* ---------- APP private shell ---------- */
.app-shell {
  min-height: 100vh;
  padding-left: 240px;
  padding-bottom: 0;
}
@media (max-width: 880px) { .app-shell { padding-left: 0; padding-bottom: 76px; } }
.admin-shell { min-height: 100vh; padding-left: 260px; background: var(--bg); }
@media (max-width: 880px) { .admin-shell { padding-left: 0; } .admin-side { display: none; } }

.appview { max-width: 1080px; margin: 0 auto; padding: 40px 32px 60px; }
@media (max-width: 640px) { .appview { padding: 24px 20px 40px; } }
.appview__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.appview__greet { color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }
.appview__title { font-size: clamp(28px, 3vw, 40px); margin: 0; letter-spacing: -0.02em; }
.appview__lede { color: var(--text-muted); font-size: 15px; margin-top: 6px; }
.appview__bell {
  position: relative;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--paper);
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
  color: var(--text);
}
.appview__bell-dot { position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); border: 2px solid var(--paper); }

/* home chat hero */
.home-chat {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--azulito) 14%, var(--paper)) 0%, var(--paper) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-align: left;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  margin-bottom: 28px;
}
.home-chat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.home-chat__mascot { filter: drop-shadow(0 12px 20px rgba(41,184,232,.3)); }
.home-chat__body .eyebrow { color: var(--azulito-deep); }
.home-chat__body h2 { font-size: 26px; margin: 6px 0 4px; color: var(--olimar); }
.home-chat__body p { font-size: 15px; color: var(--text-muted); margin: 0; }
.home-chat__arrow { color: var(--olimar); }

.home-week {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 28px;
}
.home-week__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.home-week__head h3 { font-size: 22px; margin: 6px 0 0; }
.home-week__more { color: var(--olimar); font-weight: 600; font-size: 14px; }
.home-week__list { display: flex; flex-direction: column; gap: 8px; }
.home-week__item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
}
.home-week__day { font-family: var(--font-display); font-weight: 600; color: var(--olimar); width: 36px; font-size: 14px; }
.home-week__check {
  width: 24px; height: 24px; border-radius: var(--r-full);
  background: var(--paper); border: 1.5px solid var(--border);
  display: grid; place-items: center; color: var(--text-subtle);
}
.home-week__item.is-done .home-week__check { background: var(--leaf); border-color: var(--leaf); color: white; }
.home-week__item.is-done .home-week__text { text-decoration: line-through; color: var(--text-subtle); }
.home-week__text { font-size: 15px; }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .home-grid { grid-template-columns: 1fr; } }
.home-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; }
.home-card--full { grid-column: 1 / -1; }
.home-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.home-card__head h3 { font-size: 20px; margin: 0; }
.home-card__head button { font-size: 14px; color: var(--olimar); font-weight: 600; }
.home-res { display: flex; flex-direction: column; gap: 10px; }

.res-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--bg-elev-2); }
.res-row__icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: color-mix(in oklab, var(--azulito) 16%, transparent); color: var(--olimar); display: grid; place-items: center; }
.res-row__title { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.res-row__meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-subtle); }
.res-row__action { width: 36px; height: 36px; border-radius: var(--r-full); background: var(--paper); border: 1.5px solid var(--border); display: grid; place-items: center; color: var(--olimar); }
.res-row__action:hover { background: var(--olimar); color: white; border-color: var(--olimar); }

.pro-mini { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 8px; }
.pro-mini__name { font-weight: 600; font-size: 15px; }
.pro-mini__role { color: var(--text-muted); font-size: 13px; margin: 2px 0; }
.pro-mini__city { color: var(--text-subtle); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }

.home-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .home-articles { grid-template-columns: 1fr; } }
.art-row { padding: 18px; background: var(--bg-elev-2); border-radius: var(--r-md); }
.art-row__cat { margin-bottom: 10px; }
.art-row__title { font-size: 16px; margin: 0 0 6px; line-height: 1.3; font-weight: 600; }
.art-row__excerpt { font-size: 13.5px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.5; }
.art-row__meta { font-size: 12.5px; color: var(--text-subtle); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Library ---------- */
.lib-toolbar { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.lib-search {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 10px 16px;
  color: var(--text-subtle);
}
.lib-search:focus-within { border-color: var(--azulito); }
.lib-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); }
.lib-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip {
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--paper);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--olimar); }
.chip.is-on { background: var(--olimar); color: white; border-color: var(--olimar); }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.res-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.res-card__cover { position: relative; height: 140px; background: linear-gradient(135deg, var(--azulito) 0%, var(--olimar) 100%); padding: 14px; }
.res-card__cover-grid { position: absolute; inset: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; opacity: .6; }
.res-card__cover-grid span { background: white; border-radius: 4px; }
.res-card__cover .badge { position: relative; z-index: 1; }
.res-card__pin { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); padding: 4px; border-radius: var(--r-full); color: white; }
.res-card__body { padding: 16px 18px; }
.res-card__type { font-size: 12px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 6px; }
.res-card__title { font-size: 15.5px; margin: 0 0 14px; line-height: 1.3; font-weight: 600; }
.res-card__foot { display: flex; justify-content: space-between; align-items: center; }
.res-card__foot > span { font-size: 12.5px; color: var(--text-subtle); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Professionals ---------- */
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pro-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px; display: flex; gap: 16px; }
.pro-card__body { flex: 1; }
.pro-card__name { font-size: 16px; margin: 0 0 2px; font-weight: 600; }
.pro-card__role { font-size: 13.5px; color: var(--text-muted); }
.pro-card__city { font-size: 12.5px; color: var(--text-subtle); display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.pro-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pro-card__actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; }
.profile-card > h2, .profile-card > h3 { margin: 12px 0 4px; font-size: 22px; }
.profile-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 2px; }
.profile-card > .btn { margin-top: 16px; }
.profile-kids { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.profile-kid { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--bg-elev-2); border-radius: var(--r-md); }
.profile-kid b { display: block; font-size: 14.5px; }
.profile-kid span { font-size: 12.5px; color: var(--text-subtle); }
.profile-list { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.profile-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.profile-list .icon { color: var(--azulito-deep); }

/* ---------- CHAT ---------- */
.chat { display: flex; flex-direction: column; height: 100vh; background: var(--bg); }
.chat--embed { height: 100%; border-radius: var(--r-xl); overflow: hidden; }
.chat__header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.chat__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--paper);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  flex-shrink: 0;
}
.chat__back:hover,
.chat__back:active { background: var(--bg-elev-2); color: var(--text); }
.chat__back-label { white-space: nowrap; }
@media (max-width: 420px) {
  .chat__back { padding: 8px 12px; }
  .chat__back-label { display: none; }
}
.chat__avatar { position: relative; }
.chat__head-body { flex: 1; }
.chat__head-name { font-weight: 600; font-size: 16px; }
.chat__head-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-subtle); }
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px color-mix(in oklab, var(--leaf) 30%, transparent); }
.chat__icon { width: 36px; height: 36px; border-radius: var(--r-full); color: var(--text-muted); display: grid; place-items: center; }
.chat__disclaim {
  padding: 8px 20px;
  background: color-mix(in oklab, var(--sunny) 15%, var(--bg));
  color: #8A6A00;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  border-bottom: 1px solid var(--border-soft);
}
html[data-theme="dark"] .chat__disclaim { color: #E8C665; background: color-mix(in oklab, var(--sunny) 8%, var(--bg)); }
.chat__stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: radial-gradient(circle at 10% 0%, color-mix(in oklab, var(--azulito) 6%, transparent), transparent 40%);
}
.chat__day { align-self: center; padding: 4px 12px; font-size: 11px; color: var(--text-subtle); background: var(--paper); border-radius: var(--r-full); margin-bottom: 8px; }

.msg { display: flex; gap: 8px; max-width: 75%; align-items: flex-end; }
.msg--them { align-self: flex-start; }
.msg--me { align-self: flex-end; flex-direction: row-reverse; }
.msg__avatar { width: 32px; height: 32px; flex-shrink: 0; }
.msg__bubble {
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}
.msg--me .msg__bubble { background: var(--olimar); color: white; border-radius: 18px 18px 4px 18px; }
.msg__bubble--rich { padding: 6px; background: transparent; box-shadow: none; }
.msg__bubble--typing { display: inline-flex; gap: 3px; padding: 14px; background: var(--paper); }
.msg__bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-subtle); animation: typing 1.2s ease-in-out infinite; }
.msg__bubble--typing span:nth-child(2) { animation-delay: .2s; }
.msg__bubble--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.msg-card, .msg-pro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 360px;
}
.msg-card__icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: color-mix(in oklab, var(--azulito) 18%, transparent); color: var(--olimar); display: grid; place-items: center; }
.msg-card__title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.msg-card__sub { font-size: 12px; color: var(--text-subtle); }
.msg-card__action { padding: 8px 12px; border-radius: var(--r-full); background: var(--olimar); color: white; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.msg-pro__name { font-weight: 600; font-size: 14px; }
.msg-pro__role { font-size: 12px; color: var(--text-subtle); }

.chat__suggestions { display: flex; gap: 8px; padding: 10px 20px; overflow-x: auto; border-top: 1px solid var(--border-soft); background: var(--paper); }
.chat__suggestions button {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  color: var(--olimar);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
}
.chat__suggestions button:hover { background: var(--olimar); color: white; border-color: var(--olimar); }

.chat__composer { display: flex; gap: 10px; padding: 12px 20px 16px; background: var(--paper); border-top: 1px solid var(--border); align-items: center; }
.chat__composer input { flex: 1; padding: 12px 16px; border-radius: var(--r-full); border: 1.5px solid var(--border); background: var(--bg); font-size: 15px; outline: none; }
.chat__composer input:focus { border-color: var(--azulito); }
.chat__send { width: 44px; height: 44px; border-radius: var(--r-full); background: var(--azulito); color: white; display: grid; place-items: center; box-shadow: var(--shadow-water); }
.chat__send:hover { background: var(--azulito-deep); }

/* Chat FAB (landing) */
.chat-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 68px; height: 68px;
  border-radius: var(--r-full);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  z-index: 60;
  transition: transform var(--dur) var(--ease);
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab.is-open { background: var(--olimar); color: white; }
.chat-fab__drop { animation: float 5s ease-in-out infinite; }
.chat-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  border: 2px solid var(--azulito);
  animation: ripple 2.2s ease-out infinite;
}
.chat-pop {
  position: fixed;
  bottom: 104px; right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 140px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  z-index: 59;
  overflow: hidden;
  animation: popIn .3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
@keyframes popIn { from { opacity: 0; transform: translateY(20px); } }

/* Mobile: chat fullscreen estilo app (Claude/GPT). Header+input sticky,
   scroll solo en el stream. Usamos 100dvh para que funcione bien con la
   barra dinámica del browser en iOS/Android. */
@media (max-width: 880px) {
  .chat-pop {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 100;
  }
  .chat-pop .chat--embed,
  .chat-pop .chat {
    height: 100dvh;
    border-radius: 0;
  }
  .chat__header { position: sticky; top: 0; z-index: 2; }
  .chat__composer { position: sticky; bottom: 0; z-index: 2; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- ADMIN ---------- */
.adminview { max-width: 1200px; margin: 0 auto; padding: 32px 32px 60px; }
@media (max-width: 640px) { .adminview { padding: 20px 16px 40px; } }
.adminview__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.adminview__greet { color: var(--text-muted); font-size: 13.5px; margin-bottom: 4px; }
.adminview__title { font-size: clamp(26px, 3vw, 34px); margin: 0; letter-spacing: -0.02em; }
.adminview__lede { font-size: 14px; color: var(--text-muted); margin-top: 6px; max-width: 640px; }
.adminview__head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
}
.kpi__icon {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center;
}
.kpi--azul  .kpi__icon { background: color-mix(in oklab, var(--azulito) 16%, transparent); color: var(--olimar); }
.kpi--coral .kpi__icon { background: color-mix(in oklab, var(--coral) 20%, transparent); color: var(--coral-deep); }
.kpi--sunny .kpi__icon { background: color-mix(in oklab, var(--sunny) 28%, transparent); color: #8A6A00; }
.kpi--leaf  .kpi__icon { background: color-mix(in oklab, var(--leaf) 20%, transparent); color: #2D6F42; }
.kpi__label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.kpi__value { font-size: 34px; line-height: 1; letter-spacing: -0.03em; font-weight: 500; color: var(--olimar); }
.kpi__delta { font-size: 12px; color: var(--leaf); margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
html[data-theme="dark"] .kpi__delta { color: #9FD7B0; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.admin-card--wide { grid-column: 1 / -1; }
.admin-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-card__head h3 { font-size: 18px; margin: 0; }
.admin-card__head button { font-size: 13px; color: var(--olimar); font-weight: 600; }
.admin-card__tabs { display: flex; gap: 4px; padding: 3px; background: var(--bg-elev-2); border-radius: var(--r-full); }
.admin-card__tabs button { padding: 4px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; color: var(--text-muted); }
.admin-card__tabs button.is-on { background: var(--paper); color: var(--olimar); box-shadow: var(--shadow-sm); }

.admin-chat-list { display: flex; flex-direction: column; }
.admin-chat-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); align-items: center; }
.admin-chat-row:last-child { border-bottom: 0; }
.admin-chat-row__from { font-size: 12.5px; color: var(--text-subtle); font-weight: 500; }
.admin-chat-row__q { font-size: 14px; color: var(--text); }
.admin-chat-row__t { font-size: 12px; color: var(--text-subtle); }
@media (max-width: 620px) { .admin-chat-row { grid-template-columns: 1fr; gap: 4px; } }

.admin-top { display: flex; flex-direction: column; gap: 10px; }
.admin-top-row { display: grid; grid-template-columns: 20px 1.2fr 1fr 50px; gap: 12px; align-items: center; }
.admin-top-row__rank { font-family: var(--font-display); font-size: 16px; color: var(--azulito-deep); font-weight: 600; }
.admin-top-row__title { font-size: 13.5px; font-weight: 500; }
.admin-top-row__bar { height: 6px; background: var(--bg-elev-2); border-radius: var(--r-full); overflow: hidden; }
.admin-top-row__bar > div { height: 100%; background: linear-gradient(90deg, var(--azulito), var(--olimar)); border-radius: var(--r-full); }
.admin-top-row__n { font-size: 12.5px; color: var(--text-muted); text-align: right; font-weight: 600; }

.chart { padding: 10px 0; }
.chart__svg { width: 100%; height: 120px; }
.chart__labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-subtle); padding: 8px 0 0; text-transform: uppercase; letter-spacing: 0.06em; }

.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.admin-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  white-space: nowrap;
  transform: translateY(1px);
}
.admin-tab.is-on { color: var(--olimar); border-bottom-color: var(--azulito); font-weight: 600; }
.admin-tab__count { font-size: 11px; background: var(--bg-elev-2); color: var(--text-subtle); padding: 2px 8px; border-radius: var(--r-full); font-weight: 600; }

.admin-toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }

.admin-table { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.admin-table__head, .admin-table__row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr 80px;
  gap: 14px;
  padding: 12px 20px;
  align-items: center;
}
.admin-table__head { background: var(--bg-elev-2); font-size: 12px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.admin-table__row { border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.admin-table__row:last-child { border-bottom: 0; }
.admin-table__row:hover { background: var(--bg-elev-2); }
.admin-table__title { display: flex; gap: 10px; align-items: center; }
.admin-table__title b { display: block; font-size: 14px; font-weight: 600; }
.admin-table__title span { display: block; font-size: 12px; color: var(--text-subtle); line-height: 1.3; }
.admin-table__thumb { width: 36px; height: 36px; border-radius: var(--r-sm); background: color-mix(in oklab, var(--azulito) 16%, transparent); color: var(--olimar); display: grid; place-items: center; flex-shrink: 0; }
.admin-table__actions { display: flex; gap: 4px; justify-content: flex-end; }
.admin-table__actions button { width: 28px; height: 28px; border-radius: var(--r-full); color: var(--text-subtle); display: grid; place-items: center; }
.admin-table__actions button:hover { background: var(--bg-elev-2); color: var(--olimar); }

@media (max-width: 900px) {
  .admin-table__head { display: none; }
  .admin-table__row { grid-template-columns: 1fr auto; gap: 8px; }
  .admin-table__row > *:nth-child(n+3):nth-child(-n+5) { display: none; }
}

.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 60px; align-items: center; gap: 14px; }
.bar-row__label { font-size: 13.5px; }
.bar-row__bar { height: 10px; background: var(--bg-elev-2); border-radius: var(--r-full); overflow: hidden; }
.bar-row__bar > div { height: 100%; background: linear-gradient(90deg, var(--azulito), var(--olimar)); border-radius: var(--r-full); transition: width var(--dur-slow) var(--ease); }
.bar-row__n { font-weight: 600; font-size: 14px; color: var(--olimar); text-align: right; }

.age-bars { display: flex; gap: 12px; align-items: flex-end; height: 180px; padding: 12px 0; }
.age-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.age-bar__bar { width: 100%; background: linear-gradient(to top, var(--azulito), var(--olimar)); border-radius: var(--r-sm) var(--r-sm) 0 0; min-height: 6px; }
.age-bar__n { font-weight: 600; font-size: 13px; color: var(--olimar); }
.age-bar__label { font-size: 11.5px; color: var(--text-subtle); font-weight: 500; }

.topics { display: flex; flex-direction: column; gap: 10px; }
.topic { display: grid; grid-template-columns: 1.4fr 1fr 40px; gap: 12px; align-items: center; font-size: 13px; }
.topic__bar { height: 6px; background: var(--bg-elev-2); border-radius: var(--r-full); overflow: hidden; }
.topic__bar > div { height: 100%; background: var(--coral); border-radius: var(--r-full); }
.topic b { text-align: right; color: var(--olimar); font-size: 13px; }

.ai-cfg { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 820px) { .ai-cfg { grid-template-columns: 1fr; } }
.ai-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.ai-row:last-child { border-bottom: 0; }
.ai-row > div:first-child b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.ai-row > div:first-child span { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.ai-key { font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-elev-2); padding: 6px 10px; border-radius: var(--r-sm); color: var(--text-muted); }
.ai-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.ai-checks .icon { color: white; background: var(--leaf); border-radius: var(--r-full); padding: 3px; box-sizing: content-box; }

.toggle { width: 44px; height: 26px; border-radius: var(--r-full); background: var(--bg-elev-2); position: relative; transition: background var(--dur) var(--ease); flex-shrink: 0; }
.toggle > span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease); }
.toggle.is-on { background: var(--leaf); }
.toggle.is-on > span { transform: translateX(18px); }

.chat-log { display: flex; flex-direction: column; gap: 12px; }
.chat-log-row { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
.chat-log-row.is-flag { border-left: 4px solid var(--coral); }
.chat-log-row__top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12.5px; color: var(--text-subtle); }
.chat-log-row__from { font-weight: 600; }
.chat-log-row__flag { margin-left: auto; background: color-mix(in oklab, var(--coral) 18%, transparent); color: var(--coral-deep); padding: 3px 10px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; }
.chat-log-row__q { font-size: 15px; line-height: 1.5; color: var(--text); margin: 0 0 12px; font-family: var(--font-display); font-style: italic; }
.chat-log-row__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================
   Reader (in-app, Kindle-style)
   ========================================================== */
.reader {
  --r-bg: var(--bg);
  --r-bg-elev: var(--bg-elev);
  --r-text: var(--text);
  --r-text-muted: var(--text-muted);
  --r-border: var(--border);
  --r-accent: var(--azulito);
  --r-font-size: 18px;
  --r-line-height: 1.75;
  --r-measure: 68ch;
  flex: 1;
  min-height: 100vh;
  background: var(--r-bg);
  color: var(--r-text);
  display: flex;
  flex-direction: column;
}
.reader--sm { --r-font-size: 16px; --r-line-height: 1.7; }
.reader--md { --r-font-size: 18px; --r-line-height: 1.75; }
.reader--lg { --r-font-size: 21px; --r-line-height: 1.8; }

.reader--theme-sepia {
  --r-bg: #F5EBD6;
  --r-bg-elev: #FBF4E3;
  --r-text: #3A2E1F;
  --r-text-muted: #7A6548;
  --r-border: rgba(122, 101, 72, .2);
}
.reader--theme-dark {
  --r-bg: #0A1F2B;
  --r-bg-elev: #0E2A38;
  --r-text: #EAF4F9;
  --r-text-muted: #A4BBC7;
  --r-border: rgba(234, 244, 249, .12);
}

.reader__chrome {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: color-mix(in oklab, var(--r-bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--r-border);
}
.reader__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--r-text-muted);
  padding: 8px 12px;
  border-radius: var(--r-full);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.reader__back:hover { background: color-mix(in oklab, var(--r-text) 8%, transparent); color: var(--r-text); }
.reader__back span { display: none; }
@media (min-width: 640px) { .reader__back span { display: inline; } }

.reader__progress {
  flex: 1;
  position: relative;
  height: 6px;
  background: color-mix(in oklab, var(--r-text) 8%, transparent);
  border-radius: var(--r-full);
  overflow: hidden;
}
.reader__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--azulito), var(--olimar));
  transition: width .2s ease;
}
.reader__progress-text {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--r-text-muted);
  letter-spacing: 0.06em;
}

.reader__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.reader__group {
  display: inline-flex;
  border: 1px solid var(--r-border);
  border-radius: var(--r-full);
  padding: 2px;
  background: color-mix(in oklab, var(--r-text) 3%, transparent);
}
.reader__ctrl {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--r-text-muted);
  border-radius: var(--r-full);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  min-width: 32px;
}
.reader__ctrl:hover { color: var(--r-text); }
.reader__ctrl.is-on {
  background: var(--r-text);
  color: var(--r-bg);
}
.reader__ctrl--icon {
  border: 1px solid var(--r-border);
  padding: 6px 10px;
  color: var(--r-text-muted);
}
.reader__ctrl--icon:hover { color: var(--r-text); background: color-mix(in oklab, var(--r-text) 8%, transparent); }

.reader__scroll {
  /* La ventana es el contenedor scrolleable; este wrapper solo provee padding. */
  padding-bottom: 64px;
}

.reader__article {
  max-width: var(--r-measure);
  margin: 48px auto 32px;
  padding: 0 24px 48px;
  font-family: var(--font-ui);
  font-size: var(--r-font-size);
  line-height: var(--r-line-height);
  color: var(--r-text);
}
.reader__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--r-text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.reader__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--r-text);
  margin: 0 0 20px;
  font-weight: 500;
}
.reader__lede {
  font-size: calc(var(--r-font-size) * 1.1);
  line-height: 1.55;
  color: var(--r-text-muted);
  font-weight: 400;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--r-border);
}

.reader__body { margin: 0; }
.reader__h2 {
  font-family: var(--font-display);
  font-size: calc(var(--r-font-size) * 1.4);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--r-text);
  margin: 40px 0 16px;
}
.reader__h3 {
  font-family: var(--font-display);
  font-size: calc(var(--r-font-size) * 1.15);
  line-height: 1.3;
  font-weight: 500;
  color: var(--r-text);
  margin: 28px 0 10px;
}
.reader__p {
  margin: 0 0 1.25em;
  color: var(--r-text);
}
.reader__p strong, .reader__quote strong { color: var(--r-text); font-weight: 600; }
.reader__p em, .reader__quote em { font-style: italic; }

.reader__ul, .reader__ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}
.reader__ul li, .reader__ol li {
  margin-bottom: 0.5em;
  padding-left: 0.2em;
}
.reader__ul { list-style-type: disc; }
.reader__ol { list-style-type: decimal; }

.reader__quote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--r-accent);
  background: color-mix(in oklab, var(--r-accent) 6%, transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: calc(var(--r-font-size) * 1.05);
  line-height: 1.5;
  color: var(--r-text);
}

.reader__hr {
  border: 0;
  height: 1px;
  background: var(--r-border);
  margin: 36px auto;
  max-width: 60%;
}

.reader__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--r-border);
}

.reader__note {
  margin-top: 32px;
  padding: 16px 20px;
  background: color-mix(in oklab, var(--r-accent) 8%, transparent);
  border-radius: var(--r-md);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--r-text-muted);
}

.reader__related {
  max-width: var(--r-measure);
  margin: 0 auto 64px;
  padding: 32px 24px 0;
  border-top: 1px solid var(--r-border);
}
.reader__related h3 {
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--r-text);
}
.reader__related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.reader__related-item {
  text-align: left;
  padding: 16px;
  background: var(--r-bg-elev);
  border: 1px solid var(--r-border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reader__related-item:hover {
  border-color: color-mix(in oklab, var(--r-accent) 40%, var(--r-border));
  transform: translateY(-1px);
}
.reader__related-title {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--r-text);
}
.reader__related-meta {
  font-size: 12.5px;
  color: var(--r-text-muted);
}

/* Continue reading card on AppHome */
.continue-reading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  margin: 0 0 20px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--azulito) 10%, var(--bg-elev)), var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--azulito) 20%, var(--border));
  border-radius: var(--r-lg);
  text-align: left;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.continue-reading:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.continue-reading__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--azulito), var(--olimar));
  color: white;
  display: grid;
  place-items: center;
}
.continue-reading__body { min-width: 0; }
.continue-reading__title {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  margin: 2px 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.continue-reading__bar {
  height: 4px;
  background: color-mix(in oklab, var(--azulito) 15%, transparent);
  border-radius: var(--r-full);
  overflow: hidden;
  margin: 6px 0 4px;
}
.continue-reading__bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--azulito), var(--olimar));
  border-radius: var(--r-full);
}
.continue-reading__meta {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Print: hide chrome and related, show article cleanly */
body.is-printing-reader .priv-side,
body.is-printing-reader .priv-bbar,
body.is-printing-reader .reader__chrome,
body.is-printing-reader .reader__related,
body.is-printing-reader .fab-cmd,
body.is-printing-reader .fab-bell,
body.is-printing-reader .toast {
  display: none !important;
}
body.is-printing-reader .reader__scroll { height: auto !important; }
body.is-printing-reader .reader__article {
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 13pt;
  color: black;
}
@media print {
  .priv-side, .priv-bbar, .reader__chrome, .reader__related,
  .fab-cmd, .fab-bell, .toast { display: none !important; }
  .reader__article { max-width: none; margin: 0; padding: 0; color: black; font-size: 12pt; }
  .reader__body { break-inside: auto; }
  .reader__h2, .reader__h3 { break-after: avoid; }
  .reader__quote { break-inside: avoid; }
}

/* ==========================================================
   Privacy policy page
   ========================================================== */
.privacy-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
.privacy-page__nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.privacy-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--r-full);
}
.privacy-page__back:hover { background: color-mix(in oklab, var(--text) 8%, transparent); color: var(--text); }
.privacy-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--text);
}
.privacy-page__article {
  max-width: 68ch;
  margin: 48px auto 96px;
  padding: 0 24px;
  font-size: 17px;
  line-height: 1.7;
}
.privacy-page__title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 20px;
  font-weight: 500;
}
.privacy-page__lede {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.privacy-page__meta {
  font-size: 13px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.privacy-page__h2 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.privacy-page__article p { margin: 0 0 1.1em; }
.privacy-page__article ul { margin: 0 0 1.4em; padding-left: 1.4em; list-style: disc; }
.privacy-page__article li { margin-bottom: 0.5em; padding-left: 0.2em; }
.privacy-page__article strong { font-weight: 600; color: var(--text); }
.privacy-page__article a {
  color: var(--azulito);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-page__article a:hover { color: var(--olimar); }
.privacy-page__footer {
  margin-top: 48px;
  padding: 28px;
  background: color-mix(in oklab, var(--azulito) 6%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--azulito) 18%, var(--border));
  border-radius: var(--r-lg);
}
.privacy-page__footer p { margin: 0 0 20px; color: var(--text-muted); }
.privacy-page__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================
   Covers (real images for library cards + reader)
   ========================================================== */
.res-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in oklab, var(--azulito) 12%, var(--bg-elev)), var(--bg-elev));
}
.res-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}
.res-card:hover .res-card__img {
  transform: scale(1.04);
}
/* El Badge y el pin siguen arriba de la imagen */
.res-card__cover > .badge,
.res-card__cover .res-card__pin {
  position: relative;
  z-index: 2;
}
.res-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Reader hero image */
.reader__hero {
  max-width: 100%;
  overflow: hidden;
  background: var(--r-bg-elev);
}
.reader__hero img {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
@media (max-width: 720px) {
  .reader__hero img { aspect-ratio: 16 / 10; }
}

/* Chat cards clickeables — hover + cursor */
.msg-card--clickable,
.msg-pro--clickable {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.msg-card--clickable:hover,
.msg-pro--clickable:hover {
  background: color-mix(in oklab, var(--azulito) 6%, transparent);
  transform: translateY(-1px);
}
.msg-card--clickable .msg-card__action,
.msg-pro--clickable .msg-pro__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--azulito);
  color: white;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================
   Mobile: landing bottom bar (app-like) + hide FAB chat + hide install
   ========================================================== */
.lnav-bbar { display: none; }

@media (max-width: 880px) {
  /* Bottom bar de la landing en mobile */
  .lnav-bbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 55;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--paper);
    border-top: 1px solid var(--border);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -8px rgba(11, 79, 108, 0.12);
  }
  .lnav-bbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-subtle);
    background: transparent;
    border: 0;
    text-decoration: none;
  }
  .lnav-bbar__item .icon { color: var(--text-muted); }
  .lnav-bbar__item:hover .icon,
  .lnav-bbar__item:active .icon { color: var(--azulito-deep); }
  .lnav-bbar__fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azulito), var(--olimar));
    color: white;
    display: grid;
    place-items: center;
    border: 0;
    box-shadow: 0 10px 28px -6px rgba(41, 184, 232, 0.45);
    margin-top: -28px;
    transition: transform 160ms var(--ease);
  }
  .lnav-bbar__fab:active { transform: scale(0.95); }

  /* Espacio al final del landing para que el bottom bar no tape el footer */
  .landing { padding-bottom: 100px; }

  /* En mobile el FAB flotante del chat es redundante (ya hay botón central) */
  .chat-fab { display: none !important; }

  /* Install prompt oculto en mobile — el chat ocupa ese espacio */
  .install { display: none !important; }

  /* Private bottom bar: destacar chat como FAB central */
  .priv-bbar__fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azulito), var(--olimar));
    color: white;
    display: grid;
    place-items: center;
    border: 0;
    box-shadow: 0 10px 28px -6px rgba(41, 184, 232, 0.45);
    margin-top: -28px;
    transition: transform 160ms var(--ease);
  }
  .priv-bbar__fab:active { transform: scale(0.95); }
  .priv-bbar__fab.is-active { background: linear-gradient(135deg, var(--olimar), var(--olimar-ink)); }
}

/* ==========================================================
   Auth — header mobile (botón volver al home + logo)
   ========================================================== */
.auth__mobile-nav { display: none; }
@media (max-width: 980px) {
  .auth__mobile-nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: color-mix(in oklab, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
  }
  .auth__mobile-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--r-full);
    background: transparent;
    border: 1px solid var(--border);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .auth__mobile-back:hover,
  .auth__mobile-back:active {
    background: var(--bg-elev-2);
    color: var(--text);
  }
  .auth__mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 18px;
    padding: 4px 8px;
  }
  /* Panel de auth no tiene padding-top extra porque el mobile-nav ya da aire */
  .auth__panel-inner { padding-top: 16px; }
}
