body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: white;

}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 30px;
  border-bottom: 1px solid #ddd;
}

/* BARRA MENU */

.logo {
  height: 70px;
}

#menu-toggle,
.submenu-toggle {
  display: none;
}

/* Ícono hamburguesa */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  padding: 15px 10px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: #009483;
  font-weight: 400;
	font-size: 0.85rem;
  padding: 30px 10px;
  display: block;
  transition: background 0.3s;
}

nav label {
  text-decoration: none;
  color: #009483;
  font-weight: 400;
  font-size: 0.85rem;
  padding: 30px 10px;
  display: block;
  transition: background 0.3s;
}

nav label:hover {
  background-color: #00c2a0;
  color: white;
}

nav a:hover {
  background-color: #00c2a0;
  color: white;
}

nav li:hover > ul {
  display: block;
}

nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav li ul li a {
  color: #009483;
  padding: 10px;
}

.active {
  background-color: #00c2a0;
  color: white !important;
  border-radius: 2px;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.right-section img {
  height: 24px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.right-section img:hover {
  opacity: 0.7;
}

.donar {
  background-color: #ff6969;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.90rem;
}

.lang-link {
  display: flex;
  align-items: center;
  font-weight: lighter;
  font-size: 0.80rem;
  color: #333333;
  text-decoration: none;
  gap: 4px;
}
/* BARRA MENU termina aquí */




h2 { text-align: left;
  font-size: 2.3rem;
	font-weight: lighter;
	margin-left: 60px;
    
    }

h4 { text-align: left;
  font-size: 2.3rem;
	font-weight: lighter;
	margin-left: 60px;
    color: #00C7A4; 
    }


.footer {
  background-color: #f5f5f5;
  padding: 40px 60px;
  font-family: 'Lato', sans-serif;
  color: #333;
   
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contacto {
  max-width: 400px;
}

.contacto h3 {
  margin-bottom: 15px;
  font-weight: bold;
}

.contacto p {
  margin: 5px 0;
}

.contacto a {
  color: #333;
  text-decoration: none;
}

.contacto a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin-right: 5px;
}

.social-icons img {
  width: 32px;
  height: 32px;
}

.logo-footer {
  margin-top: 20px;
}

.logo-footer img {
  width: 250px;
  height: auto;
}


.projects {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  gap: 15px;
  margin: 0 auto;
  padding: 15px;
  font-family: sans-serif;
    
}

.project {
  display: flex;
  flex-wrap: wrap; 
    border-radius: 20px;
  overflow: hidden;
}

.project.reverse {
  flex-direction: row-reverse;
}

.project-image {
  flex: 1 1 500px;
  position: relative;  
}

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

.credit {
  position: absolute;
  bottom: 5px;
  left: 10px;
  font-size: 12px;
  color: white;
  background-color: rgba(0,0,0,0.2);
  padding: 2px 5px;
}

.project-content {
  flex: 1 1 400px;
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;   
}

.blue-gradient {
  background: linear-gradient(to bottom, #5FE3C0 0%, #5FE3C0 100%);
 
}

.red-gradient {
  background: linear-gradient(135deg, #FF6B6B, #F9A979);

}

.project-content h2 {
    margin-left: 0;
  margin-top: 0;
    font-size: 26px;
}

.btn {
  margin-top: 20px;
  display:inline-block;      /* Se ajusta al ancho del texto */
  border: 2px solid white;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;       /* Bordes circulares en extremos */
  white-space: nowrap; 
    align-self: flex-start;/* Evita que se parta en dos líneas */
}

.btn:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
	
 header {
    flex-direction: row;
    align-items: flex-start;
  }

     .miembro img {
        width: 90px;
        height: 90px;
      }
    
    /* BARRA MENU */
	/* Mostrar ícono hamburguesa */
  .hamburger {
    display: block;
	margin-left: auto;
  }

  .right-section {
  flex-direction: column;
  align-items: center;
  width: 100%;
  }

  nav,
  .donar,
  .lang-link {
    display: none;
    width: 100%;
      
  }

  #menu-toggle:checked ~ nav,
  #menu-toggle:checked ~ .donar,
  #menu-toggle:checked ~ .lang-link {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav a {
    
  }

  nav li {
    width: 100%;
  }

  /* Submenús en mobile: clic para desplegar */
  .submenu-toggle + label + ul {
    display: none;
  }

  .submenu-toggle:checked + label + ul {
    display: block;
  }
	
	

  /* Estilo etiquetas de submenú como enlaces */
  nav label {
  text-decoration: none;
  color: #009483;
  font-weight: 400;
  font-size: 0.85rem;
  padding: 30px 10px;
  display: block;
  transition: background 0.3s;
  }

  nav label:hover {
    background-color: #00c2a0;
    color: white;
  }

  nav li ul {
    position: static;
    border: none;
    background: none;
    box-shadow: none;
  }

  nav li ul li a {
    padding: 20px;
  }
	
	.donar {
  width: auto;
  align-self: flex-start;
  margin: 0;
}

    .lang-link {
  margin-top: 30px;
        margin-bottom: 30px;
}
    
    /* BARRA MENU termina aquí */
    

  .project {
    flex-direction: column;
  }

  .project.reverse {
    flex-direction: column;
  }

h4 { 
	margin-left: 30px;
    }

	.texto-sobre {
    position: static;      /* Quitar posicionamiento absoluto */
    max-width: 90%;        /* Que ocupe más ancho */
    margin: 20px auto;     /* Centramos con margen */
    text-align: center;    /* Centrar texto */
    font-size: 1.4rem;     /* Reducimos tamaño */
    padding: 10px;
	color: #333333;
	text-shadow: none;
  }
	 .aviso-cookies {
    padding: 20px;
    font-size: 0.9rem;
  }

  
	
  .footer-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contacto {
    max-width: 100%;
  }

  .logo-footer {
    margin-top: 30px;
  }
}


