/* === PCubaFit Kiosk Style === */
:root {
  --pcf-primary: #F5B400; /* amarillo dorado PCubaFit */
  --pcf-bg: #fdfdfd;
  --pcf-accent: #2b2b2b;
  --pcf-light: #ffffff;
  --pcf-border: #e0e0e0;
  --pcf-success: #3bb273;
  --pcf-radius: 14px;
  --pcf-shadow: 0 4px 10px rgba(0,0,0,0.05);
  --pcf-font: 'Poppins', sans-serif;
}

body {
  font-family: var(--pcf-font);
  background: var(--pcf-bg);
  color: var(--pcf-accent);
}

/* ====== Contenedor principal ====== */
.pcf-kiosk-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2em;
}

/* ====== Encabezado ====== */
.pcf-kiosk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pcf-light);
  padding: 1em 1.5em;
  border-radius: var(--pcf-radius);
  box-shadow: var(--pcf-shadow);
  margin-bottom: 1.2em;
}

.pcf-brand {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--pcf-accent);
}
.pcf-brand span {
  color: var(--pcf-primary);
}

.pcf-kiosk-promise {
  font-size: 1.1em;
  color: var(--pcf-success);
  font-weight: 600;
}

.pcf-cart-open {
  background: var(--pcf-primary);
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: var(--pcf-radius);
  cursor: pointer;
  font-size: 1em;
  box-shadow: var(--pcf-shadow);
  transition: 0.2s ease;
}
.pcf-cart-open:hover {
  transform: scale(1.05);
}

/* ====== Categorías ====== */
.pcf-kiosk-cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-bottom: 1.5em;
}

.pcf-cat-btn {
  background: var(--pcf-light);
  border: 2px solid var(--pcf-border);
  border-radius: var(--pcf-radius);
  padding: 0.6em 1.2em;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s;
}
.pcf-cat-btn:hover,
.pcf-cat-btn.active {
  background: var(--pcf-primary);
  color: white;
}

/* ====== Grilla de productos ====== */
.pcf-kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1em;
}

.pcf-card {
  background: var(--pcf-light);
  border-radius: var(--pcf-radius);
  box-shadow: var(--pcf-shadow);
  text-align: center;
  padding: 1em;
  transition: 0.25s ease;
}
.pcf-card:hover {
  transform: translateY(-3px);
}

.pcf-img img {
  border-radius: var(--pcf-radius);
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.pcf-title {
  font-size: 1em;
  font-weight: 600;
  margin: 0.5em 0;
  min-height: 2.4em;
}

.pcf-price {
  color: var(--pcf-success);
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.pcf-add {
  background: var(--pcf-primary);
  color: #fff;
  border: none;
  padding: 0.5em 1.2em;
  border-radius: var(--pcf-radius);
  cursor: pointer;
  transition: 0.25s;
}
.pcf-add:hover {
  background: #e0a000;
}

/* ====== Footer ====== */
.pcf-kiosk-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5em;
  background: var(--pcf-light);
  padding: 1em;
  border-radius: var(--pcf-radius);
  box-shadow: var(--pcf-shadow);
}

.pcf-kiosk-footer button,
.pcf-kiosk-footer a {
  background: var(--pcf-primary);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: var(--pcf-radius);
  padding: 0.7em 1.5em;
  font-weight: 600;
  cursor: pointer;
}

/* ====== Drawer del carrito ====== */
#pcf-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: 380px;
  height: 100vh;
  background: var(--pcf-light);
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}
#pcf-cart-drawer.active {
  transform: translateX(0);
}
.pcf-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background: var(--pcf-primary);
  color: #fff;
  font-weight: 600;
}
.pcf-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1em;
}
.pcf-cart-actions {
  padding: 1em;
  border-top: 1px solid var(--pcf-border);
}
.pcf-go-checkout {
  background: var(--pcf-success);
  color: #fff;
  display: block;
  text-align: center;
  padding: 0.8em;
  border-radius: var(--pcf-radius);
  text-decoration: none;
  font-weight: 600;
}

/* ====== Turno en pantalla de gracias ====== */
.pcf-turn-banner {
  text-align: center;
  background: var(--pcf-primary);
  color: #fff;
  padding: 1em;
  font-size: 1.3em;
  border-radius: var(--pcf-radius);
  margin: 1.5em 0;
  box-shadow: var(--pcf-shadow);
}

/* === OPTIMIZACIÓN PARA TABLETAS Y PANTALLAS TÁCTILES === */

/* Tamaño base de fuente más grande en pantallas pequeñas */
@media (max-width: 1024px) {
  html, body {
    font-size: 18px;
  }
  .pcf-kiosk-header {
    flex-direction: column;
    gap: 0.5em;
    text-align: center;
  }
  .pcf-kiosk-cats {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pcf-cat-btn {
    font-size: 0.9em;
    padding: 0.8em 1em;
  }
  .pcf-card {
    padding: 0.8em;
  }
  .pcf-img img {
    height: 140px;
  }
  .pcf-add {
    font-size: 1em;
    padding: 0.6em 1.4em;
  }
  .pcf-kiosk-footer {
    flex-direction: column;
    gap: 0.6em;
  }
  .pcf-kiosk-footer button,
  .pcf-kiosk-footer a {
    width: 100%;
  }
}

/* En orientación vertical (portrait) */
@media (orientation: portrait) {
  .pcf-kiosk-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* En orientación horizontal (landscape) */
@media (orientation: landscape) {
  .pcf-kiosk-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Evitar scroll lateral accidental */
body, html {
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

