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

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

main {
  background-color: rgb(210, 210, 210);
  overflow: hidden;
}
header button{
  display: none;
}

.abrir-menu,
.cerrar-menu{
  display: none;
}

/* ---------- Header  ---------- */

.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;
}

/* ---------- Galeria  ---------- */

main h1 {
  margin-top: 50px;
  text-align: center;
}

.fotos {
  width: 100%;
  height: 100%;
  margin: 10px;
  display: flexbox;
}

.fotos img {
  padding: 10px;
}









@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: 20px;
  font-weight: bold;
  opacity: 0;
  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;
}



/* IMAGENES GALERIAS */

.fotos {
  margin: 10px;
  text-align: center;
}

.fotos img {
  padding: 10px;

  width: 70%;
  height: 10%;
}
/* --------------------- */

.acerca-de-mi {
  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;
}
}