html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-color: #F2F2F2;
  padding-top: 90px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #003366;
  padding: 10px 30px;
  height: 90px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* opcional: da efecto de profundidad */
}

.logo {
  height: 80px; /* ajusta según tu necesidad */
  width: auto;  /* para que no se deforme */
  object-fit: contain;
  padding-top: 5px;
  padding-bottom: 5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #33b9f7;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background-color: #003366;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    padding-top: 70px;
    transition: right 0.3s ease;
    z-index: 11;
    align-items: center;
  }

  .nav-links.show {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .overlay.show {
    display: block;
  }
}

.slider-container {
  position: relative;
  max-width: 1800px;
  margin: auto;
  overflow: hidden;
  padding: 40px 20px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 25%;
  padding: 10px;
  transition: transform 0.3s ease;
}

.slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.slide img:hover {
  transform: scale(1.05);
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
}

.slider-button.left {
  left: 20px;
}

.slider-button.right {
  right: 20px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .slide {
    min-width: 50%;
  }
}

@media (max-width: 480px) {
  .slide {
    min-width: 100%;
  }
}

.container {
      display: flex;
      flex-direction: row;
      padding: 40px;
      gap: 40px;
    }

    .sidebar {
      min-width: 200px;
      border-right: 1px solid #e0e0e0;
      padding-right: 20px;
    }

    .sidebar ul {
      list-style: none;
      padding: 0;
    }

    .sidebar li {
      margin-bottom: 20px;
      color: #555;
      font-weight: bold;
      cursor: pointer;
    }

    .sidebar li.active {
      color: #003366;
    }

    .content {
      flex: 1;
    }

    .content h2 {
      color: #003366;
      font-size: 28px;
      margin-bottom: 10px;
    }

    .content h3 {
      font-size: 16px;
      text-transform: uppercase;
      color: #444;
      margin-bottom: 20px;
    }

    .content p {
      margin: 5px 0;
    }

    .highlight {
      font-weight: bold;
    }

    .image-container {
      margin-top: 20px;
      text-align: center;
    }

    .image-container img {
      max-width: 100%;
      height: auto;
    }

    .contenido-flex {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 40px;
      flex-wrap: wrap;
    }

    .contenido-flex .texto {
      flex: 2;
      min-width: 300px;
    }

    .contenido-flex .image-container {
      flex: 1;
      min-width: 250px;
    }

    .contenido-flex .image-container img {
    width: 100%;
    max-height: 400px; /* Limita la altura máxima */
    height: auto;
    object-fit: contain; /* Escala sin distorsionar */
    display: block;
    margin: 0 auto;
  }

    @media (max-width: 768px) {
      .container {
      flex-direction: column;
      padding: 20px;
      gap: 20px;
    }

    .sidebar {
      width: 100%;
      padding-right: 0;
      border-right: none;
      border-bottom: 1px solid #e0e0e0;
      padding-bottom: 20px;
    }

    .content {
        width: 100%;
      }

    .image-container {
      margin-top: 20px;
    }

    .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
  }

  .sidebar li {
    flex: 1 1 calc(50% - 10px); /* para mostrar 2 por fila en móviles */
    background-color: #e6e6e6;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    margin: 0;
  }

  .sidebar li.active {
    background-color: #003366;
    color: #fff;
    }
  }

  .contact-section {
  padding: 40px 20px;
  background-color: #f3f3f3;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.contact-title {
  text-align: center;
  color: #333;
  margin-bottom: 25px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-field {
  margin-bottom: 20px;
}

.contact-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #444;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 16px;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: #007BFF;
  outline: none;
}

.contact-button-wrapper {
  text-align: center;
}

.contact-button {
  background-color: #007BFF;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #0056b3;
}

.hidden {
  display: none;
}

.footer {
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  color: #fff;
  padding: 60px 30px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-title {
  margin-bottom: 15px;
  font-size: 20px;
  color: #33b9f7;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.footer-links li a:hover {
  color: #33b9f7;
  transform: scale(1.05);
}

.footer-social a {
  color: #fff;
  font-size: 20px;
  transition: all 0.3s;
  margin-right: 12px;
}

.footer-social a:hover {
  color: #33b9f7;
  transform: scale(1.3);
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #aaa;
}

.nosotros-section {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.nosotros-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url(https://t4.ftcdn.net/jpg/12/14/06/69/360_F_1214066958_GeJGV9pbkElt0PxmbczSRp69abGNKotb.jpg) no-repeat center center;
  background-size: cover;
  filter: grayscale(70%) brightness(60%);
  z-index: 0;
}

.nosotros-content {
  position: relative;
  z-index: 1; /* está encima del fondo */
  max-width: 500px;
  padding: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.nosotros-content h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.nosotros-content p {
  font-size: 1.1em;
  line-height: 1.5;
}

.cta-contacto {
  background: linear-gradient(to right, #f2f2f2, #e0dede);
  padding: 50px 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 10px;
}

.contenido-cta h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.contenido-cta p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.section {
  scroll-margin-top: 100px;
}

.content{
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.loginstru {
  display: block;
  margin: auto;
}

.bodybg {
  background-color: #F2F2F2;
}