body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-image: url("images/textura.jpg");
  background-size: cover;
  background-position: center;
  margin: 0;
  width: 100%;
  height: 100%;
  display:  grid;
  grid-template-rows: 1fr 6fr 1fr ;
}

body, html {
  height: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}


nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
  font-size: 1rem; 
}

.logo { 
  width: 120px; 
  justify-content: left;
  transition: all 0.3s ease-in-out;
}


header {
  background-color: transparent;
  color: #023e8a;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center; /* Centra verticalmente */
  width: 100%;
  flex-wrap: wrap;
  border-bottom: 0.5px solid #023e8a; /* Línea de separación */
}

menu {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
}

/* Menú tres rayitas (invisible en compu) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #023e8a;
  margin: 4px 0;
  border-radius: 2px;
}

/* Menu de celu */
@media (max-width: 768px) {
  nav ul.menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #e3f2fd;
  position: absolute;
  top: 70px;
  left: 0;
  z-index: 1000;
  border-top: 1px solid #023e8a;
}

nav ul.menu.active {
  max-height: 500px; 
  opacity: 1;
  padding: 10px 0;
}

  nav ul.menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  header {
    flex-wrap: nowrap;
    position: relative;
  }

  .header-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  nav ul li {
    margin: 10px 0;
  }
}

main {
  grid-row: 2;
  align-items: center; /* Centra horizontalmente */
  align-content: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: -1rem;
  color: #023e8a;
}

h2 {
  color: #023e8a;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.seccion {
  display: none;
}

.seccion.activa {
  display: flex;
  flex-direction: column;
  animation: fadeSlide 1.1s ease-in-out;
}

.seccion-inicio {
  display: flex;
  flex-direction: column;
}

.contenido-inicio {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding-top: 8rem;
  transition: opacity 0.6s ease-out;
  opacity: 1;
}

.oculto {
  opacity: 0;
  pointer-events: none;
}

.contenido-inicio h1 {
  font-size: 3rem;
}

.contenido-inicio p {
  font-size: 1.5rem;
}

.linea-con-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.linea-con-icono hr {
  flex: 1;
  border: none;
  height: 1px;
  background-color: #023e8a;
  margin: 0 10px;
}

.icono-separador {
  width: 200px;
  height: 200px;
}

.contenido-proyecto {
  margin-top: auto;
  max-width: 80%;
  margin: 0 auto;
  padding: 0.5rem 1rem; 
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contenido-proyecto.oculto {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px); /* bajamos un poco al desaparecer */
}

.contenido-proyecto.visible {
  opacity: 1;
  transform: translateY(0);
}

.contenido-proyecto h2 {
  font-size: 210%;
}

.contenido-proyecto p {
  font-size: 130%;
}

.contenido-funciona {
  max-width: 80%;
  margin: 0 auto;
  padding: 0.5rem 1rem; 
  padding-bottom: 16rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contenido-funciona.oculto {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.contenido-funciona h2 {
  font-size: 210%;
}

.contenido-funciona p, .contenido-funciona li {
  font-size: 130%;
}

.contenido-app {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
  padding-bottom: 10rem;
}

.app-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding-left: 6rem;
}

.app-img {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding-left: 4rem;
  width: 80%;
}

.contenido-app h2 {
  font-size: 185%;
}

.contenido-app p, .contenido-app li {
  font-size: 110%;
}

.equipo-h2 {
  text-align: left;
  margin-bottom: 2rem;
  padding-left: 4rem; 
  padding-top: 2rem;
}

.equipo-h2 span {
  display: inline-block;
  font-size: 150%;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #000;
  width: fit-content;
  width: 95%;
  max-width: 100%;
}

.contenido-equipo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8rem;
  width: 100%;
}

.miembro {
  position: relative;
  width: 250px;
  height: 400px;
  overflow: hidden;
  text-align: center;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.miembro img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.miembro:hover .info {
  transform: translateY(0);
}

.nombre {
  margin-top: 10px;
  font-size: 1.1em;
  font-weight: bold;
  color: #000;
  text-align: center;
}

.equipo-p {
 padding-left: 4rem;
 padding-bottom: 4rem;
 font-size: 120%;
}

.contenido-patrocinadores{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem; 
  padding-bottom: 200px;
}

.patroh1 {
  font-size: 2.8rem;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #023e8a;
  max-width: 100%;
  padding-top: 100px;
  padding-bottom: 40px;
  opacity: 1; /* Visible inicialmente */
  animation-fill-mode: both;
}

.patrop {
  font-size: 1.5rem;
  display: flex;
  text-align: center;
  justify-content: center;
  margin-top: -25px;
  max-width: 100%;
  opacity: 1; /* Visible inicialmente */
  animation-fill-mode: both;
}

.fadesatxt strong {
  color: #0056b3; 
}

.fadesatxt {
  display: block; 
  text-align: left; 
  align-items: left;
  max-width: 45%;
  float: left;
  font-size: 1.6rem;
  padding-top: 21rem;
  view-timeline-name: --reveal;
  animation-name: show;
  animation-fill-mode: both;
  animation-timeline: --reveal;
  animation-range: entry 25% cover 50%;
}

.logofadesa {
  float: right;
  padding-top: 21rem;
  view-timeline-name: --reveal;
  animation-name: show;
  animation-fill-mode: both;
  animation-timeline: --reveal;
  animation-range: entry 25% cover 50%;
  width: 400px;
}

.botonfadesa {
  float: right;
  margin-top: 50px;
  margin-right: 80px;
 }

.contenido-contacto{
  max-width: 80%;
  padding-left: 6rem;
  padding-bottom: 6rem;
}

.contenido-contacto h2 {
  font-size: 210%;
}

.contenido-contacto p, .contenido-contacto li {
  font-size: 135%;
}

.frase-contacto {
  font-weight: bold;
  font-size: 180%;
  margin-top: 1rem;
  color: #0b2b4c;
}

.formulario-contacto {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 140%;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 100%;
  width: 100%;
  resize: vertical;
}

.formulario-contacto button {
  background-color: #0b2b4c;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 110%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #164d85;
}


.footer {
  background: #132c43;
  color: #ffffff;
  padding: 40px 20px 20px 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.footer.show-footer {
  opacity: 1;
  transform: translateY(0);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.footer-logo {
  width: 160px;
  height: auto;
  padding-left: 2rem;
}

.footer-center {
  flex: 2;
  text-align: center;
  font-size: 1.7rem;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  padding-right: 4rem;
}

.footer-nav li {
  margin: 5px 0;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #87cefa;
}

.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #cccccc;
}

/* Estilos para la animación hover en el menú dSe navegación */
nav ul li a.menu__link{
  color: #023e8a;
  line-height: 2;
  position: relative;
}

nav ul li a.menu__link::before {
  content: '';
  width: 0;
  height: 2px;
  border-radius: 2px;
  background-color: #023e8a;
  position: absolute;
  bottom: -.25rem;
  left: 0;
  transition: width 1s;
}

nav ul li a.menu__link:hover::before {
  width: 100%;
}


button {
  height: 55px;
  width: 280px;
  border: unset;
  border-radius: 15px;
  color: #023e8a;
  z-index: 1;
  background: #e8e8e8;
  position: relative;
  font-weight: 1000;
  font-size: 20px;
  -webkit-box-shadow: 4px 8px 19px -3px #0d1b2a(0,0,0,0.27);
  box-shadow: 4px 8px 19px -3px #0d1b2a(0,0,0,0.27);
  transition: all 500ms;
  overflow: hidden;
 }
 
 button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 15px;
  background-color: #0d1b2a;
  z-index: -1;
  -webkit-box-shadow: 4px 8px 19px -3px #0d1b2a(0,0,0,0.27);
  box-shadow: 4px 8px 19px -3px #0d1b2a(0,0,0,0.27);
  transition: all 500ms
 }
 
 button:hover {
  color: #e8e8e8;
 }
 
 button:hover::before {
  width: 100%;
 }

 @keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes show { 
  from { 
    opacity: 0; scale: 10%; 
  }
  to { 
    opacity: 1; scale: 100%; 
  } 
}

/* Estilos para tabletas */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 2rem;
  }
}

/* Estilos para escritorios grandes */
@media screen and (min-width: 1025px) {
  .container {
    padding: 3rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    width: 90px;
  }

  .contenido-inicio h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .contenido-inicio p {
    font-size: 1.1rem;
    text-align: center;
  }

    .contenido-app {
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
    padding-bottom: 6rem;
  }

  .app-txt {
    padding: 0;
    text-align: center;
    align-items: center;
  }

  .app-txt h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .app-txt p, .app-txt li {
    font-size: 1rem;
    text-align: left;
  }

  .app-img {
    padding: 0;
    margin: 0 auto;
    width: 90%;
  }

  .contenido-proyecto h2,
  .contenido-funciona h2,
  .contenido-contacto h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .contenido-proyecto p,
  .contenido-funciona p,
  .contenido-contacto p {
    font-size: 1rem;
    text-align: center;
  }

  .equipo-h2 {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .equipo-h2 span {
    width: 90%;
    font-size: 135%;
    text-align: center;
    border-bottom: 3px solid #000;
    padding-bottom: 0.5rem;
    display: inline-block;
  }

  .contenido-equipo {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }

  .equipo-p {
    padding: 0 1.5rem 4rem 1.5rem;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
    padding: 1rem 0;
  }

  .footer-logo {
    padding-left: 0;
    width: 120px;
  }

  .footer-center {
    font-size: 1.3rem;
  }

  .footer-nav {
    padding-right: 0;
  }

  .contenido-patrocinadores {
    padding: 2rem 1rem;
    padding-bottom: 100px;
  }

  .patroh1 {
    font-size: 2rem;
    padding-top: 60px;
    padding-bottom: 20px;
    text-align: center;
  }

  .patrop {
    font-size: 1.2rem;
    margin-top: -15px;
    text-align: center;
    padding: 0 1rem;
  }

  .fadesatxt {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 1.3rem;
    padding-top: 6rem;
  }

  .logofadesa {
    float: none;
    display: block;
    margin: 2rem auto;
    padding-top: 2rem;
    width: 80%;
    max-width: 300px;
  }

  .botonfadesa {
    float: none;
    display: block;
    margin: 2rem auto 0 auto;
  }

  .contenido-contacto {
    display: flex;
    padding-left: 2rem;
    padding-right: 0;
    padding-bottom: 4rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}


