/* ==========================================================================
   PÉSIMO BARISTA · ESTILOS EXACTOS BASADOS EN EL REEL DE @WALTERROJASPE
   Arquitectura limpia sin encimamientos + Animaciones kinéticas y SVG
   ========================================================================== */

:root {
  /* Paleta exacta del video */
  --cement-light: #E5E0D8;
  --cement-mid: #D5CEBE;
  --cement-wall: #949089;
  --cement-dark: #1F1B18;
  --cement-black: #141311;
  --accent-green: #22C55E;
  --accent-red: #D9534F;
  --text-dark: #1F1B18;
  --text-muted-dark: #5D5A56;
  --text-light: #F4EEE4;
  --text-muted-light: #979691;
  
  --font-display: 'Oswald', 'Bebas Neue', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.bg-wall-cement {
  font-family: var(--font-sans);
  background-color: var(--cement-wall);
  /* Textura de pared de cemento mate real generada con gradientes */
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(240, 235, 225, 0.25) 0%, transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(30, 28, 25, 0.15) 0%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 2px, transparent 2px, transparent 8px),
    linear-gradient(180deg, #8E8A83 0%, #A29E97 40%, #7E7A73 100%);
  min-height: 100vh;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ==========================================================================
   TOP BAR CONTROLADOR DE DEMO (FLOTANTE ARRIBA)
   ========================================================================== */
.top-controller-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #11100F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  color: #FFF;
}

.controller-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.controller-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  width: 9px;
  height: 9px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: blink-dot 1.8s infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.controller-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 1px;
}

.controller-sub {
  font-size: 0.72rem;
  color: var(--text-muted-light);
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 8px;
}

.controller-modes {
  display: flex;
  background: #22201D;
  padding: 3px;
  border-radius: 30px;
  gap: 4px;
}

.ctrl-btn {
  background: transparent;
  color: #AAA;
  border: none;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.ctrl-btn:hover { color: #FFF; }
.ctrl-btn.active {
  background: #FFF;
  color: #111;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.controller-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ctrl-replay, .btn-ctrl-reset {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #CCC;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-ctrl-replay:hover, .btn-ctrl-reset:hover {
  border-color: #FFF;
  color: #FFF;
}

/* ==========================================================================
   STAGE WRAPPER & MODOS DE PANTALLA
   ========================================================================== */
#stage-wrapper {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.split-top-header {
  text-align: center;
  margin-bottom: 24px;
}

.pill-badge-black {
  display: inline-block;
  background: #141311;
  color: #FFF;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 2px;
  padding: 8px 24px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.phones-display-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

/* Control de Modos: Split, Solo Cliente, Solo Dueño */
#stage-wrapper.stage-customer #col-owner { display: none !important; }
#stage-wrapper.stage-admin #col-client { display: none !important; }

/* ==========================================================================
   DISPOSITIVO MÓVIL (MOCKUP iPHONE REALISTA)
   ========================================================================== */
.phone-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-label-tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2.5px;
  color: #1F1B18;
  margin-top: 14px;
  text-transform: uppercase;
  font-weight: 700;
}

.phone-device {
  width: 375px;
  height: 760px;
  border-radius: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

/* Marco iPhone Oscuro (Para el Dueño) */
.phone-dark-frame {
  background: #141311;
  border: 11px solid #1C1B1A;
}

/* Marco iPhone Claro (Para el Cliente) */
.phone-light-frame {
  background: #E5E0D8;
  border: 11px solid #1C1B1A;
}

/* DYNAMIC ISLAND Y BARRA DE ESTADO (NO SE CRUZA CON CONTENIDO) */
.dynamic-island-notch {
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  pointer-events: none;
}

.phone-dark-frame .dynamic-island-notch { color: #FFF; }
.phone-light-frame .dynamic-island-notch { color: #1F1B18; }

.status-time {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 35px;
}

.island-pill {
  width: 86px;
  height: 25px;
  background: #000;
  border-radius: 20px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  min-width: 35px;
  justify-content: flex-end;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 950;
}
.phone-dark-frame .phone-home-indicator { background: rgba(255, 255, 255, 0.35); }
.phone-light-frame .phone-home-indicator { background: rgba(0, 0, 0, 0.35); }

/* CONTENEDOR SCROLLABLE DE PANTALLA (CON PADDING SUPERIOR LIMPIO PARA LA ISLA) */
.screen-content {
  width: 100%;
  height: 100%;
  padding-top: 50px; /* espacio amplio para la dynamic island */
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
}
.screen-content::-webkit-scrollbar { display: none; }

/* ESPACIADORES INFERIORES: GARANTIZAN QUE NINGÚN ELEMENTO QUEDE ENCIMADO POR LAS BARRAS FLOTANTES */
.panel-bottom-spacer {
  height: 90px;
  width: 100%;
}
.client-bottom-spacer {
  height: 90px;
  width: 100%;
}

/* ==========================================================================
   PANTALLA CLIENTE (TEXTURA REAL DE CEMENTO CLARO MATE #E5E0D8)
   ========================================================================== */
.light-cement-screen {
  background-color: #E5E0D8;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35) 0%, transparent 70%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 2px, transparent 2px, transparent 6px);
  color: var(--text-dark);
}

/* TOPBAR CLIENTE */
.client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 8px;
}

.client-avatar-pb {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.client-top-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.client-owner-btn {
  background: transparent;
  border: 1px solid rgba(31, 27, 24, 0.25);
  color: var(--text-dark);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
}
.client-owner-btn:hover { background: rgba(0,0,0,0.08); }

/* HERO DEL CLIENTE CON ANIMACIONES KINÉTICAS */
.client-hero {
  padding: 8px 18px 20px;
  text-align: center;
}

.hero-badge-wrap {
  margin-bottom: 6px;
}

.hero-small-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted-dark);
  text-transform: uppercase;
}

/* TÍTULO CON TIPOGRAFÍA ARTESANAL EXACTA DEL VIDEO */
.hero-title-wrap {
  width: 215px;
  margin: 4px auto 10px;
  overflow: hidden;
}

.hero-title-img {
  width: 100%;
  height: auto;
  display: block;
  animation: kineticRise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes kineticRise {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   ILUSTRACIÓN ORIGINAL EXACTA CON VAPOR REALISTA SUPERPUESTO
   ========================================================================== */
.hero-barista-art-container {
  width: 205px;
  margin: 0 auto 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.barista-art-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  animation: baristaBreathing 4s ease-in-out infinite;
}

.barista-exact-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
}

/* VAPOR FLOTANTE REALISTA SOBRE LA TAZA DE CAFÉ */
.steam-cup-overlay {
  position: absolute;
  top: 13%;
  left: 23%;
  width: 32px;
  height: 40px;
  pointer-events: none;
}

.steam-puff {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, rgba(93, 90, 86, 0.9) 0%, rgba(93, 90, 86, 0) 100%);
  border-radius: 4px;
  filter: blur(0.5px);
  animation: steamRisePuff 2.4s ease-in-out infinite;
}

.sp-1 { left: 4px; height: 16px; animation-delay: 0s; }
.sp-2 { left: 12px; height: 22px; animation-delay: 0.7s; }
.sp-3 { left: 20px; height: 17px; animation-delay: 1.4s; }

@keyframes steamRisePuff {
  0% {
    transform: translateY(0) scaleX(1) scaleY(0.7);
    opacity: 0;
  }
  30% {
    opacity: 0.85;
    transform: translateY(-8px) scaleX(1.3) scaleY(1);
  }
  70% {
    opacity: 0.45;
    transform: translateY(-18px) scaleX(1.6) scaleY(1.2);
  }
  100% {
    transform: translateY(-28px) scaleX(2) scaleY(1.4);
    opacity: 0;
  }
}

/* Flotación suave y respiración del barista */
@keyframes baristaBreathing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hero-tagline-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: #4A4641;
  line-height: 1.45;
  margin: 6px auto 16px;
  text-align: center;
  max-width: 270px;
}

.hero-tagline-text strong {
  display: block;
  color: #1F1B18;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.hero-pill-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto 10px;
}

.btn-pill-black {
  background: var(--cement-dark);
  color: #FFF;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 10px 22px;
  border-radius: 30px;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(31, 27, 24, 0.2);
}
.btn-pill-black:hover {
  background: #000;
  transform: translateY(-1px);
}
.btn-pill-black:active { transform: scale(0.96); }

.btn-pill-outline {
  background: transparent;
  border: 1.5px solid var(--cement-dark);
  color: var(--cement-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 9px 22px;
  border-radius: 30px;
  transition: transform 0.15s, background-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-pill-outline:hover {
  background: rgba(31, 27, 24, 0.06);
  transform: translateY(-1px);
}
.btn-pill-outline:active { transform: scale(0.96); }

/* MENÚ DEL DÍA (CLIENTE) */
.client-menudia-wrap {
  padding: 16px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.menudia-header-title h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.88;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menudia-subtitle {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted-dark);
  margin-top: 4px;
  margin-bottom: 12px;
}

.menudia-card-box {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menudia-thumb-wrap {
  width: 85px;
  height: 85px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #CFC9BE;
}

.menudia-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menudia-info {
  flex-grow: 1;
}

.menudia-description {
  font-size: 0.78rem;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.menudia-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menudia-price-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-pill-small-add {
  background: transparent;
  border: 1.5px solid var(--cement-dark);
  color: var(--cement-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-pill-small-add:hover {
  background: var(--cement-dark);
  color: #FFF;
}
.btn-pill-small-add:active { transform: scale(0.95); }

/* LA CARTA CLIENTE */
.client-carta-wrap {
  padding: 24px 18px 20px;
}

.carta-headline-box {
  margin-bottom: 14px;
}

.carta-title-large {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 0.88;
  letter-spacing: 1px;
}

.carta-sub-excusa {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted-dark);
}

/* PILLS DE FILTRO */
.carta-filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0 8px;
  scrollbar-width: none;
}
.carta-filter-pills::-webkit-scrollbar { display: none; }

.cat-filter-btn {
  background: transparent;
  border: 1.5px solid var(--cement-dark);
  color: var(--cement-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-filter-btn.active {
  background: var(--cement-dark);
  color: #FFF;
}
.cat-filter-btn:active { transform: scale(0.95); }

.carta-section-note {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted-dark);
  margin: 10px 0 16px;
}

/* TARJETAS DE PRODUCTOS DE LA CARTA */
.client-products-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-product-row {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.3s;
  position: relative;
}

.c-product-row:hover { transform: translateY(-1px); }

.c-product-row.is-sold-out {
  opacity: 0.45;
}

.c-prod-thumb-box {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #CFC9BE;
}

.c-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-prod-zoom-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFF;
  font-size: 0.55rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.c-prod-details {
  flex-grow: 1;
}

.c-prod-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ANIMACIÓN DE REBOTE PARA EL BADGE AGOTADO */
.c-prod-soldout-tag {
  background: #D9534F;
  color: #FFF;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
  animation: badgePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.c-prod-desc {
  font-size: 0.72rem;
  color: var(--text-muted-dark);
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-prod-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-prod-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.btn-c-add {
  background: transparent;
  border: 1.5px solid var(--cement-dark);
  color: var(--cement-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-c-add:hover {
  background: var(--cement-dark);
  color: #FFF;
}
.btn-c-add:active { transform: scale(0.95); }

.c-product-row.is-sold-out .btn-c-add {
  pointer-events: none;
  border-color: #999;
  color: #999;
}

.carta-footer-prompt {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  line-height: 1.35;
  margin-top: 24px;
}

.client-visitanos-wrap {
  padding: 10px 18px 20px;
  text-align: center;
}
.visitanos-box {
  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 16px;
}
.visitanos-box h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.visitanos-box p {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

/* ==========================================================================
   STICKY BOTTOM CART BAR CLIENTE (FIJO DENTRO DEL DISPOSITIVO, NUNCA TAPADO)
   ========================================================================== */
.client-sticky-cart {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: #FFF;
  border-radius: 35px;
  padding: 6px 6px 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 600;
  cursor: pointer;
  animation: slideUpCart 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCart {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cart-floating-left {
  display: flex;
  flex-direction: column;
}

.cart-count-txt {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #555;
}

.cart-total-txt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.btn-cart-ver-pedido {
  background: var(--cement-dark);
  color: #FFF;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s;
}
.btn-cart-ver-pedido:active { transform: scale(0.96); }

/* ==========================================================================
   PRODUCT DETAIL MODAL (CUBRE EXACTAMENTE LA PANTALLA COMPLETA DEL TELÉFONO)
   ========================================================================== */
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-modal-sheet {
  background: #1C1B18;
  border-radius: 24px;
  width: 100%;
  max-width: 320px;
  color: #FFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-x-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #FFF;
  font-size: 1.4rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-photo-holder {
  width: 100%;
  height: 190px;
  background: #000;
}

.modal-photo-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-detail-body {
  padding: 16px 18px 20px;
}

.modal-detail-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-detail-body p {
  font-size: 0.75rem;
  color: var(--text-muted-light);
  line-height: 1.3;
  margin-bottom: 14px;
}

.modal-price-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-unit-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.stepper-pill-dark {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2A2824;
  padding: 3px 10px;
  border-radius: 20px;
}

.stp-btn {
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stp-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-modal-add-cart {
  width: 100%;
  background: #F4EEE4;
  color: #141311;
  border: none;
  padding: 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s;
}
.btn-modal-add-cart:active { transform: scale(0.96); }

/* ==========================================================================
   DRAWER 'TU PEDIDO' (CHECKOUT CUBRIENDO DESDE ABAJO EL TELÉFONO)
   ========================================================================== */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 850;
  display: flex;
  align-items: flex-end;
}

.drawer-sheet-dark {
  background: #1C1B18;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 88%;
  color: #FFF;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
  animation: drawerSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.drawer-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-sheet-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.drawer-x-btn {
  background: transparent;
  border: none;
  color: #AAA;
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-sheet-scroll {
  padding: 14px 20px 24px;
  overflow-y: auto;
}

.drawer-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.d-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.d-item-left h5 {
  font-size: 0.85rem;
  font-weight: 600;
}
.d-item-left span {
  font-size: 0.7rem;
  color: var(--text-muted-light);
}

.drawer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.txt-total-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted-light);
}

.txt-total-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.drawer-form-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.drawer-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted-light);
  margin-bottom: 4px;
}

.drawer-input {
  background: #141311;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #FFF;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}
.drawer-input:focus { border-color: #FFF; }

.delivery-pills-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.deliv-pill {
  background: #141311;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 9px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}
.deliv-pill.active {
  background: #F4EEE4;
  color: #141311;
  border-color: #F4EEE4;
}

.drawer-hint-red {
  font-size: 0.68rem;
  color: #E25C58;
  margin-top: 4px;
  display: block;
}

.btn-drawer-whatsapp {
  width: 100%;
  background: var(--accent-green);
  color: #0B2912;
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s;
}
.btn-drawer-whatsapp:active { transform: scale(0.96); }

/* ==========================================================================
   PANTALLA DEL DUEÑO (PANEL DE ADMINISTRACIÓN MÓVIL)
   ========================================================================== */
.dark-theme-screen {
  background: #161513;
  color: #FFF;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 12px;
}

.panel-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-pb {
  width: 32px;
  height: 32px;
  border: 1.5px solid #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.panel-titles h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1px;
  line-height: 1;
}
.panel-titles span {
  font-size: 0.65rem;
  color: var(--text-muted-light);
  letter-spacing: 1px;
}

.panel-close-btn {
  background: transparent;
  border: none;
  color: #AAA;
  font-size: 1.4rem;
  cursor: pointer;
}

/* PÍLDORAS DE NAVEGACIÓN DEL PANEL */
.panel-nav-pills {
  display: flex;
  gap: 6px;
  padding: 0 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-pill-btn {
  background: #252420;
  border: none;
  color: #AAA;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-pill-btn.active {
  background: #FFF;
  color: #141311;
  font-weight: 800;
}

/* CONTENEDOR DE TABS DEL PANEL */
.panel-tab-content {
  display: none;
  padding: 16px 18px 20px;
}
.panel-tab-content.active {
  display: block;
}

.panel-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.panel-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted-light);
  margin-bottom: 10px;
}

.panel-field {
  margin-bottom: 12px;
}

.panel-field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted-light);
  margin-bottom: 4px;
}

.panel-field input,
.panel-field select,
.panel-field textarea {
  width: 100%;
  background: #141311;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #FFF;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}
.panel-field input:focus { border-color: #FFF; }

.panel-field-row {
  display: flex;
  gap: 10px;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.field-hint {
  font-size: 0.65rem;
  color: var(--text-muted-light);
  margin-top: 3px;
  display: block;
}

/* TOGGLE SWITCH ESTILO iOS */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.ios-switch input { opacity: 0; width: 0; height: 0; }

.ios-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #383530;
  transition: .3s;
  border-radius: 24px;
}
.ios-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .ios-slider.green-switch { background-color: var(--accent-green); }
input:checked + .ios-slider.orange-switch { background-color: #E2683B; }
input:checked + .ios-slider:before { transform: translateX(18px); }

/* PRODUCTOS EN EL PANEL */
.panel-categories-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.panel-categories-pills::-webkit-scrollbar { display: none; }

.p-cat-btn {
  background: #22201D;
  border: none;
  color: #AAA;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.p-cat-btn.active {
  background: #FFF;
  color: #141311;
}

.panel-products-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-prod-card {
  background: #141311;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.panel-prod-top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.panel-thumb-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.panel-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-pill-cambiar-foto {
  background: #252420;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

.panel-prod-switches-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 12px;
}

.soldout-toggle-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.price-mini-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}
.price-mini-box input {
  width: 60px;
  background: #1C1B18;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #FFF;
  padding: 4px 6px;
  font-size: 0.8rem;
  text-align: center;
}

.btn-pill-eliminar-prod {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(217, 83, 79, 0.4);
  color: #E25C58;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 7px;
  border-radius: 20px;
  cursor: pointer;
}

.btn-panel-add-prod {
  width: 100%;
  background: #22201D;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 10px;
}

/* ==========================================================================
   BARRA INFERIOR FIJA DEL PANEL (FIJA EN EL TELÉFONO, NUNCA TAPADA)
   ========================================================================== */
.panel-sticky-footer {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 600;
}

.btn-panel-dark {
  flex: 1;
  background: #1F1E1B;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 30px;
  cursor: pointer;
}

.btn-panel-green {
  flex: 1.5;
  background: var(--accent-green);
  border: none;
  color: #0B2912;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.15s;
}
.btn-panel-green:hover { transform: scale(1.02); }
.btn-panel-green:active { transform: scale(0.96); }

/* TOAST VERDE FLOTANTE (IGUAL AL VIDEO: "Guardado ✓ Ya se ve en la web") */
.toast-pill-green {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  background: #141311;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  z-index: 999;
  animation: toastPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, 15px) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* MODAL ADMIN */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.admin-modal-card {
  background: #1C1B18;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  color: #FFF;
}
.admin-modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.modal-admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* CLASES DE UTILIDAD */
.hidden { display: none !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.text-xs { font-size: 0.7rem; }

/* ==========================================================================
   MODO NATIVO MÓVIL AUTOMÁTICO (CUANDO SE ABRE EN UN CELULAR REAL)
   ========================================================================== */
@media (max-width: 680px) {
  body.bg-wall-cement {
    background: #E5E0D8 !important;
    overflow-x: hidden;
  }

  .top-controller-bar {
    display: none !important;
  }

  #stage-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100vw !important;
  }

  .split-top-header {
    display: none !important;
  }

  .phones-display-grid {
    gap: 0 !important;
    width: 100vw !important;
  }

  .phone-column {
    width: 100vw !important;
    margin: 0 !important;
  }

  .phone-label-tag {
    display: none !important;
  }

  .phone-device {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Ocultar la Dynamic Island simulada porque el celular real ya tiene su propio notch/isla */
  .dynamic-island-notch {
    display: none !important;
  }

  .phone-home-indicator {
    display: none !important;
  }

  .screen-content {
    padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 20px)) !important;
    -webkit-overflow-scrolling: touch;
  }

  .client-sticky-cart {
    bottom: calc(16px + env(safe-area-inset-bottom, 10px)) !important;
    left: 14px !important;
    right: 14px !important;
  }

  .panel-sticky-footer {
    bottom: calc(16px + env(safe-area-inset-bottom, 10px)) !important;
    left: 14px !important;
    right: 14px !important;
  }
}
