/* general */

* {
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
  margin: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 40px;
  /* Ajusta la altura según tu diseño */
  background-color: white;
  z-index: 1000;
}

.main-container {
  margin-top: 40px;
  /* Ajusta el margen según la altura del encabezado */
}

h1 {
  text-align: center;
  color: white;
  line-height: 100px;
  margin: 0;
}

article {
  padding: 10px;
  margin: 2em;
  background: white;
  flex: 200px;
}


/*---------- Header ------------------------- */


.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  font-family: Lato, sans-serif;
  padding: 0.8em;
  color: #fff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
  position: fixed;
  z-index: 1;
  width: 100%;
  top: 0%;
}

.nav-logo {
  text-decoration: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  font-weight: bold;
  width: 70%;
  height: 100%;
  padding-left: 1em;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links a {
  color: #707070;
  text-decoration: none;
  padding: 10px 20px;
}

.nav-links a:hover {
  color: #00378B;
}



/*---------- porfolio------------------------- */

.porfolio {
  width: 100%;
  background-color: #FDF6EE;
  margin-top: 1%;
  padding-bottom: 0%;
}

.porfolio h2 {
  margin-left: 2%;
  margin-right: 2%;
  padding-top: 4%;
  font-weight: 600;
  font-size: 1em;
  color: #707070;
}

.porfolio h3 {
  margin-left: 2%;
  margin-right: 2%;
  padding-top: 4%;
  font-weight: 300;
  font-size: 0.9em;
  color: #707070;
}

.porfolio h4 {
  margin-left: 2%;
  margin-right: 2%;
  font-weight: 300;
  font-style: italic;
  font-size: 0.9em;
  color: #707070;
}

.porfolio h5 {
  margin-left: 2%;
  margin-right: 2%;
  font-weight: 500;
  font-size: 0.8em;
  padding-top: 0.5%;
  color: #707070;
}

.porfolio h6 {
  margin-left: 2%;
  margin-right: 2%;
  font-weight: 300;
  font-size: 0.9em;
  color: #707070;
}


.porfolio h1 {
  font-family: 'Cormorant', serif;
  color: white;
  font-weight: 300 italic;
  font-size: 7em;
  padding-right: 40px;
  display: inline-flex;
  float: right;
  padding-top: 4%;
  z-index: 2;
}

/*-------- Estilos para container -------------------*/
.container {
  flex: 3;
}


/* Estilos para la caja de imágenes */
.container_work {
  margin-top: 3%;
  margin-bottom: 3%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  /* Espacio entre las imágenes */
}

.image {
  width: calc(35% - 20px);
  /* Ancho de cada imagen (el 20px es el espacio entre las imágenes) */
  margin-bottom: 20px;
  /* Espacio entre filas de imágenes */
  text-align: center;
  /* Centrar contenido horizontalmente */
}

/* Estilos para imágenes dentro de la caja */
.image img {
  max-width: 100%;
  /* Ajustar el tamaño de la imagen al contenedor */
  height: auto;
  /* Evitar deformación */
}

/*------ Fin estilos para container -----------------*/
/*-------- Estilos para parrilla -------------------*/

.parrilla figure {
  margin: 1.5em;
}

.parrilla img {
  width: 100%;
  height: auto;
}

.parrilla figcaption {
  font-size: 20px;
  font-weight: bold;
}

.parrilla {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: auto;
}






/*---------- galeria de fotos ------------------------- */

#miparriIndex {
  font-size: 14px;
  margin-top: 40px;
}

#miparriIndex a {
  color: #707070;
  margin-left: 2%;
}

#miparriIndex a:hover {
  color: #00378B;
}


.container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  z-index: 0;
}

.container .card {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 15px;
  overflow: hidden;
}

/* watch out for this one  */
.container .card .imgBx,
.container .card .contentBx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.container .card .imgBx img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container .card .contentBx::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
  transform-origin: right;

}

.container .card:hover .contentBx::before {
  transform: scaleX(1);
  transition: transform 0.5s ease-in-out;
  transform-origin: left;

}

.container .card .contentBx {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .card .contentBx .content {
  position: relative;
  padding: 30px;
  z-index: 1;
  transition: 0.5s;
  transform: translateX(-300px);
  transition-delay: 0s;

}

.container .card:hover .contentBx .content {
  transform: translateX(0px);
  transition-delay: 0.5s;
}

.container .card .contentBx .content h3 {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #41A62A;
  margin: 0%;
}

.container .card .contentBx .content p {
  font-size: 0.9em;
  line-height: 1.4em;
  font-weight: 400;
  color: #00378B;
}

.container .card .contentBx .content a {
  font-size: 0.9em;
  line-height: 1.4em;
  font-weight: 600;
  color: #009ee0;
}



/*---------- personal ------------------------- */

.personal {
  width: 100%;
  background-color: #BACDDB;
  margin-top: 3%;
  padding-bottom: 5%;
  padding-top: 5%;
}

.personal h1 {
  color: #DCE6ED;
  padding-top: 2%;
}



/* Slideshow container */
.slideshow-container {
  padding-top: 8rem;
  width: max-content;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 30%;
  width: auto;
  transition: 0.6s ease;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  opacity: 30%;
}

/* Position the "next button" to the right */
.next {
  right: -12em;

}

.prev {
  left: -12em;

}


/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  opacity: 100%;
}



/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}



/*---------- Pie------------------------- */

.pie {
  width: 100%;
  background-color: #CFE5C0;
  padding-top: 5%;
  padding-bottom: 5%;
}

.pie a {
  margin-left: 2%;
}

.pie img {
  padding-top: 2%;
  opacity: 50%;
}

.pie img:hover {
  opacity: 100%;
}

.pie h4 {
  margin-left: 2%;
  margin-right: 2%;
  font-weight: 300;
  font-style: italic;
  font-size: 0.9em;
  color: #707070;
}

.pie h5 {
  margin-left: 2%;
  margin-right: 2%;
  font-weight: 300;
  font-size: 0.9em;
  color: #707070;
}

.pie h3 {
  margin-left: 2%;
  margin-right: 2%;
  padding-top: 4%;
  font-weight: 300;
  font-size: 0.9em;
  color: #707070;
}

.pie h1 {
  color: #e6f1e1;
  padding-top: 2%;
}

/*---------- fin ------------------------- */

.fin {
  width: 100%;
  background-color: #ebebeb;
  margin-top: 0%;
  padding-bottom: 25%;
}

.polka {
  background:
    radial-gradient(#b4b5b2 2px, transparent 3px),
    radial-gradient(#b4b5b2 2px, transparent 3px),
    #ebebeb;
  background-position: 0 0, 30px 30px;
  background-size: 60px 60px;
}

/*---------- responsable ------------------------- */

@media screen and (max-width: 700px) {

  .parrilla {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .personal {
    display: none;
  }

  .porfolio h1 {
    float: none;
    padding-top: 10%;
    padding-left: 20px;
  }

  .porfolio h2 {
    padding-top: 10%;
    padding-left: 20px;
  }

  .porfolio h6 {
    padding-bottom: 5%;
    padding-left: 20px;
  }

  .porfolio h3 {
    padding-left: 20px;
  }

  .porfolio h4 {
    padding-left: 20px;
  }

  .porfolio h5 {
    padding-left: 20px;
  }

  .porfolio a {
    padding-left: 20px;
  }


  .container {
    justify-content: flow-root;
  }

  .container h3 {
    padding-left: 0px;
  }

  .container a {
    padding-left: 0px;
  }


  .container_work {
    display: flex;
    flex-direction: column;
    /* Cambiar de dirección de fila a columna */
    align-items: center;
    /* Centrar elementos horizontalmente */
  }

  .image {
    width: 80%;
    /* Ancho del 80% del contenedor padre */
    margin-bottom: 20px;
  }


  .nav-links {
    display: none;
  }

  .navbar {
    display: flex;
    position: absolute;
    width: 100%;
    top: 0%;
    z-index: 1;
  }
}