:root {
  color-scheme: dark;
  --bg: #08110d;
  --panel: #101d17;
  --panel-soft: rgba(255, 255, 255, 0.07);
  --text: #f5efe2;
  --muted: #cfc5ae;
  --gold: #d7ae64;
  --green: #89b982;
  --wine: #682f2f;
  --line: rgba(245, 239, 226, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(215, 174, 100, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(137, 185, 130, 0.14), transparent 30rem),
    linear-gradient(180deg, #08110d 0%, #0f1712 46%, #070b09 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.section-pad { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.hero { min-height: 100vh; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 17, 13, 0.2), rgba(8, 17, 13, 0.9)),
    url("./assets/Imagenes/Fondo.jpg") center/cover;
  opacity: 0.42;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% -10%;
  height: 360px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: "Instrument Serif", serif;
  color: var(--gold);
}
.nav-links { display: flex; gap: 22px; color: var(--muted); font-weight: 600; font-size: 0.94rem; }
.nav-links a:hover { color: var(--text); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) 420px; gap: 48px; align-items: center; padding: 74px 0 110px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800; }
h1, h2, h3 { margin: 0; line-height: 0.95; letter-spacing: -0.045em; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3.5rem, 8vw, 7.7rem); max-width: 930px; }
h2 { font-size: clamp(2.5rem, 5vw, 5.1rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.025em; }
.hero-text { max-width: 690px; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.35rem); line-height: 1.65; margin: 26px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--gold), #f2d493); color: #151008; box-shadow: 0 16px 40px rgba(215, 174, 100, 0.22); }
.btn.secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); }

.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 44px 0 0; max-width: 720px; }
.proof-strip div { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.055); border-radius: 22px; padding: 18px; }
.proof-strip dt { color: var(--text); font-weight: 900; font-size: 1.35rem; }
.proof-strip dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.hero-card {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 32px;
  background: linear-gradient(145deg, rgba(16, 29, 23, 0.88), rgba(67, 35, 27, 0.75));
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.program-seal {
  width: min(78%, 310px);
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.34));
}
.card-kicker { color: var(--green); font-weight: 900; text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.75rem; }
.hero-card h2 { font-size: 3.8rem; position: relative; }
.hero-card p { color: var(--muted); line-height: 1.7; position: relative; }
.signal-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; position: relative; }
.signal-list span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: var(--text); background: rgba(0, 0, 0, 0.18); font-size: 0.88rem; }

.problem-section, .program-section, .experts-section, .conversion-section { padding: 88px 0; }
.visual-story { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 16px; padding: 22px 0 74px; }
.visual-story figure { min-height: 360px; margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #111; box-shadow: var(--shadow); }
.visual-story .story-large { min-height: 500px; }
.visual-story img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.04) contrast(1.05); }
.visual-story figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74)); }
.visual-story figcaption { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; color: var(--text); font-weight: 800; line-height: 1.25; font-size: 1.05rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 34px; }
.section-heading.narrow { display: block; max-width: 780px; }
.section-heading p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 1.08rem; }
.value-grid, .experts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-grid article, .experts-grid article, .module-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 28px;
  padding: 26px;
}
.value-grid span, .module-month, .expert-role { color: var(--gold); font-weight: 900; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.value-grid p, .experts-grid p, .module-card p, .module-card li { color: var(--muted); line-height: 1.65; }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card { min-height: 460px; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.module-card > :not(.module-image) { margin-left: 26px; margin-right: 26px; }
.module-image { width: 100%; height: 168px; object-fit: cover; display: block; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.module-card h3 { margin: 12px 0; font-size: 1.55rem; }
.module-card ul { padding-left: 18px; margin-top: auto; margin-bottom: 26px; }

.experts-grid article { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)); }
.expert-avatar { width: min(230px, 78%); aspect-ratio: 1; object-fit: cover; display: block; margin: 0 auto 22px; border-radius: 50%; border: 1px solid rgba(215, 174, 100, 0.5); filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.35)); }
.experts-grid h3 { margin-bottom: 12px; }

.conversion-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
  position: relative;
}
.conversion-section::before { content: ""; position: absolute; inset: 44px auto auto -8%; width: 280px; height: 420px; background: url("./assets/Imagenes/Recurso%2010.png") center/cover; border-radius: 28px; opacity: 0.18; filter: saturate(1.1); z-index: -1; }
.conversion-copy { position: sticky; top: 24px; }
.conversion-copy p { color: var(--muted); line-height: 1.75; font-size: 1.08rem; }
.check-list { padding-left: 18px; color: var(--muted); line-height: 1.8; }
.lead-form {
  border: 1px solid rgba(215, 174, 100, 0.28);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { display: grid; gap: 8px; margin-bottom: 14px; }
.form-row label { font-weight: 800; color: var(--text); font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}
select option { color: #111; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215, 174, 100, 0.13); }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--muted); line-height: 1.5; font-size: 0.9rem; margin: 16px 0; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.form-submit { width: 100%; margin-top: 8px; border: 0; }
.form-status { min-height: 24px; margin: 14px 0 0; font-weight: 700; }
.form-status.success { color: #a8e6a1; }
.form-status.error { color: #ffb1a8; }

.footer { padding: 36px 0 54px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(215, 174, 100, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 90%, rgba(137, 185, 130, 0.12), transparent 24rem),
    var(--bg);
}
.thanks-shell { padding: 42px 0; }
.thanks-card {
  width: min(820px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(215, 174, 100, 0.28);
  border-radius: 38px;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
}
.thanks-card h1 { font-size: clamp(3.2rem, 8vw, 6.3rem); }
.thanks-card p:not(.eyebrow) { color: var(--muted); line-height: 1.75; font-size: 1.08rem; max-width: 640px; margin: 20px auto 0; }
.thanks-seal { width: min(230px, 60%); height: auto; margin-bottom: 26px; filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.34)); }
.thanks-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.thanks-note { font-size: 0.9rem !important; }

@media (max-width: 960px) {
  .hero-grid, .conversion-section { grid-template-columns: 1fr; }
  .hero-card { min-height: 410px; }
  .modules, .value-grid, .experts-grid, .visual-story { grid-template-columns: 1fr 1fr; }
  .visual-story .story-large { grid-column: 1 / -1; }
  .conversion-copy { position: static; }
}

@media (max-width: 680px) {
  .nav { align-items: flex-start; }
  .nav-links { display: none; }
  .hero-grid { padding-top: 44px; }
  .proof-strip, .modules, .value-grid, .experts-grid, .form-grid, .visual-story { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-card h2 { font-size: 3rem; }
  .problem-section, .program-section, .experts-section, .conversion-section { padding: 58px 0; }
  .visual-story { padding-bottom: 44px; }
  .visual-story figure, .visual-story .story-large { min-height: 340px; }
  .footer { display: block; }
}
