:root {
  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --yellow: #ffd400;
  --white: #ffffff;
  --text: #0a0a0a;
  --muted: #5b667a;
  --bg: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 30, 80, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
}

.stats-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--blue), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 8px;
}

.stat {
  display: grid;
  gap: 2px;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
}

.stat-value {
  font-weight: 800;
  font-size: clamp(18px, 4vw, 28px);
  letter-spacing: 0.3px;
}

main {
  display: grid;
  gap: 28px;
}

.hidden { display: none !important; }

body.quiz-mode main > :not(#quiz) { display: none !important; }

.btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

a.btn { text-decoration: none; }
a.btn:visited { color: #fff; }

.btn:hover { filter: brightness(0.98); }

.btn-large { padding: 14px 20px; font-size: 18px; }

.btn-blue { background: var(--blue); color: #fff; }

.quiz { display: grid; gap: 16px;
  margin-top: 20px; }
.quiz .step { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

.offer { text-align: center; display: grid; gap: 12px; }
.offer .lead { font-size: clamp(18px, 4.5vw, 22px); margin: 6px 0 4px; }
.offer .highlight { color: var(--blue-700); font-weight: 800; }
.offer .steps { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; text-align: left; }
.offer .steps li { line-height: 1.4; }
.offer .steps li::before { content: "✓"; color: #2ecc71; font-weight: 900; margin-right: 8px; }
.quiz .options { display: grid; gap: 10px; margin-top: 12px; }
.quiz .option {
  display: block;
  width: 100%;
  text-align: left;
  background: #f7fafc;
  border: 2px solid #e5edf9;
  color: #0a1a3a;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.quiz .option:hover { border-color: var(--blue); }
.quiz .option.selected { background: #e6f7ea; border-color: #2ecc71; color: #145a1f; }

.video-portrait { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.video-portrait video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Play overlay for paused video */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  pointer-events: none; /* allow video controls except the circle */
}
.video-play-overlay .play-circle {
  width: clamp(56px, 10vw, 84px);
  height: clamp(56px, 10vw, 84px);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  pointer-events: auto; /* clickable */
  cursor: pointer;
  transition: transform .15s ease;
}
.video-play-overlay .play-circle:hover { transform: scale(1.05); }
.video-play-overlay .play-triangle {
  width: 0;
  height: 0;
  border-left: clamp(16px, 3vw, 22px) solid #fff;
  border-top: clamp(10px, 2vw, 14px) solid transparent;
  border-bottom: clamp(10px, 2vw, 14px) solid transparent;
  margin-left: 4px;
}

/* Hidden utility already exists: .hidden { display: none !important; } */

.hero-image {
  width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

h2 {
  margin: 0 0 14px;
  color: var(--blue-700);
  font-size: clamp(20px, 4vw, 28px);
}

.list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  list-style: none;
}

.list li {
  position: relative;
  line-height: 1.5;
}

.list li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.logos {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.logos-left {
  display: grid;
  gap: 16px;
  align-content: start;
}

.logo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.rect {
  border-radius: 18px;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 5;
}

.chat h2 {
  margin-bottom: 12px;
}

.chat-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.msg {
  display: grid;
  gap: 6px;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name {
  font-weight: 700;
}

.bubble {
  background: #f0f4ff;
  border: 1px solid #e0e8ff;
  color: #0a1a3a;
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 100%;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-input {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat-input input {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #cdd6f6;
  outline: none;
}

.btn {
  background: var(--yellow);
  color: #1a1a1a;
  font-weight: 800;
  border-radius: 12px;
  padding: 0 16px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform .1s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.btn-large {
  padding: 0 26px;
  height: 56px;
  border-radius: 16px;
  font-size: 18px;
}

.cta {
  display: grid;
  place-items: center;
  padding: 12px 0 12px;
}

@media (min-width: 800px) {
  .stats {
    padding: 16px 0;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chat-box {
    max-height: 520px;
  }
}

.msg.from-other {
  justify-items: start;
}

.msg.from-Carlos {
  justify-items: start;
}

.msg.from-you {
  justify-items: end;
}

.msg.from-other .bubble {
}

.msg.from-Carlos .bubble {
  background: var(--blue);
  border: 1px solid var(--blue-700);
  color: var(--white);
  border-top-left-radius: 6px;
}

.msg.from-you .bubble {
  background: var(--yellow);
  border: 1px solid #f0c200;
  color: #1a1a1a;
  border-top-right-radius: 6px;
}

.msg.from-Carlos .name {
  color: var(--blue-700);
}

.msg.from-you .name {
  color: #8a6b00;
}
