@font-face {
  font-family: Selfgrow Trial Serif;
  src: url('/landing/reference/assets/196f80ddcf12-QyMt8EvglzoD2IxTjhnonQQ49g.woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* One selected design for every trial entry point. */
.sg-trial-trigger,
.sg-trial-button {
  background: var(--brand-primary) !important;
  color: #fff !important;
}
.sg-trial-trigger:hover,
.sg-trial-button:hover { background: var(--brand-primary-hover) !important; }
.sg-trial-trigger :is(p, span) {
  color: #fff !important;
  --framer-text-color: #fff !important;
}
.sg-trial-invitation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}
.sg-trial-invitation p {
  margin: 0;
  color: var(--brand-ink, #051343);
  font: 400 24px/1.2 Selfgrow Trial Serif, Georgia, serif;
  letter-spacing: -.5px;
}
.sg-trial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font: 400 16px/1.4 "FK Grotesk Regular", Arial, sans-serif;
  cursor: pointer;
}

/* Every Pruébalo entry point turns into this pill: phone, then name. */
.sg-trial-pill {
  --pill-h: 48px;
  --pill-w: 360px;
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  inline-size: var(--pill-from, var(--pill-w));
  max-inline-size: 100%;
  block-size: var(--pill-h);
  margin: 0;
  color: var(--brand-ink, #051343);
  font: 400 16px/1.4 "FK Grotesk Regular", Arial, sans-serif;
  text-align: start;
  transition: inline-size 360ms cubic-bezier(.2, .8, .2, 1);
}
.sg-trial-pill[data-open] { inline-size: min(var(--pill-w), calc(100vw - 32px)); }
.sg-trial-pill *,
.sg-trial-pill *::before,
.sg-trial-pill *::after { box-sizing: border-box; }
.sg-trial-pill [hidden] { display: none !important; }
.sg-pill-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--brand-primary, #115cae);
  border-radius: 999px;
  background: var(--brand-primary, #115cae);
  box-shadow: 0 8px 24px rgb(5 19 67 / 14%);
  transition: background-color 260ms ease, border-color 260ms ease;
}
.sg-trial-pill[data-open] .sg-pill-shell { border-color: var(--brand-tint-strong, #b9d7f5); background: #fff; }
.sg-trial-pill[data-error] .sg-pill-shell { border-color: #c0392b; animation: sg-pill-shake 320ms ease; }
.sg-pill-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 400;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.sg-trial-pill[data-open] .sg-pill-label { opacity: 0; }
.sg-pill-step {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
  min-inline-size: 0;
  block-size: 100%;
  opacity: 0;
}
.sg-trial-pill[data-open] .sg-pill-step { opacity: 1; animation: sg-pill-step-in 260ms ease 120ms both; }
.sg-pill-step input {
  flex: 1 1 auto;
  min-inline-size: 0;
  block-size: 100%;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  outline: 0;
}
.sg-pill-step input::placeholder { color: #718096; opacity: 1; }
.sg-pill-icon-button,
.sg-pill-send {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  inline-size: calc(var(--pill-h) - 10px);
  block-size: calc(var(--pill-h) - 10px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.sg-pill-icon-button { background: transparent; color: var(--brand-muted, #59697e); }
.sg-pill-icon-button:hover { background: var(--brand-surface, #f4f8fd); }
.sg-pill-send { background: var(--brand-primary, #115cae); color: #fff; transition: background-color 160ms ease; }
.sg-pill-send:hover { background: var(--brand-primary-hover, #064591); }
.sg-pill-send .sg-icon,
.sg-pill-icon-button .sg-icon { inline-size: 18px; block-size: 18px; }
.sg-pill-country {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  block-size: calc(var(--pill-h) - 10px);
  margin: 0;
  padding: 0 8px 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sg-pill-country:hover { background: var(--brand-surface, #f4f8fd); }
.sg-pill-flag {
  display: block;
  flex: 0 0 auto;
  inline-size: 24px;
  block-size: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(5 19 67 / 14%);
}
.sg-pill-chevron { inline-size: 14px; block-size: 14px; color: var(--brand-muted, #59697e); transition: transform 160ms ease; }
.sg-pill-country[aria-expanded="true"] .sg-pill-chevron { transform: rotate(180deg); }
.sg-pill-done {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
  padding: 0 16px 0 8px;
  color: var(--brand-ink, #051343);
}
.sg-pill-done .sg-icon { flex: 0 0 auto; inline-size: 28px; block-size: 28px; padding: 5px; border-radius: 50%; background: #1f8f5f; color: #fff; }
.sg-pill-done span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-pill-options {
  position: absolute;
  z-index: 30;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  inline-size: min(280px, calc(100vw - 32px));
  max-block-size: 232px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(5 19 67 / 20%), 0 0 0 1px var(--brand-border, #d7e3ef);
}
.sg-pill-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--brand-ink, #051343);
  font-size: 15px;
  cursor: pointer;
}
.sg-pill-option span:nth-of-type(1) { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-pill-option span:nth-of-type(2) { color: var(--brand-muted, #59697e); }
.sg-pill-option:is(:hover, .is-active) { background: #f0f6fd; }
.sg-pill-option[aria-selected="true"] { background: var(--brand-tint, #e3effb); }
.sg-pill-note {
  position: absolute;
  z-index: 20;
  inset-block-start: calc(100% + 8px);
  inset-inline: 0;
  margin: 0;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(5 19 67 / 16%), 0 0 0 1px var(--brand-border, #d7e3ef);
  color: var(--brand-muted, #59697e);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}
.sg-trial-pill[data-error] .sg-pill-note { color: #a52a1f; }
.sg-trial-pill[data-up] :is(.sg-pill-options, .sg-pill-note) { inset-block-start: auto; inset-block-end: calc(100% + 8px); }
.sg-pill-options:not([hidden]) ~ .sg-pill-note { visibility: hidden; }
.sg-trial-pill :focus-visible { outline: 2px solid var(--brand-accent, #115cae); outline-offset: 2px; }
.sg-pill-step input:focus-visible { outline: 0; }
.sg-pill-shell:has(input:focus-visible) { box-shadow: 0 8px 24px rgb(5 19 67 / 14%), 0 0 0 3px var(--brand-tint-strong, #b9d7f5); }
[data-sg-trial-open][data-sg-trial-hidden] { display: none !important; }
@keyframes sg-pill-step-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes sg-pill-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) {
  .sg-trial-pill,
  .sg-pill-shell,
  .sg-pill-label,
  .sg-pill-chevron { transition: none; }
  .sg-trial-pill[data-error] .sg-pill-shell,
  .sg-trial-pill[data-open] .sg-pill-step { animation: none; }
}
