/* =========================================
   IMPORTACIÓN DE TIPOGRAFÍA GLOBAL: OUTFIT
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
  --color-fondo: #0f0f0f;
  --color-superficie: #181818;
  --color-superficie-hover: #222222;
  --color-borde: #2a2a2a;
  --color-amarillo: #ffcc00;
  --color-amarillo-hover: #e6b800;
  --color-blanco: #ffffff;
  --color-texto-secundario: #b3b3b3;
  --max-ancho: 1100px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-fondo);
  color: var(--color-blanco);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, input, select, textarea {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

main {
  flex: 1;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   BARRA DE NAVEGACIÓN
   ========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #121212;
  border-bottom: 2px solid var(--color-borde);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-blanco);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo em {
  font-style: normal;
  color: var(--color-amarillo);
}

.logo span {
  color: var(--color-blanco);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--color-blanco);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-amarillo);
}

.btn-nav {
  background-color: var(--color-amarillo);
  color: #000 !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-nav:hover {
  background-color: var(--color-amarillo-hover);
  transform: translateY(-1px);
}

/* =========================================
   CABECERA Y HERO (INICIO)
   ========================================= */
.hero {
  /* Cambia la ruta por el nombre exacto de la imagen que quieras poner de fondo */
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), 
              url('multimedia/fotografias/foto_encabezado.png') center/cover no-repeat;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  border-bottom: 2px solid var(--color-borde);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin: 1rem 0;
}

.hero p {
  color: var(--color-texto-secundario);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* =========================================
   ELEMENTOS GLOBALES Y BOTONES
   ========================================= */
.seccion {
  max-width: var(--max-ancho);
  margin: 4rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.seccion h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
}

.seccion h2 span {
  color: var(--color-amarillo);
}

.linea-decorativa {
  width: 60px;
  height: 4px;
  background-color: var(--color-amarillo);
  margin: 0.8rem auto 2.5rem auto;
  border-radius: 2px;
}

.badge {
  display: inline-block;
  background-color: rgba(255, 204, 0, 0.15);
  color: var(--color-amarillo);
  border: 1px solid var(--color-amarillo);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primario, .btn-secundario {
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primario {
  background-color: var(--color-amarillo);
  color: #000;
}

.btn-primario:hover {
  background-color: var(--color-amarillo-hover);
  transform: translateY(-2px);
}

.btn-secundario {
  background-color: transparent;
  color: var(--color-blanco);
  border: 2px solid var(--color-amarillo);
}

.btn-secundario:hover {
  background-color: var(--color-amarillo);
  color: #000;
  transform: translateY(-2px);
}

.btn-volver {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-amarillo);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-volver:hover {
  text-decoration: underline;
}

.btn-bloque {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  cursor: pointer;
}

.btn-bloque:disabled {
  background-color: #333;
  color: #777;
  cursor: not-allowed;
  transform: none;
}

/* Inputs de número sin flechas (spinners) */
.input-sin-flechas::-webkit-outer-spin-button,
.input-sin-flechas::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-sin-flechas[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* =========================================
   SECCIÓN NUESTRO LOCAL (CENTRADA)
   ========================================= */
.sobre-nosotros {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sobre-nosotros p {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
  font-size: 1.15rem;
  color: var(--color-texto-secundario);
  line-height: 1.7;
  width: 100%;
}

/* =========================================
   GALERÍA (INICIO)
   ========================================= */
.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  width: 100%;
}

.tarjeta-foto {
  background-color: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tarjeta-foto:hover {
  transform: translateY(-4px);
  border-color: var(--color-amarillo);
}

.tarjeta-foto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.tarjeta-info {
  padding: 1.2rem;
  text-align: left;
}

.tarjeta-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.tarjeta-info p {
  color: var(--color-texto-secundario);
  font-size: 0.9rem;
}

/* =========================================
   VALORACIONES (GOOGLE MAPS)
   ========================================= */
.google-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #1a1a1a;
  border: 1px solid var(--color-borde);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-blanco);
  font-weight: 600;
}

.google-icon {
  width: 16px;
  height: 16px;
}

.puntuacion-resumen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.nota-grande {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-amarillo);
}

.total-resenas {
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
}

.grid-opiniones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.opinion-card {
  background-color: var(--color-superficie);
  border: 1px solid var(--color-borde);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: left;
  border-left: 4px solid var(--color-amarillo);
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.opinion-card .autor {
  font-size: 0.95rem;
  font-weight: 700;
}

.estrellas {
  color: var(--color-amarillo);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.opinion-card p {
  color: #dcdcdc;
  font-size: 0.92rem;
  line-height: 1.5;
}

.google-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.btn-google {
  display: inline-block;
  border: 1px solid var(--color-amarillo);
  color: var(--color-amarillo);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-google:hover {
  background-color: var(--color-amarillo);
  color: #000;
}

/* =========================================
   CARTA (PÁGINA PÚBLICA)
   ========================================= */
.carta-banner {
  text-align: center;
  padding: 4rem 1.5rem 2rem 1.5rem;
  background-color: #121212;
  border-bottom: 1px solid var(--color-borde);
}

.carta-banner h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-top: 0.5rem;
}

.carta-banner h1 span {
  color: var(--color-amarillo);
}

.carta-banner p {
  color: var(--color-texto-secundario);
  font-size: 1.1rem;
}

.carta-filtros-wrapper {
  max-width: var(--max-ancho);
  margin: 2rem auto 1rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.filtros-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem;
}

.btn-filtro {
  background-color: var(--color-superficie);
  color: var(--color-texto-secundario);
  border: 1px solid var(--color-borde);
  padding: 0.6rem 1.3rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-filtro:hover {
  color: var(--color-blanco);
  border-color: var(--color-amarillo);
  transform: translateY(-2px);
}

.btn-filtro.activo {
  background-color: var(--color-amarillo);
  color: #000;
  border-color: var(--color-amarillo);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.25);
  transform: translateY(-2px);
}

.seccion-carta {
  max-width: var(--max-ancho);
  margin: 3rem auto 6rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: 100%;
}

.categoria-titulo {
  font-size: 1.8rem;
  color: var(--color-amarillo);
  border-bottom: 2px solid var(--color-borde);
  padding-bottom: 0.6rem;
  margin-bottom: 1.8rem;
  text-align: left;
}

.grid-platos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
  width: 100%;
}

.plato-item {
  background-color: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
  min-height: 310px;
}

.plato-item:hover {
  border-color: var(--color-amarillo);
  transform: translateY(-3px);
}

.plato-foto-box {
  width: 100%;
  height: 140px;
  background-color: #121212;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.plato-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.plato-item:hover .plato-img {
  transform: scale(1.05);
}

.plato-cuerpo {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 0.4rem;
}

.plato-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 0;
}

.plato-header h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-blanco);
}

.plato-header .precio,
.precio {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-amarillo);
}

.plato-desc {
  color: var(--color-texto-secundario);
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.plato-complementos-seccion {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-borde);
}

.comp-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-amarillo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.comp-tags-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-comp {
  background-color: #121212;
  color: #ddd;
  border: 1px solid #2a2a2a;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  line-height: 1.2;
}

/* =========================================
   ZONA PRIVADA / ADMINISTRACIÓN
   ========================================= */
.admin-container {
  max-width: 950px;
  margin: 3rem auto 6rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.admin-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.admin-header h1 {
  font-size: 2.8rem;
  letter-spacing: 1px;
}

.admin-header h1 span {
  color: var(--color-amarillo);
}

.admin-subtexto {
  display: block;
  width: 100%;
  color: var(--color-texto-secundario);
  font-size: 0.95rem;
  margin: 0 auto 2rem auto;
  text-align: center;
  line-height: 1.5;
}

/* Cuadrícula central de Admin.html */
.admin-modulos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.admin-modulos .main-nav-btn {
  padding: 1.2rem 1.8rem;
  font-size: 1.1rem;
  white-space: nowrap;
}

.main-nav-btn {
  background-color: var(--color-superficie);
  color: var(--color-blanco);
  border: 2px solid var(--color-borde);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.main-nav-btn:hover {
  background-color: var(--color-amarillo);
  color: #000;
  border-color: var(--color-amarillo);
  transform: translateY(-2px);
}

.admin-grid-dos-columnas {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.admin-bloque {
  background-color: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  width: 100%;
}

.admin-bloque h3 {
  display: block;
  width: 100%;
  font-size: 1.3rem;
  color: var(--color-amarillo);
  margin-bottom: 0.5rem;
  clear: both;
}

.form-inline {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-inline input {
  flex: 1;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
  font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea,
.form-inline input {
  background-color: #101010;
  border: 1px solid var(--color-borde);
  color: #fff;
  padding: 0.75rem;
  border-radius: 5px;
  outline: none;
  font-size: 0.95rem;
  width: 100%;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus,
.form-inline input:focus {
  border-color: var(--color-amarillo);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.chips-categorias h4 {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.6rem;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-item {
  background-color: #222;
  border: 1px solid var(--color-amarillo);
  color: var(--color-blanco);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip-item button {
  background: none;
  border: none;
  color: #ff5252;
  font-weight: 900;
  cursor: pointer;
  font-size: 0.9rem;
}

.selector-compatibles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
  background-color: #121212;
  border: 1px solid var(--color-borde);
  border-radius: 6px;
  padding: 0.8rem;
  max-height: 180px;
  overflow-y: auto;
}

.check-compatible-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.filtros-admin-wrapper {
  border-bottom: 1px solid var(--color-borde);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.grid-productos-admin {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.tarjeta-admin-producto {
  background-color: #121212;
  border: 1px solid var(--color-borde);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.admin-prod-img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-prod-datos {
  flex: 1;
  min-width: 0;
}

.admin-prod-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
  gap: 0.8rem;
}

.admin-prod-top h4 {
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-cat {
  display: inline-block;
  background-color: #252525;
  color: var(--color-amarillo);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.admin-prod-desc {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.4;
}

.admin-prod-comps-box {
  margin-top: 0.5rem;
  border-top: 1px dashed var(--color-borde);
  padding-top: 0.4rem;
}

.tag-comp-mini {
  background-color: #222;
  border: 1px solid #333;
  color: #ccc;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.btn-editar {
  background-color: var(--color-amarillo);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.btn-editar:hover {
  background-color: var(--color-amarillo-hover);
}

.btn-eliminar {
  background-color: #b71c1c;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.btn-eliminar:hover {
  background-color: #d32f2f;
}

/* =========================================
   PÁGINA DE GESTIÓN DE PEDIDOS (ADMIN)
   ========================================= */
.sub-tabs-pedidos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sub-tab-btn {
  background-color: transparent;
  color: var(--color-blanco);
  border: 1px solid var(--color-borde);
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.sub-tab-btn.activa {
  background-color: var(--color-amarillo);
  color: #000;
  border-color: var(--color-amarillo);
}

.pedidos-subpanel {
  display: none;
}

.pedidos-subpanel.activa {
  display: block;
}

.subpanel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contenedor-pedidos {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.card-pedido {
  background-color: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: 8px;
  padding: 1.4rem;
  text-align: left;
}

.card-pedido.en-curso {
  border-left: 5px solid var(--color-amarillo);
}

.card-pedido.finalizado {
  border-left: 5px solid #4caf50;
  opacity: 0.85;
}

.pedido-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-borde);
  padding-bottom: 0.5rem;
}

.pedido-num {
  font-size: 1.15rem;
  font-weight: 800;
}

.pedido-hora {
  font-size: 0.85rem;
  color: #888;
}

.pedido-cuerpo p {
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 0.3rem;
}

.pedido-items-box {
  background-color: #111;
  border: 1px dashed var(--color-borde);
  padding: 0.8rem;
  border-radius: 6px;
  margin: 0.8rem 0;
}

.pedido-items-box p {
  color: var(--color-amarillo);
  font-weight: 600;
  margin-top: 0.2rem;
}

.pedido-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--color-borde);
}

.total-pedido strong {
  font-size: 1.15rem;
  color: var(--color-amarillo);
}

.btn-completar-pedido {
  background-color: var(--color-amarillo);
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-completar-pedido:hover {
  background-color: var(--color-amarillo-hover);
}

.badge-finalizado {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

.sin-pedidos {
  color: #777;
  text-align: center;
  padding: 2.5rem;
}

/* =========================================
   PÁGINA DE CONTACTO
   ========================================= */
.contacto-container {
  max-width: var(--max-ancho);
  margin: 3rem auto 6rem auto;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-bottom: 4rem;
}

.contacto-card {
  background-color: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-top: 4px solid var(--color-amarillo);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contacto-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-amarillo);
}

.contacto-icono {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.contacto-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-blanco);
  margin-bottom: 0.5rem;
}

.contacto-detalle {
  font-size: 0.92rem;
  color: var(--color-texto-secundario);
  margin-bottom: 1rem;
}

.contacto-destacado {
  color: var(--color-amarillo);
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.8rem;
  transition: color 0.2s ease;
}

.contacto-destacado:hover {
  color: var(--color-amarillo-hover);
  text-decoration: underline;
}

.horarios-lista {
  list-style: none;
  width: 100%;
  margin: 0.5rem 0 1rem 0;
  padding: 0;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.horarios-lista li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--color-borde);
  padding-bottom: 0.3rem;
}

.horarios-lista span {
  color: var(--color-texto-secundario);
}

.horarios-lista strong {
  color: var(--color-amarillo);
}

.mapa-wrapper {
  background-color: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.mapa-iframe-box {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-borde);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin-top: 1rem;
}

.mapa-iframe-box iframe {
  display: block;
}

/* =========================================
   PIE DE PÁGINA COMÚN
   ========================================= */
.footer {
  background-color: #0a0a0a;
  border-top: 1px solid var(--color-borde);
  padding: 4rem 1.5rem 1.5rem 1.5rem;
  color: var(--color-texto-secundario);
  margin-top: auto;
  width: 100%;
}

.footer-contenedor {
  max-width: var(--max-ancho);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-blanco);
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-logo em {
  font-style: normal;
  color: var(--color-amarillo);
}

.footer-direccion {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-blanco);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 25px;
  height: 2px;
  background-color: var(--color-amarillo);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: var(--color-texto-secundario);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--color-amarillo);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--max-ancho);
  margin: 3rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-borde);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.footer-bottom .creador strong {
  color: var(--color-amarillo);
}

/* =========================================
   ADAPTACIÓN PARA DISPOSITIVOS MÓVILES (GLOBAL)
   ========================================= */
@media (max-width: 900px) {
  .admin-grid-dos-columnas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-inline {
    flex-direction: column;
  }
  .tarjeta-admin-producto, .admin-prod-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-eliminar, .btn-editar {
    width: 100%;
  }
  .footer-contenedor {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ========================================================
   ESTILOS ESPECÍFICOS: GESTIÓN DE CARTA (.gc)
   ======================================================== */
.gc { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.gc button, .gc input, .gc select, .gc textarea, .gc-drawer button, .gc-drawer input, .gc-drawer select, .gc-drawer textarea { font-size: inherit; color: inherit; }
.gc :focus-visible, .gc-drawer :focus-visible { outline: 2px solid var(--color-amarillo); outline-offset: 2px; }

.gc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin: 1.2rem 0 2rem; }
.gc-top h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: 1px; line-height: 1.1; }
.gc-top h1 span { color: var(--color-amarillo); }
.gc-top p { color: var(--color-texto-secundario); margin-top: .4rem; }
.gc-stats { display: flex; gap: 2rem; }
.gc-stat strong { display: block; font-size: 2rem; line-height: 1; color: var(--color-amarillo); font-weight: 800; }
.gc-stat span { font-size: .85rem; color: var(--color-texto-secundario); }

.gc-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--color-borde); margin-bottom: 1.6rem; overflow-x: auto; }
.gc-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: .8rem 1.1rem; cursor: pointer; color: var(--color-texto-secundario); white-space: nowrap; transition: color .15s, border-color .15s; }
.gc-tab:hover { color: #fff; }
.gc-tab.activa { color: var(--color-amarillo); border-bottom-color: var(--color-amarillo); font-weight: 700; }
.gc-tab em { font-style: normal; font-size: .78rem; background: var(--color-superficie-hover); border-radius: 99px; padding: .1rem .55rem; margin-left: .35rem; color: #fff; }
.gc-view { display: none; }
.gc-view.activa { display: block; }

.gc-bar { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gc-bar input[type=search] { flex: 1; min-width: 200px; background: var(--color-superficie); border: 1px solid var(--color-borde); border-radius: 10px; padding: .7rem 1rem; }
.gc-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gc-chip { background: var(--color-superficie); border: 1px solid var(--color-borde); border-radius: 99px; padding: .35rem .95rem; font-size: .88rem; cursor: pointer; transition: border-color .15s; }
.gc-chip:hover { border-color: var(--color-amarillo); }
.gc-chip.activo { background: var(--color-amarillo); border-color: var(--color-amarillo); color: #111; font-weight: 700; }

.gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.2rem; }
.gc-card { background: var(--color-superficie); border: 1px solid var(--color-borde); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.gc-card-img { position: relative; aspect-ratio: 4/3; background: #222; }
.gc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.gc-price { position: absolute; left: .7rem; bottom: .7rem; background: var(--color-amarillo); color: #111; font-weight: 800; padding: .2rem .7rem; border-radius: 8px; }
.gc-card-body { padding: 1rem 1rem .6rem; flex: 1; }
.gc-cat { color: var(--color-amarillo); font-size: .8rem; }
.gc-card h3 { font-size: 1.1rem; margin: .1rem 0 .3rem; }
.gc-card p { color: var(--color-texto-secundario); font-size: .88rem; line-height: 1.45; }
.gc-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .7rem; }
.gc-tags span { font-size: .72rem; background: var(--color-superficie-hover); border-radius: 6px; padding: .15rem .5rem; color: #ddd; }
.gc-card-act { display: flex; gap: .5rem; padding: .8rem 1rem 1rem; }

.gc-btn { background: var(--color-superficie-hover); border: 1px solid var(--color-borde); border-radius: 8px; padding: .45rem .9rem; cursor: pointer; font-size: .88rem; transition: border-color .15s, background .15s; }
.gc-btn:hover { border-color: var(--color-amarillo); }
.gc-btn.peligro:hover { border-color: #ff5252; color: #ff8a80; }
.gc-btn.principal { background: var(--color-amarillo); color: #111; border-color: var(--color-amarillo); font-weight: 700; }
.gc-btn.principal:hover { background: var(--color-amarillo-hover); }
.gc-card-act .gc-btn { flex: 1; }
.gc-vacio { color: #888; text-align: center; padding: 2.5rem 1rem; grid-column: 1 / -1; }

.gc-panel { background: var(--color-superficie); border: 1px solid var(--color-borde); border-radius: 14px; padding: 1.4rem; margin-bottom: 1.4rem; }
.gc-panel h3 { margin-bottom: .3rem; }
.gc-panel > p { color: var(--color-texto-secundario); font-size: .9rem; margin-bottom: 1rem; }
.gc-inline { display: flex; gap: .7rem; flex-wrap: wrap; align-items: flex-end; }
.gc-inline > * { flex: 1; min-width: 150px; }
.gc-inline .gc-btn { flex: 0 0 auto; }
.gc-lista { display: grid; gap: .5rem; margin-top: .5rem; }
.gc-fila { display: flex; align-items: center; gap: .8rem; background: #121212; border: 1px solid var(--color-borde); border-radius: 10px; padding: .6rem .9rem; }
.gc-fila b { flex: 1; font-weight: 600; }
.gc-fila small { color: var(--color-texto-secundario); }
.gc-grupo { margin-top: 1.3rem; }
.gc-grupo h4 { color: var(--color-amarillo); font-size: .95rem; }

.gc label, .gc-drawer label { display: block; font-size: .85rem; color: var(--color-texto-secundario); margin-bottom: .3rem; }
.gc input:not([type=checkbox]):not([type=file]), .gc select, .gc-drawer input:not([type=checkbox]):not([type=file]), .gc-drawer select, .gc-drawer textarea {
  width: 100%; background: #121212; border: 1px solid var(--color-borde); border-radius: 8px; padding: .65rem .8rem; }
.gc input:focus, .gc select:focus, .gc-drawer input:focus, .gc-drawer select:focus, .gc-drawer textarea:focus { border-color: var(--color-amarillo); outline: none; }

.gc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1500; }
.gc-overlay.abierto { opacity: 1; pointer-events: auto; }
.gc-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(480px, 100%); background: var(--color-superficie); border-left: 1px solid var(--color-borde); z-index: 1600; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.gc-drawer.abierto { transform: none; }
.gc-drawer header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--color-borde); }
.gc-drawer header h2 { font-size: 1.2rem; }
.gc-drawer form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.gc-drawer .gc-scroll { flex: 1; overflow-y: auto; padding: 1.3rem 1.4rem; display: grid; gap: 1rem; align-content: start; }
.gc-drawer footer { padding: 1rem 1.4rem; border-top: 1px solid var(--color-borde); display: flex; gap: .7rem; }
.gc-drawer footer .gc-btn { flex: 1; padding: .8rem; }
.gc-2col { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
.gc-foto { display: flex; gap: 1rem; align-items: center; }
.gc-foto img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; background: #222; flex-shrink: 0; }
.gc-foto div { flex: 1; display: grid; gap: .5rem; }
.gc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.gc-check { display: flex !important; align-items: center; gap: .5rem; background: #121212; border: 1px solid var(--color-borde); border-radius: 8px; padding: .45rem .6rem; font-size: .84rem !important; color: #fff !important; cursor: pointer; margin: 0 !important; }
.gc-check:has(input:checked) { border-color: var(--color-amarillo); }
.gc-check input { accent-color: var(--color-amarillo); }
.gc-check small { color: var(--color-amarillo); }

.gc-toast, .pf-toast, .gn-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: #111; border: 1px solid var(--color-amarillo); padding: .7rem 1.3rem; border-radius: 10px; z-index: 2000; opacity: 0; visibility: hidden; pointer-events: none; transition: all .25s ease; }
.gc-toast.ver, .pf-toast.ver, .gn-toast.ver { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.gc-toast.error { border-color: #ff5252; }

@media (max-width: 560px) { .gc-checks, .gc-2col { grid-template-columns: 1fr; } .gc-stats { gap: 1.2rem; } }

/* ========================================================
   ESTILOS ESPECÍFICOS: KIOSKO / PEDIR (.kx)
   ======================================================== */
body.kx { display: block; min-height: 100vh; background: var(--color-fondo); }
.kx [hidden] { display: none !important; }
:where(.kx) button, :where(.kx) input, :where(.kx) textarea { font-family: inherit; color: inherit; }
:where(.kx) button { cursor: pointer; }
.kx :focus-visible { outline: 3px solid var(--color-amarillo); outline-offset: 2px; }
.kx-screen { display: none; min-height: 100vh; }
.kx-screen.on { display: flex; flex-direction: column; }
.kx-top[hidden] { display: none; }

.kx-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.5rem; background: var(--color-amarillo); color: #111; }
.kx-brand { font-weight: 900; font-size: 1.3rem; letter-spacing: .5px; }
.kx-pasos { display: flex; gap: 1.5rem; list-style: none; font-weight: 700; }
.kx-pasos li { opacity: .5; display: flex; align-items: center; gap: .5rem; }
.kx-pasos li::before { content: attr(data-n); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #111; font-size: .85rem; }
.kx-pasos li.on { opacity: 1; }
.kx-pasos li.on::before { background: #111; color: var(--color-amarillo); }
.kx-top-r { display: flex; align-items: center; gap: .7rem; }
.kx-chip { background: #111; color: var(--color-amarillo); font-weight: 700; padding: .4rem .9rem; border-radius: 99px; font-size: .9rem; }
.kx-salir { background: none; border: 2px solid #111; border-radius: 99px; padding: .35rem .9rem; font-weight: 700; color: #111 !important; }
.kx-salir:hover { background: #111; color: var(--color-amarillo) !important; }

.kx-welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 2.5rem 1.5rem; text-align: center; }
.kx-welcome img.kx-logo { height: 96px; width: auto; }
.kx-welcome h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.05; }
.kx-welcome h1 span, .kx-ticket h2 span { color: var(--color-amarillo); }
.kx-welcome .kx-sub { font-size: 1.3rem; color: var(--color-texto-secundario); }
.kx-modos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; width: min(1100px, 100%); }
.kx-modo { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.6rem 1.5rem; background: var(--color-superficie); border: 3px solid var(--color-borde); border-radius: 28px; color: #fff; transition: transform .2s, border-color .2s, background .2s; }
.kx-modo:hover:not(:disabled) { border-color: var(--color-amarillo); background: #1f1f1f; transform: translateY(-6px); }
.kx-modo .ic { font-size: 4.2rem; line-height: 1; }
.kx-modo h2 { font-size: 1.6rem; font-weight: 800; color: var(--color-amarillo); }
.kx-modo p { color: #aaa; font-size: .95rem; max-width: 24ch; }
.kx-modo .kx-tag { margin-top: .4rem; font-size: .8rem; font-weight: 700; padding: .3rem .8rem; border-radius: 99px; background: rgba(255, 204, 0, .15); color: var(--color-amarillo); border: 1px dashed var(--color-amarillo); }
.kx-modo.no-disp, .kx-modo.no-disp:hover { opacity: .45; filter: grayscale(1); cursor: not-allowed; transform: none; border-color: var(--color-borde); background: var(--color-superficie); }
.kx-modo.no-disp .kx-tag { background: #2a2a2a; color: #ddd; border: 1px solid #555; }
.kx-volver { color: var(--color-texto-secundario); text-decoration: none; }
.kx-volver:hover { color: var(--color-amarillo); }

.kx-menu { flex: 1; display: grid; grid-template-columns: 240px 1fr; align-items: start; }
.kx-cats { position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; background: #121212; border-right: 1px solid var(--color-borde); }
.kx-cat-btn { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; padding: 1rem 1.1rem; border: 2px solid transparent; border-radius: 16px; background: var(--color-superficie); font-weight: 700; font-size: 1rem; }
.kx-cat-btn small { color: #888; font-weight: 600; }
.kx-cat-btn:hover { border-color: var(--color-borde); }
.kx-cat-btn.on { background: var(--color-amarillo); color: #111 !important; }
.kx-cat-btn.on small { color: #111; }
.kx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; padding: 1.5rem 1.5rem 9rem; }
.kx-card { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; background: var(--color-superficie); border: 2px solid var(--color-borde); border-radius: 22px; transition: transform .15s, border-color .15s; }
.kx-card:hover { border-color: var(--color-amarillo); transform: translateY(-4px); }
.kx-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #222; }
.kx-card-b { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.kx-card-b h3 { font-size: 1.15rem; font-weight: 800; }
.kx-card-b p { color: #aaa; font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kx-card-f { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; }
.kx-precio { font-size: 1.35rem; font-weight: 900; color: var(--color-amarillo); }
.kx-mas { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--color-amarillo); color: #111; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.kx-vacio { grid-column: 1 / -1; text-align: center; color: #777; padding: 3rem 1rem; }

.kx-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: #121212; border-top: 3px solid var(--color-amarillo); }
.kx-tray-info { display: flex; flex-direction: column; line-height: 1.2; }
.kx-tray-info span { color: var(--color-texto-secundario); }
.kx-tray-info strong { font-size: 1.8rem; font-weight: 900; }
.kx-big { background: var(--color-amarillo); color: #111; border: 0; border-radius: 16px; padding: 1rem 2rem; font-size: 1.15rem; font-weight: 800; transition: background .15s; }
.kx-big:hover:not(:disabled) { background: var(--color-amarillo-hover); }
.kx-big:disabled { opacity: .35; cursor: not-allowed; }

.kx-pedido { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; width: min(1200px, 100%); margin: 0 auto; padding: 1.5rem; align-items: start; }
.kx-panel { background: var(--color-superficie); border: 1px solid var(--color-borde); border-radius: 22px; padding: 1.5rem; }
.kx-panel h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.kx-line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--color-borde); }
.kx-line-info small { display: block; color: #aaa; font-size: .82rem; }
.kx-line strong { color: var(--color-amarillo); min-width: 4.5rem; text-align: right; }
.kx-qty { display: flex; align-items: center; gap: .6rem; background: #121212; border-radius: 99px; padding: .2rem; }
.kx-qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--color-superficie-hover); font-size: 1.2rem; font-weight: 800; }
.kx-qty button:hover { background: var(--color-amarillo); color: #111; }
.kx-qty span { min-width: 1.4rem; text-align: center; font-weight: 800; }
.kx-x { background: none; border: 0; color: #888; font-size: 1.1rem; }
.kx-x:hover { color: #ff5252; }
.kx-tot { display: flex; justify-content: space-between; padding: .35rem 0; color: #ccc; }
.kx-tot.fin { margin-top: .6rem; padding-top: .9rem; border-top: 2px dashed var(--color-borde); color: #fff; font-size: 1.5rem; font-weight: 900; }
.kx-tot.fin strong { color: var(--color-amarillo); }
.kx-aviso { background: rgba(255, 82, 82, .12); border: 1px solid #ff5252; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.kx-seguir { background: none; border: 2px solid var(--color-borde); border-radius: 14px; padding: .6rem 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.kx-seguir:hover { border-color: var(--color-amarillo); }

.kx-f { display: grid; gap: 1rem; }
.kx-f label.kx-l { display: grid; gap: .3rem; font-size: .88rem; color: var(--color-texto-secundario); }
.kx-f input:not([type=radio]):not([type=checkbox]), .kx-f textarea, .kx-mp-body input[type=text] { width: 100%; background: #121212; border: 2px solid var(--color-borde); border-radius: 12px; padding: .85rem 1rem; font-size: 1rem; color: #fff; }
.kx-f input:focus, .kx-f textarea:focus, .kx-mp-body input[type=text]:focus { border-color: var(--color-amarillo); outline: none; }
.kx-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kx-pagos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kx-pago { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem .5rem; background: #121212; border: 2px solid var(--color-borde); border-radius: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.kx-pago input { position: absolute; opacity: 0; pointer-events: none; }
.kx-pago .ic { font-size: 1.8rem; }
.kx-pago:has(input:checked) { border-color: var(--color-amarillo); background: rgba(255, 204, 0, .1); }
.kx-pago:has(input:focus-visible) { outline: 3px solid var(--color-amarillo); }
.kx-cambio { background: rgba(255, 204, 0, .08); border: 1px dashed var(--color-amarillo); border-radius: 14px; padding: 1rem; display: grid; gap: .5rem; }
.kx-cambio label { color: var(--color-amarillo); font-weight: 700; }
.kx-cambio small { color: #bbb; }

.kx-ticket-w { flex: 1; display: grid; place-items: center; padding: 2rem 1rem; }
.kx-ticket { width: min(560px, 100%); text-align: center; background: var(--color-superficie); border: 2px solid var(--color-amarillo); border-radius: 28px; padding: 2.2rem 1.8rem; display: grid; gap: 1.2rem; }
.kx-ticket .ok { font-size: 3.5rem; }
.kx-ticket h2 { font-size: 2rem; font-weight: 900; }
.kx-ticket .sub { color: var(--color-texto-secundario); }
.kx-num { background: #111; border-radius: 18px; padding: 1rem; }
.kx-num small { color: #aaa; letter-spacing: 1px; }
.kx-num div { font-size: 4rem; font-weight: 900; color: var(--color-amarillo); line-height: 1.1; }
.kx-num.cod div { font-size: 2.4rem; letter-spacing: 3px; }
.kx-desg { text-align: left; background: #111; border: 1px solid var(--color-borde); border-radius: 16px; padding: 1.1rem; font-size: .9rem; color: #ccc; display: grid; gap: .4rem; }
.kx-desg .t { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 800; color: var(--color-amarillo); }
.kx-desg .cmd { border-top: 1px dashed #333; padding-top: .6rem; color: #bbb; }

.kx-ov { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .78); }
.kx-ov.on { display: flex; }
.kx-mp { position: relative; width: min(640px, 100%); max-height: 94vh; display: flex; flex-direction: column; background: var(--color-superficie); border: 2px solid var(--color-borde); border-radius: 28px; overflow: hidden; }
.kx-mp-img { width: 100%; height: 220px; object-fit: cover; background: #222; flex-shrink: 0; }
.kx-mp-body { min-height: 0; padding: 1.3rem 1.5rem; overflow-y: auto; display: grid; gap: .8rem; }
.kx-mp-body h2 { font-size: 1.6rem; font-weight: 900; }
.kx-mp-body p { color: #aaa; }
.kx-mp-body h3 { font-size: 1rem; color: var(--color-amarillo); margin-top: .3rem; }
.kx-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.kx-opt { display: flex; align-items: center; gap: .7rem; padding: .8rem; background: #121212; border: 2px solid var(--color-borde); border-radius: 14px; cursor: pointer; }
.kx-opt input { width: 20px; height: 20px; accent-color: var(--color-amarillo); flex-shrink: 0; }
.kx-opt span { display: grid; line-height: 1.25; }
.kx-opt small { color: var(--color-amarillo); font-weight: 700; }
.kx-opt:has(input:checked) { border-color: var(--color-amarillo); background: rgba(255, 204, 0, .08); }
.kx-mp-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--color-borde); }
.kx-mp-foot .kx-big { flex: 1; }
.kx-cerrar { position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); font-size: 1.1rem; }
.kx-cerrar:hover { background: #ff5252; }
.kx-pad { width: min(380px, 100%); padding: 2rem 1.5rem 1.5rem; text-align: center; display: grid; gap: 1rem; position: relative; background: var(--color-superficie); border: 2px solid var(--color-borde); border-radius: 28px; }
.kx-pad h2 { font-size: 1.4rem; }
.kx-pad-vis { font-size: 3.2rem; font-weight: 900; color: var(--color-amarillo); background: #111; border-radius: 16px; padding: .4rem; min-height: 5rem; }
.kx-teclas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kx-teclas button { padding: 1rem 0; font-size: 1.6rem; font-weight: 800; background: var(--color-superficie-hover); border: 0; border-radius: 14px; }
.kx-teclas button:hover { background: var(--color-amarillo); color: #111; }

.kx-toast { position: fixed; left: 50%; bottom: 7rem; transform: translate(-50%, 20px); z-index: 200; background: #111; border: 2px solid var(--color-amarillo); padding: .8rem 1.4rem; border-radius: 14px; font-weight: 600; max-width: 90%; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, transform .25s, visibility .25s; }
.kx-toast.ver { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.kx-toast.error { border-color: #ff5252; }

@media (max-width: 860px) {
  .kx-pasos { display: none; }
  .kx-menu { grid-template-columns: 1fr; }
  .kx-cats { position: sticky; top: 68px; z-index: 40; height: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: .7rem; border-right: 0; border-bottom: 1px solid var(--color-borde); }
  .kx-cat-btn { white-space: nowrap; padding: .7rem 1rem; }
  .kx-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; padding: 1rem 1rem 8rem; }
  .kx-pedido { grid-template-columns: 1fr; padding: 1rem; }
  .kx-line { grid-template-columns: 1fr auto auto; }
  .kx-line .kx-x { grid-column: 3; grid-row: 1; }
  .kx-top { padding: .7rem 1rem; }
  .kx-opts, .kx-f2 { grid-template-columns: 1fr; }
  .kx-big { padding: .9rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .kx *, .kx-toast { transition: none !important; } }