body {
    margin: 0;
    font-family: Arial, sans-serif;
    animation: fadeInBg 1s ease-in;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 20px 100px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Menú responsive */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  position: absolute;
  top: 32px;
  right: 32px;
  height: 32px;
  width: 32px;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #00BB31;
  height: 4px;
  width: 32px;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s;
}

.nav-toggle-label span {
  position: relative;
}

.nav-toggle-label span::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
}

.nav-toggle-label span::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
}

/* Responsive styles */
@media (max-width: 900px) {
  header {
    padding: 20px 32px;
  }
  nav {
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    height: 100vh;
    width: 220px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: -2px 0 16px rgba(0,0,0,0.08);
    z-index: 2000;
    display: flex;
  }
  .nav-toggle:checked + .nav-toggle-label + nav {
    transform: translateX(0);
  }
  .nav-toggle-label {
    display: block;
  }
  nav a {
    margin: 18px 0;
    font-size: 1.2rem;
    width: 100%;
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  .logo {
    z-index: 1200;
  }
}
/* Botón de cerrar menú responsive */
.nav-close-label {
  display: none;
  position: fixed;
  top: 32px;
  right: 32px;
  font-size: 2.2rem;
  color: #00BB31;
  background: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  line-height: 40px;
  border: none;
}
/* Oculta el botón por defecto */
.nav-close-label {
  display: none;
}

/* Solo muestra el botón cuando el menú está abierto y en móvil */
@media (max-width: 900px) {
  #nav-toggle:checked ~ .nav-close-label {
    display: flex;
  }
}

header img {
    height: 70px; /* Ajustar el tamaño del logo según se necesite */
}

nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

nav a {
    display: inline-block;
    text-decoration: none;
    color:  #000000;
    background: transparent;
    padding: 12px 28px;
    margin: 0 10px;
    border-radius: 6px;
    font-size: 1.25rem;
    font-family: 'Inter Tight', Arial, sans-serif; /* Fuente Inter Tight */
    font-weight: 600;
    position: relative;
    transition: 
        background 0.25s,
        color 0.25s,
        transform 0.25s;
    z-index: 1;
}

nav a:hover {
    background:  #00BB31;
    color: #fff;
    transform: scale(1.12);
}

main {
    min-height: 80vh;
    background-image: url('../assets/mainBR.png');
    background-size: cover;
    background-position: center;
    animation: fadeInBg 1s ease-in;
    display: flex;
    align-items: center;
    padding: 20px 100px;
    height: calc(100vh - 100px); /* Ajusta según header/footer */
}

@keyframes fadeInBg {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.main-content {
    margin-top: -200px;
}

main h1 {
    font-size: 2.5em;
    color: white;
    margin: 0 0 10px 0;
}

main h2 {
    font-size: 1.5em;
    color: white;
    margin: 0;
}

footer {
    background: linear-gradient(90deg, #232323 0%, #009e28 15%, #009e28 85%, #232323 100%);
    padding: 10px 32px 0 32px;
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

footer .social-icons {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

footer .social-icons img {
    height: 100px;
    width: 200px;
    margin: 0 8px;
    vertical-align: middle;
    transition: transform 0.2s;
    cursor: pointer;
    filter: brightness(0) invert(1);
}
footer .footer-rights {
    color: #fff;
    font-size: 1.1em;
    font-family: 'Inter Tight', Arial, sans-serif;
    width: 100%;
    margin: 12px 0 0 0;
    text-align: center;
}

footer .social-icons img:hover {
    transform: scale(1.05);
}

/* aqui empieza contactos */

.contactos-page main {
    background-image: url('../assets/NiceBG.png');
    background-size: cover;
    background-position: center -100px; /* Ajusta el valor según lo que necesites */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px - 60px); /* Ajusta 70px al alto real del header y 60px al alto del footer */
    padding-top: 70px;   /* Igual al alto del header */
    padding-bottom: 60px; /* Igual al alto del footer */
    box-sizing: border-box;
}

.info-img {
    max-width: 100vw;
    display: block;
}

/* aqui empieza servicios */
.Servicios main {
    background-image: url('../assets/Servicios_fondo.png');
    background-size: cover;
    background-position: center 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 200px 20px 20px; 
    min-height: 100vh;
}


/*Aqui empieza QUIENES SOMOS*/
.quienes-somos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    background-color: #fff;
}

.quienes-texto {
    max-width: 50%;
    background: #121212;      /* Fondo negro */
    color: #fff;              /* Letra blanca */
    border-radius: 16px;      /* Bordes redondeados */
    padding: 32px;            /* Espaciado interno */
    box-shadow: 0 4px 24px rgba(0,0,0,0.12); /* Sombra suave */
}

.quienes-texto h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.quienes-texto p {
    margin-bottom: 20px;
    color: #ffffff;
}


.quienes-imagen img {
    width: 300px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 15% 100%, 0 100%);
    border-radius: 10px;
}

.nuestro-equipo {
    background-color: #121212;
    color: #fff;
    padding: 60px 40px;
    text-align: center;
}

.nuestro-equipo h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.nuestro-equipo p {
    margin-bottom: 40px;
    color: #ffffff;
}

.equipo-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.miembro {
    width: 250px;
    text-align: center;
}

.miembro img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.miembro h3 {
    color: #00D26A;
    margin: 10px 0 5px;
    font-weight: 600;
}

.miembro h4 {
    color: #00D26A;
    margin: 10px 0 5px;
    font-weight: 600;
}

.miembro p {
    display: flex;
    justify-content: center;   /* Centra la caja horizontalmente */
    align-items: center;       /* Centra verticalmente si hay altura */
    width: 90%;                /* Ajusta el ancho de la caja */
    margin: 0 auto;            /* Centra la caja en el contenedor */
    background: transparent;   /* Caja invisible */
    text-align: left;       /* Ajusta el texto */
    color: #ffffff;
    font-size: 14px;
    padding: 0;
    box-sizing: border-box;
}
