/* Portada del comparador. Neutra a propósito: no debe teñir la decisión. */

.page-index {
  --bg: #f4f6fc;
}

.index-head {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.15rem;
  justify-items: start;
}

.index-mark {
  width: 150px;
  color: var(--ink-1);
}

.index-head h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.page-index main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.proposal-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.proposal-link {
  display: grid;
  height: 100%;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-content: start;
  transition: border-color 140ms ease, transform 140ms ease;
}

.proposal-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.proposal-body {
  padding: 1.35rem 1.45rem 1.6rem;
  display: grid;
  gap: 0.5rem;
}

.proposal-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
}

.proposal-body p {
  font-size: 0.92rem;
  color: var(--ink-3);
}

.proposal-note {
  font-size: 0.8rem !important;
  padding: 0.55rem 0.7rem;
  background: var(--surface-2);
  border-radius: 8px;
}

.proposal-cta {
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--mint-ink);
}

/* Miniaturas: evocan la dirección sin ser una captura. */
.prev {
  aspect-ratio: 16 / 9;
  padding: 1.1rem 1.2rem;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  position: relative;
}

.prev-title {
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.prev-catalogo {
  background: #f3f5fb;
  color: var(--navy);
}

.prev-rail {
  display: flex;
  gap: 0.4rem;
}

.prev-rail img {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 9px;
  padding: 3px;
  border: 1px solid #e3e8f0;
}

.prev-pill {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  background: var(--mint);
  color: var(--navy);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.prev-trazo {
  background: #ffffff;
  color: var(--navy);
}

.prev-trazo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--mint);
}

.prev-trazo .prev-title {
  position: relative;
  align-self: center;
}

.prev-trazo .prev-title em {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
}

.prev-sol {
  background: linear-gradient(160deg, #011a5a 0%, #010f35 100%);
  color: #fff;
}

.prev-sol .prev-title {
  text-transform: uppercase;
  align-self: end;
  position: relative;
  font-size: 1.15rem;
}

.prev-sol .prev-title b {
  color: var(--amber);
}

.prev-sun {
  position: absolute;
  top: -18%;
  right: 8%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, #ffd27a 0%, #f5a524 56%, rgba(245, 165, 36, 0) 72%);
}

/* Bloques de apoyo */
.index-legal,
.index-notes {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: 1rem;
}

.index-legal h2,
.index-notes h2 {
  font-size: var(--step-h2);
  font-weight: 900;
}

.index-legal ul {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.5rem;
}

.index-legal a {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  text-decoration: none;
}

.index-legal a:hover {
  background: var(--surface-2);
}

.index-legal b {
  color: var(--ink-1);
  font-weight: 600;
}

.index-legal span {
  font-size: 0.88rem;
  color: var(--ink-3);
}

.index-notes ul {
  display: grid;
  gap: 0.7rem;
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--ink-3);
}

.index-notes li {
  padding-left: 1.4rem;
  position: relative;
}

.index-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
}

.index-notes b {
  color: var(--ink-1);
  font-weight: 600;
}
