/* apps/myfuture/static/myfuture/scss/home-v2.css
   v2: entrada de impacto con ilustración, «v2» enorme, dos tarjetas de una frase y selector de temas.
   Paleta de DESIGN.md: azul medianoche, cian, lima, magenta, crema. */

.home-v2 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #03162b;
  color: #F1EDDF;
}

.home-v2__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(720px, 95vh);
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: saturate(1.25);
}

.home-v2__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 22, 43, 0.15) 0%, rgba(3, 22, 43, 0.6) 55%, #03162b 100%),
    linear-gradient(90deg, rgba(3, 22, 43, 0.8) 0%, transparent 60%);
}

.home-v2__inner {
  width: min(1100px, 88vw);
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.home-v2__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c2ff05;
}

.home-v2__big {
  margin: 0.25rem 0 0;
  font-size: clamp(90px, 16vw, 200px);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #4cc9f0 10%, #ff006e 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(76, 201, 240, 0.35));
}

.home-v2__title {
  margin: 0.9rem 0 1.6rem;
  max-width: 20ch;
  font-size: clamp(1.6rem, 3.8vw, 2.9rem);
  line-height: 1.1;
  color: #fff;
}

.home-v2__vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.home-v2__card {
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
}

.home-v2__card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.home-v2__card p { margin: 0; font-size: 1rem; }

.home-v2__card--old {
  background: rgba(10, 26, 44, 0.88);
  border: 1px dashed #4a5a6d;
  color: #C8C0AC;
}
.home-v2__card--old h3 { color: #a89f8b; }

.home-v2__card--new {
  background: rgba(10, 74, 143, 0.55);
  border: 1px solid #4cc9f0;
  box-shadow: 0 0 40px rgba(76, 201, 240, 0.2);
  backdrop-filter: blur(4px);
}
.home-v2__card--new h3 { color: #c2ff05; }

.home-v2__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 15px 34px;
  border-radius: 50px;
  background: #ff006e;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(255, 0, 110, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}
.home-v2__cta:hover,
.home-v2__cta:focus-visible { background: #ff1a7a; transform: translateY(-2px); }

.home-v2__pick {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: 1.9rem;
  border-top: 1px solid rgba(76, 201, 240, 0.25);
}

.home-v2__prompt {
  margin: 0 0 1rem;
  max-width: 34ch;
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  color: #fff;
}

.home-v2__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.v2-chip {
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid #4cc9f0;
  border-radius: 99px;
  background: rgba(3, 22, 43, 0.7);
  color: #F1EDDF;
  font: inherit;
  font-size: 0.9rem;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.v2-chip:hover,
.v2-chip:focus-visible { box-shadow: 0 0 14px rgba(76, 201, 240, 0.5); }
.v2-chip.is-on {
  background: #c2ff05;
  border-color: #c2ff05;
  color: #03162b;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(194, 255, 5, 0.5);
}

.v2-panel[hidden] { display: none; }

.v2-panel__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(76, 201, 240, 0.35);
  border-radius: 16px;
  background: #053c76;
  color: #fff;
  text-decoration: none;
}

.v2-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.v2-card:hover .v2-card__img,
.v2-card:focus-visible .v2-card__img { transform: scale(1.04); }

.v2-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(3, 22, 43, 0.92) 100%);
}

.v2-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
}

.v2-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c2ff05;
}
.v2-card__title { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.v2-card__meta { font-size: 0.75rem; color: #C8C0AC; }

.home-v2__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 12px 28px;
  border: 1.5px solid #4cc9f0;
  border-radius: 50px;
  color: #4cc9f0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.home-v2__more:hover,
.home-v2__more:focus-visible { color: #c2ff05; border-color: #c2ff05; }

@media (max-width: 700px) {
  .home-v2__vs,
  .v2-panel__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-card__img,
  .home-v2__cta { transition: none; }
}

/* Tema claro: campo de color azul eléctrico → violeta, texto blanco, palabra clave en lima */
html[data-theme="light"] main > .home-v2 {
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(255, 45, 135, 0.45) 0%, transparent 62%),
    radial-gradient(55% 65% at 6% 100%, rgba(76, 201, 240, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #0a3fd0 0%, #3b2fd0 48%, #6d28d9 100%);
}
html[data-theme="light"] main > .home-v2 .home-v2__bg::after {
  background:
    linear-gradient(180deg, rgba(10, 63, 208, 0.1) 0%, rgba(59, 47, 208, 0.55) 60%, rgba(59, 47, 208, 0.9) 100%),
    linear-gradient(90deg, rgba(10, 63, 208, 0.7) 0%, transparent 60%);
}
html[data-theme="light"] main > .home-v2 .home-v2__card--old { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); color: #e6ecff; }
html[data-theme="light"] main > .home-v2 .home-v2__card--old h3 { color: #fff; }
html[data-theme="light"] main > .home-v2 .v2-chip { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.7); color: #fff; }
html[data-theme="light"] main > .home-v2 .v2-chip.is-on { background: #c2ff05; border-color: #c2ff05; color: #03162b; }
html[data-theme="light"] main > .home-v2 .home-v2__more { color: #fff; border-color: rgba(255, 255, 255, 0.8); }
html[data-theme="light"] main > .home-v2 .home-v2__more:hover { color: #c2ff05; border-color: #c2ff05; }
/* El tema claro pinta los <p> en oscuro con más especificidad: aquí se fuerzan claros sobre el campo azul */
html[data-theme="light"] main > .home-v2 .home-v2__card--old p { color: #e6ecff; }
html[data-theme="light"] main > .home-v2 .home-v2__card--new p { color: #fff; }
