/* ---------- Generales  ---------- */

* {
  list-style: none;
  text-decoration: none;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

main {
  background-color: #f2f2f2;
  overflow: hidden;
}
/* .ir-arriba {
  display: block;
  padding: 20px;
  background: #024959;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
} */


/* ---------- Header  ---------- */
header button{
  display: none;
}

.abrir-menu,
.cerrar-menu{
  display: none;
}
.nav-header ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-header ul li {
  margin-left: 20px;
}

.nav-header ul li a {
  text-decoration: none;
  color: black;
  margin-right: 30px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px;
  background-color: #dedede;
  border: solid black 1px;
}

#logo {
  margin-left: 2%;
  width: 250px;
}


/* ---------- Footer ---------- */

.footer {
  background-color: #dedede;
  color: black;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.footer-logo {
  width: 400px;
  margin-bottom: 15px;
}

.footer-section h4 {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: black;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: black;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: rgb(137, 192, 210);
}

.redes-sociales ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.redes-sociales ul li {
  display: inline;
}

.redes-sociales ul li a img {
  width: 25px;
  height: 25px;
}
.footer-section #enlaces {
  margin-top: 20px;
}

.footer-copy {
  font-size: 0.9em;
  color: #888;
  margin-top: 20px;
}

.footer-copy a{
  color: #888;
  text-decoration: underline;
}

/* ----------- Carrusel ------------ */
.contacto {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  padding: 2em;
}

.carousel {
  margin-left: 15%;
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease-in-out;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 100%;
  height: auto;
  display: block;
  transition: 300ms ease all;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  font-size: 24px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carousel-images img {
  display: none;
}

.carousel-images img.active {
  display: block;
  width: 100%;
  height: auto;
}

.contacto {
  margin-top: 5%;
}
.contact-form {
  text-align: center;
  max-width: 500px;
  width: 100%;
  padding: 2em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: auto;
}

.contact-form h2 {
  margin-bottom: 0.5em;
  font-size: 24px;
  color: #333;
}

.contact-form p {
  margin-bottom: 1em;
  color: #727272;
}

.contact-form .form-group {
  display: flex;
  gap: 1em;
  margin-bottom: 2em;
}

.contact-form .form-group input {
  flex: 1;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
}

.contact-form textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 1em;
}

.contact-form button {
  padding: 0.8em 2em;
  background-color: #b4d5fa;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #9dc6f6;
}


/* ---------- Portafolio  ---------- */

.portafolio {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
}

.portafolio a {
  display: block;
  width: 20%;
  height: 70vh;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portafolio a:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.portafolio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.portafolio a:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.categoria {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portafolio a:hover .categoria {
  opacity: 1;
}


/* ---------- Acerca de mi  ---------- */

.acerca-de-mi {
  margin-top: 100px;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(50%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-container {
  max-width: 50%;
  padding: 4rem;
  z-index: 1;
}

.text-container p {
  font-size: 1.5rem;
  line-height: 2;
  font-weight: 400;
  color: #f1f1f1;
}

.text-container span {
  font-weight: 700;
  color: #fff;
}


@media (max-width:820px) {
    /* ---------- Portafolio  ---------- */

  .portafolio {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 70px;
    flex-wrap: wrap;
    flex: 1;
  }

  .portafolio a {
    margin-right: 10px;
    display: block;
    width: 40%;
    height: 40vh;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .portafolio a:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }

  .portafolio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
  }

  .portafolio a:hover img {
    transform: scale(1.05);
    filter: brightness(0.6);
  }

  .categoria {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    font-size: 19px;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .portafolio a:hover .categoria {
    opacity: 1;
  }

  .contacto {
    align-items: center;
  }

  .carousel{
    display: none;
  }



  /* ------- HEADER ------- */
  .nav-header{
    opacity: 0;
    visibility: hidden;

    display: flex;
    flex-direction: column;
    align-items: end;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #1c1c1c;
    padding: 2rem;
    z-index: 100;
    box-shadow: 0 0 0 10000px rgba(0, 0, 0, 0.5)
  }
  .abrir-menu,
  .cerrar-menu{
    display: block;
    border: 0;
    font-size: 2rem;
    background-color: transparent;
    cursor: pointer;
  }

  .abrir-menu{
    color: black;
  }
  .cerrar-menu{
    color: #ecececec;
  }

  .nav-header.visible{
    opacity: 1;
    visibility: visible;
  }
  .nav-header ul{
    flex-direction: column;
    align-items: end;
  }
  .nav-header ul li {
    margin-top: 40px;
  }
  .nav-header ul li a{
    color: #ecececec;
  }













/*   .nav-header ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-header ul li {
    margin-left: 20px;
  }
  
  .nav-header ul li a {
    text-decoration: none;
    color: black;
    margin-right: 30px;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    background-color: #dedede;
    border: solid black 1px;
  }
  
  #logo {
    margin-left: 2%;
    width: 200px;
  } */


  /* --------------------- */

  .acerca-de-mi {
    margin-top: 50px;
    position: relative;
    width: 100vw;
    height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
  }
  
  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 40vh;
    object-fit: cover;
    z-index: 0;
    filter: brightness(50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .text-container {
    max-width: 100%;
    padding: 2rem;
    z-index: 1;
  }
  
  .text-container p {
    font-size: 0.8rem;
    line-height: 2;
    font-weight: 400;
    color: #f1f1f1;
  }
  
  .text-container span {
    font-weight: 700;
    color: #fff;
  }











  .footer {
    align-items: center;
    background-color: #dedede;
    color: black;
    padding: 40px 0;
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
  }
  
  .footer-logo {
    width: 200px;
    margin-bottom: 15px;
  }
  
  .footer-section h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: black;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin: 8px 0;
  }
  
  .footer-section ul li a {
    color: black;
    text-decoration: none;
  }
  
  .footer-section ul li a:hover {
    color: rgb(137, 192, 210);
  }
  
  .redes-sociales ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
  }
  
  .redes-sociales ul li {
    display: inline;
  }
  
  .redes-sociales ul li a img {
    width: 25px;
    height: 25px;
  }
  .footer-section #enlaces {
    margin-top: 20px;
  }
  
  .footer-copy {
    font-size: 0.9em;
    color: #888;
    margin-top: 20px;
  }
}