/* Reels de @isidro_yiyi · revisión móvil */
@font-face {
  font-family: "Anton";
  src: url("fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-up: #141416;
  --bg-card: #121214;
  --line: rgba(243, 239, 230, 0.10);
  --text: #f3efe6;
  --muted: #a8a29a;
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.16);
  --gold: #ffc53d;
  --gold-soft: rgba(255, 197, 61, 0.16);
  --radius: 20px;
  --pad: 1.25rem;
  --max: 28rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: var(--max);
  padding: calc(1.15rem + var(--safe-top)) var(--pad) calc(2.75rem + var(--safe-bot));
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(255, 90, 31, 0.18), transparent 55%),
    radial-gradient(80% 40% at 0% 0%, rgba(255, 197, 61, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100dvh;
}

h1, h2, h3 {
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p, dl, pre, ul, dt, dd {
  margin: 0;
}

a {
  color: inherit;
}

.top {
  margin-bottom: 1.15rem;
}

.brand {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 0.7rem;
  line-height: 1.35;
}

.top h1 {
  font-size: clamp(1.85rem, 8.4vw, 2.45rem);
  margin-bottom: 0.55rem;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
}

.howto {
  background: var(--bg-up);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 0.9rem 1.05rem 1rem;
  margin-bottom: 1.25rem;
}

.howto h2 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.howto p {
  color: var(--muted);
  font-size: 0.98rem;
}

.example {
  margin-top: 0.65rem !important;
  color: var(--text) !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem !important;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1.3rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.card-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.num {
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-size: 2.15rem;
  line-height: 0.9;
  color: var(--accent);
  min-width: 2.4rem;
  padding-top: 0.15rem;
}

.head-text h2 {
  font-size: clamp(1.45rem, 6.4vw, 1.8rem);
  margin-top: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(255, 197, 61, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 197, 61, 0.22);
}

.player {
  width: min(100%, 22rem, calc(70vh * 9 / 16));
  margin: 0 auto 1rem;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  background: #000;
}

.player-alt {
  width: min(100%, 16rem, calc(55vh * 9 / 16));
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary,
.btn-secondary {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #1a0a04;
  margin-bottom: 1.1rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.08);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost {
  min-height: 2.15rem;
  padding: 0.3rem 0.75rem;
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  font-size: 0.8rem;
}

.btn-ghost.is-copied {
  color: #0b0b0c;
  background: var(--gold);
  border-color: var(--gold);
}

.note {
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 31, 0.28);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.meta {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.meta dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.meta dd {
  color: var(--text);
}

.caption-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem 0.9rem;
  margin-bottom: 0.7rem;
}

.caption-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.caption-head span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.caption {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.alt {
  margin-top: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.alt summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.5rem;
}

.alt summary::-webkit-details-marker {
  display: none;
}

.alt summary::after {
  content: "+";
  display: inline-block;
  font-family: "Anton", sans-serif;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transform-origin: center;
}

.alt[open] summary::after {
  transform: rotate(45deg);
}

.alt p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.soon {
  margin: 2rem 0 1.5rem;
}

.soon h2 {
  font-size: 1.7rem;
  margin-bottom: 0.85rem;
}

.soon ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.soon li {
  background: var(--bg-up);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.2rem;
}

.soon strong {
  font-weight: 700;
}

.soon span {
  color: var(--muted);
  font-size: 0.95rem;
}

.foot {
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}

.sign {
  margin-top: 0.55rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.break-mob { display: none; }

@media (max-width: 719px) {
  .break-mob { display: block; }
  .brand .dot { display: none; }
}

@media (min-width: 720px) {
  body {
    max-width: 52rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .card {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
