html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* permite scroll fluido en iPhone */
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  text-align:center;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;

}

.sidenav a:hover{
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

/*************************************************/
.rightnav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.rightnav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;

}

.rightnav a:hover{
  color: #f1f1f1;
}

.rightnav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .rightnav {padding-top: 15px;}
  .rightnav a {font-size: 18px;}
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 30px;
  width: 30px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

input[type=range]::-moz-range-thumb {
  height: 30px;
  width: 30px;
  background: #007bff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

button:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.5);
  }

#gridCanvas 
{
  display: block;
  cursor: grab;
  background: white;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.popup 
{
  position: absolute;
  background: white;
  border: 1px solid black;
  border-radius: 8px;
  padding: 10px;
  z-index: 100;
  box-shadow: 0 0 10px #999;
}

.popup input, .popup select 
{
  margin: 5px 0;
  width: 100%;
}

.info 
{
  position: absolute;
  font-size: 12px;
  pointer-events: none;
}

  #popup, #connectPopup {
    position: fixed;
    top: 80px;
    right: 10px;
    background: white;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 1001;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }


#companyLogo {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 110px;
    z-index: 1001;
  }

#settings {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 40px;
  z-index: 1001;
}

#restart {
  position: fixed;
  top: 10px;
  right: 70px;
  width: 32px;
  z-index: 1001;
}

#info {
  position: fixed;
  top: 11px;
  right: 124px;
  width: 38px;
  z-index: 1001;
}

#zoomSlider {
  appearance: none;
  width: 150px;
  height: 6px;
  background: #e0e0e0;
  border: 1px solid #0506ed;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}

#zoomSlider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #007bff;
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.7);
}

#zoomSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #007bff;
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.7);
}

canvas {
    touch-action: none; /* evita scroll accidental */
    cursor: grab;
  }

/* Rounded Navbar */
 .navbar {
    background-color: #0506ed;
}

.rounded-navbar {
    border-radius: 30px; /* Adjust the rounding as needed */
    margin: 20px auto; /* Center it with margin */
    width: 90%; /* Keep it responsive */
    max-width: 1400px; /* Limit max width */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* Ensure menu takes full width on mobile */
@media (max-width: 991px) {
    .rounded-navbar {
        width: 100%;
        border-radius: 0; /* Remove rounded corners on mobile */
    }
}
/* ****************************************************************/
.icon-button {
    background: none; /* No background color */
    border: none; /* No border */
    padding: 0; /* Remove extra space */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20vw; /* Adjusts with screen size */
    max-width: 240px; /* Prevents it from getting too big */
    min-width: 240px; /* Prevents it from getting too small */
}

.icon-button img {
    width: 100%; /* Makes the image adapt to the button */
    height: auto; /* Maintains aspect ratio */
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
}

/* .icon-button.bodpaso:hover img {
  width: 280px;
  content: url('../img/assets/Agregar.svg');
}

.icon-button.bodjrz:hover img {
  width: 280px;
  content: url('../img/assets/Aceptar.svg');
}

.icon-button.search:hover img {
  width: 280px;
  content: url('../img/assets/Buscar.svg');
} */

@media (max-width: 600px) {
    .icon-button {
        width: 40vw; /* Increase size on smaller screens */
    }
}
/* ****************************************************************/
.icon-min-button {
  background: none; /* No background color */
  border: none; /* No border */
  padding: 0; /* Remove extra space */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20vw; /* Adjusts with screen size */
  max-width: 80px; /* Prevents it from getting too big */
  min-width: 80px; /* Prevents it from getting too small */
}

.icon-min-button img {
  width: 100%; /* Makes the image adapt to the button */
  height: auto; /* Maintains aspect ratio */
  transition: opacity 0.3s ease-in-out; /* Smooth transition */
}
/* 
.icon-min-button.attach:hover img {
  width: 220px;
  content: url('../img/assets/Adjuntar.svg');
} */

@media (max-width: 600px) {
  .icon-min-button {
      width: 40vw; /* Increase size on smaller screens */
  }
}

/* ****************************************************************/
.icon-min-menu-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20vw;      /* 20% del ancho de la ventana */
  height: 20vw;     /* Mantener cuadrado */
  max-width: 250px; /* Limitar tamaño máximo */
  max-height: 250px;
  min-width: 180px; /* Limitar tamaño mínimo */
  min-height: 180px;
}

.icon-min-menu-button img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mantiene la proporción */
  transition: opacity 0.3s ease-in-out;
}
/* ****************************************************************/

.icon-dir-button {
  background: none; /* No background color */
  border: none; /* No border */
  padding: 0; /* Remove extra space */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20vw; /* Adjusts with screen size */
  max-width: 30px; /* Prevents it from getting too big */
  min-width: 30px; /* Prevents it from getting too small */
}

.icon-dir-button img {
  width: 100%; /* Makes the image adapt to the button */
  height: auto; /* Maintains aspect ratio */
  transition: opacity 0.3s ease-in-out; /* Smooth transition */
}
/* 
.icon-dir-button.attach:hover img {
  width: 220px;
  content: url('../img/assets/Adjuntar.svg');
} */

@media (max-width: 600px) {
  .icon-dir-button {
      width: 40vw; /* Increase size on smaller screens */
  }
}
/* ****************************************************************/
.icon-table-button {
  background: none; /* No background color */
  border: none; /* No border */
  padding: 0; /* Remove extra space */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20vw; /* Adjusts with screen size */
  max-width: 200px; /* Prevents it from getting too big */
  min-width: 200px; /* Prevents it from getting too small */
}

.icon-table-button img {
  width: 100%; /* Makes the image adapt to the button */
  height: auto; /* Maintains aspect ratio */
  transition: opacity 0.3s ease-in-out; /* Smooth transition */
}

/* .icon-table-button.seeimage:hover img {
  width: 120px;
  content: url('../img/assets/Ver.svg');
}

.icon-table-button.update:hover img {
  width: 350px;
  content: url('../img/assets/Actualizar.svg');
}

.icon-table-button.accept:hover img {
  width: 350px;
  content: url('../img/assets/Aceptar.svg');
} 

.icon-table-button.payment:hover img {
  width: 350px;
  content: url('../img/assets/Pagar.svg');
}*/

@media (max-width: 600px) {
  .icon-table-button {
      width: 20vw; /* Increase size on smaller screens */
  }
}
/* ****************************************************************/
/* --- FIX para iPhone: Inputs y iconos del login --- */
.input-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: white;
  border-radius: 25px;
  border: 1px solid #ccc;
  padding: 10px 15px;
  width: 100%;
  max-width: 640px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.input-container img {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  margin-right: 10px;
}

.input-container input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: #3c4858;
  background: transparent;
  -webkit-text-size-adjust: 100%; /* evita zoom en iPhone */
}

/* Evita zoom automático en inputs al hacer focus */
@supports (-webkit-touch-callout: none) {
  input, textarea, select {
    font-size: 16px !important;
  }
}


.canvas-container {
  max-width: 520px;
  width: 100%;
  aspect-ratio: 1 / 1;                /* Keep square ratio */
  border: 6px solid #000000;
  border-radius: 50px;
  display: block;
  margin: 0 auto;                     /* Center horizontally */
}

#loadingOverlay 
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    cursor: progress; /* Show loading cursor */
}

.loading-text 
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.my-table {
  border-radius: 10px; /* Adjust the value as needed */
  overflow: hidden; /* Ensures corners are properly rounded */
  border-collapse: separate;
  border-spacing: 1px;
}

.my-table td {
  padding: 10px; /* Adds space inside the cell */
}

.my-table thead {
  background-color: #1517a5; /* Blue background */
  color: white; /* White text */
  font-size: 1.2rem; /* Bigger text */
  font-weight: bold;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Adds a soft shadow */
}

.my-table th {
  padding: 15px; /* Adds more spacing for a better look */
}

.my-table thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.my-table thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.my-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.my-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.card-header {
  background-color: #260057; /* Blue background */
  color: white; /* White text */
  border-top-left-radius: 10px; /* Rounded corners */
  border-top-right-radius: 10px;
  padding: 10px 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
  border-radius: 30px;
}

.card-body {
  padding-top: 20px; /* Extra padding for separation */
  background-color: white; /* Ensures a clean separation */
  border-top: 2px solid #ddd; /* Optional: Creates a visual separator */
}

.card {
  border-radius: 20px; /* Rounded corners for the card */
  overflow: hidden; /* Ensures the rounded corners apply properly */
}

.card-custom {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 650px; /* o el valor que necesites */
  background: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  z-index: 1000;
}

.gen-info{
  position: fixed;
  top: 70px;
  right: 20px;
  width: 350px;
  background: white;
  border: 1px solid rgb(220, 220, 220);
  border-radius: 8px;
  padding: 10px;
  z-index: 1000;
  font-size: 12px;
}

.row-paid {
  background-color: #b0dcb0 !important; /* light green, Bootstrap success-like */
}

#contadorPostes {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #000;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    z-index: 2000; /* más alto que el grid */
}
  

    /* === Navbar Styles === */
    nav {
    position: fixed;
    top: 0;
    width: 100%;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 100;
    background-color: transparent; /* start transparent */
    }

    nav.scrolled {
    background-color: rgba(0, 0, 0, 0.85); /* solid when scrolled */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    }

    .nav-logo {
    height: 150px;
    }

    .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    }

    .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    }

.jarallax {
  height: 100vh;
  position: relative;
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.logo-img {
  width: 200px;
  height: auto;
}

.btn-outline-secondary {
  border-width: 2px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff;
}

#cotizacionModal .modal-dialog {
    max-width: 700px; /* Set your desired width */
}

/* Dark semi-transparent backdrop */
.modal-backdrop.show {
  background-color: rgba(57, 57, 57, 0.6) !important;
}

/* Black modal with slight transparency */
#cotizacionModal .modal-content {
  background-color: rgba(57, 57, 57, 0.65);
  color: #fff;
  border-radius: 15px;
}

.menu-buttons {
  flex-wrap: wrap;   /* permite que los botones bajen */
  gap: 20px;         /* espacio entre botones */
}