/* Soy Master Pro · estilos del sitio. Sin valores sueltos: todo sale de tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); }
a:hover { color: var(--c-accent-hover); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--f-display); font-weight: var(--fw-display); line-height: var(--lh-tight); margin: 0 0 var(--s-4); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s-4); }
ul { margin: 0 0 var(--s-4); padding-left: 1.2em; }
li { margin-bottom: var(--s-2); }
strong { font-weight: var(--fw-bold); }
code { font-family: var(--f-mono); font-size: 0.9em; background: var(--c-surface); padding: 0.1em 0.35em; border-radius: var(--r-sm); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s-4); top: var(--s-4); z-index: 99; background: var(--c-accent); color: var(--c-on-accent); padding: var(--s-2) var(--s-4); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.text { max-width: var(--maxw-text); }
.section { padding: var(--s-8) 0; border-top: 1px solid var(--c-line); }
.section--alt { background: var(--c-bg-alt); }
.center { text-align: center; }
.center .text { margin-left: auto; margin-right: auto; }

.label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-3);
  display: block;
}
.muted { color: var(--c-text-muted); }
.small { font-size: var(--fs-sm); }

/* --- Dato pendiente: visible a propósito. No se publica con .ph a la vista --- */
.ph {
  background: var(--c-ph-bg);
  color: var(--c-ph-text);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
  line-height: 1.5;
}
div.ph, p.ph { display: block; padding: var(--s-3); margin: var(--s-3) 0; }

/* --- Marca: wordmark en texto (barra) y emblema (portada, pie) --- */
.wordmark {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-family: var(--f-display); font-weight: var(--fw-display); font-style: italic;
  font-size: var(--fs-lg); letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--c-text); text-decoration: none;
}
.wordmark span { color: var(--c-accent); margin-left: 0.3em; }
.wordmark:hover { color: var(--c-text); }
.emblem { width: min(18rem, 80vw); height: auto; margin: 0 auto; mix-blend-mode: lighten; } /* funde el negro del PNG con el fondo */
/* Marcador de logo (por si se necesita otra vez mientras llega un recurso) */
.logo-ph {
  display: inline-flex; align-items: center; gap: var(--s-2);
  border: 2px dashed var(--c-ph-bg); color: var(--c-text);
  padding: var(--s-1) var(--s-3); min-height: var(--tap); border-radius: var(--r-sm);
  font-family: var(--f-display); font-weight: var(--fw-display); text-decoration: none;
}
.logo-ph:hover { color: var(--c-text); }
.logo-ph small { font-family: var(--f-mono); font-weight: var(--fw-body); font-size: var(--fs-xs); color: var(--c-ph-bg); }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--f-body); font-weight: var(--fw-bold); font-size: var(--fs-base);
  text-decoration: none; text-align: center;
  border: 2px solid var(--c-accent);
  transition: background var(--dur), transform var(--dur);
}
.btn:hover { background: var(--c-accent-hover); color: var(--c-on-accent); transform: translateY(-1px); box-shadow: var(--glow); }
.btn--ghost { background: transparent; color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-accent-hover); }
.cta { margin-top: var(--s-6); }
.cta .note { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--c-text-muted); }

/* --- Cabecera mínima (sin menú: un solo objetivo) --- */
.top { padding: var(--s-4) 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }

/* --- Hero --- */
.hero { padding: var(--s-7) 0 var(--s-8); }
.hero .sub { font-size: var(--fs-lg); color: var(--c-text-muted); max-width: var(--maxw-text); }
.chips { list-style: none; padding: 0; display: grid; gap: var(--s-3); margin: var(--s-5) 0 0; }
.chips li { margin: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); font-size: var(--fs-sm); }
.media-ph {
  margin-top: var(--s-6);
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  display: grid; place-items: center; text-align: center; padding: var(--s-4);
}

/* --- Rejillas --- */
.grid { display: grid; gap: var(--s-4); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-5); }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; margin-top: var(--s-3); font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-accent); }

/* Hoja de llamado del equipo */
.crew .card { padding: var(--s-4); }
.crew .role { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--c-accent); }
.director { border: 2px solid transparent; background: linear-gradient(var(--c-surface), var(--c-surface)) padding-box, var(--grad-ring) border-box; text-align: center; }

/* --- Línea de tiempo (vertical en móvil, columnas en escritorio) --- */
.steps { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; gap: var(--s-3); counter-reset: paso; }
.steps li { margin: 0; position: relative; padding: var(--s-4) var(--s-4) var(--s-4) 3.25rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); counter-increment: paso; }
.steps li::before { content: counter(paso); position: absolute; left: var(--s-4); top: var(--s-4); font-family: var(--f-mono); color: var(--c-accent); font-weight: var(--fw-bold); }
.steps .stop { display: block; margin-top: var(--s-2); color: var(--c-accent); font-size: var(--fs-sm); font-style: italic; }
.steps .stop::before { content: "❚❚ "; font-style: normal; font-size: 0.8em; }

/* --- Acordeón (temario y preguntas) --- */
.acc { border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); margin-bottom: var(--s-3); }
.acc summary { cursor: pointer; list-style: none; padding: var(--s-4); min-height: var(--tap); display: flex; gap: var(--s-4); align-items: flex-start; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; color: var(--c-accent); font-family: var(--f-mono); font-size: var(--fs-lg); line-height: 1; }
.acc[open] summary::after { content: "–"; }
.acc .body { padding: 0 var(--s-4) var(--s-4); }
.acc .body ul { margin-bottom: 0; }
.scene { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); color: var(--c-on-accent-2); background: var(--c-accent-2); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); white-space: nowrap; }
.acc h3 { font-size: var(--fs-lg); margin: 0 0 var(--s-1); }
.acc .goal { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }
.faq summary { font-weight: var(--fw-bold); }

/* --- Para quién --- */
.fit h3 { display: flex; gap: var(--s-2); align-items: center; }
.fit .yes li::marker { content: "✓  "; color: var(--c-ok); }
.fit .no li::marker  { content: "✕  "; color: var(--c-no); }
.fit .fit__group { margin: var(--s-4) 0 var(--s-2); }
.fit .fit__group + ul { margin-top: 0; }

/* --- Tabla de costos (tarjetas en móvil) --- */
.costs { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: var(--fs-sm); }
.costs th, .costs td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.costs th { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--c-text-muted); font-weight: var(--fw-body); }
@media (max-width: 640px) {
  .costs thead { display: none; }
  .costs tr { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); }
  .costs td { display: block; border: 0; padding: var(--s-1) 0; }
  .costs td:first-child { font-weight: var(--fw-bold); }
}
.minpath { border: 1px solid var(--c-accent); border-radius: var(--r-md); padding: var(--s-4); }

/* --- Precio --- */
.price { max-width: 32rem; margin: 0 auto; text-align: left; border-color: var(--c-accent); }
.price .amount { font-family: var(--f-display); font-weight: var(--fw-display); font-size: var(--fs-h1); line-height: 1; }
.seal { display: inline-block; border: 2px solid var(--c-accent); border-radius: var(--r-pill); padding: var(--s-2) var(--s-4); font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--c-accent); }
.disclaimer { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--c-text-muted); border-left: 3px solid var(--c-line); padding-left: var(--s-3); }

/* --- Pie --- */
.foot { padding: var(--s-7) 0 calc(var(--s-9) + var(--s-4)); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-text-muted); }
.foot p { margin-bottom: var(--s-2); }
.foot .brand { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.credit { font-size: var(--fs-sm); color: var(--c-text-muted); letter-spacing: 0.04em; }

/* --- Barra fija de compra en móvil (aparece después del hero) --- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--c-bg-alt); border-top: 1px solid var(--c-line);
  transform: translateY(110%); visibility: hidden;
  transition: transform var(--dur), visibility var(--dur);
}
.buybar.is-on { transform: none; visibility: visible; }
.buybar .btn { width: 100%; }

/* --- Escritorio --- */
@media (min-width: 768px) {
  .chips { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .crew { grid-template-columns: repeat(4, 1fr); }
  .crew .director { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .section { padding: var(--s-9) 0; }
  .buybar { display: none; }
  .foot { padding-bottom: var(--s-7); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
