
:root {
  --bg:       #f5f2eb;
  --surface:  #ffffff;
  --ink:      #1a1a1a;
  --muted:    #999890;
  --border:   #ddd9cf;
  --accent:   #d4380d;
  --accent-l: #fff1ed;
  --success:  #237804;
  --success-l:#f6ffed;
  --mono:     'IBM Plex Mono', monospace;
  --display:  'Bebas Neue', sans-serif;
}



.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  animation: rise 0.45s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Header strip */
.header-strip {
  background: var(--ink);
  color: #fff;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.header-strip h1 {
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.header-strip .endpoint {
  font-size: 0.62rem;
  color: #888;
  letter-spacing: 0.08em;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 2rem;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  padding: 2.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg);
}

.drop-zone:hover,
.drop-zone.over {
  border-color: var(--accent);
  background: var(--accent-l);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-icon {
  margin: 0 auto 0.8rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.drop-icon svg { width: 36px; height: 36px; stroke: var(--muted); }
.drop-zone:hover .drop-icon svg,
.drop-zone.over .drop-icon svg { stroke: var(--accent); }

.drop-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.drop-hint {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* File pill */
.file-pill {
  display: none;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  align-items: center;
  gap: 0.75rem;
}

.file-pill.show { display: flex; }

.pill-icon { flex-shrink: 0; }
.pill-icon svg { width: 20px; height: 20px; stroke: var(--accent); }

.pill-name {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-size {
  font-size: 0.65rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* Fields */
.fields {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.6rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; }

.field input:focus { border-color: var(--ink); }

/* Progress */
.progress-wrap {
  margin-top: 1.5rem;
  display: none;
}

.progress-wrap.show { display: block; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
}

.progress-meta .pct { color: var(--ink); font-weight: 500; }

.track {
  height: 4px;
  background: var(--border);
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.progress-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Button */
.btn {
  margin-top: 1.5rem;
  width: fit-content;
  padding: 0.85rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

/*.btn:hover:not(:disabled) { background: #333; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }*/

/* Status */
.status {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  border-left: 3px solid;
  letter-spacing: 0.03em;
}

.status.show { display: block; }
.status.ok  { border-color: var(--success); background: var(--success-l); color: var(--success); }
.status.err { border-color: var(--accent);  background: var(--accent-l);  color: var(--accent); }

#video-producto{
    object-position: center;
    object-fit: contain;
    margin: 20px auto;
    height: 100%;
    width: 50%;
    margin-top: -20px;
}

#btn-cerrar-video{
    padding: 5px 12px;
    border: 1px solid gray;
    background-color: #36577f;
    color: white;
    font-size: small;
    border-radius: 8px;
    margin-top: 5px;
    margin-right: 5px;
}

.btn-video{
    font-size: smaller;
    margin: 8px auto;
    padding: 4px 7px;
    background-color: rgb(37 99 235);
    color: white;
}