:root {
  /* Paleta MARCA fisioterapiatualcance.com — azul cielo brand */
  --brand-blue: #0EA5E9;
  --brand-blue-dark: #0284C7;
  --brand-blue-soft: #E0F2FE;
  --brand-cyan: #00C9D9;
  --brand-gradient: linear-gradient(135deg, #00C9D9 0%, #0EA5E9 55%, #1560FF 100%);

  /* Neutros */
  --ink: #303133;         /* casi negro, h1 real de Marcos */
  --ink-soft: #4B5058;
  --muted: #6B7280;
  --line: #E5E7EB;
  --ground: #FFFFFF;
  --ground-2: #F5F7FA;
  --surface: #FFFFFF;
  --black: #000000;       /* botones estilo ANDROID */

  /* Chat bubbles */
  --patient-bubble: #F1F3F6;
  --marcos-bubble: #E7F0FA;

  /* Semántico */
  --success: #16A34A;
  --danger:  #DC2626;
  --warning: #F59E0B;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 30px -12px rgba(0,0,0,.18);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.35);

  /* Type system */
  --sans: "Poppins", -apple-system, "Segoe UI Variable Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Segoe UI Mono", "Cascadia Mono", monospace;

  /* Legacy vars aliased para no romper referencias existentes */
  --accent: var(--brand-blue);
  --accent-ink: var(--brand-blue-dark);
  --accent-soft: var(--brand-blue-soft);
  --salmon: var(--brand-blue);
  --salmon-deep: var(--brand-blue-dark);
  --serif: var(--sans);
}

* { box-sizing: border-box; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.phone {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  background: var(--ground);
  position: relative;
}

.phone-screen {
  background: var(--ground);
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.scene {
  display: none;
  flex-direction: column;
  height: 100%;
  animation: fade .4s ease;
}
.scene.on { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

/* ENTRADA */
[data-scene="entrada"] { padding: 32px 24px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.brand {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink);
}

/* Foto de Marcos arriba del eyebrow */
.hero-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #00C9D9 0%, #1560FF 60%, #8B5CF6 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px -6px rgba(21, 96, 255, .38);
  border: 3px solid #fff;
  margin-bottom: 14px;
}
.hero-photo img,
.hero-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.hero-photo-letter {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 32px;
  color: #fff;
  line-height: 1;
}

.hero-head {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(28px, 8.5vw, 40px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 20px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero-head em { font-style: normal; color: var(--brand-blue); }

.hero-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  max-width: 30ch;
}

.input-wrap {
  margin: 20px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-input {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  resize: none;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.hero-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-input::placeholder { color: var(--muted); font-style: italic; }
.input-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-left: 4px;
}

.hero-cta {
  background: linear-gradient(90deg, #00C9D9 0%, #1560FF 55%, #8B5CF6 100%);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--sans);
  box-shadow: 0 8px 24px -10px rgba(21, 96, 255, 0.55);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.hero-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(21, 96, 255, 0.75);
  filter: brightness(1.06);
}
.hero-cta:disabled { opacity: .5; cursor: wait; }
.hero-arrow { font-family: var(--sans); font-weight: 700; font-size: 18px; }

.hero-meta-row {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}
.hero-meta-row strong { color: var(--brand-blue); font-weight: 600; }

/* CONSULTA */
[data-scene="consulta"] { padding: 0; }

.chat-header {
  padding: 16px 20px 12px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.chat-phase {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat-phase strong { color: var(--ink); font-weight: 500; }
.call-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--salmon-deep);
  background: var(--patient-bubble);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.rec-dot {
  width: 5px;
  height: 5px;
  background: var(--salmon-deep);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--brand-gradient);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.video-frame video.call-video,
.video-frame img.call-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Degradado inferior para que nombre y rol se lean sobre cualquier fondo */
.video-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(8, 14, 28, .62), transparent);
  pointer-events: none;
  z-index: 1;
}
.avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-blue);
  font-family: var(--sans);
  font-weight: 900;
  font-size: 32px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.video-timer {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  background: rgba(16,24,40,.7);
  color: #F1EDE4;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-label {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 14px;
  color: #F1EDE4;
}
.video-label .name { font-weight: 600; font-size: 15px; }
.video-label .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .8;
}

.chat-body {
  padding: 18px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.4;
  animation: bubble-in .35s ease;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
.bubble.marcos {
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
}
.bubble.you {
  background: var(--patient-bubble);
  color: var(--ink);
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
}
.typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--accent-soft);
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
}
.typing span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.options {
  padding: 14px 18px 22px;
  border-top: 1px solid var(--line);
  background: var(--ground);
}
.options-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
}
.options-head strong { color: var(--ink); font-weight: 500; }
.response-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.response-input {
  flex: 1;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.response-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.response-input::placeholder { color: var(--muted); font-style: italic; font-size: 13px; }
.response-send {
  background: var(--ink);
  color: var(--ground);
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-family: var(--serif);
  font-size: 22px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.response-send:hover { background: var(--accent); }
.response-send:active { transform: scale(.96); }

/* Safety check final — red flags */
.safety-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.safety-item:hover { background: var(--patient-bubble); }
.safety-item input[type="checkbox"] {
  accent-color: var(--salmon-deep);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  width: 15px;
  height: 15px;
}
.safety-item:has(input:checked) {
  background: #FBE9E4;
  border-color: var(--salmon-deep);
}
.safety-continue {
  display: block;
  width: 100%;
  padding: 14px;
  background: #4A7B5C;
  color: #F1EDE4;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.safety-continue:hover { transform: translateY(-1px); background: #3D6A4E; }
.safety-continue.with-flags {
  background: var(--salmon-deep);
}
.safety-continue.with-flags:hover { background: #A55843; }

/* Posts / vídeos recomendados en el informe */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.post-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.post-thumb.yt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35));
}
.post-thumb .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 22px;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.post-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 3px;
  color: var(--ink);
}
.post-excerpt {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--salmon-deep);
  letter-spacing: 0.04em;
}

/* Gate de email en búsqueda */
.gate-card {
  margin: 20px 0 24px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.gate-eye {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--salmon-deep);
  margin-bottom: 6px;
}
.gate-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 16px;
}
.gate-body strong { font-weight: 600; }
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.gate-input {
  flex: 1;
  padding: 12px 14px;
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.gate-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.gate-send {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--sans);
  width: 100%;
}
.gate-send:hover:not(:disabled) { background: var(--brand-blue); }
.gate-send:disabled { opacity: .55; cursor: default; }
.gate-input:disabled { opacity: .55; }

/* Checkbox de política de privacidad */
.gate-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 8px 4px;
  cursor: pointer;
  user-select: none;
}
.gate-privacy input[type="checkbox"] {
  accent-color: var(--brand-blue);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.gate-privacy span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.gate-privacy a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gate-privacy a:hover { color: var(--brand-blue-dark); }

/* Fallback cuando no hay material relevante */
.report-eyebrow.no-material::before { background: var(--warning); }
.no-material-card {
  margin: 24px 0 6px;
  padding: 22px 20px;
  background: #FFF7E6;
  border: 1px solid #FCD9A8;
  border-radius: 14px;
}
.no-material-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
}
.no-material-body:last-of-type { margin-bottom: 18px; }
.no-material-body strong { font-weight: 600; }

.no-material-inline {
  padding: 16px 18px;
  background: #FFF7E6;
  border-left: 3px solid #F59E0B;
  border-radius: 4px 10px 10px 4px;
  margin-bottom: 20px;
}
.no-material-inline p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.no-material-inline strong { font-weight: 600; }

.btn-brand {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  width: 100%;
  transition: background .2s, transform .2s;
}
.btn-brand:hover { background: var(--brand-blue-dark); transform: translateY(-1px); }

/* Disclaimer legal + IA en las salidas finales */
.disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0 6px;
  padding: 12px 14px;
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.disclaimer-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.disclaimer p {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.disclaimer strong {
  color: var(--ink);
  font-weight: 600;
}
.gate-hint {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  min-height: 16px;
  margin-bottom: 10px;
}
.gate-hint.err { color: var(--salmon-deep); }
.gate-hint.ok { color: #4A7B5C; }
.gate-skip {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--sans);
  transition: color .2s;
}
.gate-skip:hover { color: var(--ink); }

.email-ok {
  background: #E8F1EB;
  border-left: 3px solid #4A7B5C;
  padding: 10px 14px;
  border-radius: 4px 10px 10px 4px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Bloque Semana (14€) — estilo brand Marcos */
.semana-card {
  background: var(--brand-gradient);
  color: #fff;
  padding: 24px 22px;
  border-radius: 12px;
  margin: 20px 0 6px;
  position: relative;
  overflow: hidden;
}
.semana-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.15), transparent 60%);
  pointer-events: none;
}
.semana-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
  position: relative;
}
.semana-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  color: #fff;
  position: relative;
}
.semana-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  margin: 0;
  max-width: 34ch;
  position: relative;
}
.semana-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 18px;
  background: #000;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-decoration: none;
  position: relative;
}
.semana-cta:hover { background: #fff; color: var(--brand-blue); transform: translateY(-1px); }
.semana-price {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Email form al final del informe */
.email-form {
  margin: 16px 0 6px;
  padding: 16px 14px;
  background: var(--patient-bubble);
  border-radius: 10px;
}
.email-form-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.email-form-head p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 2px 0 0;
}
.email-form-head strong {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}
.email-icon {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--salmon-deep);
  font-family: var(--serif);
  font-size: 18px;
  flex-shrink: 0;
}
.email-form-row {
  display: flex;
  gap: 8px;
}
.email-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--sans);
  outline: none;
}
.email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.email-input::placeholder { color: var(--muted); }
.email-input:disabled { opacity: .6; }
.email-send {
  background: var(--ink);
  color: var(--ground);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--sans);
}
.email-send:hover:not(:disabled) { background: var(--accent); }
.email-send:disabled { opacity: .5; cursor: default; }
.email-legal {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* INFORME */
[data-scene="informe"] { padding: 44px 22px 22px; overflow-y: auto; }

.report-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #4A7B5C;
  border-radius: 50%;
}
.report-eyebrow.red::before { background: var(--salmon-deep); }

.report-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
  text-wrap: balance;
}
.report-title em { font-style: italic; color: var(--salmon-deep); }

.report-lede {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}
.report-lede strong { color: var(--ink); font-weight: 600; }

/* Card gris "Esto fue lo que me contaste" — espejo del email */
.resumen-card {
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: var(--ground-2);
  border-radius: 8px;
}
.resumen-eye {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.resumen-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}
.respuesta-eye {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.calma-card {
  margin: 18px 0 6px;
  padding: 18px 16px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 4px 10px 10px 4px;
}
.calma-eye {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.calma-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.acciones {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.acciones li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
}
.acciones li .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--salmon-deep);
}

.red-flag-box {
  margin: 20px 0;
  padding: 18px 16px;
  background: #FBE9E4;
  border-left: 3px solid var(--salmon-deep);
  border-radius: 4px 10px 10px 4px;
}
.red-flag-box strong { color: var(--salmon-deep); }

.btn-reset {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: var(--ground-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
}
.btn-reset:hover { background: var(--patient-bubble); }

/* DEV PANEL — oculto en producción (solo se usaba para depurar) */
.dev-panel {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 380px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--ink);
  color: #F1EDE4;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.dev-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--salmon);
  letter-spacing: 0.1em;
}
.dev-panel .log-line { opacity: .8; }
.dev-panel .log-line.err { color: var(--salmon); opacity: 1; }

/* Campos de texto a 16px: evita que el móvil (iOS/Android) haga zoom al enfocarlos */
.hero-input,
.response-input,
.gate-input,
.email-input { font-size: 16px; }
