/* Fotos de la plataforma (26/11/2026): generadas con ChatGPT, servidas en WebP liviano (1200 px en PC, 600 px en celular).
   Hoja aparte: quitar el <link> de index.html deja la portada como estaba. */

/* ---------- Portada: foto de la estudiante detrás del teléfono (PC y tablet; en celular la portada sigue corta) ---------- */
@media (min-width: 901px) {
  .hero__visual { position: relative; min-height: 560px; align-items: center; justify-content: flex-end; }
  .hero__visual::before {
    content: ""; position: absolute; top: 24px; bottom: 24px; right: 0; width: 78%;
    border-radius: 28px; background: #E0E3FF url(/img/fotos/portada-estudiante-1200.webp) 12% center / cover no-repeat;
    box-shadow: 0 30px 60px rgba(30, 27, 75, .20);
  }
  .hero__visual .telefono { position: relative; z-index: 1; width: 250px; margin-right: auto; margin-left: 0; transform: translateY(26px); }
  .hero__visual .telefono__pantalla { height: 440px; }
}

/* ---------- Para el docente: foto de la profesora con el panel encima ---------- */
.bloque-doc .mini-panel { position: relative; z-index: 0; margin-top: 268px; box-shadow: 0 18px 40px rgba(30, 27, 75, .14); }
.bloque-doc .mini-panel::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: calc(100% + 14px); height: 254px;
  border-radius: 22px; background: #E0E3FF url(/img/fotos/docente-1200.webp) center 30% / cover no-repeat;
}
@media (max-width: 900px) {
  .bloque-doc .mini-panel { margin-top: 214px; }
  .bloque-doc .mini-panel::before { left: 0; right: 0; height: 200px; background-image: url(/img/fotos/docente-600.webp); }
}

/* ---------- Las 4 competencias: foto arriba de cada tarjeta ---------- */
.comps .comp { overflow: hidden; }
.comps .comp::before {
  content: ""; display: block; margin: -18px -18px 14px; aspect-ratio: 16 / 10;
  background: #EEF0FF center / cover no-repeat;
}
.comps .comp:nth-child(1)::before { background-image: url(/img/fotos/comp-cantidad-600.webp); }
.comps .comp:nth-child(2)::before { background-image: url(/img/fotos/comp-regularidad-600.webp); }
.comps .comp:nth-child(3)::before { background-image: url(/img/fotos/comp-forma-600.webp); }
.comps .comp:nth-child(4)::before { background-image: url(/img/fotos/comp-datos-600.webp); }

/* ---------- Banda final: estudiantes con el color de la marca encima ---------- */
.cta-final {
  background: linear-gradient(110deg, rgba(30, 27, 75, .93) 0%, rgba(67, 56, 202, .78) 50%, rgba(67, 56, 202, .32) 100%),
    url(/img/fotos/estudiantes-grupo-1200.webp) center 35% / cover no-repeat;
}
@media (max-width: 900px) {
  .cta-final { background: linear-gradient(160deg, rgba(30, 27, 75, .95), rgba(67, 56, 202, .85)), url(/img/fotos/estudiantes-grupo-600.webp) center / cover no-repeat; }
}

/* ---------- Ingreso: foto a la izquierda en computadora ---------- */
@media (min-width: 1024px) {
  .login { grid-template-columns: minmax(0, 520px) minmax(0, 440px); justify-content: center; gap: 48px; }
  .login::before {
    content: ""; align-self: center; width: 100%; aspect-ratio: 4 / 5; max-height: 86vh; border-radius: 28px;
    background: #E0E3FF url(/img/fotos/ingreso-1200.webp) center / cover no-repeat; box-shadow: 0 30px 60px rgba(30, 27, 75, .18);
  }
}

/* ---------- Temas: portada en cada tarjeta y en la cabecera ---------- */
.tema-portada { display: block; max-width: none; width: calc(100% + 28px); margin: -14px -14px 2px; aspect-ratio: 3 / 1.25; object-fit: cover; border-radius: var(--r) var(--r) 0 0; background: #EEF0FF; }
.continuar .tema-portada { width: calc(100% + 32px); margin: -16px -16px 2px; }
.tema-card { overflow: hidden; }
.tema-portada--cab { width: calc(100% + 32px); margin: -16px -16px 4px; aspect-ratio: 16 / 7; }
