/* Home polish on top of style.css, following the pymo design spec.
   The navbar lives in style-nav.css, shared by every page. The plan cards
   and the comparison table keep the styles they have in style.css. */

:root {
  --indigo-50: #eef0fe;
  --indigo-100: #dce0fc;
  --indigo-200: #bfc4f8;
  --indigo-300: #969df2;
  --indigo-500: #4346da;
  --indigo-600: #3537c2;
  --indigo-700: #2b2d9c;
  --blue-500: #3b81f5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --border: #e4e6ea;
  --emerald-100: #d0f9e4;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --shadow-card: inset 0 0 0 1px var(--border), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-indigo: 0 24px 50px -22px rgba(67, 70, 218, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

body#myPage {
  font-family: Montserrat, sans-serif;
  color: var(--gray-500);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

body#myPage h1,
body#myPage h2,
body#myPage h3,
body#myPage p,
body#myPage li,
body#myPage blockquote,
body#myPage .pymo-text,
body#myPage .agenda,
body#myPage .planes-info > p,
body#myPage .mask-font,
body#myPage .active,
body#myPage .api-docs-banner__text {
  font-family: Montserrat, sans-serif;
}

.amount { font-family: var(--mono); font-weight: 600; letter-spacing: -0.01em; }

/* Hero */

.home-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.home-hero {
  background: var(--indigo-500);
  padding: 136px 0 80px;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

/* "Nuevo" line above the title: one tap to the Kit page. */
a.home-news,
a.home-news:link,
a.home-news:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 4px 14px 4px 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms var(--ease);
}

a.home-news:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.home-news__tag {
  flex: none;
  padding: 2px 10px;
  border-radius: 9999px;
  background: #fff;
  color: var(--indigo-700);
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
}

.home-news__text { min-width: 0; }

.home-news__arrow { flex: none; width: 16px; height: 16px; transition: transform 150ms var(--ease); }

a.home-news:hover .home-news__arrow { transform: translateX(2px); }

body#myPage .home-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 52px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body#myPage .home-hero__lede {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--indigo-100);
  font-size: 18px;
  line-height: 28px;
}

.home-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

/* Each fact reads as one line, the figure large and its words on the same baseline, with the
   condition underneath. */
.home-fact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.home-fact__figure { font-weight: 700; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }

.home-fact__lead { font-weight: 600; }

.home-fact__note { flex-basis: 100%; }

/* Two receipt stubs, white on the indigo. */

.home-fact {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(17, 24, 39, 0.18), 0 4px 6px -4px rgba(17, 24, 39, 0.12);
}

/* The dot matrix of a printed receipt, fading out before it reaches the words. */
.home-fact::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 72px;
  background-image: radial-gradient(circle, var(--indigo-200) 1px, transparent 1.6px);
  background-size: 9px 9px;
  background-position: right 3px top 3px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
  pointer-events: none;
}

.home-fact__figure { color: var(--indigo-700); font-size: 34px; }

.home-fact--free .home-fact__figure { color: var(--emerald-700); }

.home-fact__per { color: var(--gray-500); font-size: 16px; font-weight: 600; letter-spacing: 0; }

.home-fact__lead { color: var(--gray-900); font-size: 14px; line-height: 20px; }

.home-fact__note { color: var(--gray-500); font-size: 12px; line-height: 16px; }

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

a.home-btn,
a.home-btn:link,
a.home-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms var(--ease);
}

a.home-btn--light,
a.home-btn--light:link,
a.home-btn--light:visited { background: #fff; color: var(--indigo-700); }

a.home-btn--light:hover { background: var(--indigo-50); color: var(--indigo-700); }

a.home-btn--ghost,
a.home-btn--ghost:link,
a.home-btn--ghost:visited {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

a.home-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

a.home-hero__link,
a.home-hero__link:link,
a.home-hero__link:visited {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 0;
  background: transparent;
  box-shadow: none;
  color: var(--indigo-100);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

a.home-hero__link:hover { color: #fff; }

.home-hero__link svg { width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; }

.home-hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}

.home-hero__mascot { max-width: 100%; max-height: 380px; width: auto; height: auto; }

body#myPage .home-badge {
  position: absolute;
  left: 0;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px 8px 10px;
  border-radius: 9999px;
  background: #fff;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(17, 24, 39, 0.18), 0 4px 6px -4px rgba(17, 24, 39, 0.12);
}

.home-badge svg { flex: none; width: 20px; height: 20px; color: var(--emerald-600); }

/* Keyboard focus shows on every control of the home, white where the surface is indigo. */

body#myPage a:focus-visible,
body#myPage button:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

body#myPage .home-hero a:focus-visible { outline-color: #fff; }

/* Sections */

.bg-light-sky-blue { background-color: var(--gray-50) !important; }

body#myPage h2.warm-blue,
body#myPage h2.f-monserrat {
  color: var(--gray-900);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Dialog titles are h2 for the outline and keep the size they had. */
body#myPage h2.modal-title {
  margin: 0;
  color: inherit;
  font-size: 20px;
  line-height: 1.43;
  font-weight: 500;
  letter-spacing: 0;
}

body#myPage h3 { color: var(--indigo-500); font-weight: 600; }

/* Add-on names are h3 for the outline and keep the look they had as h4. */
body#myPage h3.complemento-card-title {
  height: 25px;
  color: var(--gray-900);
  font-family: 'work_sanssemibold', sans-serif;
}

body#myPage mark {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--indigo-50);
  color: var(--indigo-700);
}

body#myPage .agenda,
body#myPage .planes-info > p { color: var(--gray-500); }

body#myPage .agenda a { color: var(--indigo-600); }

/* Anual / mensual toggle */

.mask {
  display: flex;
  height: auto;
  padding: 4px;
  border-radius: 9999px;
  background: #fff !important;
  box-shadow: var(--shadow-card);
}

body#myPage .mask > .mask-font {
  height: auto;
  min-height: 0;
  padding: 10px 20px !important;
  border-radius: 9999px;
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 600;
  box-shadow: none !important;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

body#myPage .mask > .mask-font.active {
  background: var(--indigo-500);
  color: #fff !important;
}

body#myPage .mask .p-button {
  height: auto;
  border-radius: 50px;
  margin: 0;
  color: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

/* Motivos */

.center-content { gap: 16px; }

.center-content > .t-center {
  width: calc(33.333% - 11px);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.center-content > .t-center .macaco { min-width: 0; max-width: 150px; }

body#myPage .center-content h3 {
  margin: 12px 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

body#myPage .pymo-text-facturacion {
  padding: 0;
  opacity: 1;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 20px;
}

body#myPage .pymo-text.dark { color: var(--gray-500); font-size: 18px; line-height: 28px; }

body#myPage .dark { opacity: 1; color: var(--gray-500); }

body#myPage p.warm-blue.f-monserrat { color: var(--gray-900); }

body#myPage .paragraph-container { border-left-color: var(--border); }

body#myPage .photo-container { border-color: var(--indigo-100); }

/* Banda de prueba */

body#myPage .doubt-container > p,
body#myPage .doubt-container > h2 { font-size: 28px !important; line-height: 36px; font-weight: 600 !important; }

/* Banners */

a.api-docs-banner,
a.api-docs-banner:link,
a.api-docs-banner:visited {
  border-radius: 12px;
  background: var(--gray-900);
  box-shadow: 0 24px 50px -22px rgba(17, 24, 39, 0.28);
}

.api-docs-banner__icon { border-radius: 8px; }

.api-docs-banner__tag { letter-spacing: 0.14em; }

.api-docs-banner__cta { border-radius: 6px; box-shadow: none; }

a.pymo-pagos-banner,
a.pymo-pagos-banner:link,
a.pymo-pagos-banner:visited {
  background: var(--indigo-500);
  box-shadow: var(--shadow-indigo);
}

a.pymo-pagos-banner:hover,
a.pymo-pagos-banner:focus,
a.pymo-pagos-banner:active { background: var(--indigo-600); }

.pymo-pagos-banner .api-docs-banner__icon { color: var(--indigo-500); }

.pymo-pagos-banner .api-docs-banner__tag { color: var(--indigo-100); }

.pymo-pagos-banner .api-docs-banner__cta { color: var(--indigo-700); }

a.pymo-pagos-more__link,
a.pymo-pagos-more__link:link,
a.pymo-pagos-more__link:visited,
a.complemento-pagos-link,
a.complemento-pagos-link:link,
a.complemento-pagos-link:visited {
  color: var(--indigo-500);
  font-size: 14px;
  font-weight: 600;
}

@media screen and (max-width: 850px) {
  .mask { display: none; }
}

@media screen and (max-width: 1199px) {
  .center-content > .t-center { width: calc(50% - 8px); }
}

@media screen and (max-width: 767px) {
  .center-content > .t-center { width: 100%; }
}

@media screen and (max-width: 992px) {
  .home-hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .home-hero__art { order: -1; justify-content: flex-start; }
  .home-hero__mascot { display: none; }
  body#myPage .home-badge { position: static; }
}

@media screen and (max-width: 600px) {
  .home-hero { padding: 112px 0 56px; }
  body#myPage .home-hero h1 { font-size: 34px; }
  body#myPage .home-hero__lede { font-size: 16px; line-height: 24px; }
  .home-hero__facts { grid-template-columns: 1fr; }
  .home-fact::after { width: 48px; }
  body#myPage h2.warm-blue,
  body#myPage h2.f-monserrat { font-size: 26px; }
}
