/* Lenguaje visual de la Escuela de Audio en Vivo, adaptado a este curso. */
:root {
  --canvas: #657984;
  --ink: #f2f4f2;
  --paper: #e9ece9;
  --panel: #172120;
  --panel-soft: #1d2928;
  --text-dark: #192321;
  --muted: #a9b4b3;
  --line: rgba(255, 255, 255, .16);
  --coral: #c8d0cf;
  --rf-primary: #172120;
  --rf-primary-2: #172120;
  --rf-accent: #c8d0cf;
  --rf-soft: #d8dedc;
  --rf-muted: #54615e;
  --radius: 8px;
  --shadow: none;
  --font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}
body > header,
body > section,
body > footer {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}
body > section { margin-top: 24px; border-radius: 8px; overflow: hidden; }
.container { max-width: 1160px; padding-inline: 32px; }
h1, h2, h3 { letter-spacing: -.035em; }
p { line-height: 1.65; }

header {
  position: relative;
  top: auto;
  z-index: 50;
  padding-top: 14px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}
.nav {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  height: auto;
  padding: 10px 20px;
  color: var(--ink);
  background: rgba(19, 27, 27, .96);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 22, 22, .15);
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { display: block; flex: none; width: 58px; height: 24px; object-fit: contain; }
.brand span { display: block; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1; white-space: nowrap; transform: translateY(1px); }
.menu { align-items: center; gap: clamp(12px, 1.5vw, 22px); }
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #cbd2d0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.menu a:hover, .menu a:focus-visible { color: #fff; }
.burger { color: var(--ink); cursor: pointer; }
.mobile-drawer { top: 82px; background: var(--panel); border-color: var(--line); border-radius: 0 0 8px 8px; }
.mobile-list a { color: var(--ink); background: var(--panel-soft); border: 1px solid var(--line); border-radius: 4px; }

.btn {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-accent, .btn-primary { background: var(--coral); color: var(--text-dark); }
.btn-accent:hover, .btn-primary:hover { background: #e2e7e5; }
.btn-soft { background: #d8dedc; color: var(--text-dark); }
.btn-soft:hover { background: #f2f4f2; }
.btn-ghost { color: var(--ink); border: 1px solid rgba(255, 255, 255, .5); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--text-dark); }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 650px;
  padding: 0;
  background: #172120;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 17, 18, .95) 0%, rgba(9, 17, 18, .77) 41%, rgba(9, 17, 18, .15) 100%),
              linear-gradient(0deg, rgba(9, 17, 18, .6), transparent 38%);
  pointer-events: none;
}
.hero .wrap {
  display: block;
  width: 100%;
  max-width: none;
  padding: 105px max(32px, calc((100% - 1100px) / 2)) 110px;
}
.hero .wrap > div:first-child { position: relative; z-index: 2; max-width: 760px; }
.hero .wrap > div:last-child { position: absolute; inset: 0; }
.phone-mock {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  border-radius: 0;
  filter: none;
}
.kicker,
.kicker.arriba {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
}
.hero h1 {
  margin: 18px 0 20px;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(3.25rem, 5.3vw, 4.6rem);
  font-weight: 800;
  line-height: 1.01;
}
.hero .subtitle { color: #e0e7e5; font-size: 18px; max-width: 56ch; }
.hero .hero-note { margin-top: 20px; color: #c4cecb; font-size: 13px; font-weight: 700; }
.hero-ctas { gap: 12px; margin-top: 28px; }
.hero-ctas .btn-soft { background: rgba(19, 27, 27, .3); color: var(--ink); border-color: rgba(255, 255, 255, .48); }
.hero-ctas .btn-soft:hover { background: var(--ink); color: var(--text-dark); }
.hero-facts {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 22px max(32px, calc((100% - 1100px) / 2));
  background: rgba(13, 21, 21, .88);
  border-top: 1px solid var(--line);
}
.hero-facts p { display: flex; align-items: center; gap: 13px; margin: 0; padding: 0 34px 0 0; line-height: 1.15; }
.hero-facts p + p { padding-left: 34px; border-left: 1px solid var(--line); }
.hero-facts strong { color: var(--coral); font-size: 28px; font-weight: 800; }
.hero-facts span { color: #d8dedc; font-size: 12px; font-weight: 700; }

section { padding: 72px 0; }
.section-title { margin-bottom: 18px; font-size: clamp(2.25rem, 4vw, 3.65rem); line-height: 1.06; font-weight: 800; }
.section-desc { margin-bottom: 0; font-size: 17px; line-height: 1.65; }

.problem { color: var(--text-dark); background: var(--paper); border: 0; }
.problem .container { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 70px; }
.problem .section-title { max-width: 12ch; }
.problem .section-desc { align-self: center; color: #475550; }
.pain-list { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.pain { align-items: center; min-height: 72px; padding: 18px 20px; background: #f8faf8; border: 1px solid #d3dcd7; border-radius: 4px; box-shadow: none; }
.pain strong { color: var(--text-dark); }
.problem .badges { grid-column: 1 / -1; margin-top: 26px; }
.badge { padding: 9px 13px; border: 1px solid #bbc8c4; border-radius: 4px; background: transparent; color: var(--text-dark); font-size: 12px; }

#programa { color: var(--ink); background: var(--panel); }
#programa .section-desc { color: var(--muted); }
.features-actions { margin-top: 25px; }
#programa .features-actions .btn { border: 1px solid var(--line); background: var(--panel-soft); color: var(--ink); }
.details-panel { margin-top: 16px; padding: 24px; background: var(--paper); color: var(--text-dark); border: 0; border-radius: 4px; box-shadow: none; }
.details-grid { gap: 12px; }
.details-card { padding: 22px; background: #f8faf8; border: 1px solid #d0d9d4; border-radius: 4px; }
.details-card h3 { color: var(--text-dark); font-size: 19px; line-height: 1.2; }
.details-card li { margin: 4px 0; color: #4b5955; }
.features { gap: 12px; margin-top: 24px; }
.card { padding: 24px; background: var(--panel-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; }
.card h3 { margin: 18px 0 12px; font-size: 20px; line-height: 1.2; }
.card p { margin: 0; color: #bec9c5; }
.chip { padding: 0; background: transparent; color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

#autor { color: var(--text-dark); background: var(--paper); }
.author { grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.author .bio { display: flex; flex-direction: column; justify-content: center; min-height: 420px; padding: 38px; background: var(--panel); color: var(--ink); border: 0; border-radius: 4px; box-shadow: none; }
.author .bio p { margin: 0; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.45; }
.author .bio .badge { color: var(--ink); border-color: var(--line); }
.author .media { height: 420px; }
.author .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; border-radius: 4px; }

#beneficios { color: var(--ink); background: var(--panel); }
#beneficios .section-desc { color: var(--muted); }
.benefits { gap: 12px; margin-top: 30px; }
.benefits .card { min-height: 240px; }

#precios { color: var(--text-dark); background: var(--paper); }
#precios .section-desc { max-width: 75ch; color: #4b5955; }
.pricing { grid-template-columns: minmax(0, 1fr); max-width: 880px; margin-top: 28px; }
.price-card { padding: 38px; background: var(--panel); color: var(--ink); border: 0; border-radius: 4px; box-shadow: none; }
.price-card h3 { margin: 0 0 14px; color: var(--coral); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 12px; color: var(--ink); font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; }
.price small { color: var(--muted); font-size: 14px; font-weight: 600; }
.price-card .list { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-card .list li { margin: 9px 0; color: #d7dfdc; }
#precios > .container > .badges { margin-top: 20px; }

#faq { color: var(--ink); background: var(--panel); }
.faq { max-width: none; margin-top: 30px; }
details { padding: 0; background: var(--panel-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; }
details + details { margin-top: 8px; }
summary { padding: 20px 24px; font-size: 17px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--coral); font-size: 24px; line-height: .8; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

.cta { color: var(--text-dark); background: var(--paper); border: 0; }
.cta .box { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--text-dark); }
.cta .section-title { max-width: 15ch; }
.cta .section-desc { color: #4b5955; }
.cta .btn-primary { color: var(--ink); background: var(--panel); }
.cta .btn-primary:hover { background: #31413e; }
.cta .btn-ghost { color: var(--text-dark); border-color: #70827e; }
.cta .btn-ghost:hover { color: var(--ink); background: var(--panel); }

.footer { margin-top: 24px; padding: 36px 24px; color: var(--ink); background: var(--panel); border: 0; border-radius: 8px 8px 0 0; }
.footer-brand { margin-bottom: 22px; color: var(--ink); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { gap: 8px; }
.footer-links a { padding: 8px 12px; color: #cbd2d0; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; font-weight: 700; }
.footer-links a:hover { color: var(--text-dark); background: var(--coral); }
.footer-copy { color: var(--muted); }

.sticky-cta { background: rgba(19, 27, 27, .98); color: var(--ink); border-color: var(--line); }
.sticky-cta .title { font-size: 13px; }
.sticky-cta small { color: var(--muted) !important; }
.sticky-cta .btn { min-height: 42px; }
.wh-fab { border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }

:focus-visible { outline: 2px solid #a7ced1; outline-offset: 3px; }

@media (max-width: 1050px) {
  .menu { gap: 10px; }
  .menu a { font-size: 11px; }
  .brand span { font-size: 11px; }
}

@media (max-width: 850px) {
  .menu { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .hero .wrap { padding-block: 90px; }
  .hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
  .problem .container { grid-template-columns: 1fr; }
  .problem .section-title { max-width: none; }
  .problem .section-desc { margin-top: 0; }
  .pain-list, .problem .badges { grid-column: 1; }
}

@media (max-width: 640px) {
  body > header, body > section, body > footer { width: min(100% - 24px, 1280px); }
  .container { padding-inline: 22px; }
  .nav { min-height: 60px; padding-inline: 14px; }
  .brand img { width: 50px; }
  .brand span { max-width: 180px; white-space: normal; line-height: 1.2; font-size: 10px; }
  .mobile-drawer { top: 74px; }
  body > section { margin-top: 12px; }
  section { padding-block: 54px; }
  .hero { min-height: 640px; padding: 0; }
  .hero::after { background: linear-gradient(90deg, rgba(9, 17, 18, .86), rgba(9, 17, 18, .42)), linear-gradient(0deg, rgba(9, 17, 18, .72), transparent 65%); }
  .hero .wrap { padding: 85px 24px 70px; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .hero .subtitle { font-size: 16px; }
  .hero-ctas { align-items: stretch; flex-direction: column; }
  .hero-facts { padding: 15px 12px; }
  .hero-facts p { flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 10px; }
  .hero-facts p + p { padding-left: 10px; }
  .hero-facts strong { font-size: 21px; }
  .hero-facts span { font-size: 10px; }
  .section-title { font-size: clamp(2rem, 8vw, 3rem); }
  .section-desc { font-size: 16px; }
  .pain-list, .features, .benefits, .details-grid { grid-template-columns: 1fr; }
  .details-panel { padding: 12px; }
  .details-card { padding: 18px; }
  .author { grid-template-columns: 1fr; }
  .author .bio { min-height: 0; padding: 26px; }
  .author .media { height: 320px; }
  .price-card { padding: 28px 22px; }
  .price { flex-wrap: wrap; }
  .footer { margin-top: 12px; }
}

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