/* ============================================================
   modalidad.css — Work Modality / Estudio Page Specific Styles
   Part of the Leo Bercoff modular CSS architecture
   ============================================================ */


/* ── Main Content Grid (single‑column, full‑width) ────── */
.modalidad-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  padding: 30px 0 60px;
}

.modalidad-main > h1 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}


/* ── Section Card (each modulo is a card) ─────────────── */
.modulo-container {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 14px 40px rgba(38, 31, 21, .07);
}

.modulo-container + .modulo-container {
  margin-top: 0;
}


/* ── Module Heading ───────────────────────────────────── */
.modulo-titulo {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--accent);
}


/* ── Module Body Content ──────────────────────────────── */
.modulo-contenido p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.modulo-contenido p:last-child {
  margin-bottom: 0;
}

.modulo-contenido strong {
  color: var(--text);
  font-weight: 650;
}


/* ── Structural Divider (<!-- more --> handling) ────── */
.modulo-divider {
  display: block;
  width: 48px;
  height: 3px;
  margin: 24px 0 26px;
  border: 0;
  background: var(--line);
  border-radius: 2px;
}
/* ── Responsive: Narrow screens (≤640px) ──────────────── */
@media (max-width: 640px) {
  .modalidad-main {
    width: min(calc(100% - 24px), var(--max-width));
    padding-bottom: 48px;
  }

  .back-home {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }
}