/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Contenedor general */
.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: #343a40;
  color: #fff;
  padding: 20px;
  position: sticky;
  top: 50px;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #ffc107;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar li strong {
  display: block;
  margin-top: 20px;
  color: #adb5bd;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar a {
  color: #f8f9fa;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.sidebar a:hover {
  color: #ffc107;
}

/* Contenido principal */
.content {
  flex: 1;
  padding: 40px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
  color: #212529;
  margin-bottom: 20px;
}

.calculadora p {
  margin-bottom: 20px;
}

form {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

input[type="number"]:focus {
  border-color: #007bff;
  outline: none;
}

button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-right: 2%;
}

button:hover {
  background-color: #0056b3;
}

.resultado {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }

  .content {
    padding: 20px;
  }
}


.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #212529;
  color: #ffffff;
  padding: 10px 30px;
  font-size: 20px;
  font-weight: bold;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-header .logo span {
  font-size: 24px;
}





/* Footer */
.main-footer {
  background-color: #212529;
  color: #ffffff;
  padding: 25px 30px;
  text-align: center;
}

.footer-content p {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffc107;
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}




.help-link {
  font-size: 14px;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  align-self: center;
  padding-left: 5px;
  white-space: nowrap;
}

.help-link:hover {
  color: #0056b3;
}
















/* Botón menú hamburguesa (solo visible en móvil) */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

/* Mostrar botón solo en pantallas pequeñas */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    position: absolute;
    right: 20px;
    top: 1px;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 50px; /* Altura del header */
    height: calc(100% - 60px);
    width: 80%;
    max-width: 300px;
    background-color: #343a40;
    padding: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 998;
  }

  .sidebar.open {
    left: 0;
  }

  .container {
    flex-direction: column;
  }

  .content {
    padding: 20px;
  }
}


















h3 {
  font-size: 1.4rem;         /* Aumenta o ajusta según necesidad */
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
  border-left: 4px solid #3498db;
  padding-left: 0.6rem;
}

h4 {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: #555;
  font-weight: 600;
  font-style: italic;
}

/* Estilo para listas no ordenadas */
ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
  list-style-type: disc;
  color: #444;
}

ul li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* Estilo para listas ordenadas */
ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  list-style-type: decimal;
  color: #444;
}

ol li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}