/* TarjetIT por JortIT (/tarjetit). Mobile first. Colores de la marca: azul marino #0B2545 y azul #149DDD.
   Tipografías de la app: Bricolage Grotesque (títulos) y Atkinson Hyperlegible (texto), servidas desde /fonts/tarjetit. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/tarjetit/bricolage.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/tarjetit/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/tarjetit/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.tarjetit {
  --sl-navy: #0B2545;
  --sl-navy-2: #13325A;
  --sl-blue: #149DDD;
  --sl-blue-ink: #0B6FA0;
  --sl-ice: #EAF4FB;
  --sl-ink: #1F2328;
  --sl-muted: #4A5A70;
  --sl-line: #D5E1EC;
  --sl-gold: #B8892F;
  --sl-wa: #1A7F37;
  font-family: "Atkinson Hyperlegible", "Open Sans", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--sl-ink);
  background: #fff;
}
.tarjetit h1, .tarjetit h2, .tarjetit h3 { font-family: "Bricolage Grotesque", "Raleway", sans-serif; color: var(--sl-navy); letter-spacing: -0.01em; }
.tarjetit h1 { font-size: 40px; line-height: 1.05; font-weight: 800; margin: 24px 0 16px; }
.tarjetit h2 { font-size: 30px; line-height: 1.12; font-weight: 800; margin: 0 0 16px; }
.tarjetit h3 { font-size: 20px; line-height: 1.2; font-weight: 700; margin: 0 0 6px; }
.tarjetit p { margin: 0 0 14px; }
.tarjetit a { color: var(--sl-blue-ink); }
.tarjetit a:focus-visible, .tarjetit summary:focus-visible, .tarjetit video:focus-visible { outline: 3px solid var(--sl-blue); outline-offset: 3px; border-radius: 6px; }

.sl-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sl-narrow > * { max-width: 720px; }
.sl-final .sl-narrow > * { margin-left: auto; margin-right: auto; }
.sl-section { padding: 48px 0; }
.sl-tint { background: var(--sl-ice); }
.sl-sub { color: var(--sl-muted); }

/* Botones */
.sl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 14px;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 18px; text-align: center; transition: background-color .15s, transform .15s; }
.tarjetit .sl-btn-wa { background: var(--sl-wa); color: #fff; }
.tarjetit .sl-btn-wa:hover { background: #136129; color: #fff; }
.tarjetit .sl-btn-wa:active { transform: translateY(1px); }
.tarjetit .sl-btn-ghost { color: var(--sl-navy); border: 2px solid var(--sl-navy); }
.tarjetit .sl-btn-ghost:hover { background: var(--sl-navy); color: #fff; }
.sl-btn .bi { font-size: 22px; }

/* Portada */
.sl-hero { background: var(--sl-ice); padding: 40px 0 48px; }
.sl-hero-grid { display: grid; gap: 32px; }
.sl-logo { width: 200px; height: auto; display: block; }
.sl-lead { font-size: 19px; color: var(--sl-muted); max-width: 34em; }
.sl-ctas { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 14px; }
.sl-presale { font-size: 16px; color: var(--sl-navy); font-weight: 700; }
.sl-reel { margin: 0; justify-self: center; width: 100%; max-width: 320px; }
.sl-reel video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 28px; background: var(--sl-navy);
  border: 8px solid #0A1A30; box-shadow: 0 24px 48px rgba(11, 37, 69, .22); }
.sl-reel figcaption { text-align: center; font-size: 15px; color: var(--sl-muted); margin-top: 10px; }

/* Problema */
.sl-problem p { font-size: 19px; }

/* Cómo funciona: la tarjeta de sellos */
.sl-card { list-style: none; margin: 8px 0 0; padding: 24px 18px; background: var(--sl-navy); border-radius: 28px;
  display: grid; grid-template-columns: 1fr; gap: 26px; color: #fff; }
.sl-step { display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; align-items: start; }
.sl-step h3 { color: #fff; grid-column: 2; margin-top: 8px; }
.sl-step p { grid-column: 2; color: #C9DCEE; font-size: 17px; margin: 0; }
.sl-slot { grid-row: span 2; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--sl-blue); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 32px; color: var(--sl-navy); }
.sl-step:nth-child(odd) .sl-ink { transform: rotate(-8deg); }
.sl-step:nth-child(even) .sl-ink { transform: rotate(7deg); }
.sl-ink { display: inline-block; }
.sl-slot-empty { background: transparent; border: 3px dashed rgba(255, 255, 255, .6); color: #fff; font-size: 16px; }

/* Lo que gana tu negocio */
.sl-gains { display: grid; gap: 0; margin: 8px 0 0; }
.sl-gains > div { padding: 18px 0; border-top: 2px solid var(--sl-line); }
.sl-gains dt { font-family: "Bricolage Grotesque", sans-serif; font-size: 20px; color: var(--sl-navy); }
.sl-gains dd { margin: 4px 0 0; color: var(--sl-muted); }

/* Planes */
.sl-plans { display: grid; gap: 18px; margin-top: 24px; }
.sl-plan { position: relative; border: 2px solid var(--sl-line); border-radius: 22px; padding: 24px 22px; background: #fff; }
.sl-plan h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.sl-plan h3::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--plan, #ccc); }
.sl-plan-bronce { --plan: #A9693A; }
.sl-plan-plata { --plan: #9AA4B1; }
.sl-plan-oro { --plan: var(--sl-gold); }
.sl-plan.is-pick { border-color: var(--sl-navy); border-width: 3px; }
.sl-pick { position: absolute; top: -14px; left: 20px; margin: 0; background: var(--sl-navy); color: #fff; font-weight: 700; font-size: 14px;
  padding: 4px 12px; border-radius: 999px; }
.sl-price { font-size: 17px; color: var(--sl-muted); }
.sl-price strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 38px; color: var(--sl-navy); margin-right: 4px; }
.sl-plan ul { list-style: none; padding: 0; margin: 8px 0 0; }
.sl-plan li { padding: 9px 0 9px 28px; border-top: 1px solid var(--sl-line); position: relative; font-size: 17px; }
.sl-plan { display: flex; flex-direction: column; }
.sl-buy { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.tarjetit .sl-btn-buy { background: var(--sl-navy); color: #fff; }
.tarjetit .sl-btn-buy:hover { background: var(--sl-navy-2); color: #fff; }
.tarjetit .sl-trial { font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sl-plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--sl-blue); }

/* Fundadores */
.sl-founders { background: var(--sl-navy); color: #E4EEF8; }
.sl-founders h2 { color: #fff; }
.sl-founders-grid { display: grid; gap: 28px; align-items: center; }
.sl-seal { width: 200px; height: auto; justify-self: center; }
.sl-rules { list-style: none; padding: 0; margin: 0 0 24px; }
.sl-rules li { padding: 10px 0 10px 26px; position: relative; border-top: 1px solid rgba(255, 255, 255, .14); }
.sl-rules li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--sl-gold); }
.sl-rules strong { color: #fff; }

/* Preventa */
.sl-list { padding-left: 24px; margin: 0 0 18px; }
.sl-list li { padding: 6px 0 6px 6px; }
.sl-list li::marker { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; color: var(--sl-blue-ink); }
.sl-note { font-size: 16px; color: var(--sl-muted); border-left: 4px solid var(--sl-blue); padding: 4px 0 4px 14px; }

/* JortIT */
.sl-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; }
.sl-links a { text-decoration: underline; text-underline-offset: 3px; }

/* Preguntas */
.sl-faq { border-top: 2px solid var(--sl-line); }
.sl-faq:last-child { border-bottom: 2px solid var(--sl-line); }
.sl-faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 19px; color: var(--sl-navy); }
.sl-faq summary::-webkit-details-marker { display: none; }
.sl-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--sl-blue-ink); }
.sl-faq[open] summary::after { content: "−"; }
.sl-faq p { color: var(--sl-muted); padding-bottom: 8px; }

/* Cierre */
.sl-final { background: var(--sl-ice); padding: 56px 0; text-align: center; }
.sl-final p { color: var(--sl-muted); }

@media (min-width: 576px) {
  .sl-ctas { flex-direction: row; flex-wrap: wrap; }
  .sl-card { grid-template-columns: 1fr 1fr; padding: 32px; }
}

@media (min-width: 992px) {
  .tarjetit h1 { font-size: 56px; }
  .tarjetit h2 { font-size: 38px; }
  .sl-section { padding: 64px 0; }
  .sl-wrap { padding: 0 32px; }
  .sl-hero { padding: 64px 0 72px; }
  .sl-hero-grid { grid-template-columns: 1fr 320px; gap: 56px; align-items: center; }
  .sl-card { grid-template-columns: repeat(3, 1fr); gap: 34px 28px; padding: 40px; }
  .sl-step { grid-template-columns: 1fr; text-align: left; }
  .sl-step h3, .sl-step p { grid-column: 1; }
  .sl-slot { grid-row: auto; width: 92px; height: 92px; font-size: 38px; margin-bottom: 8px; }
  .sl-slot-empty { font-size: 18px; }
  .sl-gains { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .sl-plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .sl-founders-grid { grid-template-columns: 260px 1fr; gap: 48px; }
  .sl-seal { width: 260px; }
}

/* ---------------------------------------------------------------
   Animaciones. Patrones de componentes de 21st.dev (Aurora Background, Shine Border, Border Beam,
   Blur Fade) portados a CSS y JS sin React ni Tailwind para no cargar librerías.
   Todo se apaga con prefers-reduced-motion y la página se ve completa sin JS.
   --------------------------------------------------------------- */
@property --sl-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Aurora: manchas de color difuminadas que se mueven detrás de la portada */
.sl-hero { position: relative; overflow: hidden; isolation: isolate; }
.sl-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sl-aurora span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: sl-aurora 18s ease-in-out infinite alternate; }
.sl-aurora span:nth-child(1) { background: #9fd6f2; top: -30vmax; left: -15vmax; }
.sl-aurora span:nth-child(2) { background: #c9def5; bottom: -35vmax; right: -20vmax; animation-delay: -6s; }
.sl-aurora span:nth-child(3) { background: #f3e3c2; top: 10%; left: 45%; width: 30vmax; height: 30vmax; opacity: .35; animation-delay: -12s; }
@keyframes sl-aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, 4vmax) scale(1.08); } 100% { transform: translate(-4vmax, 2vmax) scale(.95); } }

/* Shine Border: borde de luz que gira alrededor del reel */
.sl-shine { position: relative; border-radius: 34px; padding: 4px;
  background: conic-gradient(from var(--sl-angle), #0A1A30 0deg, #0A1A30 250deg, #149DDD 300deg, #fff 320deg, #B8892F 340deg, #0A1A30 360deg);
  animation: sl-spin 6s linear infinite; box-shadow: 0 24px 48px rgba(11, 37, 69, .22); }
.sl-shine video { border: 6px solid #0A1A30; box-shadow: none; }
@keyframes sl-spin { to { --sl-angle: 360deg; } }

/* Border Beam: el plan recomendado lleva un destello que recorre su borde */
.sl-beam { border-color: transparent !important;
  background: linear-gradient(#fff, #fff) padding-box,
              conic-gradient(from var(--sl-angle), var(--sl-navy) 0deg, var(--sl-navy) 280deg, var(--sl-gold) 320deg, #fff 335deg, var(--sl-navy) 360deg) border-box;
  animation: sl-spin 5s linear infinite; }

/* Qué es y qué hace: celular con la tarjeta llenándose */
.sl-demo-grid { display: grid; gap: 36px; align-items: center; }
.sl-does { list-style: none; padding: 0; margin: 0; }
.sl-does li { padding: 12px 0 12px 34px; border-top: 2px solid var(--sl-line); position: relative; }
.sl-does li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sl-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230B2545' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sl-does strong { color: var(--sl-navy); }
.sl-phone { justify-self: center; width: 280px; padding: 12px; border-radius: 40px; background: #0A1A30; box-shadow: 0 30px 60px rgba(11, 37, 69, .28); }
.sl-phone-screen { position: relative; border-radius: 30px; background: linear-gradient(170deg, #fff 0%, var(--sl-ice) 100%); padding: 34px 20px 26px; min-height: 440px; overflow: hidden; }
.sl-phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 80px; height: 18px; margin-left: -40px; border-radius: 10px; background: #0A1A30; }
.sl-phone-biz { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 22px; color: var(--sl-navy); margin: 18px 0 2px !important; text-align: center; }
.sl-phone-rule { font-size: 14px; color: var(--sl-muted); text-align: center; }
.sl-phone-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 4px 22px; }
.sl-phone-slots span { position: relative; aspect-ratio: 1; border-radius: 50%; border: 3px dashed #9fb4c9; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--sl-muted); }
.sl-phone-slots i { position: absolute; inset: -3px; border-radius: 50%; background: var(--sl-blue);
  box-shadow: inset 0 0 0 4px rgba(11, 37, 69, .25); opacity: 1; transform: rotate(-10deg); }
.sl-phone-slots i::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--sl-navy); font-size: 26px; font-weight: 800; font-style: normal; }
.sl-phone-slots .is-prize { border-color: var(--sl-gold); color: var(--sl-gold); }
.sl-phone-slots .is-prize i { background: var(--sl-gold); }
.sl-phone-slots .is-prize i::after { content: "★"; color: #fff; }
.sl-phone-toast { margin: 0 !important; background: var(--sl-wa); color: #fff; font-weight: 700; text-align: center; border-radius: 14px; padding: 10px; font-size: 15px; }
.sl-phone-name { font-size: 13px; color: var(--sl-muted); text-align: center; margin: 14px 0 0 !important; }

/* Sello animado en bucle (solo si se permite movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .sl-phone-slots i { animation: sl-stamp-loop 9s cubic-bezier(.2, 1.6, .4, 1) infinite both; }
  .sl-phone-slots span:nth-child(2) i { animation-delay: .8s; }
  .sl-phone-slots span:nth-child(3) i { animation-delay: 1.6s; }
  .sl-phone-slots span:nth-child(4) i { animation-delay: 2.4s; }
  .sl-phone-slots span:nth-child(5) i { animation-delay: 3.2s; }
  .sl-phone-slots span:nth-child(6) i { animation-delay: 4.2s; }
  .sl-phone-toast { animation: sl-toast 9s ease infinite both; }
}
@keyframes sl-stamp-loop {
  0% { opacity: 0; transform: scale(2.2) rotate(-25deg); }
  6% { opacity: 1; transform: scale(.92) rotate(-10deg); }
  9%, 82% { opacity: 1; transform: scale(1) rotate(-10deg); }
  90%, 100% { opacity: 0; transform: scale(1) rotate(-10deg); }
}
@keyframes sl-toast { 0%, 55% { opacity: 0; transform: translateY(14px); } 60%, 85% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(14px); } }

/* Blur Fade y sello al entrar en pantalla: el JS pone .sl-js en <html> y .is-in al hacerse visible */
@media (prefers-reduced-motion: no-preference) {
  .sl-js .sl-reveal { opacity: 0; filter: blur(8px); transform: translateY(18px); transition: opacity .7s ease, filter .7s ease, transform .7s ease; }
  .sl-js .sl-reveal.is-in { opacity: 1; filter: none; transform: none; }
  .sl-js .sl-stampable .sl-slot { transform: scale(1.8) rotate(-20deg); opacity: 0; }
  .sl-js .sl-stampable.is-in .sl-slot { animation: sl-stamp .55s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: calc(var(--i, 0) * 140ms); }
}
@keyframes sl-stamp { to { transform: none; opacity: 1; } }

@media (min-width: 992px) {
  .sl-demo-grid { grid-template-columns: 1fr 300px; gap: 64px; }
  .sl-phone { width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .sl-btn { transition: none; }
  .sl-aurora span, .sl-shine, .sl-beam { animation: none; }
}
