/* PAGE: CREAR */
#page-crear {
  padding: 0 20px;
  animation: fadeIn 0.3s;
}

.crear-hero {
  text-align: center;
  padding: 32px 0 28px;
  min-height: 260px;
}
.crear-hero h1 {
  font-family: "Fredoka", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 10px;
}
.crear-hero p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.scan-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 34px;
}
.scan-btn {
  width: min(100%, 360px);
  min-height: 220px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(180deg, #C0796A 0%, #B96863 42%, #A05857 100%);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 22px;
  color: white;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 34px rgba(185, 104, 99, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.scan-btn::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  pointer-events: none;
}
.scan-btn:hover,
.scan-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(185, 104, 99, 0.32),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.scan-btn-kicker {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scan-btn-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.scan-btn-title {
  display: block;
  max-width: 220px;
  line-height: 1.05;
  font-size: 28px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.scan-btn-copy {
  display: block;
  max-width: 260px;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.recientes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.recientes-header h3 {
  font-size: 18px;
  font-weight: 800;
}
.recientes-header a {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.recientes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

/* center page content and avoid empty look */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page > .page-inner {
  width: 100%;
  max-width: 640px;
  padding-top: 10px;
  padding-bottom: 18px;
}

@media (max-width: 700px) {
  /* on small screens keep normal flow to avoid overlap with header/nav */
  .page {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 12px;
  }
}

@media (max-width: 520px) {
  .scan-btn {
    min-height: 204px;
    border-radius: 28px;
    padding: 22px 18px;
  }

  .scan-btn-title {
    font-size: 24px;
  }

  .scan-btn-copy {
    font-size: 13px;
    max-width: 230px;
  }
}
.obra-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.obra-card .obra-emoji {
  font-size: 70px;
}
.obra-card .obra-name {
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
  text-align: center;
}

.pro-tip {
  background: #fff8ef;
  border: 2px dashed #B9686380;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* make sure the tip has enough space from fixed bottom nav on small screens */
@media (max-width: 520px) {
  .pro-tip {
    margin-bottom: 120px;
  }
}
.pro-tip .tip-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pro-tip p {
  font-size: 13px;
  line-height: 1.5;
}
