/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #444;
  line-height: 1.6;
}

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

/* NAVBAR */
.nav {
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.nav-links li a.active {
  color: #FF6600;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* BANNER */
.banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
}

/* MAIN */
.main {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
  text-align: center;
}

.proyecto {
  margin-top: 2rem;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #FF6600;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
}

.btn.outline {
  background: none;
  color: #FF6600;
  border: 2px solid #FF6600;
}

/* FOOTER */
.footer {
  text-align: center;
  background: #f8f8f8;
  padding: 1rem;
  margin-top: 3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 1100;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-radius: 0 0 10px 10px;
    z-index: 1000;
  }

  .nav-links.show {
    max-height: 500px; /* ajusta si hay más enlaces */
    padding: 1rem 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 0.6rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
  }

  .nav-links li a:hover {
    background-color: #f2f2f2;
  }
}



.logo img {
  height: 50px;
  width: auto;
}


/* Menú colapsado (en móviles) */
.navbar-collapse {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 0.5rem;
}

/* Estilo a los enlaces del menú colapsado */
.navbar-nav .nav-item {
  margin-bottom: 0.5rem;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  background-color: #f0f0f0;
  color: #0d6efd;
}

/* Botón hamburguesa más notorio */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.4);
}
