body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: linear-gradient(to bottom, #00c0a3 0%, #66e3c5 100%);
  background-repeat: no-repeat;
  background-attachment: fixed; /* opcional: para que se quede fijo al hacer scroll */
  min-height: 100vh; /* asegura altura mínima de la ventana */
}

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í */


  
.staff-section {
  
  padding: 60px 20px;
  text-align: center;
}

.staff-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: white;
  font-family: 'Lato', sans-serif;
}


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

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra todas las filas, incluso las incompletas */
  gap: 30px; /* Espacio entre fotos */
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.formulario{
 display: flex;
  justify-content: center;
  padding: 20px;
    }

.formulario iframe{
  width: 100%;
  max-width: 640px;
  height: 1280px; /* alto suficiente para móvil */
  border: none;
}  
    
    
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.photo:hover img {
  filter: grayscale(0%);
}

/* Popup base */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  
}

/* Contenido del popup */
.popup-content {
  background: white;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  text-align: center;
  font-family: 'Lato', sans-serif;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto; /* Scroll vertical */
}

.popup-content img {
  max-width: 180px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.popup-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.popup-content .linkedin-btn {
  display: inline-block;
  background: #0077b5;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
}

.popup-content .linkedin-btn:hover {
  background: #005a8e;
}

/* Botón de cierre */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.titulo-fondo {
  position: absolute;
  bottom: 30px;
  left: 60px;
  margin-bottom: 0;
  font-family: 'Lato', sans-serif;
  font-size: 2.6rem;
	font-weight: 200;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); /* opcional para contraste */
}


.titulo-seccion {
	text-align: left;
  font-size: 2.3rem;
	font-weight: lighter;
	margin-left: 60px;
  margin-bottom: 40px;
  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;
}

.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;
}

.btn {
  margin-top: 20px;
  display: inline-block;
  border: 2px solid white;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.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í */
    
   .popup-content {
    max-height: 90vh;
  width: 90%;
    overflow-y: auto; /* Scroll dentro del popup */
  }
		
	.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;
  }
}


