/* Portada y páginas públicas de TesisVerificada.pe (se carga después de styles.css). */
.landing { background: var(--fondo); }
/* Al saltar a una sección, el menú fijo no tapa su título. */
.landing section[id] { scroll-margin-top: 5.5rem; }

/* Menú en píldora, fijo y semitransparente */
.nav-pildora {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  width: min(66rem, 100% - 1.5rem);
  margin: 0.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(29, 45, 92, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 30px -18px rgba(17, 28, 61, 0.5);
}
.nav-enlaces { display: flex; gap: 0.25rem; }
.nav-enlaces a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--texto);
  white-space: nowrap;
}
.nav-enlaces a:hover { background: #e8eef8; }
.boton-pildora { border-radius: 999px; padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.boton-acento { background: var(--acento); color: var(--noche); border-radius: 999px; }
.boton-acento:hover { background: var(--acento-oscuro); }

/* Portada a pantalla completa con la red animada */
.heroe {
  position: relative;
  overflow: hidden;
  width: min(80rem, 100% - 1.5rem);
  min-height: min(44rem, calc(100svh - 5rem));
  margin: -3.6rem auto 0;
  padding: 7.5rem clamp(1.25rem, 5vw, 4rem) 3rem;
  border-radius: 0 0 28px 28px;
  background: radial-gradient(120% 90% at 85% 10%, #2a3f7d 0%, var(--noche) 55%, #0b1430 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr minmax(16rem, 1fr);
  align-items: end;
  gap: 2rem;
}
.heroe-red { position: absolute; inset: 0; width: 100%; height: 100%; }
.heroe-contenido, .heroe-tarjeta { position: relative; }
.heroe-antetitulo { color: var(--acento); font-weight: 700; font-size: 0.95rem; margin: 0 0 1rem; }
.heroe h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.heroe-bajada { font-size: 1.15rem; max-width: 36rem; color: #d7def0; margin: 0 0 1.75rem; }
.heroe-datos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.heroe-datos li {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  color: #d7def0;
  background: rgba(255, 255, 255, 0.04);
}
.heroe-datos strong { color: #fff; }
.heroe-tarjeta {
  align-self: end;
  padding: 1.4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.heroe-tarjeta p { margin: 0 0 1rem; color: #d7def0; }
.heroe-tarjeta .heroe-tarjeta-titulo { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; }
.heroe-tarjeta strong { color: var(--acento); }

/* Franja de bases de datos */
.franja { padding-block: 2.5rem 1rem; text-align: center; }
.franja-titulo { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--suave); margin-bottom: 1rem; }
.franja-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tinta);
  opacity: 0.85;
}
.franja-oficial { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--suave); }
.franja-nota { max-width: 44rem; margin: 1rem auto 0; font-size: 0.92rem; color: var(--suave); }

/* Servicios en bloques de color */
.servicios-color { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.servicio {
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 22rem;
}
.servicio h3 { margin: 0; font-size: 1.6rem; color: inherit; }
.servicio p { margin: 0; }
.servicio-num { font-weight: 700; font-size: 0.85rem; opacity: 0.7; }
.servicio .servicio-precio { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; margin-top: auto; }
.servicio a { color: inherit; font-weight: 700; text-underline-offset: 4px; }
.servicio-lima { background: var(--acento); color: var(--noche); }
.servicio-azul { background: #3557b7; color: #fff; }
.servicio-tinta { background: var(--noche); color: #fff; }

/* Pasos */
.pasos-tarjetas { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pasos-tarjetas li {
  counter-increment: paso;
  background: var(--papel);
  border-radius: 18px;
  padding: 1.25rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.pasos-tarjetas li::before {
  content: counter(paso, decimal-leading-zero);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--tinta);
  background: var(--acento);
  justify-self: start;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.pasos-tarjetas span { color: var(--suave); font-size: 0.95rem; }

/* Preguntas frecuentes */
.preguntas { display: grid; gap: 0.6rem; max-width: 50rem; }
.pregunta { background: var(--papel); border-radius: 14px; padding: 0 1.25rem; }
.pregunta summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 700;
  color: var(--tinta);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: '+'; font-size: 1.3rem; line-height: 1; }
.pregunta[open] summary::after { content: '–'; }
.pregunta p { margin: 0 0 1rem; color: var(--texto); }

/* Cierre y pie */
.cierre {
  margin: 3rem 0 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 24px;
  background: var(--noche);
  color: #d7def0;
}
.cierre h2 { color: #fff; max-width: 24ch; }
.cierre p { max-width: 40rem; margin: 0 0 1.5rem; }
.pie-ancho { width: min(62rem, 100% - 2rem); }
.pie-columnas { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.pie-columnas nav { display: grid; gap: 0.35rem; align-content: start; }
.pie-titulo { font-weight: 700; color: var(--texto); margin: 0 0 0.25rem; }

/* Páginas por búsqueda */
.heroe-interior { padding-block: 3rem 1.5rem; max-width: 50rem; }
.heroe-interior h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  color: var(--tinta);
  margin: 0.75rem 0 1rem;
}
.migas { font-size: 0.9rem; color: var(--suave); }
.capsula { font-size: 1.15rem; margin: 0 0 1.75rem; }
.precio-linea { margin: 0; color: var(--suave); }
.precio-linea strong { color: var(--tinta); }
.interior .bloque:first-child { border-top: 0; }
.lista-check { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.lista-check li { padding-left: 1.9rem; position: relative; }
.lista-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--acento) url("/img/check.svg") center / 80% no-repeat;
}
.ejemplo { margin: 0; background: var(--papel); border-left: 4px solid var(--acento-oscuro); border-radius: 0 14px 14px 0; padding: 1.25rem 1.5rem; }
.ejemplo blockquote { margin: 0; }
.ejemplo p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; margin: 0 0 0.75rem; }
.ejemplo figcaption { font-size: 0.88rem; color: var(--suave); overflow-wrap: anywhere; }

@media (max-width: 60rem) {
  .heroe { grid-template-columns: 1fr; align-items: start; }
  .servicios-color { grid-template-columns: 1fr; }
  .servicio { min-height: 0; }
  .pasos-tarjetas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 54rem) {
  .nav-enlaces { display: none; }
}
@media (max-width: 46rem) {
  .heroe { margin-top: -3.4rem; padding-top: 6rem; border-radius: 0 0 22px 22px; }
  .pasos-tarjetas, .pie-columnas { grid-template-columns: 1fr; }
  .franja-lista { font-size: 1.1rem; gap: 0.35rem 1.25rem; }
}

/* Quiénes somos (UPTesis) */
.nosotros { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; align-items: start; }
.nosotros-sello {
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--noche);
  color: var(--acento);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
}
.nosotros-anios { margin: 0.75rem 0 0; text-align: center; color: var(--suave); }
.nosotros-anios strong { font-family: var(--serif); font-size: 1.6rem; color: var(--tinta); }
@media (max-width: 46rem) {
  .nosotros { grid-template-columns: 1fr; }
  .nosotros-sello { aspect-ratio: auto; padding: 1.5rem; }
}
