/* Empresas: the case that training the team is an investment the company gets back.
   Hero with a return curve, a client logo wall, gains, process, letters and a proposal form.
   Uses tokens from styles.css and form styles from cursos.css. */

.page-empresas .eyebrow { display: block; }

/* Hero */
.biz-hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px 64px; align-items: center;
}
.biz-hero h1 { font-size: var(--step-4); margin-top: 18px; }
.biz-hero h1 em { font-style: italic; color: var(--accent); }
.biz-hero .hero-lead { margin-top: 24px; max-width: 44ch; }
.biz-hero .hero-actions { margin-top: 32px; }

.roi-card {
  margin: 0; display: grid; gap: 18px; padding: clamp(22px, 3vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.roi-card figcaption { display: grid; gap: 6px; }
.roi-card figcaption strong { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
.roi-chart { width: 100%; height: auto; color: var(--accent); overflow: visible; }
.roi-axis { stroke: var(--line); stroke-width: 1.5; }
.roi-invest { fill: var(--faint); opacity: .55; }
.roi-area { fill: url(#roi-fill); }
.roi-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.roi-pts circle { fill: var(--surface); stroke: var(--teal); stroke-width: 3; opacity: 0; animation: pop-in .4s forwards; }
.roi-pts circle:nth-child(1) { animation-delay: .9s; }
.roi-pts circle:nth-child(2) { animation-delay: 1.25s; }
.roi-pts circle:nth-child(3) { animation-delay: 1.6s; }
.roi-lbl { font-family: var(--f-data); font-size: 15px; fill: var(--muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.roi-pts circle { transform-box: fill-box; transform-origin: center; }
.roi-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.roi-notes li { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.roi-notes span {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--f-data); font-size: 0.72rem; color: var(--teal); border: 2px solid var(--teal); transform: translateY(2px);
}
@media (max-width: 900px) { .biz-hero { grid-template-columns: minmax(0, 1fr); } }

/* Client logos: uniform silhouettes so mismatched files read as one wall */
.clients { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--sky) 60%, var(--bg)); padding-block: clamp(32px, 5vw, 48px); }
.clients-title { text-align: center; margin-bottom: 28px; }
.logo-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(28px, 4vw, 52px); }
.logo-wall li { display: flex; align-items: center; justify-content: center; min-height: 60px; }
.logo-wall img {
  height: var(--h, 36px); width: auto; max-width: 180px; object-fit: contain;
  filter: grayscale(1) brightness(0); opacity: .55; transition: opacity .25s;
}
.logo-wall li:hover img { opacity: .9; }
:root[data-theme="dark"] .logo-wall img { filter: grayscale(1) brightness(0) invert(1); opacity: .65; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-wall img { filter: grayscale(1) brightness(0) invert(1); opacity: .65; } }
@media (max-width: 560px) { .logo-wall { gap: 22px 28px; } .logo-wall img { height: calc(var(--h, 36px) * .78); max-width: 130px; } }

/* Gains */
.gains { padding-block: clamp(64px, 10vw, 128px) clamp(40px, 6vw, 72px); }
.gains .section-head { max-width: 46rem; }
.gain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.gain {
  display: grid; align-content: start; gap: 12px; padding: 26px 24px 28px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
}
.gain:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gain-n { font-family: var(--f-data); font-size: 0.85rem; color: var(--accent); }
.gain h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.gain p { color: var(--muted); line-height: 1.5; }

/* Process */
.biz-how { padding-block: clamp(48px, 8vw, 104px); }
.biz-how-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 80px); align-items: center; }
.biz-how-media { aspect-ratio: 4 / 5; }
.biz-how-media img { width: 100%; height: 100%; object-fit: cover; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; position: relative; }
.how-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.how-steps li { display: flex; gap: 18px; position: relative; }
.how-steps .dot {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-family: var(--f-data); font-size: 0.9rem;
}
.how-steps h3 { font-size: var(--step-1); letter-spacing: -0.01em; margin-top: 7px; }
.how-steps p { color: var(--muted); margin-top: 6px; line-height: 1.5; max-width: 42ch; }
@media (max-width: 860px) { .biz-how-inner { grid-template-columns: minmax(0, 1fr); } .biz-how-media { aspect-ratio: 16 / 9; } }

/* Topics */
.topics { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.topic-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-list li { padding: 9px 16px; border-radius: 999px; background: var(--sky); border: 1px solid var(--line); font-weight: 500; }
.topics .link-btn { text-decoration: none; }

/* Proposal */
.proposal { background: var(--deep); color: var(--on-deep); padding-block: clamp(64px, 9vw, 112px); scroll-margin-top: 60px; }
.proposal-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 6vw, 80px); align-items: start; }
.proposal .eyebrow { color: var(--on-deep-accent); }
.proposal h2 { font-size: var(--step-3); margin-top: 14px; }
.proposal-side > p { margin-top: 18px; color: color-mix(in srgb, var(--on-deep) 78%, transparent); font-size: var(--step-1); line-height: 1.5; max-width: 36ch; }
.proposal-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.proposal-points li { display: flex; gap: 10px; align-items: center; }
.proposal-points li::before { content: ""; width: 18px; height: 10px; border-left: 2.5px solid var(--on-deep-accent); border-bottom: 2.5px solid var(--on-deep-accent); transform: rotate(-45deg) translateY(-3px); flex: none; }
.proposal-call { margin-top: 36px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--on-deep) 18%, transparent); display: grid; gap: 14px; justify-items: start; }
.proposal-call p { color: color-mix(in srgb, var(--on-deep) 78%, transparent); max-width: 36ch; }
.proposal-call strong { color: var(--on-deep); }
.proposal-call .btn.ghost { color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 35%, transparent); }
.proposal-call .btn.ghost:hover { border-color: var(--on-deep-accent); }

.biz-form { background: var(--surface); color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.biz-form-body { display: grid; gap: 16px; }
.biz-form-body[hidden] { display: none; }
.topic-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.topic-pick legend { font-size: 0.85rem; font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 8px; }
.topic-pick label { position: relative; cursor: pointer; }
.topic-pick input { position: absolute; opacity: 0; pointer-events: none; }
.topic-pick label {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 0.9rem;
  transition: border-color .2s, background-color .2s, color .2s;
}
.topic-pick label:hover { border-color: var(--accent); }
.topic-pick label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.topic-pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.biz-form .lead-done { padding: 12px 0; }
@media (max-width: 900px) { .proposal-inner { grid-template-columns: minmax(0, 1fr); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.gain-list .reveal:nth-child(2), .how-steps .reveal:nth-child(2) { transition-delay: .08s; }
.gain-list .reveal:nth-child(3), .how-steps .reveal:nth-child(3) { transition-delay: .16s; }
.gain-list .reveal:nth-child(4), .how-steps .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .roi-line { animation: none; stroke-dashoffset: 0; }
  .roi-pts circle { animation: none; opacity: 1; }
}
.page-empresas .section-head .eyebrow { font-size: var(--step--1); color: var(--accent); line-height: 1.4; }
