*:root {
    --nnegro: #2d2926;
    --ngris: #54575a;
    --ncrema: #d6caa0;
    --namarillo: #fbe547;
    --black: black;
    --white: white;
    --idfont: 'Montserrat', roboto;
  }
  
  *{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: var(--idfont);
  }
  
  body {
    background-color: var(--nnegro);
    width: 100vw;
    height: 200vh;
  }
  
  #main {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    /* justify-content: center; */
    flex-direction: column;
    align-items: center;
    padding-bottom: 65px;
  }
  
  .slogan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 35%;
    height: 90vh;
    padding-top: 7vh;
    margin-bottom: -4vh;
  }
  
  #gp {
    text-align: center;
    font-weight: bold;
  }
  
  .slogan p {
    margin-left: 2rem;
    line-height: 1.2rem;
    letter-spacing: 1rem;
    color: var(--namarillo);
    text-transform: uppercase;
    font-size: 30px;
    text-align: justify;
    width: 100%;
    max-width: 100%;
  }

  .slogan p::after {
    content: "";
    display: inline-block;
    width: 100%;
  }
  
  #logo {
    width: 100%;
    margin-bottom: 7vh;
  }
  
  #main a{
    opacity: 1;
    outline: 0;
    color: var(--nnegro);
    line-height: 50px;
    position: relative;
    text-align: center;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 20px;
    &:hover{
      
      &:after{
        opacity: 1;
        transform: translateY(0) rotateX(0);
      }
      
      &:before{
        opacity: 0;
        transform: translateY(50%) rotateX(90deg);
      }
    }
    
    &:after{
      font-weight: bold;
      letter-spacing: 5px;
      font-size: 1.2rem;
      top: 0;
      left: 0;
      opacity: 0;
      width: 100%;
      color: var(--namarillo);
      display: block;
      transition: 0.5s;
      position: absolute;
      background: var(--nnegro);;
      content: attr(data-back);
      transform: translateY(-50%) rotateX(90deg);
      border-radius: 20px;
    }
    
    &:before{
      font-weight: bold;
      top: 0;
      left: 0;
      opacity: 1;
      color: var(--nnegro);;
      display: block;
      padding: 0 80px;
      transition: 0.5s;
      position: relative;
      background: var(--namarillo);
      content: attr(data-front);
      transform: translateY(0) rotateX(0);
      border-radius: 20px;
    }
  }
  
  
  .msg {
    text-align: center;
    font-weight: bold;
    font-size: 30px;
    color: var(--namarillo);
    margin-bottom: 5vh;
  }
  
  #motor {
    margin-top: -20px;
    max-width: 30vh;
  }
  
  .loader {
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side,var(--namarillo) 90%,#0000);
    background: 
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: loading 1s infinite linear;
  }
  
  .gallery {
    position: absolute;
    opacity: 10%;
    padding: 10px;
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(3, 32vh);
    height: 100%;
    width:100%;
    max-height: 100vh;
    max-width: 100%;
  }
  
  .gallery .element figure{
    width: 100%;
    height: 100%;
  }
  
  .gallery .element img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #one {
    grid-column: 1/2;
    grid-row: 1/3;
  }
  
  
  #two {
    grid-column: 1/3;
    grid-row: 3/4;
  }
  
  
  #three {
    grid-column: 2/4;
    grid-row: 1/2;
  }
  
  #four {
    grid-column: 2/3;
    grid-row: 2/3;
  }
  
  #five {
    grid-column: 3/4;
    grid-row: 2/4;
  }
  
  #six {
    grid-column: 4/5;
    grid-row: 1/3;
  }
  
  #seven {
    grid-column: 4/5;
    grid-row: 3/4;
  }
  
  
  #info {
    top: 100vh;
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: top;
    flex-direction: column;
    align-items:center;
    text-align: center;
  }
  
  .parrafada {
    color: var(--namarillo);
    text-align: justify;
    padding: 10px;
    text-indent: 1rem;
  }
  
  h1 {
    color:var(--namarillo);
    font-size: 50px;
  }
  
  
  .banner {
    z-index: 1;
    margin-top: 3vh;
    height: 20vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--namarillo);
  }
  
  .banner img {
    width: 110px;
    height: 80px;
    /* margin-left: 20%; */
  }
  
  .phrase {
    margin-top: 1vh;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-size: 1.2rem;
  }
  
  #secondL{
    font-weight: bold;
  }
  
  .content {
    /* background-color: blue; */
    margin-top: 4vh;
    display: flex;
    justify-content:center;
    flex-direction: row;
    align-items:center;
    height: 70%;
    width: 96%;
  }
  
  #flayer {
    margin-left: 2%;
    height: 100%;
    width: 35%;
    object-fit: cover;
  }
  
  #flayer2 {
    height: 0;
    width: 0;
  }

  .text {
    margin-bottom: 10px;
    padding: 0 40px 0 4%;
    column-count: 2;
    column-gap: 2.5em;
    height: 100%;
    width: 70%;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.8;
    /* Ensure columns break smoothly */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }
  
  .textp {
    /* background-color: blue; */
    /* margin-top:10vh; */
    margin-bottom: 3vh;
    text-align: justify;
    color: var(--namarillo);
    line-height: 1.9rem;
    font-size: 1.08rem;
  }
  
  .sangria {
    padding-left: 2rem;
  }
  
  .butt {
    display: flex;
    justify-content: end;
    align-items: start;
    flex-direction: row;
    width: 100%;
    /* background-color: red; */
  }
  
  .gallery {
    z-index: -1;
    position: absolute;
    opacity: 10%;
    padding: 10px;
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(3, 32vh);
    height: 100%;
    width:100%;
    max-height: 100vh;
    max-width: 100%;
  }
  
  .gallery .element figure{
    width: 100%;
    height: 100%;
  }
  
  .gallery .element img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #abajo .element img {
    width:80%;
  }
  
  .button {
    margin-bottom: 20px;
    /* margin-right: 40px; */
    cursor: pointer;
    position: relative;
    padding: 10px 24px;
    font-size: 18px;
    color: var(--namarillo);
    border: 2px solid var(--namarillo);
    border-radius: 34px;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
  }
  
  .button::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: inherit;
    scale: 0;
    z-index: -1;
    background-color: var(--namarillo);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  }
  
  .button:hover::before {
    scale: 3;
  }
  
  .button:hover {
    color: var(--nnegro);
    scale: 1.1;
    box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
  }
  
  .button:active {
    scale: 1;
  }
  
  
  
  
  @keyframes loading {
      33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
      50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
      66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
  }
  
  @media screen and (max-height: 800px) {
    .slogan {
      margin-top: -5vh;
      margin-bottom: 3vh;
    }
    #logo{
      max-width: 80%;
    }
    .msg {
      font-size: 20px;
    }
  }
  
  @media screen and (max-height: 600px) {
    .slogan {
      width: 80%;
    }
    #logo{
      width: 100%;
      margin-bottom: 5vh;
      margin-top: 5vh;
    }
    .msg {
      font-size: 20px;
    }
  }
  
  @media screen and (max-height: 500px) {
    .slogan {
      margin-top: -5vh;
      margin-bottom: 2vh;
    }
    #logo{
      width: 40%;
      margin-bottom: 5vh;
      margin-top: 3vh;
    }
    .msg {
      font-size: 15px;
    }
  }
  
    @media screen and (max-width: 1300px) {
      #main a{
        margin-bottom: -10px;
      }
      #main {
        width: 100vw;
        height: 100vh;
      }
      .slogan {
        width: 45%;
      }
      .msg {
        font-size: 17px;
        margin-bottom: 1em;
      }
      
      #two {
        grid-column: 1/2;
        grid-row: 3/4;
      }
  
      .gallery {
        position: absolute;
        opacity: 10%;
        padding: 10px;
        margin-left: -5px;
        display: grid;
        gap: 5px;
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: repeat(3, 32vh);
        height: 100%;
        width:100%;
        max-height: 100vh;
        max-width: 100%;
      }
  
    }
  
    @media screen and (max-width: 1000px) {
      #main {
        width: 100vw;
        height: 100vh;
      }
      .slogan p{
        width: 85%;
      }
      .slogan {
        width: 70%;
      }
      .msg {
        font-size: 17px;
        margin-bottom: 1em;
      }
    }
  
  
  /* Media Queries para adaptabilidad */
  @media (max-width: 1550px) {
    #flayer {
        margin-left: 0;
        width: 30%;
    }
    .text {
        column-gap: 30px;
        width: 70%;
    }
    .textp {
        font-size: 1.06rem;
    }
  }

  @media (max-width: 1350px) {
    .banner {
      height: 17vh;
    }
    
    .banner img {
      width: 96px;
      height: 70px;
      /* margin-left: 20%; */
    }

    .phrase {
      font-size: 1.1rem;
    }
    #flayer {
      margin-left: 0;
      width: 30%;
    }
    .text {
      padding-right: 0;
      margin-right: 20px;
      /* background-color: red; */
      display: flex;
      justify-content: start;
      flex-direction: column;
      flex-basis: 100%;
      flex: 1;
      align-items: start;
      column-count: 1;
      width: 70%;
      break-inside: avoid;
      -webkit-column-break-inside: avoid;
    }
    .textp {
      margin-bottom: 1vh;
      font-size: 1rem;
    }
    .button {
      margin-top: -1vh;
      font-size: 15px;
    }
  }
  
  @media (max-width: 1250px) {
    
    .banner {
      height: 18vh;
    }

    .banner img {
      width: 80px;
      height: 60px;
      /* margin-left: 20%; */
    }

    .phrase {
      font-size: 1.05rem;
    }

    .content {
      display: block;
      height: 100%;
    }
    #flayer{
      height: 0;
      width: 0;
    }
    #flayer2 {
      float: left;
      margin-right: 20px;
      width: 50vh;
      height: 60vh;
    }
    .text {
      display:block;
      /* background-color: red; */
      column-count: 1;
      padding: 0;
      padding-right: 20px;
      margin: 0 15px 0 15px;
      width: 100%;
    }
    .button {
      margin-top: 10px;
    }
    .butt {
      /* background-color: blue; */
      height: 10vh;
    }
  }

  @media (max-width: 1159px) {
    
    .banner {
      /* margin: auto; */
      padding-top: 10px;
      padding-bottom: 10px;
    }
    
    .content {
      margin-top: 2vh;

    }

    .phrase {
      font-size: 0.99rem;
    }
  }

  @media (max-width: 930px) {
    #main a{
      margin-bottom: -20px;
    }
    .banner {
      height: 18vh;
    }
    #flayer{
      height: 0;
      width: 0;
    }
    #flayer2 {
      float: left;
      margin-right: 0;
      width: 40vh;
      height: 47vh;
      margin-bottom: 2vh;
    }
    .text {
      display:flex;
      flex-direction: column;
      align-items: center;
      /* background-color: red; */
      column-count: 2;
      margin: 0;
      padding: 0 15px 0 15px;
      width: 100%;
    }

    .textp {
      column-count: 1;
      column-gap: 6vh;
    }

    .butt {
      justify-content: center;
      padding-bottom: 5vh;
    }

    .button {
      margin: 0;
      margin-top: 2vh;
    }
  }
  

  @media (max-width: 650px) {    
    
    .banner img {
      width: 68px;
      height: 50px;
      /* margin-left: 20%; */
    }

    .phrase {
      font-size: 1rem;
    }
    .textp {
      column-count: 1;
    }
  }
  