* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 1.75rem;
}

header h1 {
  font-size: 1.6rem;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

header p {
  font-size: 0.9rem;
  color: #94a3b8;
}

.conversor {
  background-color: #1e293b;
  border: 1px dashed #38bdf8;
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.conversor h2 {
  font-size: 1rem;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

.conversor p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
}

.btn-subir {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-subir:hover {
  background-color: #0369a1;
}

.seccion {
  margin-bottom: 2rem;
}

.seccion h2 {
  font-size: 1.15rem;
  border-left: 4px solid #38bdf8;
  padding-left: 0.65rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.preview {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background-image:
    linear-gradient(45deg, #334155 25%, transparent 25%),
    linear-gradient(-45deg, #334155 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #334155 75%),
    linear-gradient(-45deg, transparent 75%, #334155 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.url-preview {
  font-size: 0.72rem;
  color: #64748b;
  word-break: break-all;
}

.btn-copiar {
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 8px;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-copiar.copiado {
  background-color: #16a34a;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #16a34a;
  color: #ffffff;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.toast.visible {
  opacity: 1;
}
