@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --bg: #f4f6ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted2: #64748b;
  --line: #e7eaf5;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --max: 980px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 18px 80px;
}

/* Top header of the project page */
.project-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.project-title {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

.project-sub {
  margin: 0;
  padding-left: 18px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 600;
}
.project-sub li {
  margin: 0;
}

.meta-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #d9dde8;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.author strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
}
.author span {
  display: block;
  color: var(--muted2);
  line-height: 1.1;
  margin-top: 2px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}
.cta:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
}

/* Content */
.content {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.content h2 {
  margin: 26px 0 10px;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.content p {
  margin: 0 0 12px;
}

.content ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.content li {
  margin: 6px 0;
}
.preview {
  margin-top: 34px;
  background: #fff;
  border: 1px solid #e7eaf5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.img-wrap {
  padding: 18px; /* margen interno para que se vea elegante */
  background: #f3f4f6; /* fondo suave detrás de la imagen */
}

.img-wrap img {
  display: block;
  width: 100%;
  height: auto; /* CLAVE: no recorta */
  object-fit: contain; /* por seguridad */
  border-radius: 14px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden; /* CLAVE: recorta la imagen al círculo */
  background: #d9dde8;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* llena el círculo sin deformar */
  object-position: center;
}

/* Footer nav (optional) */
.back-row {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.link {
  color: var(--blue-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.calltoaction {
  color: black;
}
.link:hover {
  text-decoration: underline;
}

.project-footer-nav {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);

  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;

  border: 1px solid rgba(15, 23, 42, 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.btn-link i {
  font-size: 1.05rem;
  opacity: 0.85;
}

.btn-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

/* Botón secundario */
.btn-link.is-ghost {
  background: #fff;
  color: #0b1220;
}

/* Botón principal */
.btn-link.is-primary {
  background: #0b1220;
  color: #fff;
  border-color: #0b1220;
}

/* Responsive: en móvil se apilan */
@media (max-width: 700px) {
  .project-footer-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-link {
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .project-title {
    font-size: 34px;
  }
  .meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta {
    width: 100%;
  }
}

.img-wrap {
  padding: 16px;
  background: #f3f4f6;
  /* SIN max-height */
  /* SIN overflow */
}

.img-wrap img {
  width: 100%;
  height: auto; /* muestra toda la imagen, sin recorte */
  display: block;
  border-radius: 14px;
}
