:root {
  /* Paleta sobria: chat nocturno, activación contenida y salida cálida. */
  --bg: #05070c;
  --panel: #10151b;
  --panel-soft: rgba(16, 21, 27, 0.82);
  --text: #f5f7f8;
  --muted: #9ba6aa;
  --line: rgba(255, 255, 255, 0.12);
  --chat-green: #133b35;
  --chat-own: #113f34;
  --chat-other: #151b20;
  --accent: #c7f1df;
  --alarm: #681d26;
  --warm: #d8b26e;
  --radius: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: radial-gradient(circle at 50% 20%, #18202a 0, var(--bg) 42%, #020305 100%);
  color: var(--text);
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
}

.app-shell,
.experience,
.entry-screen {
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
}

.entry-screen {
  /* Pantalla inicial breve: no funciona como landing, solo como umbral. */
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.entry-noise,
.entry-noise::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.entry-noise {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(circle at 50% 70%, rgba(55, 90, 90, 0.18), transparent 45%);
  opacity: 0.58;
}

.entry-noise::after {
  background: linear-gradient(180deg, transparent 0 48%, rgba(255,255,255,0.035) 50%, transparent 52%);
  background-size: 100% 6px;
  opacity: 0.45;
}

.entry-content {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  text-align: left;
}

.reto-banner {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 0 0 18px;
  object-fit: contain;
}

.overline {
  margin: 0 0 4px;
  color: #f0b800;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(240, 184, 0, 0.26);
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 11vw, 54px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 28px 0 0;
  font-size: clamp(22px, 7vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
}

.entry-copy {
  max-width: 34ch;
  margin: 22px 0 0;
  color: #cbd4d7;
  font-size: 16px;
  line-height: 1.45;
}

.primary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 28px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0, rgba(255, 247, 202, 0.72), transparent 38%),
    linear-gradient(180deg, #ffd92f 0%, #f0b800 48%, #d99200 100%);
  color: #171006;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 38px rgba(116, 76, 0, 0.42), 0 0 0 1px rgba(255, 226, 96, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  filter: brightness(1.06) saturate(1.08);
  box-shadow: 0 20px 48px rgba(142, 88, 0, 0.52), 0 0 0 1px rgba(255, 235, 122, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.primary-button:active {
  transform: translateY(1px) scale(0.99);
}

.secondary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 1.5px solid rgba(240, 184, 0, 0.92);
  border-radius: var(--radius);
  background: rgba(6, 9, 10, 0.26);
  color: #ffe08a;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 217, 47, 0.08);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(240, 184, 0, 0.08);
  border-color: #ffd84d;
  color: #fff4c5;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, 0.2), 0 14px 34px rgba(0, 0, 0, 0.34);
}

.secondary-button:active {
  transform: translateY(1px) scale(0.99);
}

.entry-note {
  margin: 16px 0 0;
  color: #a8b4b8;
  font-size: 12px;
  line-height: 1.4;
}

.entry-note.subtle {
  margin-top: 8px;
  color: #707e83;
}

.is-hidden {
  display: none !important;
}

.experience {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0, rgba(41, 57, 68, 0.58), transparent 42%),
    #030405;
}

.phone-frame {
  position: relative;
  width: min(100vw, calc(100dvh * 0.462));
  height: 100dvh;
  overflow: hidden;
  background: #060809;
  border-radius: 0;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.68);
}

.chat-screen {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 28px 62px 1fr 70px 38px;
  overflow: hidden;
  background: #071014;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1400ms ease, transform 1400ms ease, filter 800ms ease;
}

.chat-screen.is-visible {
  opacity: 1;
  transform: scale(1);
}

.wa-statusbar {
  position: relative;
  z-index: 5;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 2px 25px 0;
  background: #050b0e;
  color: #f2f4f5;
  font-size: 16px;
  font-weight: 650;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e8ecee;
  font-size: 14px;
}

.battery {
  min-width: 30px;
  height: 15px;
  padding: 0 4px;
  border: 2px solid #d7dddf;
  border-radius: 4px;
  color: #d7dddf;
  font-size: 10px;
  line-height: 11px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18d15f;
}

.chat-header {
  position: relative;
  z-index: 4;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 7px 13px 8px 7px;
  background: #050b0e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-back {
  width: 33px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #f1f5f5;
  font-size: 56px;
  font-weight: 260;
  line-height: 30px;
  cursor: default;
}

.avatar {
  position: relative;
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #f2a528;
  background: #7110b2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.avatar::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
  background: url("assets/foto perfil.jpg") center / cover no-repeat;
}

.contact-info {
  min-width: 0;
  flex: 1;
}

.contact-info strong {
  display: block;
  overflow: hidden;
  color: #f7fafb;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 420;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-info span {
  display: block;
  min-height: 18px;
  margin-top: 2px;
  overflow: hidden;
  color: #cbd2d4;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f1f5f5;
  font-size: 27px;
  font-weight: 800;
}

.header-actions img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: none;
}

.header-call {
  width: 29px;
  height: 29px;
}

.caret {
  margin-left: -8px;
  font-size: 19px;
}

.header-menu {
  width: 28px;
  height: 28px;
  margin-left: -8px;
}

.chat-backdrop {
  position: absolute;
  inset: 90px 0 108px;
  z-index: 0;
  background:
    linear-gradient(rgba(5, 15, 19, 0.18), rgba(5, 15, 19, 0.18)),
    url("assets/chat-bg.png") center / cover no-repeat,
    #071014;
  transition: filter 900ms ease, opacity 900ms ease;
}

.messages {
  position: relative;
  z-index: 2;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px 10px;
  overflow: hidden;
}

.date-chip,
.crypto-chip {
  align-self: center;
  width: fit-content;
  max-width: calc(100% - 58px);
  border-radius: 8px;
  background: rgba(24, 34, 39, 0.88);
  color: #aab3b7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.date-chip {
  margin: 2px 0 4px;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1;
}

.today-chip {
  margin-top: 8px;
}

.time-separator {
  align-self: center;
  width: fit-content;
  margin: 2px 0 4px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(24, 34, 39, 0.88);
  color: #aab3b7;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.crypto-chip {
  padding: 9px 16px 10px;
  color: #ffdba7;
  font-size: 14px;
  line-height: 1.44;
  text-align: center;
}

.crypto-chip span {
  color: #ffd158;
  font-size: 11px;
}

.message {
  position: relative;
  width: fit-content;
  max-width: 82%;
  padding: 7px 9px 6px;
  border-radius: 8px;
  background: #1d272b;
  color: #f0f3f4;
  font-size: 18px;
  line-height: 1.25;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.message:not(.own)::before {
  position: absolute;
  left: -7px;
  top: 0;
  width: 11px;
  height: 13px;
  content: "";
  background: #1d272b;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.message.own {
  align-self: flex-end;
  background: #0b4f3d;
  border-top-right-radius: 0;
  color: #f7fbfb;
}

.message.own::after {
  position: absolute;
  right: -8px;
  top: 0;
  width: 11px;
  height: 13px;
  content: "";
  background: #0b4f3d;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.message.call-message {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: min(78%, 250px);
  padding: 10px 12px;
  border-radius: 9px;
  background: #0f543f;
}

.call-message-icon {
  width: 43px;
  height: 43px;
}

.call-message-icon img {
  width: 43px;
  height: 43px;
  display: block;
  object-fit: contain;
  filter: none;
}

.call-message-title {
  display: block;
  font-size: 16px;
  font-weight: 760;
}

.call-message-subtitle {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
}

.message-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: rgba(235, 242, 242, 0.62);
  font-size: 13px;
  line-height: 1;
}

.checks {
  color: #53bdeb;
  font-weight: 800;
  letter-spacing: -3px;
}

.composer {
  position: relative;
  z-index: 4;
  grid-row: 4;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 9px 8px 7px;
  background: transparent;
}

.composer-input {
  min-width: 0;
  flex: 1;
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-radius: 27px;
  background: #1b272b;
  color: #eef4f3;
  font-size: 21px;
  overflow: hidden;
}

.composer-input img {
  flex: 0 0 auto;
  opacity: 1;
  filter: none;
}

.composer-emoji {
  width: 28px;
  height: 28px;
}

.composer-clip {
  width: 25px;
  height: 25px;
}

.composer-camera {
  width: 29px;
  height: 29px;
}

.composer-text {
  min-width: 0;
  flex: 1;
  display: block;
  max-height: 50px;
  overflow: hidden;
  line-height: 24px;
}

.placeholder {
  color: #99a4a8;
  white-space: nowrap;
}

#draftText {
  display: none;
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 31px;
  background: #1fd36b;
  vertical-align: -7px;
  animation: cursorBlink 900ms steps(2, start) infinite;
}

.chat-screen.has-draft .placeholder {
  display: none;
}

.chat-screen.has-draft .composer-camera {
  display: none;
}

.chat-screen.has-draft .composer-input {
  height: auto;
  max-height: 76px;
  align-items: flex-end;
  padding-top: 8px;
  padding-bottom: 8px;
}

.chat-screen.has-draft #draftText {
  display: inline;
}

.send-dot {
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.send-dot img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  filter: none;
}

.send-icon {
  display: none !important;
}

.mic-icon {
  display: block !important;
}

.chat-screen.has-draft .send-icon {
  display: block !important;
}

.chat-screen.has-draft .mic-icon {
  display: none !important;
}
.keyboard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -270px;
  height: 270px;
  padding: 8px 5px 8px;
  background: #121b14;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: transform 220ms ease, opacity 220ms ease;
}

.chat-screen.keyboard-open {
  grid-template-rows: 28px 62px 1fr 70px 38px;
}

.chat-screen.keyboard-open .chat-backdrop {
  inset-bottom: 378px;
}

.chat-screen.keyboard-open .messages {
  padding-bottom: 12px;
}

.chat-screen.keyboard-open .keyboard {
  opacity: 1;
  transform: translateY(0);
}

.chat-screen.keyboard-open .composer {
  transform: translateY(-270px);
}

.keyboard-toolbar,
.keys {
  display: grid;
  gap: 5px;
}

.keyboard-toolbar {
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  height: 39px;
  color: #eef3ef;
  font-size: 23px;
  text-align: center;
}

.keyboard-toolbar b {
  font-size: 13px;
}

.kbd-grid,
.kbd-mic {
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.09);
}

.keys {
  grid-template-columns: repeat(10, 1fr);
  margin-top: 5px;
}

.keys span {
  position: relative;
  display: grid;
  place-items: center;
  height: 43px;
  border-radius: 7px;
  background: #29332b;
  color: #f5f7f5;
  font-size: 27px;
  line-height: 1;
}

.keys small {
  position: absolute;
  right: 7px;
  top: 3px;
  color: #b4bbb6;
  font-size: 10px;
}

.keys-low {
  grid-template-columns: 1.4fr repeat(7, 1fr) 1.4fr;
}

.keys-low .wide,
.keys-space .pill {
  background: #314b35;
}

.keys-space {
  grid-template-columns: 1.35fr 1fr 1fr 4.8fr 1fr 1.7fr;
}

.keys-space .space {
  background: #2b342d;
}

.android-nav {
  position: relative;
  z-index: 5;
  grid-row: 5;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 38px;
  background: #000;
  color: #d6d8d8;
  font-size: 26px;
}

.typing-dots {
  position: absolute;
  z-index: 5;
  left: 18px;
  bottom: 122px;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 58px;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  background: #1d272b;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b4c0c0;
  animation: typingBounce 950ms infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 240ms;
}

.blackout,
.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #020304;
}

.blackout {
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease;
}

.blackout.is-visible {
  opacity: 1;
}

.blackout-text {
  max-width: 28ch;
  text-align: center;
  color: #dfe9e8;
  font-size: clamp(24px, 8vw, 34px);
  line-height: 1.08;
  font-weight: 800;
}

.overlay {
  /* Capa narrativa para preguntas, mapa y CTA sin abrir modales del navegador. */
  z-index: 8;
  align-content: center;
  overflow: hidden;
  background: rgba(2, 4, 5, 0.84);
  backdrop-filter: blur(10px);
}

.overlay.transparent {
  background: rgba(2, 4, 5, 0.52);
}

.scene {
  width: min(100%, 390px);
  margin: auto;
}

.scene.center {
  text-align: center;
}

.scene-title {
  margin: 0;
  font-size: clamp(28px, 9vw, 42px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.scene-copy {
  margin: 18px auto 0;
  max-width: 31ch;
  color: #c7d1d2;
  font-size: 16px;
  line-height: 1.48;
}

.option-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.option-button {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1.5px solid rgba(240, 184, 0, 0.92);
  border-radius: var(--radius);
  background: rgba(6, 9, 10, 0.42);
  text-align: left;
  color: #ffe08a;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  animation: optionIn 500ms ease forwards;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26), inset 0 0 0 1px rgba(255, 217, 47, 0.08);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  background: rgba(240, 184, 0, 0.08);
  border-color: #ffd84d;
  color: #fff4c5;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, 0.2), 0 14px 34px rgba(0, 0, 0, 0.38);
}

.option-button:active {
  transform: scale(0.99);
}

.quote {
  margin: 0;
  color: #f4f7f6;
  font-size: clamp(31px, 10vw, 48px);
  line-height: 1.03;
  font-weight: 900;
}

.body-stage {
  position: relative;
  height: min(63dvh, 560px);
  min-height: 500px;
  margin-top: 12px;
}

.body-outline {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 250px;
  height: 520px;
  transform: translate(-50%, -50%);
}

.body-silhouette {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 0 24px rgba(240, 184, 0, 0.12)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.06));
}

.body-zone {
  position: absolute;
  width: 118px;
  min-height: 44px;
  border: 1.5px solid rgba(240, 184, 0, 0.92);
  border-radius: var(--radius);
  background: rgba(6, 9, 10, 0.44);
  color: #ffe08a;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 217, 47, 0.08);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.body-zone:hover,
.body-zone:focus-visible {
  background: rgba(240, 184, 0, 0.08);
  border-color: #ffd84d;
  color: #fff4c5;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, 0.2), 0 14px 34px rgba(0, 0, 0, 0.4);
}

.body-zone:active {
  transform: scale(0.98);
}

.body-zone[data-body="Mandíbula"] { left: 0; top: 24px; }
.body-zone[data-body="Garganta"] { right: 0; top: 24px; }
.body-zone[data-body="Pecho"] { left: 0; top: 88px; }
.body-zone[data-body="Estómago"] { right: 0; top: 170px; }
.body-zone[data-body="Todo el cuerpo"] { left: 0; bottom: 112px; }
.body-zone[data-body="No sé; solo necesito hacer algo"] { right: 0; bottom: 70px; }

.body-marker {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(104, 29, 38, 0.42);
  box-shadow: 0 0 35px rgba(181, 58, 72, 0.46);
  opacity: 0;
}

.body-marker.is-active {
  opacity: 1;
}

.body-marker.pecho { top: 40%; width: 64px; height: 64px; }
.body-marker.estomago { top: 52%; width: 66px; height: 66px; }
.body-marker.garganta { top: 31%; width: 40px; height: 40px; }
.body-marker.mandibula { top: 26%; width: 42px; height: 28px; }
.body-marker.todo,
.body-marker.no-se { top: 51%; width: 210px; height: 410px; border-radius: 50%; }

.wa-call-screen,
.wa-rejected-call-screen {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 32px auto minmax(0, 1fr) auto 38px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 15, 19, 0.18), rgba(5, 15, 19, 0.18)),
    url("assets/chat-bg.png") center / cover no-repeat,
    #071014;
}

.wa-call-statusbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px clamp(14px, 5vw, 25px) 0;
  color: #f2f4f5;
  font-size: 14px;
  font-weight: 700;
}

.wa-call-statusbar b {
  display: inline-block;
  min-width: 24px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
}

.wa-call-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: clamp(54px, 18vw, 82px) minmax(0, 1fr) clamp(54px, 18vw, 82px);
  align-items: start;
  gap: clamp(6px, 2.8vw, 14px);
  padding: clamp(14px, 4.8vh, 28px) clamp(8px, 4vw, 22px) 0;
  text-align: center;
}

.wa-call-top button,
.wa-call-controls button,
.rejected-actions button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}

.wa-call-top button {
  width: clamp(54px, 16vw, 72px);
  height: clamp(54px, 16vw, 72px);
}

.wa-call-top button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: none;
}

.wa-call-top strong,
.rejected-title strong {
  display: block;
  color: #fff;
  font-size: clamp(20px, 6.2vw, 21px);
  font-weight: 430;
  line-height: 1.1;
}

.wa-call-top span,
.rejected-title span {
  display: block;
  margin-top: 7px;
  color: #b5bec2;
  font-size: clamp(13px, 4.3vw, 17px);
  line-height: 1.18;
}

.wa-call-avatar {
  align-self: center;
  justify-self: center;
  width: min(56vw, 32vh, 245px);
  height: min(56vw, 32vh, 245px);
  border: 3px solid #f7a822;
  border-radius: 50%;
  background: url("assets/foto perfil.jpg") center / cover no-repeat, #7311b5;
  box-shadow: 0 7px 32px rgba(0, 0, 0, 0.34);
}

.wa-call-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(5px, 2.5vw, 12px);
  margin: 0 clamp(8px, 5vw, 27px) clamp(12px, 3vh, 22px);
  padding: clamp(7px, 2.8vw, 11px);
  border-radius: 36px;
  background: rgba(13, 22, 25, 0.95);
}

.wa-call-controls button {
  width: clamp(44px, 13vw, 58px);
  height: clamp(44px, 13vw, 58px);
  justify-self: center;
}

.wa-call-controls button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: none;
}

.wa-call-controls .is-disabled img {
  opacity: 1;
}

.wa-call-controls .hangup {
  background: transparent;
}

.rejected-title {
  padding-top: 120px;
  text-align: center;
}

.rejected-title strong {
  font-size: 42px;
}

.rejected-title span {
  font-size: 26px;
}

.wa-rejected-call-screen .wa-call-avatar {
  align-self: start;
  margin-top: 55px;
}

.rejected-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 18px;
  align-items: start;
  padding: 0 38px 34px;
  text-align: center;
}

.rejected-actions button {
  justify-self: center;
  width: 72px;
  height: 72px;
}

.rejected-actions img {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
  filter: none;
}

.rejected-actions span {
  color: #bbc2c5;
  font-size: 15px;
  line-height: 1.2;
}

.wa-profile-screen {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 32px auto auto 1fr 38px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111716;
  color: #f2f5f4;
}

.profile-topbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 32px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 8px 17px 0;
  color: #e7eceb;
  font-size: 32px;
  line-height: 1;
}

.profile-hero {
  grid-row: 2;
  display: grid;
  justify-items: center;
  padding: 16px 18px 8px;
  text-align: center;
}

.profile-photo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: url("assets/foto perfil.jpg") center / cover no-repeat, #263133;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.profile-hero h2 {
  margin: 16px 0 0;
  color: #f6faf9;
  font-size: 24px;
  font-weight: 440;
  line-height: 1.16;
}

.profile-hero p {
  margin: 7px 0 0;
  color: #9fa9ac;
  font-size: 14px;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
  margin-top: 16px;
}

.profile-actions button {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #e5eceb;
  font-size: 12px;
}

.profile-actions button > img,
.profile-actions button > span {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #202829;
}

.profile-actions button > img {
  padding: 14px;
  object-fit: contain;
}

.profile-phone-icon::before {
  content: "☎";
  color: #eaf2f0;
  font-size: 25px;
}

.profile-search-icon::before {
  content: "⌕";
  color: #eaf2f0;
  font-size: 28px;
  transform: rotate(-20deg);
}

.profile-info {
  grid-row: 3;
  padding: 12px 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section-label {
  margin: 0 0 8px;
  color: #a4adb0;
  font-size: 14px;
}

.profile-about {
  margin: 0;
  font-size: 22px;
}

.profile-list {
  grid-row: 4;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.profile-row.two-line {
  grid-template-rows: auto auto;
}

.profile-row-icon {
  grid-row: 1 / span 2;
  color: #aeb8ba;
  font-size: 24px;
  text-align: center;
}

.profile-row strong {
  color: #eef3f2;
  font-size: 16px;
  font-weight: 430;
}

.profile-row small {
  grid-column: 2 / 4;
  color: #9aa5a8;
  font-size: 13px;
  line-height: 1.25;
}

.profile-row em {
  color: #a8b1b3;
  font-style: normal;
}

.profile-toggle {
  width: 41px;
  height: 23px;
  border: 2px solid #6f797b;
  border-radius: 999px;
  position: relative;
}

.profile-toggle::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #7d8789;
  content: "";
}

.call-nav {
  grid-row: 5;
}

.call-screen,
.profile-screen,
.closed-phone {
  display: grid;
  place-items: center;
  min-height: 70dvh;
  text-align: center;
}

.call-avatar,
.profile-avatar {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28)),
    url("assets/foto perfil.jpg") center 48% / 112% auto no-repeat,
    #30363a;
  filter: grayscale(1) contrast(0.95) brightness(0.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 70px rgba(0,0,0,0.42);
}

.call-name,
.profile-name {
  font-size: 26px;
  font-weight: 800;
}

.call-status,
.profile-status {
  margin-top: 8px;
  color: #9ba6aa;
}

.phone-slab {
  width: 168px;
  height: 310px;
  border-radius: 22px;
  background: linear-gradient(145deg, #15191d, #050607);
  box-shadow: 0 32px 80px rgba(0,0,0,0.75);
  transform: rotate(-8deg);
}

.notification-pulse {
  width: 22px;
  height: 22px;
  margin: 72px auto 0;
  border-radius: 50%;
  background: rgba(199, 241, 223, 0.72);
  animation: pulse 1300ms ease-in-out infinite;
}

.map {
  width: 100%;
}

.map-line {
  height: 1px;
  margin: 18px 0 26px;
  background: linear-gradient(90deg, transparent, rgba(240, 184, 0, 0.94), transparent);
  transform-origin: left;
  animation: lineDraw 900ms ease forwards;
}

.map-step {
  padding: 14px 0;
  border-top: 1px solid rgba(240, 184, 0, 0.34);
  opacity: 0;
  transform: translateY(10px);
  animation: mapReveal 700ms ease forwards;
}

.map-step b {
  display: block;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 6px;
}

.map-step p {
  margin: 0;
  color: #edf4f2;
  font-size: 17px;
  line-height: 1.38;
}

.continue-button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 1.5px solid rgba(240, 184, 0, 0.94);
  border-radius: var(--radius);
  background: rgba(6, 9, 10, 0.42);
  color: #ffe08a;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 217, 47, 0.08);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.continue-button:hover,
.continue-button:focus-visible {
  background: rgba(240, 184, 0, 0.08);
  border-color: #ffd84d;
  color: #fff4c5;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, 0.2), 0 14px 34px rgba(0, 0, 0, 0.38);
}

.bridge-grid,
.days-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bridge-grid {
  gap: 10px;
  margin-top: 22px;
}

.days-grid {
  gap: clamp(6px, 1.5vh, 8px);
  margin-top: clamp(10px, 2vh, 16px);
}

.bridge-item {
  min-height: 68px;
  padding: 12px;
  border: 1.5px solid rgba(240, 184, 0, 0.92);
  border-radius: var(--radius);
  background: rgba(6, 9, 10, 0.42);
  color: #ffe08a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26), inset 0 0 0 1px rgba(255, 217, 47, 0.08);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  animation: fadeIn 500ms ease forwards;
}

.day-card {
  min-height: clamp(48px, 7.5vh, 56px);
  padding: clamp(7px, 1.4vh, 9px) clamp(8px, 2.5vw, 10px);
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 247, 214, 0.76);
  color: #14100a;
  animation: fadeIn 500ms ease forwards;
}

.day-card b {
  display: block;
  color: #a2271f;
  font-size: clamp(11px, 3.2vw, 12px);
  margin-bottom: clamp(3px, 0.8vh, 5px);
}

.day-card span {
  display: block;
  font-size: clamp(11px, 3.15vw, 12px);
  line-height: 1.22;
}

.cta-screen {
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 145, 143, 0.35), transparent 32%),
    radial-gradient(circle at 90% 4%, rgba(198, 38, 28, 0.18), transparent 24%),
    linear-gradient(180deg, #f0b800 0%, #dfa000 44%, #19110a 100%);
  place-items: stretch;
  padding: 0;
  overflow-y: auto;
}

.cta-button {
  width: 100%;
  min-height: clamp(58px, 8.2vh, 70px);
  margin-top: clamp(12px, 2.2vh, 16px);
  padding-inline: 12px;
  font-size: clamp(17px, 5.2vw, 24px);
  line-height: 1.08;
}

.transparency {
  margin: clamp(8px, 1.6vh, 10px) auto 0;
  max-width: 34ch;
  color: rgba(255, 249, 225, 0.74);
  font-size: clamp(10px, 3.2vw, 12px);
  line-height: 1.3;
}

.cta-layout {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 206, 31, 0) 0 34%, rgba(14, 9, 6, 0.46) 58%, rgba(7, 5, 4, 0.92) 100%);
}

.reto-cover {
  width: 100%;
  min-height: 0;
  height: clamp(150px, 27vh, 210px);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(255, 214, 32, 0) 58%, rgba(18, 11, 6, 0.82) 100%),
    url("assets/reto sal del piloto automatico portada.jpg") 37% center / cover no-repeat;
  box-shadow: 0 22px 48px rgba(84, 45, 0, 0.28);
}

.cta-copy {
  width: min(100%, 390px);
  margin: clamp(-18px, -2.4vh, -10px) auto 0;
  padding: 0 clamp(14px, 4.8vw, 18px) max(14px, env(safe-area-inset-bottom));
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-kicker {
  width: fit-content;
  margin: 0 auto clamp(5px, 1.2vh, 8px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(166, 35, 28, 0.94);
  color: #fff7de;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(88, 14, 11, 0.28);
}

.cta-screen .scene-title {
  color: #fff9dc;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.34), 0 18px 42px rgba(0, 0, 0, 0.35);
  font-size: clamp(25px, 7.6vw, 38px);
  line-height: 1.02;
}

.cta-screen .scene-copy {
  margin-top: clamp(7px, 1.3vh, 10px);
  color: #fff5d1;
  font-size: clamp(12px, 3.55vw, 14px);
  line-height: 1.3;
}

.time-card {
  width: min(100%, 330px);
  margin: auto;
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.54);
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.time-card strong {
  display: block;
  font-size: clamp(27px, 8vw, 39px);
  line-height: 1.05;
}

.time-card span {
  display: block;
  margin-top: 12px;
  color: #b8c4c6;
  font-size: 14px;
  line-height: 1.38;
}

.fade-in { animation: fadeIn 800ms ease forwards; }
.fade-out { animation: fadeOut 700ms ease forwards; }
.blur-in { filter: blur(7px); }
.glitch-soft { animation: glitchSoft 900ms ease both; }
.pulse { animation: pulse 1400ms ease-in-out infinite; }
.screen-shake-soft { animation: shakeSoft 620ms ease both; }
.typing { animation: typingBounce 950ms ease-in-out infinite; }
.message-enter { animation: messageEnter 420ms ease both; }
.darken { filter: none; }
.breathing { animation: breathing 2400ms ease-in-out infinite; }
.map-reveal { animation: mapReveal 700ms ease forwards; }
.body-pulse { animation: bodyPulse 1500ms ease-in-out infinite; }

@keyframes cursorBlink {
  50% { opacity: 0; }
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes optionIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes messageEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shakeSoft {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  55% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
}

@keyframes glitchSoft {
  0%, 100% { opacity: 1; filter: none; transform: translateX(0); }
  24% { opacity: 0.8; filter: blur(1px); transform: translateX(-2px); }
  50% { opacity: 1; filter: contrast(1.2); transform: translateX(2px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes bodyPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.82); opacity: 0.42; }
  50% { transform: translate(-50%, -50%) scale(1.14); opacity: 0.95; }
}

@keyframes breathing {
  0%, 100% { transform: scale(1); filter: brightness(0.85); }
  50% { transform: scale(1.035); filter: brightness(1); }
}

@keyframes lineDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes mapReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 520px) {
  .phone-frame {
    width: min(100vw, calc(100dvh * 0.462));
    height: 100dvh;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 519px) {
  .experience {
    place-items: stretch;
  }

  .phone-frame {
    width: 100vw;
    height: 100dvh;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 370px) {
  .wa-call-top {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding-inline: 6px;
  }

  .wa-call-top button {
    width: 48px;
    height: 48px;
  }

  .wa-call-controls {
    margin-inline: 6px;
    gap: 4px;
  }

  .wa-call-controls button {
    width: 41px;
    height: 41px;
  }

  .body-zone {
    width: 108px;
    font-size: 13px;
  }

  .body-stage {
    min-height: 405px;
  }

  .bridge-grid,
  .days-grid {
    gap: 8px;
  }
}

@media (max-height: 720px) and (max-width: 430px) {
  .reto-cover {
    height: 132px;
  }

  .cta-kicker {
    font-size: 11px;
    padding-block: 5px;
  }

  .days-grid {
    grid-template-columns: 1fr;
  }

  .day-card {
    min-height: 40px;
    padding-block: 6px;
  }

  .day-card b {
    margin-bottom: 2px;
  }

  .cta-button {
    min-height: 54px;
  }
}
