/* Morelia Impulsa v1.07 · Pulido de inversión, tablas y selector de perfiles */

/* Detalle de proyectos de inversión: contenido contenido, jerarquía y ritmo editorial. */
.investment-project-hero-v107 {
  padding: 34px 0 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(91,67,160,.08), transparent 34%),
    linear-gradient(180deg, #f5f7fb 0%, #fff 100%);
}
.investment-project-hero-frame {
  position: relative;
  isolation: isolate;
  min-height: clamp(470px, 52vw, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 30px;
  background-image: var(--project-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 72px rgba(18,34,80,.18);
}
.investment-project-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,24,63,.96) 0%, rgba(18,35,79,.88) 38%, rgba(18,35,79,.48) 66%, rgba(18,35,79,.12) 100%),
    linear-gradient(0deg, rgba(8,19,53,.58), transparent 60%);
}
.investment-project-hero-content {
  width: min(760px, 100%);
  padding: clamp(30px, 5vw, 64px);
  color: #fff;
}
.breadcrumbs-light {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
}
.breadcrumbs-light a { color: #fff; text-decoration: none; }
.investment-project-hero-content h1 {
  max-width: 720px;
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(2.55rem, 5.4vw, 4.9rem);
  line-height: .96;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.investment-project-lead {
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.65;
}
.investment-project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.button-light {
  border-color: #fff !important;
  background: #fff !important;
  color: #1d2e65 !important;
}
.button-glass {
  border: 1px solid rgba(255,255,255,.38) !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  backdrop-filter: blur(12px);
}
.investment-project-body-v107 { padding-top: clamp(38px, 6vw, 74px); }
.project-detail-grid-v107 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.project-story-stack { display: grid; gap: 22px; min-width: 0; }
.project-section-card {
  padding: clamp(26px, 3.2vw, 42px);
  border: 1px solid #e1e6f0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(27,43,87,.07);
}
.project-section-card-primary {
  background:
    radial-gradient(circle at 100% 0%, rgba(96,74,161,.08), transparent 34%),
    linear-gradient(145deg, #fff, #fbfaff);
}
.project-section-card h2 { margin: 5px 0 18px; font-size: clamp(1.65rem, 2.7vw, 2.35rem); }
.project-section-card .rich-content { color: #56627b; line-height: 1.75; }
.project-section-card .rich-content > *:first-child { margin-top: 0; }
.project-section-card .rich-content > *:last-child { margin-bottom: 0; }
.project-section-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.project-section-heading h2 { margin: 3px 0 0; }
.project-section-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #293f87, #6548a4);
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(72,56,139,.2);
}
.project-facts-card-v107 {
  position: sticky;
  top: 108px;
  padding: 26px;
  border: 1px solid #dfe5f0;
  border-radius: 26px;
  background: linear-gradient(150deg, #fff 0%, #faf8ff 100%);
  box-shadow: 0 22px 52px rgba(24,40,84,.1);
}
.project-facts-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #e8ebf3; }
.project-facts-head h2 { margin: 2px 0 0; font-size: 1.45rem; }
.project-facts-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #263c82, #62479e);
  font-size: 1.25rem;
  font-weight: 900;
}
.project-facts-card-v107 dl { margin: 8px 0 22px; }
.project-facts-card-v107 dl > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #e8ebf3;
}
.project-facts-card-v107 dt { color: #6b7690; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.project-facts-card-v107 dd { margin: 0; color: #1b2c57; font-weight: 800; line-height: 1.45; }
.project-facts-actions { display: grid; gap: 9px; }
.project-facts-card-v107 .project-source { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e8ebf3; line-height: 1.5; }
.project-gallery-v107 { margin-top: 20px; }

/* Selector administrativo de perfiles: evita texto colapsado y separa la prioridad. */
.admin-profile-picker-fieldset { min-width: 0; }
.admin-profile-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #dfe5f0;
  border-radius: 18px;
  background: #f7f9fc;
}
.admin-profile-picker-item {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 86px;
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 92px;
  margin: 0 !important;
  padding: 12px;
  border: 1px solid #e1e6ef;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.admin-profile-picker-item:has(input:checked) {
  border-color: #6b56ad;
  background: #f3f0fb;
  box-shadow: inset 0 0 0 1px #6b56ad, 0 10px 24px rgba(76,61,137,.08);
}
.admin-profile-picker-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cad3e2;
  border-radius: 11px;
  background: #fff;
  color: transparent;
}
.admin-profile-picker-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-profile-picker-item:has(input:checked) .admin-profile-picker-check {
  border-color: #315ae7;
  background: #315ae7;
  color: #fff;
}
.admin-profile-picker-copy { min-width: 0; }
.admin-profile-picker-copy strong {
  display: block;
  overflow: hidden;
  color: #17264f;
  font-size: .88rem;
  line-height: 1.28;
  text-overflow: ellipsis;
}
.admin-profile-picker-copy small {
  display: block;
  margin-top: 5px;
  color: #6f7a91;
  font-size: .72rem;
  line-height: 1.3;
  text-transform: capitalize;
}
.admin-profile-picker-copy em {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef2f8;
  color: #55627c;
  font-size: .65rem;
  font-style: normal;
  font-weight: 800;
}
.admin-profile-picker-order { display: grid; gap: 5px; align-self: center; }
.admin-profile-picker-order small { color: #64708a; font-size: .66rem; font-weight: 850; text-align: center; }
.admin-profile-picker-order input {
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  text-align: center;
}

/* Tablas administrativas nuevas: misma familia visual, mayor respiración y responsive en cards. */
.admin-list-panel-v107 { overflow: hidden; padding: 0 !important; }
.admin-data-table-v107 { overflow-x: auto; }
.admin-data-table-v107 table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; }
.admin-data-table-v107 thead th {
  padding: 14px 18px;
  border-bottom: 1px solid #dfe5f0;
  color: #64718c;
  background: #f7f9fc;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-align: left;
}
.admin-data-table-v107 tbody td {
  padding: 17px 18px;
  border-bottom: 1px solid #edf0f5;
  color: #26345f;
  vertical-align: middle;
}
.admin-data-table-v107 tbody tr:last-child td { border-bottom: 0; }
.admin-data-table-v107 tbody tr:hover td { background: #fbfaff; }
.admin-cell-main strong { display: block; color: #17264f; line-height: 1.35; }
.admin-cell-main small { display: block; max-width: 480px; margin-top: 5px; color: #758098; line-height: 1.45; }
.admin-cell-value { color: #42506e; font-weight: 750; line-height: 1.45; }
.admin-count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf1f8;
  color: #2d3d71;
  font-weight: 900;
}
.admin-row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-data-table-v107 th:last-child,
.admin-data-table-v107 td:last-child { text-align: right; }

@media (max-width: 1120px) {
  .admin-profile-picker { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .project-detail-grid-v107 { grid-template-columns: 1fr; }
  .project-facts-card-v107 { position: static; }
  .admin-data-table-v107 { overflow: visible; padding: 12px; }
  .admin-data-table-v107 table,
  .admin-data-table-v107 tbody,
  .admin-data-table-v107 tr,
  .admin-data-table-v107 td { display: block; width: 100%; min-width: 0; }
  .admin-data-table-v107 thead { display: none; }
  .admin-data-table-v107 tbody { display: grid; gap: 12px; }
  .admin-data-table-v107 tbody tr {
    overflow: hidden;
    border: 1px solid #dfe5f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(31,46,87,.055);
  }
  .admin-data-table-v107 tbody td {
    display: grid;
    grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 14px;
    border-bottom: 1px solid #edf0f5;
    text-align: left !important;
  }
  .admin-data-table-v107 tbody td::before {
    content: attr(data-label);
    color: #738099;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .admin-data-table-v107 tbody td:last-child { border-bottom: 0; }
  .admin-row-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .investment-project-hero-v107 { padding-top: 18px; }
  .investment-project-hero-frame { min-height: 560px; border-radius: 22px; background-position: 62% center; }
  .investment-project-hero-shade { background: linear-gradient(0deg, rgba(9,22,59,.97) 0%, rgba(15,31,74,.75) 58%, rgba(15,31,74,.24) 100%); }
  .investment-project-hero-content { padding: 28px 22px; }
  .investment-project-hero-content h1 { font-size: clamp(2.3rem, 13vw, 3.6rem); }
  .investment-project-hero-actions { display: grid; }
  .investment-project-hero-actions .button { width: 100%; text-align: center; }
  .project-section-card { padding: 24px 20px; border-radius: 21px; }
  .project-facts-card-v107 dl > div { grid-template-columns: 1fr; gap: 5px; }
  .admin-profile-picker-item { grid-template-columns: 38px minmax(0, 1fr); }
  .admin-profile-picker-order { grid-column: 1 / -1; grid-template-columns: 1fr 90px; align-items: center; }
  .admin-profile-picker-order small { text-align: left; }
  .admin-data-table-v107 tbody td { grid-template-columns: 1fr; gap: 5px; }
}
