@font-face {
  font-family: 'DINNextW1G-Regular';
  src: url('../fonts/DINNextW1G-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-family: 'DINNextW1G-Regular', sans-serif;
}

@font-face {
  font-family: 'DINNextW1G-Bold';
  src: url('../fonts/DINNextW1G-Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-family: 'DINNextW1G-Bold', sans-serif;
}

:root{
  --bg: #fbf1cf;
  --text: #111;
  --card: #fffaf0;
  --accent: #e63323;
  --accent-dark: #8f1d17;
  --border: rgba(17, 17, 17, 0.12);
}

body { 
  margin: 16px; 
  background: var(--bg);
  color: var(--text);
  font-family: 'DINNextW1G-Regular', sans-serif !important;
}

.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero{
  padding-top: 56px;
  padding-bottom: 24px;
  flex: 1; /* aire en medio */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .stack{
  display: flex;
}

.img-bandita{ 
  width: 200px; 
  max-width: 50%; 
  height: auto; 
  margin: 8px 0 14px; 
}

.img-taco-chilango{ 
  width: 200px; 
  max-width: 78%; 
  height: auto; 
}

.metrics-grid {
  width: min(100%, 720px);
}

.metric-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
}

.metric-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #111;
  color: #fff;
}

.metric-card__eyebrow {
  font-family: 'DINNextW1G-Bold', sans-serif;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
}

.metric-card__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent);
  color: #fff;
  font-family: 'DINNextW1G-Bold', sans-serif;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  animation: livePulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(230, 51, 35, 0.55);
}

@keyframes livePulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(230, 51, 35, 0.55);
  }

  50% {
    opacity: 0.68;
    box-shadow: 0 0 0 8px rgba(230, 51, 35, 0);
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(230, 51, 35, 0);
  }
}

.metric-card__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  padding: 24px;
}

.metric-card__divider {
  width: 1px;
  background: var(--border);
}

.metric-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.metric-item__label {
  color: var(--accent-dark);
  font-family: 'DINNextW1G-Bold', sans-serif;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.metric-item__value {
  color: var(--text);
  font-family: 'DINNextW1G-Bold', sans-serif;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
}

.wrap { 
  max-width: 720px; 
  margin: 0 auto; 
}

video { 
  width: 100%; 
  background:#000; 
  border-radius: 12px; 
}

button { 
  padding: 10px 12px; 
  border:0; 
  border-radius: 10px; 
  cursor:pointer; 
  margin: 8px 8px 0 0; 
}

.primary { 
  background:#111; 
  color:#fff; 
}

.danger { 
  background:#b00020; 
  color:#fff; 
}

input { 
  width:100%; 
  padding:10px 12px; 
  border:1px solid #ddd; 
  border-radius:10px; 
  margin-top:10px; 
}

pre { 
  white-space: pre-wrap; 
  word-break: break-word; 
}

.hint { 
  color:#555; 
  font-size: 25px; 
}

.ok { color:#0a7a2f; }
.err { color:#b00020; }

@media (max-width: 575px) {
  body {
    margin: 12px;
  }

  .hero {
    padding-top: 32px;
  }

  .metric-card__header {
    padding: 16px;
  }

  .metric-card__body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .metric-card__divider {
    width: 100%;
    height: 1px;
  }
}
