/* Verificador Infinity — estilo tipo Apple (limpio, tipografía de sistema) */

:root {
  /* Blanco estudio (mismo fondo que la foto del módulo) */
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --bg-dark: #111111;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e8ed;
  /* Rojo de marca (app) — solo acentos */
  --accent: #c62828;
  --accent-hover: #b71c1c;
  --max: 980px;
  --max-wide: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

/* —— Nav (barra fina tipo Apple) —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0;
  width: min(100% - 2rem, 1024px);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.8;
}

.brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.88;
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-links .btn,
.nav-links a.btn,
.nav-links a.btn-red,
.nav-links a.btn-blue {
  font-size: 12px;
  padding: 0.4rem 0.9rem;
  opacity: 1;
  color: #ffffff !important;
  background: var(--accent);
}

.nav-links .btn:hover,
.nav-links a.btn:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
  text-decoration: none;
}

/* —— Botones —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  border-radius: 980px;
  padding: 0.7rem 1.25rem;
  font-size: 17px;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-blue,
.btn-red {
  background: var(--accent);
  color: #ffffff !important;
}

.btn-blue:hover,
.btn-red:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
}

.btn-light {
  background: #fff;
  color: var(--accent);
}

.btn-light:hover {
  opacity: 0.9;
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  text-decoration: underline;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.1rem;
}

.link-row a {
  font-size: 17px;
}

.link-row a::after {
  content: " ›";
}

/* —— Showcase: módulo grande al inicio —— */
.showcase {
  background: var(--bg);
  padding: 1.25rem 0 0;
}

.showcase-figure {
  /* No agrandar más que la resolución real (1024px) → evita borrosidad */
  width: min(100%, 1024px);
  margin: 0 auto;
  padding: 0 0.75rem;
}

.showcase-figure img {
  width: 100%;
  height: auto;
  margin-inline: auto;
  image-rendering: auto;
  -webkit-user-drag: none;
}

/* —— Texto debajo del producto —— */
.hero {
  text-align: center;
  padding: 4.5rem 0 0;
  background: var(--bg);
}

.hero-below {
  padding: 1.5rem 0 3rem;
}

.hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.07;
}

.hero .subhead {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 0;
}

.hero-figure {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
  background: transparent;
}

.hero-figure img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* —— Secciones —— */
.tile {
  text-align: center;
  padding: 4rem 1.25rem 3.5rem;
}

.tile-alt {
  background: var(--bg-alt);
}

.tile-dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}

.tile-dark .subhead,
.tile-dark .muted {
  color: #a1a1a6;
}

.tile-dark a {
  color: #ff8a80;
}

.tile-dark .btn-light {
  color: var(--accent);
}

.tile h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tile .subhead {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  font-size: 21px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.3;
}

.tile-media {
  width: min(100%, 800px);
  margin: 2rem auto 0;
}

.tile-media img {
  width: 100%;
  border-radius: 18px;
}

.steps {
  display: grid;
  gap: 2.5rem;
  text-align: left;
  max-width: 900px;
  margin: 2.5rem auto 0;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.step-num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— Membresía / planes —— */
.plans {
  display: grid;
  gap: 1rem;
  max-width: 980px;
  margin: 2rem auto 0;
  text-align: left;
}

@media (min-width: 860px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan.is-featured {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(198, 40, 40, 0.08);
}

.plan-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.plan h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan .price {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.plan .price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  font-size: 14px;
  color: var(--muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.plan li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text);
}

.plan .btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 15px;
}

.note {
  max-width: 640px;
  margin: 1.75rem auto 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* —— Modal —— */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.modal-bg.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  margin: 0 0 0.35rem;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal .sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 14px;
}

.summary {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 15px;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}

.modal-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

/* —— Legal —— */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal-page .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 15px;
}

.legal-page ul {
  padding-left: 1.15rem;
}

/* —— Footer —— */
.foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 12px;
  color: var(--muted);
}

.foot-inner {
  width: min(100% - 2rem, 1024px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}
