@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;

}

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(
    to bottom,
    #111 0%,       /* color sólido desde el inicio */
    #111 25%,      /* se mantiene sólido hasta el 25% */
    #000 100%      /* empieza a mezclarse hacia abajo */
  );
  background-attachment: fixed;
  color: white;
  height: 100%;
}

img {
  max-width: 100%;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: white;
}

a:hover {
  color: #bebebe;
}

.active {
  color: #ffffff;
}

.contenedor {
  max-width: 1280px;
  margin: auto;
}

h1 {
  margin-bottom: 0;
  display: none;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

/* Menu */

.seccion-header {
  padding: 14px;
}

.desktop-menu {
  justify-content: space-between;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2vh;
  background-color: #111111;
}

.desktop-menu-index {
  justify-content: space-between;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2vh;
}

.logo {
  max-width: 30px;
  padding-bottom: 10px;
}

nav a {
  padding: 4px;
  font-size: 10pt;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  display: inline-block;
}

nav a.active {
  border-bottom: #ffffff 2px solid;
}

.menu-toggle,
.mobile-menu,
.mobile-header,
.mobile-header-index {
  display: none;
}

#toast {
      visibility: hidden;
      min-width: 250px;
      margin-left: -125px;
      background-color: #4CAF50;
      color: #fff;
      text-align: center;
      border-radius: 5px;
      padding: 16px;
      position: fixed;
      z-index: 1000;
      left: 50%;
      bottom: 30px;
      font-size: 17px;
      opacity: 0;
      transition: opacity 0.5s, visibility 0.5s;
    }
    #toast.error {
      background-color: #f44336; /* rojo si hay error */
    }
    #toast.show {
      visibility: visible;
      opacity: 1;
    }

/* HOME */

/* Background Video */

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* siempre ocupa todo el viewport */
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

#background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

/* Titulo */

.titulo {
  position: fixed;
  top: 50%;
  /* centro vertical */
  left: 50%;
  /* centro horizontal */
  transform: translate(-50%, -50%);
  width: 30vw;
  /* ancho relativo al viewport */
  height: auto;
  /* mantiene proporción */
  z-index: 1000;
}

/* Footer */

footer {
  position: fixed;
  /* Lo fija en la pantalla */
  bottom: 0;
  /* Lo ubica al fondo */
  left: 0;
  width: 100%;
  /* Para que ocupe todo el ancho */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Centra verticalmente */
  padding: 20px 20px;
  background: transparent;
  /* Si quieres que se vea el fondo del video */
  color: white;
  z-index: 1001;
  /* Para que quede encima de otros elementos */
}

.icon {
  height: 12px;
}

.mail {
  font-size: 9pt;
}

/* Contacto */

/* --- Contenedor --- */

.contacto {
  max-width: 992px;
  /* limite en desktop */
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

/* --- Título --- */

.contacto h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-top: 8vh;
}

/* --- Formulario --- */

.formulario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.formulario input,
.formulario textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #aaa;
  color: white;
  padding: 0.5rem;
  font-size: 1rem;
  resize: none;
}

.formulario button {
  background: white;
  color: black;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 0.8rem;
  cursor: pointer;
  margin-top: 1rem;

}

.formulario button:hover {
  background: rgb(220, 220, 220);
}

.formulario button:active {
  background: rgb(201, 201, 201);
}

/* --- Footer del formulario --- */

.contacto-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.9rem;

}

.social-icons a {
  color: white;
  margin-left: 0.8rem;
  text-decoration: none;
  font-size: 1.2rem;
}


/* MOVIL */

@media (max-width: 768px) {

  .desktop-menu {
    display: none;
  }

  .desktop-menu-index {
    display: none;
  }


  .titulo {
    width: 30vh;
  }

  .logo-movil {
    width: 25px;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2vh;
    background: #111111;
  }

  .mobile-header-index {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2vh;
  }

  /* Muestro el botón hamburguesa */

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
  }

  /* Menú móvil oculto */

  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1001;
  }

  .menu-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Menú móvil abierto */

  .mobile-menu.open {
    transform: translateY(0);
  }

  /* Logo dentro del menú */

  .mobile-menu .menu-logo {
    margin: 2rem 0;
    max-width: 25px;
  }

  /* Links centrados */

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .mobile-menu ul li {
    margin: 1rem 0;
  }

  .mobile-menu ul li a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: 2px;
  }

  /* Formulario contacto */

  .contacto {
    padding: 1.5rem;
  }

  .contacto h2 {
    font-size: 1.5rem;
  }

  .contacto-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

}

/* Grid trabajos */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
  padding-top: 13vh;
}

.item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.item:hover img {
  transform: scale(1.15);
}

.info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  font-size: 14px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.info span {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  display: block;
}

/* Modal fullscreen */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal iframe {
  width: 90%;
  height: 80%;
  border: none;
}

.modal.active {
  display: flex;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    padding-top: 7vh;
  }
}

/* ==== DECORACIONES ==== */

.decoracion {
  position: absolute;
  opacity: 0.25;
  /* Para que no opaquen contenido */
  z-index: -1;
  /* Siempre detrás */
  pointer-events: none;
  /* Que no interfieran con clicks */
}

/* Decoración detrás del formulario */
.decoracion-form {
  top: 50px;
  /* Ajustá según layout */
  left: 100px;
  width: 300px;
  max-width: 25%;
}

.decoracion-form2 {
  bottom: 150px;
  /* Ajustá según layout */
  right: 150px;
  width: 200px;
  max-width: 20%;
}