/* pantalla.css — mismos valores visuales que las pantallas del sistema
   original (gradientes, tamaños, animaciones), reescritos como clases
   semánticas propias en vez de utilidades de Tailwind. */

html, body { margin: 0; padding: 0; height: 100%; background: var(--ink); overflow: hidden; }
#app { width: 100vw; height: 100vh; position: relative; }

.stage {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Slide principal: platillo / promo / bebidas / custom ---------- */
.slide-main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink3) 55%, var(--ink2) 100%);
}
@media (min-width: 768px) {
  .slide-main { flex-direction: row; }
}

.slide-main__text {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  width: 100%;
}
@media (min-width: 768px) {
  .slide-main__text { padding: 0 64px; width: 100%; }
  .slide-main__text.has-image { width: 54%; }
}
@media (max-width: 767px) {
  .slide-main__text { padding-top: 84px; justify-content: flex-start; }
}

.slide-main__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.slide-main__eyebrow-line {
  height: 3px;
  width: 40px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 10px, transparent 10px 20px);
  animation: cs-wave 3s linear infinite;
  opacity: .8;
}
.slide-main__eyebrow-label {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  backdrop-filter: blur(6px);
}
@media (min-width: 768px) { .slide-main__eyebrow-label { font-size: 16px; } }

.slide-main__title {
  font-family: 'Fraunces', serif;
  letter-spacing: -.01em;
  color: #fff;
  line-height: .95;
  font-size: clamp(2.4rem, 5vw, 5rem);
  text-shadow: 0 8px 32px rgba(0,0,0,.45);
}

.slide-main__desc {
  color: rgba(255,255,255,.8);
  font-size: 18px;
  margin-top: 20px;
  max-width: 34rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
@media (min-width: 768px) { .slide-main__desc { font-size: 20px; } }

.slide-main__price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.slide-main__old-price {
  color: rgba(255,255,255,.45);
  font-size: 20px;
  text-decoration: line-through;
  font-family: 'Fraunces', serif;
}
.slide-main__price-pill {
  border-radius: 16px;
  padding: 14px 28px;
  box-shadow: 0 10px 30px -8px rgba(255,106,77,.45);
}
.slide-main__price-pill span {
  font-family: 'Fraunces', serif;
  color: #fff;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.slide-main__rule {
  margin-top: 32px;
  height: 3px;
  width: 96px;
  border-radius: 999px;
}

.slide-main__image-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
}
@media (min-width: 768px) { .slide-main__image-wrap { padding: 56px; width: 46%; } }

.slide-main__frame {
  position: relative;
  box-shadow: var(--shadow-lift);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 80vh;
  width: 100%;
  transform: rotate(-2.5deg);
  border: 4px solid rgba(255,255,255,.14);
}
@media (max-width: 767px) { .slide-main__frame { aspect-ratio: 16/10 !important; transform: none !important; } }

.slide-main__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-main__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5) 100%);
}

.slide-main__badge {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 20;
}
.slide-main__badge-circle {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  transform: rotate(12deg);
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  box-shadow: var(--shadow-glow-coral);
}

/* ---------- Slide de logo / bienvenida ---------- */
.slide-logo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, var(--ink3), var(--ink) 75%);
}
.slide-logo__ring-wrap { position: relative; z-index: 10; }
.slide-logo__avatar {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 10px 30px -8px rgba(231,184,78,.4);
}
@media (min-width: 768px) { .slide-logo__avatar { width: 224px; height: 224px; } }
.slide-logo__avatar-fallback {
  width: 160px; height: 160px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid var(--gold); background: var(--ink2); color: var(--gold);
}
@media (min-width: 768px) { .slide-logo__avatar-fallback { width: 224px; height: 224px; } }

.slide-logo__title {
  font-family: 'Fraunces', serif;
  color: #fff;
  margin-top: 40px;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
  position: relative;
  z-index: 10;
}
.slide-logo__tagline {
  font-family: 'Caveat', cursive;
  color: var(--gold);
  margin-top: 8px;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  position: relative;
  z-index: 10;
}
.slide-logo__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  border-radius: 999px;
  padding: 10px 20px;
  position: relative;
  z-index: 10;
}
.slide-logo__rating span { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; margin-left: 4px; }

/* ---------- Slide de QR ---------- */
.slide-qr {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  padding: 40px;
  text-align: center;
  background: linear-gradient(150deg, var(--ink), var(--ink3));
}
@media (min-width: 768px) { .slide-qr { flex-direction: row; text-align: left; gap: 64px; } }

.slide-qr__box-outer {
  position: relative;
  z-index: 10;
  padding: 2px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  box-shadow: var(--shadow-lift);
}
.slide-qr__box-inner {
  background: #fff;
  border-radius: 28px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(210px, 26vw, 340px);
  height: clamp(210px, 26vw, 340px);
}
.slide-qr__box-inner img { width: 100%; height: 100%; object-fit: contain; }
.slide-qr__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #94a3b8; text-align: center; }
.slide-qr__empty span { font-size: 12px; font-weight: 700; padding: 0 8px; }

.slide-qr__stars { display: inline-flex; gap: 2px; margin-bottom: 16px; border-radius: 999px; padding: 6px 14px; }
.slide-qr__text { position: relative; z-index: 10; }
.slide-qr__title { font-family: 'Fraunces', serif; color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.8rem); text-shadow: 0 8px 28px rgba(0,0,0,.4); }
.slide-qr__subtitle { color: rgba(255,255,255,.75); font-size: 20px; margin-top: 12px; max-width: 28rem; line-height: 1.6; }
@media (min-width: 768px) { .slide-qr__subtitle { font-size: 24px; } }
.slide-qr__rating { margin-top: 20px; font-weight: 700; font-family: 'Fraunces', serif; font-size: 24px; color: var(--gold); }

/* ---------- Slide de video ---------- */
.slide-video { width: 100%; height: 100%; position: relative; background: #000; overflow: hidden; }
.slide-video video { width: 100%; height: 100%; object-fit: contain; }
.slide-video__empty { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.5); }
.slide-video__caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 40px; }

/* ---------- Fondos decorativos compartidos ---------- */
.blob { position: absolute; border-radius: 999px; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 1; }
.dots-overlay { position: absolute; inset: 0; background-image: radial-gradient(circle, white 1.5px, transparent 1.5px); background-size: 34px 34px; z-index: 1; }

/* ---------- Overlays de sistema ---------- */
.status-badge {
  position: fixed;
  bottom: 18px;
  right: 22px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10,36,50,.5);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 600;
  opacity: .6;
  transition: opacity .3s;
}
.status-badge:hover { opacity: 1; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.status-dot.is-online { background: #43d17a; }
.status-dot.is-offline { background: #ff6a4d; }
.status-dot.is-syncing { background: var(--gold); animation: cs-pulse-ring 1.4s ease-in-out infinite; }
.status-dot.is-error { background: #ff6a4d; }

.empty-state {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  color: rgba(255,255,255,.7);
  background: var(--ink);
  padding: 40px;
}
.empty-state h1 { font-family: 'Fraunces', serif; color: #fff; font-size: 28px; margin: 0; }
.empty-state p { max-width: 32rem; line-height: 1.6; margin: 0; }

.tap-hint {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,36,50,.55);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .slide-main__eyebrow-line { animation: none !important; }
}
