/* Akademia de Magos · Genesis Media · 2026-05-07
   Branding canónico: Brandbook v1 (Drive · BRANDING) */

/* ===== FONTS ===== */
@font-face {
  font-family: 'Hatton';
  src: url('/shared/fonts/PPHatton-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Hatton';
  src: url('/shared/fonts/PPHatton-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Hatton';
  src: url('/shared/fonts/PPHatton-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: 'Afrah';
  src: url('/shared/fonts/Afrah-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Afrah';
  src: url('/shared/fonts/Afrah-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

/* ===== TOKENS ===== */
:root {
  /* Paleta canon */
  --burdeos: #57220F;
  --teja: #A45739;
  --marron: #271605;
  --oliva: #7C6F4D;
  --sand: #D5B88A;
  --crema: #F9DB9B;
  --crema-soft: #FAF3E5;
  --crema-paper: #F5EAD3;
  --white: #FFFCF5;

  /* Roles */
  --bg: var(--crema-soft);
  --bg-alt: var(--crema-paper);
  --bg-dark: var(--marron);
  --ink: var(--marron);
  --ink-soft: #4a3322;
  --accent: var(--burdeos);
  --accent-hover: var(--teja);
  --rule: rgba(39, 22, 5, 0.18);

  /* Tipos */
  --f-display: 'Hatton', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --f-label:   'Afrah', 'Cinzel', 'Trajan Pro', serif;
  --f-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-script:  'Gloria Hallelujah', cursive;

  /* Layout */
  --max: 1140px;
  --max-narrow: 720px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-pad: clamp(64px, 9vw, 120px);
  --radius: 6px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4.8vw, 52px); font-weight: 500; }
h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 500; }
h4 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--f-label);
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burdeos);
  display: inline-block;
}
.label-serif {
  font-family: var(--f-label);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}
.script {
  font-family: var(--f-script);
  letter-spacing: 0.01em;
}
em, .emph { font-style: italic; color: var(--burdeos); }
p + p { margin-top: 1em; }

/* ===== LAYOUT ===== */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-pad) 0; }
section + section { padding-top: 0; }
section.bg-paper { background: var(--bg-alt); padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
section.bg-dark { background: var(--bg-dark); color: var(--crema-soft); padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
section.bg-dark h1, section.bg-dark h2, section.bg-dark h3, section.bg-dark h4 { color: var(--crema-soft); }
section.bg-dark .eyebrow { color: var(--sand); }

.divider {
  width: 60px;
  height: 1px;
  background: var(--rule);
  margin: 32px auto;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 100px);
  text-align: center;
  overflow: hidden;
}
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { margin: 0 auto 24px; max-width: 14ch; }
.hero .sub {
  max-width: 36ch;
  margin: 0 auto;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.4;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--f-display);
  font-weight: 200;
}
.hero--immersive {
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(80px, 10vw, 120px);
  color: var(--crema-soft);
  isolation: isolate;
}
.hero--immersive::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero--immersive::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 60%, rgba(39, 22, 5, 0.35) 0%, rgba(39, 22, 5, 0.78) 80%),
    linear-gradient(180deg, rgba(39, 22, 5, 0.55) 0%, rgba(39, 22, 5, 0.45) 50%, rgba(39, 22, 5, 0.85) 100%);
  z-index: -1;
}
.hero--immersive h1,
.hero--immersive .eyebrow,
.hero--immersive .sub { color: var(--crema-soft); }
.hero--immersive .eyebrow { color: var(--sand); }
.hero--immersive .sub { color: rgba(249, 219, 155, 0.92); }
.hero--immersive .form-card { background: rgba(255, 252, 245, 0.97); backdrop-filter: blur(6px); }

/* Section background image (subtle, with overlay) */
.bg-image {
  position: relative;
  isolation: isolate;
  color: var(--crema-soft);
}
.bg-image::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--section-bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.bg-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(39, 22, 5, 0.78), rgba(39, 22, 5, 0.92));
  z-index: -1;
}
.bg-image h2, .bg-image h3, .bg-image .eyebrow { color: var(--crema-soft); }
.bg-image .eyebrow { color: var(--sand); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--accent);
  color: var(--crema-soft);
  font-family: var(--f-label);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: var(--radius);
  transition: all 240ms ease;
  text-align: center;
  border: 1.5px solid var(--accent);
  min-height: 56px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--teja); border-color: var(--teja); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; color: var(--marron); border-color: var(--marron); }
.btn--ghost:hover { background: var(--marron); color: var(--crema-soft); }
.btn--lg { padding: 22px 48px; font-size: 16px; min-height: 64px; }
.btn .arrow { font-family: var(--f-display); font-weight: 400; letter-spacing: 0; transform: translateY(-1px); }

/* ===== FORM ===== */
.form-card {
  background: var(--white);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 8px;
  box-shadow: 0 30px 80px -40px rgba(39, 22, 5, 0.35), 0 2px 4px rgba(39, 22, 5, 0.04);
  max-width: 480px;
  margin: 40px auto 0;
  border: 1px solid var(--rule);
}
.form-card .form-title {
  font-family: var(--f-label);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--burdeos);
  margin-bottom: 20px;
}
.field { margin-bottom: 14px; }
.field input {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--ink);
  transition: all 200ms ease;
}
.field input::placeholder { color: rgba(39, 22, 5, 0.45); }
.field input:focus { outline: none; border-color: var(--burdeos); background: var(--white); }
.form-meta {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  letter-spacing: 0.02em;
}
.form-error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(87, 34, 15, 0.08);
  border-left: 3px solid var(--burdeos);
  color: var(--burdeos);
  font-size: 14px;
  border-radius: 4px;
}
.form-error.show { display: block; }

/* ===== TEXT BLOCKS ===== */
.prose p { margin-bottom: 1.2em; max-width: 60ch; }
.prose-narrow { max-width: 640px; margin: 0 auto; }
.prose-narrow p { margin-bottom: 1.2em; }
.section-title { text-align: center; margin-bottom: 56px; max-width: 18ch; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ===== LISTS ===== */
.checklist { list-style: none; margin: 0 auto; max-width: 640px; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 38px;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.55;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 22px;
  height: 22px;
  background: var(--burdeos);
  border-radius: 50%;
  display: flex;
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 28px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--crema-soft);
  border-bottom: 2px solid var(--crema-soft);
  transform: rotate(-45deg);
}

.crosslist { list-style: none; margin: 0 auto; max-width: 640px; }
.crosslist li {
  position: relative;
  padding: 14px 0 14px 38px;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.crosslist li:last-child { border-bottom: none; }
.crosslist li::before, .crosslist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 26px;
  width: 18px;
  height: 1.5px;
  background: var(--teja);
}
.crosslist li::before { transform: rotate(45deg); }
.crosslist li::after { transform: rotate(-45deg); }

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 800px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  position: relative;
}
.card .num {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 200;
  color: var(--teja);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.card h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 14px; line-height: 1.2; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* ===== AUTHOR BLOCK ===== */
.author {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 800px) { .author { grid-template-columns: 0.85fr 1fr; gap: 64px; } }
.author .photo {
  aspect-ratio: 4/5;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 30px 60px -30px rgba(39, 22, 5, 0.45);
}
.author .photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.author .photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(39, 22, 5, 0.4) 100%);
}
.author .photo .signature {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-family: var(--f-script);
  color: var(--crema-soft);
  font-size: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  z-index: 1;
}
.author p { margin-bottom: 1em; }
.author .pull {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 28px 0;
  font-style: italic;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  color: var(--burdeos);
  font-weight: 200;
}

/* ===== TESTIMONIAL ===== */
.testimonial-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 56px;
}
@media (min-width: 800px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 8px;
  border-left: 3px solid var(--burdeos);
  font-size: 16px;
  line-height: 1.6;
}
.testimonial blockquote { font-style: italic; color: var(--ink); margin-bottom: 16px; font-size: 16.5px; line-height: 1.55; }
.testimonial .who { font-family: var(--f-label); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--burdeos); }
.testimonial .who span { display: block; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* ===== HEADER LOGO ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 28px var(--gutter);
  z-index: 10;
  text-align: center;
}
.site-header img { height: 64px; width: auto; margin: 0 auto; }
@media (max-width: 600px) { .site-header img { height: 52px; } }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--marron);
  color: rgba(249, 219, 155, 0.7);
  padding: 56px var(--gutter) 40px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.site-footer img { height: 48px; margin: 0 auto 24px; opacity: 0.85; }
.site-footer .legal-links { margin-top: 18px; font-size: 12.5px; }
.site-footer .legal-links a { color: rgba(249, 219, 155, 0.55); margin: 0 10px; text-decoration: underline; text-decoration-color: rgba(249, 219, 155, 0.25); }
.site-footer .legal-links a:hover { color: var(--crema); }

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px auto 0;
  flex-wrap: wrap;
}
.countdown .unit {
  background: var(--marron);
  color: var(--crema);
  padding: 14px 18px;
  border-radius: 6px;
  min-width: 76px;
  text-align: center;
}
.countdown .unit .num {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  display: block;
}
.countdown .unit .lbl {
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
  opacity: 0.75;
}

/* ===== VIDEO ===== */
.video-frame {
  max-width: 880px;
  margin: 0 auto;
  background: var(--marron);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 100px -50px rgba(39, 22, 5, 0.6);
  aspect-ratio: 16/9;
  position: relative;
}
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--marron) 0%, var(--burdeos) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: var(--crema-soft);
}
.video-placeholder svg { width: 64px; height: 64px; opacity: 0.92; }
.video-placeholder span { font-family: var(--f-label); letter-spacing: 0.2em; font-size: 14px; opacity: 0.85; }

/* ===== BANNER ===== */
.banner {
  background: var(--burdeos);
  color: var(--crema-soft);
  text-align: center;
  padding: 14px var(--gutter);
  font-family: var(--f-label);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.banner strong { font-weight: 700; }

/* ===== UTILS ===== */
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: 56px; }
.text-burdeos { color: var(--burdeos); }
.hide-mobile { display: none; }
@media (min-width: 800px) { .hide-mobile { display: block; } .hide-desktop { display: none; } }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 56px auto 0;
}
@media (min-width: 800px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  text-align: center;
  position: relative;
}
.price-card.featured { border: 2px solid var(--burdeos); transform: scale(1.02); box-shadow: 0 30px 60px -30px rgba(39, 22, 5, 0.3); }
.price-card .tag { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teja); margin-bottom: 12px; }
.price-card .amount { font-family: var(--f-display); font-size: 48px; font-weight: 500; color: var(--marron); margin: 8px 0 4px; line-height: 1; }
.price-card .amount .cents { font-size: 22px; vertical-align: super; opacity: 0.7; }
.price-card .pp { font-family: var(--f-body); font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.price-card ul { list-style: none; text-align: left; margin: 24px 0; }
.price-card ul li { padding: 8px 0 8px 26px; position: relative; font-size: 14.5px; }
.price-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--burdeos);
  font-weight: 600;
  font-size: 14px;
}

/* ===== FAQ ===== */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-right: 36px;
  list-style: none;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 28px;
  font-weight: 200;
  color: var(--burdeos);
  transition: transform 240ms ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 16px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

/* ===== UI for replay ===== */
.aired-banner {
  background: var(--marron);
  color: var(--sand);
  text-align: center;
  padding: 12px;
  font-family: var(--f-label);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: all 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.in { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 110px; }
  .form-card { margin-top: 32px; padding: 24px 20px; }
  .checklist li, .crosslist li { font-size: 16px; }
  section { padding: 64px 0; }
}
