.header {
  /* No background-image here anymore */
  position: relative;
  z-index: 1000;
  /* Removed margin-top, as the header div itself is removed from around the navbar */
}

.hero-image-container {
  width: 100%;
  overflow: hidden; /* Ensures the image doesn't overflow if it's too big */
  position: relative; /* Allows for absolute positioning of children if needed */
  z-index: 999; /* Below the navbar, above other content */
}

.hero-image-container .header-image {
  display: block; /* Removes extra space below the image */
  width: 100%;
  height: auto;
  object-fit: contain; /* Ensures the image scales down to fit */
  aspect-ratio: 16/4; /* Maintains aspect ratio */
}


.hero-section {
  background-color: #001f3f;
  color: white;
  padding: 80px 0;
  text-align: center;
  /* Removed any negative margin-top here as it will now flow naturally */
}

.hero-section h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5em;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.hero-buttons .btn {
  margin: 10px;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
}

.hero-buttons .btn-primary {
  background-color: #28a745;
  border-color: #28a745;
}

.hero-buttons .btn-outline-light {
  border-color: white;
  color: white;
}

.hero-buttons .btn-outline-light:hover {
  background-color: white;
  color: #001f3f;
}

#countdown {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.barra {
  text-align: left;
  margin-left: 20px;
  display: flex;
  place-items: center;
}

.barra h2 {
  font-family: 'Bebas Neue', sans-serif;
  margin-top: 50px;
  margin-left: 125px;
}

#days,
#hours,
#minutes,
#seconds {
  font-weight: 900;
  font-size: 45px;
  color: #7abbf4;
  line-height: 30px;
  margin: 0;
  font-family: inherit;
}

iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}

.container-fluid {
  background-color: transparent;
}

.navbar-custom {
  background-color: rgba(0, 31, 63, .95);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.navbar-custom .navbar-brand {
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2em;
  margin-left: 20px;
  padding: 0;
}

.navbar-custom .navbar-nav .nav-link {
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2em;
  padding: 10px 20px;
  transition: color .3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
  color: #7abbf4;
}

.navbar-toggler {
  margin-top: 0;
  background-color: transparent;
}

body {
  padding-top: 0;
  background-image: url('html_files/0+inftransparente.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: repeat;
  overflow-x: hidden; /* Evita el scroll horizontal */
  width: 100%; /* Asegura que el body ocupe el 100% del ancho */
  margin: 0; /* Elimina márgenes por defecto del body */
  padding: 0; /* Elimina padding por defecto del body */
}

.dropdown-menu>a:hover {
  background-image: none;
  background-color: transparent;
  color: aqua;
}

.dropdown-menu.a {
  color: white;
}

.navbar-nav {
  background-color: transparent;
}

.nav-link {
  color: #000;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-item {
  color: white;
}

#footer {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  padding: 5px 0;
}

.wrapper {
  overflow: hidden;
}

.wrapper div {
  min-height: 50px;
  padding: 15px;
}

#two {
  overflow: hidden;
  min-height: 150px;
  min-width: 100px;
  text-align: center;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-container>div {
  margin: 10px;
  margin-top: 8%;
  text-align: center;
  line-height: 15px;
  font-size: 19px;
  flex: 30%;
}

#fi2 {
  background-image: url(0+inftransparente.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  aspect-ratio: 16/9;
}

.logo-container {
  margin-top: 2%;
  margin-bottom: 12%;
  display: flex;
  flex: 1;
  justify-content: space-evenly;
}

.logo {
  width: 200px;
  height: 100px;
  object-fit: contain;
  object-position: center;
  justify-content: space-evenly;
}

.loguito {
  width: 80px;
  height: 80px;
  transform: scaleX(-1);
  object-fit: contain;
  object-position: center;
  justify-content: space-evenly;
  padding-top: .5%;
}

.logo-carousel {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  overflow: auto;
  padding-left: 2.5%;
}

.logo-carousel button {
  visibility: hidden;
}

.logo-carousel img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  object-position: center;
  justify-content: space-evenly;
  margin: 5%;
}

.overlined-text {
  text-decoration: line-through;
}

@media (max-width: 1080px) {
  .logo-carousel img {
    width: 200px;
    height: 200px;
    padding: 45px;
  }
}

@media (max-width: 600px) {
  .logo-carousel img {
    width: 150px;
    height: 150px;
    padding: 20px;
  }
}

/* Existing .text-box styles */
.text-box {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
  backdrop-filter: blur(10px) saturate(180%); /* Key for glass effect */
  -webkit-backdrop-filter: blur(10px) saturate(180%); /* For Safari compatibility */
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Light border to define the "glass" */
  padding: 40px;
  max-width: 90%;
  min-width: 280px;
  width: auto;
  margin: 40px;
  font-size: 16px;
  line-height: 1.6;
  color: #000; /* Adjust text color for readability on light glass */
}

/* Adjust the project-card background to be slightly less opaque for contrast */
.project-card {
  background-color: rgba(255, 255, 255, 0.8); /* Slightly less opaque white for individual cards */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  overflow: hidden;
  margin-bottom: 25px;
  transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Adjust text color within project cards if needed */
.project-card-body h5,
.project-card-body p {
  color: #333; /* Darker text for readability on lighter card background */
}

.newcontainer {
  min-height: 100vh;
  width: 100vw;
  background-color: transparent; /* Changed from #736363 to transparent */
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  margin-top: 30px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card .btn {
  align-self: flex-start;
}

/* Estilos para las nuevas secciones de Quienes Somos y Objetivos */
.section-block {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px; /* Espacio superior */
    margin-bottom: 30px; /* Espacio inferior */
}

.section-block h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: #001f3f;
    text-align: center;
    margin-bottom: 25px;
    /* Eliminamos padding-right que causaba el desborde */
}

/* Contenido específico del proyecto */
.project-detail-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 40px auto;
}

.project-detail-container h1 {
    font-family: 'Bebas Neue', sans-serif;
    color: #001f3f;
    margin-bottom: 25px;
    text-align: center;
}

.project-detail-container h4 {
    color: #001f3f;
    margin-top: 30px;
    margin-bottom: 15px;
}

.project-detail-container p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.project-detail-container ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.project-detail-container ul li {
    margin-bottom: 5px;
}

.project-detail-container img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-button-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Opcional: Para asegurar que todas las secciones se ajusten al ancho */
section, .container-fluid, .newcontainer {
    max-width: 100%;
    overflow-x: hidden;
}