/* Section blocks: hero, courses, methodology, team, pricing, faq, contacts, stats, form */

/* --- HERO --- */
.hero {
  position: relative; padding: 64px 0 80px;
  background:
    radial-gradient(900px 600px at 85% 0%, rgba(0,51,153,0.07), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid; gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
  .hero { padding: 96px 0 120px; }
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--midnight); margin-bottom: 20px; font-weight: 600;
}
.hero__title {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.05; margin-bottom: 22px;
}
.hero__title em { font-style: normal; color: var(--ruby); }
.hero__lede {
  font-size: 19px; color: var(--steel); max-width: 50ch; margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__risk {
  font-size: 13px; color: var(--steel); border-left: 2px solid var(--ruby);
  padding: 4px 14px; line-height: 1.55; max-width: 56ch;
}
.hero__img-wrap {
  position: relative; aspect-ratio: 3/2;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: -18px; left: -14px;
  background: var(--paper); color: var(--ink);
  padding: 14px 18px; border-radius: var(--r-md);
  box-shadow: var(--shadow-soft); font-size: 13px; line-height: 1.4;
  max-width: 220px;
}
.hero__badge strong { display: block; font-size: 22px; font-family: var(--font-display); color: var(--midnight); margin-bottom: 2px; }

/* --- SECTION WRAPPER --- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p { color: var(--paper-alt); }
.section--alt { background: var(--paper-alt); }

.section__head { max-width: 760px; margin-bottom: 48px; }
.section__eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ruby); font-weight: 600; margin-bottom: 14px;
}

@media (min-width: 768px) {
  .section { padding: 104px 0; }
}

/* --- LOGOS / TRUST STRIP --- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--paper-alt); border-bottom: 1px solid var(--paper-alt);
}
.trust-strip__label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.trust-strip__item {
  font-family: var(--font-display); font-size: 22px; color: var(--ink); letter-spacing: 0.04em;
  opacity: 0.75;
}

/* --- COURSE CARDS --- */
.courses-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .courses-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .courses-grid { grid-template-columns: 1fr 1fr 1fr; } }

.course-card {
  background: var(--paper); border: 1px solid var(--paper-alt);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.course-card__img { aspect-ratio: 3/2; overflow: hidden; background: var(--graphite); }
.course-card__img img { width: 100%; height: 100%; object-fit: cover; }
.course-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card__tag {
  align-self: flex-start;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--midnight); font-weight: 600;
}
.course-card__title { font-size: 22px; margin-bottom: 4px; }
.course-card__excerpt { color: var(--steel); font-size: 15px; margin-bottom: 14px; flex: 1; }
.course-card__meta { display: flex; gap: 16px; font-size: 13px; color: var(--steel); margin-bottom: 14px; }
.course-card__cta { font-size: 14px; font-weight: 600; color: var(--ruby); text-decoration: none; }
.course-card__cta::after { content: " →"; }

/* --- METHODOLOGY STEPS --- */
.steps {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
  list-style: none; padding: 0; margin: 0;
}
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }

.step {
  position: relative; padding: 32px 24px; border: 1px solid var(--paper-alt);
  border-radius: var(--r-md); background: var(--paper);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 42px; color: var(--ruby);
  display: block; margin-bottom: 12px; line-height: 1; opacity: 0.9;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--steel); margin: 0; font-size: 15px; }

/* --- TEAM CARDS --- */
.team-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.member {
  display: flex; flex-direction: column;
}
.member__photo {
  aspect-ratio: 2/3; overflow: hidden;
  border-radius: var(--r-md); background: var(--graphite);
  margin-bottom: 16px;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.member:hover .member__photo img { transform: scale(1.03); }
.member__name { font-size: 21px; margin-bottom: 4px; }
.member__role {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ruby); margin-bottom: 10px; font-weight: 600;
}
.member__bio { color: var(--steel); font-size: 14px; margin-bottom: 10px; }
.member__links { display: flex; gap: 14px; font-size: 13px; }
.member__links a { color: var(--midnight); text-decoration: none; border-bottom: 1px solid var(--paper-alt); padding-bottom: 1px; }
.member__links a:hover { color: var(--ruby); border-bottom-color: var(--ruby); }

/* --- PRICING TABLE --- */
.pricing-table {
  width: 100%; border-collapse: collapse; margin: 24px 0 16px;
  font-size: 15px;
}
.pricing-table th, .pricing-table td {
  text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--paper-alt);
  vertical-align: top;
}
.pricing-table th { font-weight: 600; font-family: var(--font-body); color: var(--ink); background: var(--paper-alt); }
.pricing-table td:first-child { font-weight: 600; }

.pricing-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.plan {
  border: 1px solid var(--paper-alt); border-radius: var(--r-md);
  padding: 30px 24px; background: var(--paper);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--t-fast);
}
.plan--featured { border-color: var(--ruby); position: relative; }
.plan--featured::before {
  content: "Más elegido"; position: absolute; top: -12px; left: 20px;
  background: var(--ruby); color: var(--paper);
  padding: 5px 10px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--r-xs);
}
.plan__name { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.plan__price {
  font-family: var(--font-display); font-size: 38px; color: var(--midnight);
  line-height: 1; margin-top: 4px;
}
.plan__price small { font-family: var(--font-body); font-size: 14px; color: var(--steel); font-weight: 500; display: block; margin-top: 4px; }
.plan__includes { list-style: none; padding: 0; margin: 12px 0; flex: 1; }
.plan__includes li {
  font-size: 14px; color: var(--ink); padding: 8px 0 8px 22px; position: relative;
  border-bottom: 1px dashed var(--paper-alt);
}
.plan__includes li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 10px; height: 10px;
  border-left: 2px solid var(--midnight); border-bottom: 2px solid var(--midnight);
  transform: rotate(-45deg);
}

/* --- FAQ accordion --- */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--paper-alt);
}
.faq-item__q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 22px 48px 22px 0; font-size: 17px; font-weight: 600; color: var(--ink);
  position: relative; cursor: pointer; font-family: inherit;
}
.faq-item__q::after {
  content: "+"; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%); font-size: 26px; color: var(--ruby);
  font-weight: 400; transition: transform var(--t-fast);
}
.faq-item[data-open="true"] .faq-item__q::after { content: "−"; }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height var(--t-med) ease;
}
.faq-item[data-open="true"] .faq-item__a { max-height: 600px; }
.faq-item__inner { padding: 0 24px 22px 0; color: var(--steel); font-size: 15px; }
.faq-item__inner p:last-child { margin-bottom: 0; }

/* --- STATS --- */
.stats-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  text-align: left; padding: 8px 4px;
}
.stat-item__num {
  font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 48px);
  color: var(--ruby); line-height: 1; margin-bottom: 8px;
}
.stat-item__label { color: var(--steel); font-size: 14px; }

/* --- CONTACTS --- */
.contact-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--paper); padding: 28px; border: 1px solid var(--paper-alt);
  border-radius: var(--r-md);
}
.contact-card h3 { font-size: 18px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.contact-card a { color: var(--midnight); text-decoration: none; font-size: 17px; }
.contact-card a:hover { color: var(--ruby); }
.contact-card p { margin: 0; color: var(--steel); font-size: 15px; }

/* --- FORM --- */
.lead-form {
  display: flex; flex-direction: column; gap: 14px; max-width: 480px;
}
.lead-form__row { display: flex; flex-direction: column; gap: 6px; }
.lead-form label { font-size: 13px; color: var(--steel); font-weight: 500; }
.lead-form input[type=text], .lead-form input[type=email], .lead-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  font-family: inherit; font-size: 15px;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: 2px solid var(--midnight); outline-offset: 1px; border-color: var(--midnight);
}
.lead-form__consent {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--steel);
  line-height: 1.5;
}
.lead-form__consent input { margin-top: 3px; accent-color: var(--ruby); }
.lead-form__hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; }
.lead-form__status {
  font-size: 14px; padding: 10px 12px; border-radius: var(--r-sm);
  display: none;
}
.lead-form__status[data-state="ok"] { display: block; background: rgba(0,51,153,0.08); color: var(--midnight); }
.lead-form__status[data-state="err"] { display: block; background: rgba(204,0,51,0.08); color: var(--ruby); }

/* --- CTA strip --- */
.cta-strip {
  background: var(--midnight); color: var(--paper);
  padding: 64px 0; text-align: left;
}
.cta-strip h2 { color: var(--paper); margin-bottom: 14px; }
.cta-strip p { color: var(--paper-alt); margin-bottom: 24px; max-width: 56ch; }
.cta-strip .btn--primary { background: var(--ruby); }
.cta-strip .btn--primary:hover { background: var(--ruby-hover); }

/* --- Risk box --- */
.risk-box {
  background: var(--graphite); color: var(--paper-alt);
  border-left: 4px solid var(--ruby);
  padding: 20px 22px; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 14px; line-height: 1.6;
  margin: 32px 0;
}
.risk-box strong { color: var(--paper); }

/* --- Article prose --- */
.prose { max-width: 720px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0 0 18px; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 24px 0; padding: 18px 24px; border-left: 3px solid var(--midnight);
  background: var(--paper-alt); font-style: italic; color: var(--ink);
}

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
