body {
  font-family: Arial, sans-serif;
  background-color: #f2f6fc;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  width: 90%;
  margin: 30px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: white;
  margin-top: 80px;
}

h1 {
  margin-bottom: 20px;
}

input[type="number"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0 16px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  background-color: #0057b8;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #004096;
}

.results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.result-category {
  flex: 1;
  min-width: 300px;
  background: #f1f7ff;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #ccd;
}

.tarifa {
  background: white;
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
}

.admin-button {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 8px 14px;
  background-color: #0057b8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
  font-size: 14px;
}

.admin-button:hover {
  background-color: #004096;
}

.admin-modal {
  border: none;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.topbar {
  width: 100%;
  height: 60px;
  background-color: #252424;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: white;
}
.floating-button {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background-color: #00b894;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background 0.3s;
}

.floating-button:hover {
  background-color: #008f72;
}
.topbar {
  width: 100%;
  height: 60px;
  background-color: #504f4f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar-left, .topbar-center, .topbar-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-left {
  justify-content: flex-start;
}

.topbar-right {
  justify-content: flex-end;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.update-text {
  color: #ccc;
  font-size: 14px;
}
.tarifa-plegable {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tarifa-resumen {
  padding: 10px 14px;
  font-weight: bold;
  background-color: #e3f0ff;
  color: #003366;
}

.tarifa-resumen:hover {
  background-color: #d0e6ff;
}

.tarifa-detalles {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #f9fcff;
  color: #333;
  border-top: 1px solid #ccc;
}
.detalle-linea {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 1em;
  border-bottom: 1px dashed #ddd;
}

.detalle-linea:last-child {
  border-bottom: none;
}

.detalle-linea a {
  color: #0057b8;
  text-decoration: none;
}

.detalle-linea a:hover {
  text-decoration: underline;
}
#calc-form {
  background-color: #f9fcff;
  border: 1px solid #ccd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-linea {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}

.form-linea:last-child {
  border-bottom: none;
}

.form-linea label {
  font-size: 0.95em;
  color: #003366;
  font-weight: 500;
}

.form-linea input,
.form-linea select {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-linea input[readonly] {
  background-color: #e0e0e0;
}

#calc-form button {
  margin-top: 15px;
  width: 30%;
  background-color: #0057b8;
  color: white;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#calc-form button:hover {
  background-color: #004096;
}

#formularioContainer {
  transition: all 0.3s ease;
}
#incluirGas {
  margin-right: 8px;
}

.resumen-linea {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resumen-sublinea {
  font-size: 0.9em;
  color: #666;
  margin-top: 4px;
}
.page-footer2 {
  background-color: #252424;
  color: #ccc;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  margin-top: 40px;
}
.page-footer {
  background-color: #252424;
  color: #ccc;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
.page-wrapper {
  padding-bottom: 80px; /* o la altura del footer */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
  gap: 4px; /* <-- reducido de 10px a 4px */
}

.footer-right a {
  color: #ccc;
  text-decoration: none;
}
.footerYear a {
  color: #ccc;
  text-decoration: none;
}
.footer-right a:hover {
  text-decoration: underline;
  color: #ffffff;
  text-shadow: 0 0 5px #0057b8;
}
html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-footer {
  margin-top: auto;
}
.footerYear a:hover {
   text-decoration: underline;
  color: #ffffff;
  text-shadow: 0 0 5px #0057b8;
}