/* ====== RESET Y TIPOGRAFÍA ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
  color: white;
  scroll-behavior: smooth;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0f2027;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.navlist {
  display: flex;
  gap: 25px;
}

.navlist a {
  color: white;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
}

.navlist a:hover {
  color: #00c6ff;
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: center;
  padding: 100px 10%;
  gap: 20px;
}

.hero-text h1 {
  font-size: 30px;
  margin-bottom: 15px;
}

.hero-text p {
  margin-bottom: 20px;
}

.hero-text a {
  background: #00c6ff;
  color: black;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

.hero-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.section {
  padding: 60px 10%;
  text-align: center;
}

.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.benefit {
  max-width: 250px;
}

.benefit i {
  font-size: 36px;
  color: #00c6ff;
}

/* Tarjeta de proyecto */
.proyecto {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: 18px; /* bordes suaves */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Imagen con efecto hover */
.proyecto img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 #000a;
  background: #222;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  cursor: pointer;
  display: block;
}

/* Hover en la imagen */
.proyecto:hover img {
  transform: scale(1.08);
  filter: brightness(1.15);
  box-shadow: 0 18px 50px 0 rgba(0, 0, 0, 0.7);
}

/* Título del proyecto */
.proyecto-titulo {
  margin-top: 18px;
  text-align: center;
  letter-spacing: 0.8px;
}

.proyecto-titulo a {
  text-decoration: none;
  color: white;

  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hover en el título */
.proyecto:hover .proyecto-titulo a {
  color: #00c6ff;
  text-shadow: 0px 2px 10px rgba(0, 198, 255, 0.6);
}






/* Barra social fija vertical a la derecha */
.social {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 999;
  background: transparent;
  padding: 10px 5px;
}

.social a {
  text-decoration: none !important;
  outline: none;
  border: none;
}

.social a i {
  color: #fff;
  font-size: 2.2rem;
  transition: color 0.2s, font-size 0.2s;
  vertical-align: middle;
  text-decoration: none !important;
  outline: none;
  border: none;
}

.social a:hover i {
  color: #bdbdbd;
}

.section.contacto .social {
  position: static;
  flex-direction: row;
  gap: 15px;
  margin-top: 10px;
  background: none;
  padding: 0;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

.formulario input,
.formulario textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
}

input[type="submit"] {
  background: #00c6ff;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

input[type="submit"]:hover {
  background: white;
}

.form-ok {
  color: #fff;
  background: #38b000;
  padding: 10px 18px;
  border-radius: 5px;
  margin-bottom: 18px;
  font-weight: 600;
}

.form-error {
  color: #fff;
  background: #d90429;
  padding: 10px 18px;
  border-radius: 5px;
  margin-bottom: 18px;
  font-weight: 600;
}

footer {
  background: #0f2027;
  text-align: center;
  padding: 20px;
}





@media (max-width: 900px) {
  .proyectos-grid {
    grid-template-columns: 1fr;
    max-width: 98vw;
    gap: 32px;
  }

  .proyecto img {
    max-width: 98vw;
    height: auto;
  }

  .section.contacto .social {
    position: static;
    flex-direction: row;
    gap: 15px;
    margin-top: 10px;
    background: none;
    padding: 0;
  }
}


@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .navlist {
    position: absolute;
    top: 70px;
    right: -100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    width: 200px;
    transition: right 0.3s;
    padding: 20px;
  }

  #menu-toggle:checked~.navlist {
    right: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


@media (max-width: 600px) {
  .proyectos-grid {
    grid-template-columns: 1fr;
    max-width: 98vw;
  }

  .proyecto img {
    max-width: 98vw;
    height: 120px;
  }

    .social a i {
    font-size: 1.4rem !important;
  }


}


