/* Bloque reutilizable «proyecto destacado» de carmoninversores.com (ver docs/bloque-proyecto-destacado.md).
   Sustituye las cajas de posicion fija de Instapage por un bloque que se adapta solo a movil y escritorio. */
.section.cm-project-section,
.section.cm-project-section .section-block { height: auto !important; }
.cm-project-section { padding: 2.5rem 1rem; box-sizing: border-box; }
.cm-project {
  max-width: 71.5rem; margin: 0 auto; background: #fff; border-radius: 1.1875rem; overflow: hidden;
  box-shadow: rgba(93, 93, 93, 0.25) 2px 0 25px 0; font-family: "Kumbh Sans", sans-serif; color: #4d4d4d;
  display: grid; grid-template-columns: 1fr; grid-template-areas: "text" "media" "btn";
}
.cm-project-text { grid-area: text; padding: 2.5rem 1.75rem 1.5rem; }
.cm-project-title { margin: 0 0 1.25rem; font-size: 2.5rem; line-height: 1.1; font-weight: 700; color: #4d4d4d; }
.cm-project-subtitle { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.3; font-weight: 700; color: #4d4d4d; }
.cm-project-body { margin: 0; font-size: 1.125rem; line-height: 1.6; }
.cm-project-inline { color: #e1b551; font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }
.cm-project-inline:hover, .cm-project-inline:focus-visible { color: #c79a37; }
.cm-project-media { grid-area: media; position: relative; display: block; margin: 0 1.75rem 2.5rem; aspect-ratio: 1 / 1.05; }
/* Las imagenes de Instapage ya traen marco blanco y sombra: aqui no se anade otro. */
.cm-project-img { position: absolute; display: block; object-fit: contain; }
.cm-project-img-main { top: 0; left: 0; width: 82%; height: auto; aspect-ratio: 1 / 1; }
.cm-project-img-detail { right: 0; bottom: 0; width: 62%; height: auto; aspect-ratio: 1 / 1; }
.cm-project-btn {
  grid-area: btn; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.75rem; background: #e1b551; color: #343434; font-size: 1.375rem; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.cm-project-btn:hover, .cm-project-btn:focus-visible { background: #f9d37c; color: #343434; }
.cm-project-btn svg { flex: none; }
@media (min-width: 900px) {
  .cm-project-section { padding: 4rem 2rem; }
  .cm-project { grid-template-columns: 1.05fr 1fr; grid-template-areas: "text media" "btn btn"; align-items: center; }
  .cm-project-text { padding: 4rem 2rem 4rem 4.75rem; }
  .cm-project-title { font-size: 3.125rem; }
  .cm-project-media { margin: 3rem 3rem 3rem 1rem; aspect-ratio: 1.45 / 1; }
  .cm-project-img-main { width: 70%; }
  .cm-project-img-detail { width: 46%; bottom: 8%; }
  .cm-project-btn { justify-content: flex-end; gap: 4rem; padding: 1.5rem 2.75rem; }
}
