/*Reset/básico*/
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body { font-family: "Inter",sans-serif; font-optical-sizing: auto; font-weight: 600; font-style: normal; 
   line-height: 1.5; background-color: #ffffff; color: #e6e6e6; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 24px; }

/*Variables globales*/
:root{
  --e-global-color-primary:#6EC1E4;
  --e-global-color-secondary:#54595F;
  --e-global-color-text:#7A7A7A;
  --e-global-color-accent:#61CE70;
  --e-global-color-dea41e4:#FFFFFF;
  --container-max-width:1280px;
}

/*pantalla footer y navbar*/
/*Cabecera / Nav*/
.site-header {position: fixed;top: 0; left: 0; width: 100%; background: #000000; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.04); animation: navDown 0.8s ease-out forwards; transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease; z-index: 1000; }
/*para cuando bajas en la pagina*/
.site-header.scrolled{ background: rgba(0, 0, 0, 0.6);  /* color semi-transparente */ backdrop-filter: blur(10px);     /* efecto difuminado */ box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.main-nav {margin-left: 95px;}
.site-header .site-nav { display:flex; align-items:center; gap:24px; justify-content:space-around; right: -40px;}
.brand img { height: 40px; width: auto; display:block; }
.main-nav .menu { list-style:none; display:flex; gap:18px; align-items:center; }
.main-nav .menu li a { color: var(--e-global-color-dea41e4); text-decoration:none; padding:8px 10px; display:inline-block; transition: color 0.3s ease;}
.main-nav .menu li.has-sub { position:relative; }
.main-nav .submenu { position:absolute; left:0; top:100%; display:none; background:#0b1220; padding:10px; border-radius:6px; list-style: none; min-width: 150px; ;white-space: normal;}
/*.main-nav .menu li.has-sub:hover .submenu { display:block;}*/
.has-sub-res.open .submenu-res {display: block !important;}

/*abrir con el click*/
.has-sub.open .submenu {display: block !important;}
/*efecto color al pasar el raton*/
.main-nav .menu li a:hover {color: #FFB300;}
/*.main-nav .menu li.has-sub:hover .submenu { display:block;}*/

/*Footer*/
.site-footer { background:#0a1220; color:#cfcfcf; padding:40px 0; /* margin-top:40px */; padding-bottom: 0;}
.footer-widgets { display:flex; gap:20px; align-items:center; }
.footer-widgets .widget { flex:1; }
#footer-h {margin-left: -18px ;}
.site-info { display:flex; flex-direction: row-reverse; align-items:center; justify-content:space-between; margin-top:18px;}
.widget > ul { list-style: square;}
.widget > ul > li::marker {color: #FFB300;}
.widget > ul > li > a {text-decoration: none; color: white; transition: color 0.3s ease-in-out;}
.widget > ul > li > a:hover{color: #5898F9;}
.widget > h5 {font-size: 25px; font-weight: 700; padding-bottom: 10px; color: white;} 
.widget > hr {border-bottom: none; border-top: 3px solid #FFB300; max-width: 40px; margin-bottom: 12px; margin-top: -12px; margin-left: -18px;}

.webkit { display: flex; justify-content: center; align-items: center; width: 100%; background-color: white;  padding-bottom: 20px;  padding-top: 20px;}
.webkit > img { width: 60%;}

/*Social icons*/
.elementor-social-icons-wrapper a { color: #fff; margin-right:8px; text-decoration:none; }
.fab {font-size: x-large; color: white; transition: color 0.2s ease-in-out, transform 0.3s ease-in; transform: translateY(0%);}

.fab:hover { color: #5898F9; transform: translateY(-60%);}

/*sim pantalla tpv*/
.sim-tpv-frame {
  width: 1100px;       /* ancho del TPV simulado */
  margin: 40px auto;  /* centrado en la página */
  padding: 20px;
  background: #111;   /* negro del TPV */
  border-radius: 20px;
  color: white;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  position: relative;
  font-family: 'Inter', sans-serif;
}

.sim-tpv-frame h2,
.sim-tpv-frame span {
  color: rgb(0, 0, 0); /* forzar texto visible */
}
/*volver atras*/
.btn-volver {
  margin-left: auto;
  padding: 6px 12px;
  background-color: #f87171; /* rojo suave */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.btn-volver:hover {
  background-color: #ef4444;
}


/* rótulo de simulación */
.sim-label {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  padding: 5px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


/* PANTALLA DE MESAS */
.mesas-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  width: 600px;
  margin: 50px auto;
  padding: 30px;
  text-align: center;
  background: #f1f5f9;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-family: Arial;
}

.mesas-container h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

.mesas-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
}


/* GENERAL */
.tpv-container {
  width: 1000px;
  margin: 20px auto;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  font-family: Arial;
}

/* TOP BAR */
.tpv-topbar {
  background: #0f172a;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

/* BODY LAYOUT */
.tpv-body {
  display: flex;
}

/* SIDEBAR */
.tpv-sidebar {
  /* width: 160px; */
  background: #1e293b;
/*   padding: 20px; */
  display: flex;
  flex-direction: row;
/*   gap: 15px; */
}

.tpv-sidebar button {
  display: block;
  width: 175px;
  margin-bottom: 10px;
  padding: 1px;
  background-color: unset;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.tpv-sidebar button img {width: 160px}

.tpv-sidebar button:hover {
  background-color: #2564eb1c;
}

.tpv-sidebar .active {
  background: #38bdf8;
}

/*bloqueados*/
.blocked {filter: blur(4px);}

/* MAIN SCREEN */
.tpv-main {
  flex: 1;
  padding: 20px;
  color: black;
}

/* CATEGORIES */
.tpv-categories {
  display: flex;
  /* gap: 10px; */
  margin-bottom: 20px;
}

.tpv-categories button {
  flex: 0;
  background: unset;
  color: white;
  padding: 5px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.tpv-categories button img {width: 130px;}

/* PRODUCTS */
.tpv-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 82px;
}

.product-btn {
  background: white;
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: 0.2s;
}

.product-btn:hover {
  background: #e2e8f0;
}

/* TICKET */
.tpv-ticket {
  width: 260px;
  background: #fff;
  padding: 20px;
  border-left: 2px solid #cbd5e1;
}

#ticket-lines {
  min-height: 200px;
}

.ticket-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #ccc;
}

.ticket-total {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  color: black;
}

.btn-cobrar {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background: #10b981;
  border: none;
  color: white;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cobrar:hover {
  background: #0b9a6d;
}

/*botones con imagenes*/

.mesa {
/*   background: #3b82f6; */
  color: rgb(0, 0, 0);
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
/*   box-shadow: 0 4px 10px rgba(0,0,0,0.15); */
  font-size: 20px;
  font-weight: bold;
}


.mesa img {
  width: 100px;
  height: 100px;
}

.mesa:hover {
  background: rgba(74, 121, 224, 0.027);
  transform: translateY(-4px);
}

#hr {
  margin-top: 40px;
border: 3px solid #bdbdbda3; 
    width: 741px;
    position: absolute;
    left: 310px;}


/*quitarlo cuando se haga mas pequeña la pantalla*/
@media  (max-width: 1024px) {
 .sim-tpv-frame{ display: none;}
}