/* Páginas interiores de MentorTese: servicios, blog, formularios y textos legales.
   Usa los mismos tokens y componentes que la portada (styles.css). */

/* ---------- cabecera de página ---------- */
.pg-hero {
  background: var(--soft);
  padding-block: 64px 72px;
  position: relative;
  overflow: hidden;
}
.pg-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.pg-hero.no-img .pg-hero-inner {
  grid-template-columns: minmax(0, 880px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}
.crumbs a {
  color: inherit;
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.crumbs [aria-current] {
  color: var(--ink);
}
.pg-hero h1 {
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin-bottom: 26px;
  text-wrap: balance;
}
.pg-hero .lead {
  max-width: 64ch;
  color: #3d3f3a;
}
.pg-hero .lead + .lead {
  margin-top: 16px;
  font-size: 17px;
}
.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.pg-hero-img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 8px 10px 0 var(--lime);
}
.pg-hero-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- bloques de contenido ---------- */
.pg-section {
  padding-block: 88px;
}
.pg-head {
  max-width: 760px;
  margin-bottom: 44px;
}
.pg-head h2 {
  text-wrap: balance;
}
.pg-head p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}
.pg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pg-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px 36px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pg-card:hover {
  transform: translateY(-3px);
  box-shadow: 5px 7px 0 var(--mint);
}
.pg-card .n {
  display: block;
  margin-bottom: 40px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.pg-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.pg-card p {
  color: var(--muted);
  font-size: 15px;
}
.pg-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.pg-story h2 {
  text-wrap: balance;
}
.pg-story p {
  color: #3d3f3a;
  font-size: 18px;
}
.pg-story .button {
  margin-top: 32px;
}
.pg-story.on-dark p {
  color: #d6d6cf;
}
.pg-claim {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
}
.pg-claim:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(101, 239, 208, 0.3);
}
.pg-cta {
  text-align: left;
}
.pg-cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 60px;
  align-items: end;
}
.pg-cta h2 {
  text-wrap: balance;
}
.pg-cta p:not(.eyebrow) {
  color: #d6d6cf;
  margin-top: 16px;
  max-width: 52ch;
}
.pg-related .service-grid {
  margin-top: 0;
}

/* ---------- contacto ---------- */
.info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.info-card h3 {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.info-card p,
.info-card a {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.info-card a:hover {
  text-decoration: underline;
}

/* ---------- formularios ---------- */
.pg-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.pg-form-side h2 {
  text-wrap: balance;
}
.pg-form-side > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}
.tick-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.tick-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}
.tick-list li:before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 12px;
  font-weight: 700;
}
.pg-form {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 8px 10px 0 var(--lime);
}
.pg-form fieldset {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  min-width: 0;
}
.pg-form legend {
  padding: 0;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 13px;
  font-weight: 600;
}
.field label .req {
  color: var(--orange);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #b9b9b0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--lime);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field [aria-invalid="true"] {
  border-color: var(--orange);
  background: #fff7f4;
}
.field .err {
  min-height: 0;
  color: #b33a1d;
  font-size: 13px;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 24px;
  font-size: 14px;
  color: #3d3f3a;
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--ink);
}
.consent a {
  color: inherit;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 16px;
  min-height: 24px;
  font-size: 15px;
  font-weight: 600;
}
.form-status.is-error {
  color: #b33a1d;
}
.form-status.is-ok {
  color: #1c7a5f;
}
.pg-form .button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.steps-list {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.steps-list li {
  counter-increment: s;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.steps-list li:before {
  content: "PASSO 0" counter(s);
  display: block;
  margin-bottom: 30px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.steps-list h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.steps-list p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 5px 7px 0 var(--mint);
}
.post-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
}
.post-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card .body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post-card time {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.post-card h3 {
  font-size: 20px;
  line-height: 1.25;
  text-wrap: balance;
}
.post-card p {
  color: var(--muted);
  font-size: 14px;
}
.post-card .more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
.post-cover {
  margin: 0 auto 56px;
  max-width: 1000px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- texto largo (entradas y páginas legales) ---------- */
.prose {
  max-width: 760px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.8;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 2em;
  text-wrap: balance;
}
.prose h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  margin-top: 1.7em;
}
.prose h4 {
  font-size: 18px;
  margin-top: 1.5em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange);
}
.prose a:hover {
  background: var(--lime);
}
.prose figure {
  margin-block: 2em;
}
.prose figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.prose figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.prose blockquote {
  margin-inline: 0;
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--lime);
  font-size: 19px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose th {
  background: var(--soft);
}
.prose-updated {
  max-width: 760px;
  margin: 0 auto 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.after-post {
  max-width: 760px;
  margin: 72px auto 0;
  padding: 36px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 8px 10px 0 var(--lime);
}
.after-post h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.after-post p {
  color: #3d3f3a;
  margin-bottom: 24px;
}
.notfound {
  min-height: 60vh;
  display: grid;
  align-items: center;
}

/* ---------- pie ---------- */
.footer-grid > div > p a {
  color: #fff;
}
.footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* ---------- adaptación ---------- */
@media (max-width: 1050px) {
  .pg-hero-inner,
  .pg-story,
  .pg-form-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-cards,
  .post-grid,
  .info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pg-cta .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .pg-hero {
    padding-block: 40px 52px;
  }
  .pg-section {
    padding-block: 64px;
  }
  .pg-cards,
  .post-grid,
  .info-list,
  .steps-list,
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-hero-img {
    box-shadow: 5px 6px 0 var(--lime);
  }
  .after-post {
    padding: 26px;
  }
}
@media print {
  .pg-hero,
  .pg-cta,
  .after-post {
    display: none;
  }
}

.prose {
  min-width: 0;
  overflow-wrap: anywhere;
}
