/* =========================================================================
   Module landing template — section styles only.
   Tokens and shared utilities come from styles.css.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Shared section head
   ------------------------------------------------------------------------- */
.ml-section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.ml-section-head .eyebrow {
  color: var(--primary);
}
.ml-section-head .heading-section,
.ml-section-head .heading-sub {
  margin-top: 0.75rem;
  color: var(--foreground);
}
.ml-section-head .body-muted {
  margin-top: 1rem;
}

/* -------------------------------------------------------------------------
   1. Hero
   ------------------------------------------------------------------------- */
.ml-hero {
  padding-top: 7.5rem;
  background:
    radial-gradient(
      ellipse 80% 55% at 70% 0%,
      color-mix(in srgb, var(--primary) 12%, transparent),
      transparent 65%
    ),
    var(--background);
}
.ml-hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .ml-hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}
.ml-hero-copy .eyebrow {
  color: var(--primary);
}
.ml-hero-copy h1 {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--foreground);
  text-wrap: balance;
}
.ml-hero-copy .body-muted {
  margin-top: 1.25rem;
  max-width: 34rem;
}
.ml-hero-bullets {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.ml-hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.975rem;
  line-height: 1.45;
  color: var(--foreground);
}
.ml-hero-bullets .icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary);
}
.ml-hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .ml-hero-actions {
    flex-direction: row;
    align-items: center;
  }
}
.ml-hero-panel {
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}
.ml-hero-shot {
  min-width: 0;
}
.ml-hero-shot-frame {
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.ml-hero-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.ml-hero-panel h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.ml-hero-panel ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}
.ml-hero-panel li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.925rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.ml-hero-panel .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary);
}

/* -------------------------------------------------------------------------
   2. Problem
   ------------------------------------------------------------------------- */
.ml-problem-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .ml-problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}
.ml-problem-points {
  display: grid;
  gap: 0.85rem;
}
.ml-problem-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--background);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--foreground);
}
.ml-problem-points .icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary);
}

/* -------------------------------------------------------------------------
   3. Signals
   ------------------------------------------------------------------------- */
.ml-signals-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ml-signals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ml-signals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ml-signal-card {
  padding: 1.35rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.ml-signal-card .label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.ml-signal-card p {
  margin-top: 0.45rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
   4. Before / After
   ------------------------------------------------------------------------- */
.ml-ba-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--background);
  box-shadow: var(--shadow-soft);
}
.ml-ba-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}
.ml-ba-table th,
.ml-ba-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ml-ba-table thead th {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
  background: color-mix(in srgb, var(--secondary) 70%, var(--surface));
  border-bottom: 1px solid var(--border);
}
.ml-ba-table thead th:last-child {
  color: var(--primary);
}
.ml-ba-table tbody td {
  color: var(--muted-foreground);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.ml-ba-table tbody tr:last-child td {
  border-bottom: none;
}
.ml-ba-table tbody td:last-child {
  color: var(--foreground);
}

/* -------------------------------------------------------------------------
   5. Capabilities
   ------------------------------------------------------------------------- */
.ml-cap-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ml-cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ml-cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ml-cap-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.ml-cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--primary);
}
.ml-cap-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.ml-cap-card h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.ml-cap-card p {
  margin-top: 0.85rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
   6. How it works
   ------------------------------------------------------------------------- */
.ml-steps {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ml-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ml-steps {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  }
}
.ml-step {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--background);
}
.ml-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}
.ml-step h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.ml-step p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
   7. Benefits by role
   ------------------------------------------------------------------------- */
.ml-roles {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .ml-roles {
    grid-template-columns: repeat(3, 1fr);
  }
  .ml-roles-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ml-roles-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ml-role-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.ml-role-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.ml-role-desc {
  margin-top: 0.75rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}
.ml-role-card ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}
.ml-role-card li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.ml-role-card .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary);
}
.ml-hero-bullets strong {
  color: var(--foreground);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   8. Related modules
   ------------------------------------------------------------------------- */
.ml-related-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ml-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ml-related-card {
  display: block;
  padding: 1.4rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ml-related-card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow-soft);
}
.ml-related-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.ml-related-card h3 .icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.ml-related-card p {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
   9. FAQ
   ------------------------------------------------------------------------- */
.ml-faq-inner {
  max-width: 46rem;
  margin-inline: auto;
}
.ml-faq-inner .ml-section-head {
  text-align: center;
  margin-inline: auto;
}
.ml-faq #ml-faq-accordion {
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------
   10. Final CTA — uses .final-cta from styles.css
   ------------------------------------------------------------------------- */
.ml-final .panel {
  border-radius: 1.5rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

/* -------------------------------------------------------------------------
   MOBILE ONLY — desktop rules above are untouched
   ------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .ml-hero {
    padding-top: 6.25rem;
  }
  .ml-hero-copy h1 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }
  .ml-section-head {
    margin-bottom: 1.75rem;
  }
  .ml-hero-panel,
  .ml-hero-shot-frame,
  .ml-signal-card,
  .ml-cap-card,
  .ml-step,
  .ml-role-card,
  .ml-related-card {
    padding: 1.15rem;
  }
  .ml-hero-shot-frame {
    padding: 0;
  }
  .ml-ba-table th,
  .ml-ba-table td {
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
  }
  .ml-problem-points li {
    padding: 0.85rem 0.95rem;
  }
  .ml-final .panel {
    padding: 3rem 1.25rem;
    border-radius: 1.15rem;
  }
  .ml-final-cta-actions .btn-primary,
  .ml-final-cta-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------
   Footer — Plataforma en dos grupos (opt-in via .footer-col--plataforma-split)
   ------------------------------------------------------------------------- */
.footer-plataforma-groups {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.footer-col--plataforma-split .footer-plataforma-groups ul {
  margin-top: 0;
}
@media (max-width: 639px) {
  .footer-plataforma-groups {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
