/* ----------------------------------- RESET- ESTILOS GENERALES ----------------------------------------*/

* {
  /* El asterisco es el selector universal, es decir, afecta a todos los elementos */
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  line-height: 1.6em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}
#menunav2 a:focus, #menunav2 a:hover {
  color: #fff;
}

/* VARIABLES EN CSS */
:root {
  --color1: #46acb7;
  --color2: #c5e6f3;
  --color3: rgb(71, 154, 192);
  --color4: #fff;
  --color5: #000;
  --color6: #9c191a;
}

#logo {
  margin: 0;
  padding: 0;
  width: 35vw;
  position: absolute;
  margin: 12% 30%;
}
#logotipo {
  width: 100%;
}
#logo_int {
  margin: 0;
  padding: 0;
  width: 20vw;
  margin: 10px;
  position: absolute;
  z-index: 9999;
}
#logotipo_int {
  width: 100%;
}
a {
  color: var(--color4);
}

main p{
    display: grid;
    text-align: center;
    font-size: 20px;
    position: relative;
    color: var(--color4);
    padding: 30px;
    margin: 10px;
    font-weight: bold;
    

}

 p::before
{
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: var(--color1);
  opacity: .7;
  border-radius: 25px;
}

/* ---------------------------------------- NAV ------------------------------------------------*/

nav#menunav {
  margin: 0 auto;
  background-color: transparent;
  position: absolute;
  top: 0;
  right: 0;
  float: right;
  z-index: 100;
}

nav#menunav ul {
  list-style-type: none; /* Bullets de lista*/
  margin: 0;
  padding: 0;
  float: left;
}

nav#menunav li {
  float: left;
  position: relative; /* El position absolut necesita estar dentro de un elemento que tenga position relative*/
}

nav#menunav li a {
  display: block;
  color: var(--color4);
  text-align: center;
  padding: 10px;
  text-decoration: none;
}
nav#menunav li:hover {
  background-color: var(--color6);
}

/* *************** SUBMENU ************* */

nav#menunav .submenu {
  display: none;
  position: absolute;
  top: 38px;
  background: transparent;
  color: var(--color4);
  padding: 0;
  width: 110px;
  text-align: center;
}

nav#menunav li .submenu li {
  float: left;
  color: var(--color4);
  width: 100%;
  margin: 2% 0%;
}

nav#menunav li .submenu li a {
  color: var(--color4);
}

nav#menunav .submenu li:hover {
  color: var(--color4);
  cursor: pointer;
}

nav#menunav li:hover .submenu {
  display: block;
  cursor: pointer;
}

/* ----------------------------- LOADER ----------------------------*/
.preloader {
  /* width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0; */
  background-color: var(--color5);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
}
#loader {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color1);
  -webkit-animation: spin 2.5s linear infinite;
  animation: spin 2.5s linear infinite;
}

#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color2);
  -webkit-animation: spin 3s linear infinite;
  animation: spin 3s linear infinite;
}
#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color3);
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.5s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* ---------------------------------------- MAIN ------------------------------------------------*/
section#seccion1 {
  height: 100vh;
}

/* ------------------------ HEADER -----------------------*/

header h2 {
  position: absolute;
  font-size: 15vmin;
  color: var(--color4);
  margin: 30% 0;
  width: 100%;
  text-align: center;
}

.yo {
  height: 100vh;
  width: 100%;
  position: absolute;
}

.yo .imagen-fondo {
  opacity: 0.3;
  background-size: cover;
  width: 100%;
  margin: 0;
  
}

/* ------------------------ MENU -----------------------*/
.containermenu {
  font-size: 2vmin;
  color: rgb(199, 199, 199);
}
/* -------------------------------------------------  SECCION 2 -----------------------------------------------------*/
/* ------------------------ FONDO Y FRASE -----------------------*/
section#seccion2{
  background-image: url("../imgs/MG_4524.JPG");
   background-size: cover;
   background-attachment: fixed;
   background-position: 40%;
   background-blend-mode: multiply;
   height: 80vh;
   background-color: var(--color1);
   opacity: 0.8;
   padding: 0;
}

section#seccion2 h2 {
  font-size: 6vmin;
  text-align: center;
  padding: 2.5em;
  line-height: 1.2em;
  mix-blend-mode: screen;
  color: var(--color2);
  padding-top: 120px;
}

section#seccion2 h5 {
  font-size: 5vmin;
  text-align: right;
  padding: 0.5em;
  margin: 0 1.5em;
  color: var(--color6);
  mix-blend-mode: screen;
}

/* ********************* VIDEO ANIMACIÓN ************************** */
#seccion3 {
  position: relative;
  line-height: 0;
}

#myVideo {
  object-fit: cover;
  width: 100%;
  margin: 0 auto;
  
}

#myVideo2 {
  width: 95%;
  margin: 0 auto;

}
  .galeria-animacion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    grid-template-areas:
    " a a g g c c" 
    " l l b b c c" 
    " h h n n n n " 
    " o o o o d d" 
    " p p f f d d"
    " j j e e e e "
    " m m k k i i ";
    grid-gap: 10px;
    margin: 0 auto;
    object-fit: cover;

}


.video1 {
  grid-area: a;
}

.video2 {
  grid-area: b;
}

.video3 {
  grid-area: c;
}

.video4 {
  grid-area: d;
}

.video5 {
  grid-area: e;
}

.video6 {
  grid-area: f;
}

.video7 {
  grid-area: g;
}

.video8 {
  grid-area: h;
}

.video9 {
  grid-area: i;
}

.video10 {
  grid-area: j;
}

.video11 {
  grid-area: k;
}

.video12 {
  grid-area: l;
}

.video13 {
  grid-area: m;
}

.video14 {
  grid-area: n;
}

.video15 {
  grid-area: o;
}
.video16 {
  grid-area: p;
}

/* ------------------  GALLERY FOTOGRAFÍAS ------------------------ */

.galeria {
  background-color: var(--color5);
  
}
.masonry {
  -webkit-column-gap: 1.5vw;
  -moz-column-gap: 1.5vw;
  column-gap: 1.5vw;
  margin: 1vw 5%;
}

.fotografia {
  display: inline-block;
  margin: 10px;
  width: 100%;
  -webkit-transition: 1s ease all;
  transition: 1s ease all;
}

.fotografia2 {
  display: inline-block;
  margin: 10px;
  width: 100%;
  -webkit-transition: 1s ease all;
  transition: 1s ease all;
  transform: rotate(180º);
}

.fotografia img,
.fotografia2 img {
  width: 100%;
  border-radius: 20px;
}

/* #rotar {
  margin: 120px 100px 150px 10px;
  transform: rotate(90deg);
  height: 22vmin;
  width: 50vmin;
}  */

/* #rotar2 {
    margin: 20px 0 45px 0;
    transform: rotate(-90deg);
    height: 54vmin;
    width: 61vmin;
} */

/* ------------------  HOVER EFFECT IMAGENES ------------------------ */
/* Zoom In #1 */
.fotografia img {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.fotografia img:hover {
  -webkit-transform: scale(1.3);
  transform: scale(1.08);
}

/* ------------------  GRAFICOS ------------------------ */
.graficos header {
  height: 100vh;
}
.pen {
  position: relative;
}

/* ------------------  FOTOGRAFIAS ------------------------ */
.galeria header {
  height: 100vh;
}
.pen {
  position: relative;
}
/* ------------------  ANIMACION ------------------------ */
.animacion header {
  height: 100vh;
}
/* ------------------  VIDEO ------------------------ */
.video header {
  height: 100vh;
}
/* ------------------  SOBRE MI ------------------------ */
.sobremi header {
  height: 100vh;
}
.sobremi main {
  color: var(--color2);
  padding: 20px 10%;
  border-radius: 20px;
}

/* ---------------------------------------- FOOTER ---------------------------------------------*/

nav#menunav2 {
  background-color: var(--color5);
  padding: 60px;
  color: var(--color4);
  font-size: 10px;
}

nav#menunav2 ul {
  list-style-type: none; /* Bullets de lista*/
  text-decoration: none;
  display: flex;
}

/* Redes sociales */
#redes-sociales {
  list-style-type: none;
}
nav#menunav2 .copy {
  font-size: 10px;
  text-align: center;
}

/* AGREGAR ESPACIO, TAMAÑO, ETC. */
ul.footer-list,
.footer-list li,
ul#redes-sociales,
#redes-sociales li {
  float: left;
  padding: 3px;
  flex: 1;
  width: 100%;
  text-align: center;
}
/* ******************************** GENERAL MEDIA QUARIES  STYLES *********************************** */
@media only screen and (max-width: 400px) {
  header h2 {
    margin: 70% 0;
  }
}
@media only screen and (max-width: 600px) {
  header h2 {
    margin: 50% 0;
  }
  nav#menunav2 {
    background-color: var(--color5);
    padding: 60px 0;
  }


}
/* ******************************** MASONRY MEDIA QUARIES  STYLES *********************************** */
/* Small cellphones */
@media only screen and (min-width: 10px) and (max-width: 320px) {
  .masonry {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
    margin: 1vw 5%;
  }

  .item {
    margin: 0 0 3vw 0;
  }

  section#seccion2{
    background-image: url("../imgs/MG_4524.JPG");
     background-size: cover;
     background-attachment: fixed;
     background-position: 20%;
     height: 400px;
  }

  section#seccion1 {
    height: 50vh;
  }

}

/* Medium cellphones */
@media only screen and (min-width: 321px) and (max-width: 768px) {
  .masonry {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    margin: 1vw 5%;
    column-gap: 6vw;
  }

  section#seccion2{
    background-image: url("../imgs/MG_4524.JPG");
     background-size: cover;
     background-attachment: fixed;
     background-position: 20%;
     height: 620px;
  }

  section#seccion1 {
    height: 60vh;
  }
}

/* Large cellphones and tablets */
@media only screen and (min-width: 769px) and (max-width: 1200px) {
  .masonry {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    margin: 1vw 5%;
  }

}

/* X Large desktop */
@media only screen and (min-width: 1200px) and (max-width: 1919px) {
  .masonry {
    -webkit-column-count: 4;
    -moz-column-count: 4;
    column-count: 4;
    margin: 1vw 5%;
  }
}
/* XX Large desktop */
@media only screen and (min-width: 1920px) {
  .masonry {
    -webkit-column-count: 5;
    -moz-column-count: 5;
    column-count: 5;
    margin: 1vw 5%;
  }
}
