/*html
{
	background:#fff url(imagenes/00.jpg) no-repeat top left fixed;
	background-size:cover;
}*/
/* NAV - Menú de navegación */
/* NAV - Menú de navegación */
nav {
    position: relative;
    top: 0;
    width: 100%;
    background-color: transparent !important; /* Fondo completamente transparente */
    padding: 10px;
    z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
   padding: 0;
   margin: 0;
   color: white; }

   nav ul {
   	position: center;
     list-style: none;
     padding: 0;
     margin: 1px auto;
     display: flex;
     justify-content: center;
     gap: 20px;
     background-color: rgba(0, 0, 0, 0);
   color: white;
   }

   nav ul li a {
     display: block;
     padding: 1px ;
     color: #fff;
     text-decoration: none;
     font-weight: bold ;
   }

   nav ul li a:hover {
     background-color: rgba(255, 255, 255, 0);
     color: #000;
     border-radius: 5px;
   }

/* Submenú de "Portafolio" */
/* TRANSPARENCIA EN LAS IMÁGENES */
.proyecto img {
    width: 100%;
    height: 220px; /* Puedes ajustar a 200px o 250px según el diseño deseado */
    object-fit: cover; /* Recorta para mantener proporciones visualmente iguales */
    display: block;
    opacity: 1; /* Corrige el valor no válido anterior */
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
}

.proyecto:hover img {
    opacity: 0.7; /* Se vuelve un poco transparente */
    filter: grayscale(80%); /* Aplica tonos grises */
}



/* padding: 10px 0; /* Espaciado vertical uniforme */
    /*list-style: none;
    text-align: center;*/
}

nav ul li:hover .submenu {
    display: block; /* Se muestra cuando el cursor está cerca */
}
 .submenu:hover {
    visibility: visible;
    opacity: 0.8;
}

.submenu li {
      display: block;
      width: 100%; /* Asegura que cada opción ocupe toda la línea */
      padding: 4px 0;
      color: white;
      font-size: 10px;
      text-decoration: none;
  border-radius: 5px;

  }
}

.submenu li :hover {
        background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* Estilos generales del cuerpo */
body {
    background: #000 url("imagenes/villa (37).jpg") no-repeat bottom left fixed;
    background-size: cover;
    font-family: 'Montserrat',sans-serif;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

/* Contenedores principales */
#inicio {
    padding: 0px 0px 40px 0px;
}

.firma {
    padding: 100px 0px 100px 0px;
}

.firma2 {
    padding: 15%;
}

.contenedor {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    display: block;
    bottom: 3%;
    clear: both;
    width: 100%;
}

.contenedor2 {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    display: table;
    padding: 0px 0px 0px 0px;
    clear: both;
    width: 80%;
}

.contenedor3 {
    position: relative;
    text-align: center;
}

.contenedor4 {
    background: #000 url(imagenes/07.jpg) no-repeat top left fixed;
    background-size: cover;
    padding: 400px 0px 300px 0px;
}

.contenedor5 {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    display: table;
    padding: 0px 0px 0px 0px;
    clear: both;
    width: 100%;
}

/* Sección de contacto */
.contacto {
    padding: 40px 0px 40px 0px;
      font-size: 10px;
    float: center;
    text-align: center;
}

.contacto p {
    margin: 0px;
    font-weight: bold;
}

.contacto img {
    padding-left: 10px;
    padding-right: 5px;
}

/* Estilos del email */
.email {
    text-decoration: none;
    color: #fff;
    padding: 0px 20px 0px 20px;
    font-weight: bold;
}

.email:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 500ms ease;
}

/* Galerías */
.gal {
    padding: 40px 90px 40px 90px;
    font-size: 16px;
    float: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
color: #000;
}

.gal img {
    position: relative;
    border: none;
    padding: 20px;
}

.gal a:hover {
    filter: grayscale(100%);
    opacity: 0.5;
}

.gal p {
    text-align: justify;
}

.gal2 {
    float: center;
    text-align: center;
}

.gal2 img {
    border: none;
    padding: 20px;
}

.gal3-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 40px;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.proyecto {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}



.proyecto:hover {
    transform: scale(1.02);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.proyecto:hover .overlay {
    opacity: 1;
}



ul {
    column-gap: 10px;
    column-width: 300px;
    counter-reset: item;
    list-style: none;
    margin: 0 auto;
    max-width: 90%;
    padding: 0px;

    /* ====== ESTILOS RESPONSIVOS ====== */

  @media (max-width: 1024px) {
    nav ul {
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .gal3-grid {
      grid-template-columns: repeat(1, 1fr); /* Cambia a una columna */
      gap: 20px;
      padding: 20px;
    }

    .contenedor2,
    .contenedor5 {
      width: 90%;
    }

    .firma,
    .firma2 {
      width: 150px;
    }
  }

  @media (max-width: 768px) {
    nav {
      padding: 5px;
    }

    nav ul {
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    nav ul li {
      width: 100%;
      text-align: center;
    }

    nav ul li .submenu {
      position: relative;
      top: 0;
      left: 0;
      width: 100%;
    }

    .gal {
      padding: 20px;
      font-size: 14px;
    }

    .contacto {
      font-size: 13px;
      padding: 20px 10px;
    }

    .proyecto img {
      height: 180px;
    }

    .overlay {
      font-size: 14px;
      padding: 12px;
    }
  }

  @media (max-width: 480px) {
    body {
      font-size: 18px;
      text-align: center;
    }

    nav ul {
      gap: 8px;
    }

    .contenedor2 img,
    .contenedor3 img {
      width: 100%;
      height: auto;
    }

    .gal {
      padding: 10px;
      font-size: 12px;
    }

    .gal3-grid {
      padding: 10px;
    }

    .overlay {
      font-size: 12px;
      padding: 8px;
    }

    .firma,
    .firma2 {
      width: 120px;
    }

    .contacto p {
      font-size: 11px;
    }
  }
