/* La Parada landing. Brand: ink and amber (logo M5), Poppins. */
:root {
  color-scheme: light dark;
  --ink-900: #0a0f1a;
  --ink-800: #111827;
  --ink-700: #1f2937;
  --ink-600: #374151;
  --amber: #ffb800;
  --amber-strong: #e6a500;
  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface-2: #f1ede5;
  --fg: #111827;
  --muted: #4b5563;
  --border: #e3ddd2;
  --accent-text: #8a5a00;
  --ink-text: #111827;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 8px 24px rgba(17, 24, 39, 0.08);
  --radius: 18px;
  --focus: #e6a500;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --surface: #111827;
    --surface-2: #1a2332;
    --fg: #eef1f6;
    --muted: #a3adbd;
    --border: #263042;
    --accent-text: #ffb800;
    --ink-text: #ffcf4d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6; font-size: 1rem; }
img, video { max-width: 100%; display: block; }
a { color: var(--ink-text); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--surface); color: var(--fg); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 14px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-accent { background: var(--amber); color: #111827; box-shadow: 0 6px 18px rgba(255, 184, 0, 0.35); }
.button-accent:hover { background: #ffc61f; }
.button-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }
.button-outline-light:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.button-light { background: #fff; color: var(--ink-800); }
.button-small { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; border-radius: 12px; }
.button-ghost { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.button-ghost:hover { border-color: var(--ink-600); }
.button[hidden] { display: none; }

.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd666; margin-bottom: 14px; }
.eyebrow-accent { color: var(--accent-text); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 75% 10%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(255, 184, 0, 0.16), transparent 60%),
    linear-gradient(160deg, var(--ink-700) 0%, var(--ink-800) 55%, var(--ink-900) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}
.topbar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand-mark { display: grid; place-items: center; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-link { color: #fff; text-decoration: none; font-weight: 500; opacity: 0.9; }
.topbar-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.hero-body { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.1rem); font-weight: 700; margin-bottom: 18px; }
.underline { position: relative; white-space: nowrap; }
.underline::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -0.08em; height: 0.14em;
  border-radius: 999px; background: var(--amber);
}
.hero .lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: rgba(255, 255, 255, 0.88); max-width: 540px; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); max-width: 520px; margin-top: 18px; }

.hero-video { margin: 0; }
.frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0a0f1a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.08);
}
.frame video { width: 100%; height: 100%; object-fit: cover; background: #0a0f1a; }
.hero-video figcaption { margin-top: 12px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); text-align: center; }

.play-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 600;
  background: linear-gradient(to top, rgba(10, 15, 26, 0.55), rgba(10, 15, 26, 0.05) 60%);
}
.play-overlay[hidden] { display: none; }
.play-icon {
  position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease;
}
.play-icon::after {
  content: ""; position: absolute; left: 34px; top: 26px;
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #111827;
}
.play-overlay:hover .play-icon, .play-overlay:focus-visible .play-icon { transform: scale(1.07); }
.play-label { background: rgba(0, 0, 0, 0.45); padding: 6px 14px; border-radius: 999px; font-size: 0.92rem; }
.play-overlay:focus-visible { outline-offset: -6px; }

/* Sections */
.section { padding: 80px 0; }
.section h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin-bottom: 40px; }

.benefit-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.benefit h3 { font-size: 1.15rem; font-weight: 600; margin: 16px 0 8px; }
.benefit p { color: var(--muted); }
.benefit-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 184, 0, 0.18); color: var(--ink-text); }
.benefit-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit-featured { background: linear-gradient(150deg, var(--ink-700), var(--ink-900)); border-color: transparent; color: #fff; }
.benefit-featured p { color: rgba(255, 255, 255, 0.85); }
.benefit-featured .benefit-icon { background: rgba(255, 255, 255, 0.14); color: #ffd666; }

/* Tutorials */
.tutorials { background: var(--surface-2); }
.series-list { display: grid; gap: 56px; }
.series-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.series-tag { display: inline-block; background: var(--amber); color: #111827; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.series-head h3 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); font-weight: 700; }
.series-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.series-meta { color: var(--muted); font-size: 0.92rem; font-weight: 500; white-space: nowrap; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; padding: 0; cursor: pointer;
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--ink-600); box-shadow: 0 2px 4px rgba(16, 40, 31, 0.08), 0 16px 32px rgba(16, 40, 31, 0.14); }
.card:focus-visible { outline-offset: 2px; border-radius: var(--radius); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #111827; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 15, 26, 0.45), transparent 32%); }
.badge-number {
  position: absolute; left: 12px; top: 12px; z-index: 1; min-width: 44px; padding: 4px 10px; border-radius: 10px;
  background: var(--ink-800); color: #fff; font-weight: 700; font-size: 0.95rem; text-align: center;
}
.badge-duration { position: absolute; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: 0.85rem; font-weight: 600; background: rgba(0, 0, 0, 0.55); padding: 2px 8px; border-radius: 8px; }
.thumb-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); opacity: 0; transform: scale(0.9); transition: opacity 0.18s ease, transform 0.18s ease;
}
.thumb-play::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--ink-800); }
.card:hover .thumb-play, .card:focus-visible .thumb-play { opacity: 1; transform: scale(1); }
.card-body { padding: 16px 18px 20px; }
.card-title { display: block; font-weight: 600; font-size: 1.06rem; line-height: 1.3; }
.card-text { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.status { color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }

/* Call to action */
.cta { padding-top: 0; padding-bottom: 80px; background: var(--surface-2); }
.cta-box {
  max-width: 1120px; text-align: center; color: #fff; border-radius: 26px; padding: 48px 24px;
  background: radial-gradient(700px 300px at 50% 0%, rgba(255, 255, 255, 0.12), transparent 70%), linear-gradient(160deg, var(--ink-700), var(--ink-900));
}
.cta-box p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }
.cta-box .actions { justify-content: center; }
.cta-box .note { margin: 18px auto 0; }

/* Footer */
.footer { padding: 32px 0 40px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: grid; gap: 10px; text-align: center; }
.footer a { color: inherit; }
.credit { font-size: 0.82rem; overflow-wrap: anywhere; }

/* Player dialog */
.player {
  width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 20px;
  background: var(--surface); color: var(--fg); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); overflow: auto;
}
.player::backdrop { background: rgba(10, 15, 26, 0.78); backdrop-filter: blur(3px); }
.player-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; }
.player-kicker { color: var(--accent-text); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.player-title { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; margin-top: 2px; }
.icon-button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); cursor: pointer; }
.icon-button svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.icon-button:hover { border-color: var(--ink-600); }
.player-frame { background: #000; aspect-ratio: 16 / 9; }
.player-frame video { width: 100%; height: 100%; }
.player-description { color: var(--muted); padding: 16px 20px 0; }
.player-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 20px 20px; }
.player-nav .button { max-width: 100%; }
.player-nav #player-next { margin-left: auto; }

@media (min-width: 640px) {
  .benefit-grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { text-align: left; }
}
@media (min-width: 960px) {
  .hero-body { grid-template-columns: 1fr 1.08fr; gap: 56px; padding-top: 40px; padding-bottom: 104px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-featured { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
  .benefit-featured h3 { font-size: 1.6rem; }
  .benefit-featured p { font-size: 1.08rem; max-width: 560px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 104px 0; }
  .cta { padding-top: 0; }
  .cta-box { padding: 64px 32px; }
}
@media (max-width: 639px) {
  .wrap { padding: 0 16px; }
  .topbar-link { display: none; }
  .actions .button { flex: 1 1 100%; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .button:hover { transform: none; }
  .card:hover .thumb img { transform: none; }
}
