/* Video hero */

.home {
    background-image: url('../img/background-aera.svg'), url('../img/background-plane.png');
    background-repeat: no-repeat, no-repeat;
    background-position: top 17% center, top 35% center;
    background-attachment: scroll, scroll;
}

#hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100vh;
}
#hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0; 
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}
#hero .box {
    position: relative;
    z-index: 1;
    background: var(--color-primary);
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2.4rem 2.5rem;
    color: white;
    gap: 50px;
}
#hero video {
    width: 100vw;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0; 
    right: 0;
    bottom: 0;
    object-fit: cover;
}

#video-toggle-btn {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 50px;
    height: 50px;
    border-radius: 100px;    
    background: black url('../img/play.svg') no-repeat center center;
    border: none;
    font-size: 0;
    cursor: pointer;
    z-index: 1;
}
#video-toggle-btn[aria-pressed="false"] {
    background: black url('../img/pause.svg') no-repeat center center;
}

#areas {
    background-image: url('../img/bars.svg');
    background-repeat: repeat-y;
    background-position: center;
}
#areas h2 {
    text-align: right;
    text-transform: uppercase;
    background: url('../img/plane.svg') no-repeat right center;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 3.125rem;
    margin-right: -16px;
    margin-bottom: 70px;
    font-size: 1.5rem;
    line-height: 1;
}
#areas h3 {
    text-transform: uppercase;
    padding: 1.5rem 1.5rem 0;
    font-size: 2rem;
    line-height: 1.1;
}
#areas .box {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 2350px;
    margin: 0 auto;
}
#areas .box .item {
    width: 25%;
    max-width: 480px;
}
#areas .box img {
    width: 100%;
}

#quienes-somos {
    background-image: url('../img/bars.svg');
    background-repeat: repeat-y;
    background-position: center;
    background-attachment: scroll;
    padding-top: 100px;
    padding-bottom: 0px;
}
#quienes-somos h2 {
    text-align: right;
    text-transform: uppercase;
    background: url('../img/plane.svg') no-repeat right center;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 3.125rem;
    margin-right: -16px;
    margin-bottom: 70px;
    font-size: 1.5rem;
    line-height: 1;
}
#quienes-somos .box {
    position: relative;
    z-index: 1;
    background: var(--color-primary);
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2.4rem 2.5rem;
    color: white;
    gap: 50px;
}
#quienes-somos .box h3 {
    font-size: 3.75rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: lighter;
}
#quienes-somos .box a svg path {
    fill: var(--color-primary);
}
#quienes-somos .box a:hover svg path {
    fill: white;
}

#contacto {
    max-width: 2350px;
    margin: 0 auto;
    padding-bottom: 100px;
    background-image: url('../img/bars.svg');
    background-repeat: repeat-y;
    background-position: center;
}
#contacto h2 {
    text-align: right;
    text-transform: uppercase;
    background: url('../img/plane.svg') no-repeat right center;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 3.125rem;
    margin-right: -16px;
    margin-bottom: 70px;
    font-size: 1.5rem;
    line-height: 1;
}
#contacto .box {
    background: #f7f7f7;
    padding: 70px 0; 
    display: grid;
    grid-template-columns: minmax(0, 500px) 1fr;
    gap: 70px;
}
#contacto iframe { 
    width: 100%;
    height: 100%;
}
#contacto form { 
    padding-right: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
#contacto form p { 
    margin: 0px;
}
#contacto form .form-group:nth-child(6),
#contacto form .form-group:nth-child(7) { 
    grid-column: 1 / -1;
}
#contacto form label {
    font-size: 1rem;
    margin-bottom: 10px;
    display: block;
}
#contacto form br {
    display: none;
}
#contacto form input[type="text"],
#contacto form input[type="email"],
#contacto form input[type="tel"],
#contacto form textarea {
    border-bottom: 2px solid black;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0px;
    background: none;
    width: 100%;
    padding-bottom: 20px;
    font-size: 1rem;
    font-family: var(--font-primary);
}
#contacto form input[type="text"]:focus,
#contacto form input[type="email"]:focus,
#contacto form input[type="tel"]:focus,
#contacto form textarea:focus {
    border-bottom: 2px solid var(--color-primary);
    outline: 0;
}
#contacto form input[type="submit"] {
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 10rem;
  width: 100%;
  padding-left: 1.875rem;
  padding-right: 1.875rem;
  height:3.5rem;
  color: white;
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  line-height: 1;
  border-radius: 100px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}
#contacto form input[type="submit"]:hover {
  background: var(--color-secondary);
  color: white
}

.parallax {
    background: black;
    margin-top: -370px;
    padding-top: 1000px;
    padding-bottom: 200px;
    position: relative;
    overflow: hidden;
}
.parallax img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    will-change: transform;
}
.parallax .avion {
    z-index: 1;
}
.parallax .cloud-2 {
    z-index: 3;
}
.parallax .cloud-4 {
    z-index: 2;
}

@media (max-width: 1200px) {

    #contacto h2,
    #quienes-somos h2,
    #areas h2 {
        margin-right: 0px;
    }
    #areas .box .item {
        width: 50%;
    }
    #areas h3 {
        padding: 1.5rem 1.5rem 2rem;
    }
    #video-toggle-btn {
        z-index: -1;
    } 

}

@media (max-width: 992px) {

    #contacto .box {
        grid-template-columns: minmax(0, 350px) 1fr;
    }

}

@media (max-width: 768px) { 

    #hero .box,
    #quienes-somos .box,
    #contacto .box {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    #hero .right a,
    #quienes-somos .box a {
        margin: 0 auto;
    }
    #areas .box .item {
        width: 100%;
    }
    #contacto .box {
        padding: 0px;
    }
    #contacto form {
        padding: 0 30px;
        text-align: left;
    }
    #contacto iframe { 
        height: 300px;
    }

}