body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(304deg, #105bce, #063192);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #ccc;
}

body::-webkit-scrollbar {
  width: 10px;
  background-color: #ccc;
}

body::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #113fa6;
}

a { 
  text-decoration: none;
}

.header {
  width: 100%;
  padding: 10px;
  background-color: #01457c;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-container {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-toggle {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    display: block;
    margin-left: auto;
    border-radius: 8px;
    width: 100px;
    height: 60px;
    padding: 5px 10px;
    margin-right: 20px;
}

.nav {
  display: none;
}

.nav.active {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #01457c;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  margin-right: 20px;
}

.nav-item:last-child {
  margin-right: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1em;
}

.nav-link:hover {
  color: #f39c12;
}

.menu-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-nav-btn {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.menu-nav-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #e67e22, #f39c12);
}

.menu-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.menu-wrapper {
  overflow: hidden;
  width: calc(100% - 120px);
}

.menu {
  display: flex;
  transition: transform 0.3s ease;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin: 20px 0;
  max-width: 1200px;
}

.tablink {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 50%; 
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 140px;
  width: 140px;
  min-width: 140px;
  flex-shrink: 0;
}

.tablink:hover {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  transform: scale(1.1);
}

.tablink:hover .tab-icon {
  stroke: #fff;
}

.tab-icon {
  width: 50px;
  height: 50px;
  stroke: #ffffff;
  transition: stroke 0.3s ease;
  margin-bottom: 10px; 
}

.tablink span {
  text-align: center;
  max-width: 100px;
  word-wrap: break-word;
}

.tablink .tooltiptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 120%;
  left: 50%;
  margin-left: -80px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tablink:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tabcontent {
  display: none;
  animation: fadeEffect 0.5s;
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
  margin-bottom: 130px;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.container {
  background: white;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700 !important;
  color: #007bff !important;
  font-style: italic;
  font-size: 2em;
}

.input-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.input-group {
  flex: 1 1 45%;
  margin-top: 10px;
  min-width: 200px;
}

.input-group label {
  margin-bottom: 5px;
}

.input-group input, .input-group select {
  width: calc(100% - 10px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 1em;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

form div, form label, form input, form select, .resultado {
  display: block;
  margin: 10px 0;
}

label {
  margin: .2rem .2rem !important;
}

input, select {
  width: calc(100% - 10px);
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

button:hover {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(1px);
}

.resultado {
  margin-top: 20px;
  padding: 25px;
  background-color: #e2e2e2;
  text-align: center;
  border-radius: 5px;
  font-size: 1.5em;
  font-weight: 700 !important;
  opacity: 1;
  transition: all 0.5s ease;
}

.resultado.hidden {
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin-top: 0;
}

.resultado.result-appear {
  animation: resultAppear 0.5s ease forwards;
}

@keyframes resultAppear {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.resultado.success {
  color: green;
  background-color: #d4edda;
}

.resultado.error {
  color: red;
  background-color: #f8d7da;
}

.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #1c87c9;
  color: white;
  font-size: 0.8em;
  border-radius: 50%;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -90px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.equation-box {
  background-color: #f8f9fa;
  border-left: 3px solid #0b6abb;
  padding: 15px;
  margin-top: 15px;
  border-radius: 5px;
  font-size: 0.9em;
  line-height: 1.5;
  color: #333;
}

.forma-inputs {
  display: none;
}

.forma-inputs.active {
  display: block;
}

#pendiente-input {
  display: none;
}

#pendiente-input.active {
  display: block;
}

.volver-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background-color: #f39c12;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 200px;
  margin: 30px auto 0 auto;
}

.volver-button:hover {
  background-color: #fa8a1f;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.contact-button {
  position: relative;
}

.whatsapp-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #28a745;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.contact-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.contact-options.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: black;
  transition: background-color 0.3s ease;
}

.contact-option:hover {
  background-color: #f0f0f0;
}

.contact-option.whatsapp {
  color: #25D366;
}

.contact-option.chatbot {
  color: #1c87c9;
}

#whatsapp-chat {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 300px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

#whatsapp-chat.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#whatsapp-chat.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-chat {
  display: flex;
  align-items: center;
  background-color: #0ea61b;
  color: white;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: relative;
}

.info-avatar {
  margin-right: 10px;
}

.info-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.get-new {
  flex-grow: 1;
}

#get-label {
  font-weight: bold;
}

#get-nama {
  font-size: 0.8em;
}

.close-chat {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  text-decoration: none;
  font-size: 1.5em;
}

.start-chat {
  padding: 15px;
}

.first-msg {
  background-color: #f1f0f0;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.blanter-msg {
  display: flex;
  align-items: center;
}

#chat-input {
  flex-grow: 1;
  margin-right: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
}

#send-it {
  background-color: #f39c12;
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
}

#get-number {
  display: none;
}

.chatbot-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 50%;
  background-color: #343a40;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.chatbot-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(195deg, #063192 0%, #0b6abb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner-container {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 100%;
  height: 100%;
}

.spinner .path {
  stroke: white;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.page-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.volver-button, .cotizar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #f39c12;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 200px;
}

.volver-button:hover, .cotizar-button:hover {
  background-color: #e67e22;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.volver-button svg, .cotizar-button svg {
  margin-right: 8px;
}

.result-preloader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
}

.result-preloader .spinner-container {
  width: 80px;
  height: 80px;
}

.result-preloader .spinner {
  animation: rotate 2s linear infinite;
  width: 100%;
  height: 100%;
}

.result-preloader .spinner .path {
  stroke: #f39c12;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

.calculator-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .header-container {
    padding: 5px;
  }

  .menu-toggle {
    display: block; 
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #01457c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none; 
  }

  .nav.active {
    display: block; 
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .nav-item {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
  }

  .dropdown-item {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s ease;
  }

  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .input-container {
    flex-direction: column;
  }

  .menu {
    flex-wrap: nowrap;
  }
  
  .tablink {
    width: 120px;
    height: 120px;
    padding: 15px;
    min-width: 120px;
  }
  .menu-nav-btn {
    width: 40px;
    height: 40px;
    margin: 0 5px;
  }

  .menu-nav-btn svg {
    width: 20px;
    height: 20px;
  }

  .menu-wrapper {
    width: calc(100% - 90px);
  }
}

/* Styles for larger screens */
@media (min-width: 769px) {
  .nav {
    display: flex; /* Show the menu */
    position: static; /* Reset positioning */
    width: auto; /* Adjust width */
    background-color: transparent; /* Make background transparent */
    box-shadow: none; /* Remove shadow */
  }

  .navbar-nav {
    flex-direction: row; /* Arrange items horizontally */
    align-items: center; /* Align items vertically */
    padding: 0; /* Remove padding */
  }

  .nav-item {
    margin: 0;
    padding: 0;
    border-bottom: none;
    width: auto!important;
  }

  .nav-link {
    display: inline-block; /* Display as inline blocks */
    padding: 10px 15px; /* Add padding */
    text-align: left; /* Align text left */
  }

  .dropdown-menu {
    position: absolute; /* Use absolute positioning */
    top: auto; /* Adjust top position */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Add border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow */
    padding: 5px 0; /* Add padding */
    background-color: white; /* Set background color */
  }

  .dropdown-item {
    color: #333; /* Set text color */
    padding: 10px 20px; /* Add padding */
    width: auto; /* Adjust width */
    text-align: left; /* Align text left */
  }

  .menu-toggle {
    display: none; /* Hide the toggle button */
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.dropdown-toggle svg {
  width: 20px;
  height: 20px;
  margin-left: 5px;
}

.contact-sales-section {
  width: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3)), url('wave.svg');
  background-size: cover;
  background-position: center;
  padding: 50px 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-sales-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('wave.svg');
  background-size: cover;
  background-position: 0 0;
  opacity: 0.3;
  animation: wave 10s linear infinite;
  filter: hue-rotate(200deg);
}

.contact-sales-button {
  padding: 15px 30px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  width: auto;
  white-space: nowrap;
}

.contact-sales-button:hover {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

@keyframes wave {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1000px 0;
  }
}