/* MAIN - Arriba________________________________*/

#bg{
    background-color: #F7F5F4;
}

.mensaje_top{
    grid-area: m-top;
}

.iframe{
    grid-area: iframe;
    position: relative;
    height: 33vw;
    max-height: 500px;
}

.iframe iframe{
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
    filter: grayscale(100%);
}

.txt_1{
    grid-area: txt_1;
}

.txt_2{
    grid-area: txt_2;
}

.botones img{
    height: 3em;
}

.botones{
    padding-top: 1em;
    display: flex;
    gap: 1em;
}

.red:hover{
    color: #ff5757;
    transition: all 0.3s;
}

.grid_1{
    display: grid;
    grid-template-columns: 3fr 2fr 2fr;
    grid-template-areas:
        'm_top m_top m_top'
        'iframe txt_1 txt_2';
    gap: 2em;
    padding-top: 10em;
    width: 80vw;
    margin: 0 auto;
    margin-bottom: 5em;
    padding-bottom: 4em;
    max-width: 1280px;
}

/* MAIN - Abajo________________________________*/

#mensaje_btn{
    grid-area: msg_btn;
}

.grid_2 form{
    grid-area: form;
}

.grid_2 aside{
    grid-area: aside;
}

.grid_2{
    display: grid;
    grid-template-columns: 3fr 3fr 1fr;
    grid-template-areas:
        'msg_btn form aside';
    gap: 2em;
    width: 80vw;
    margin: 0 auto;
    margin-bottom: 5em;
    max-width: 1280px;
}

/* Los estilos del formulario ________________________________*/

#sendmail{
    display: none;
}

form {
    display: flex;
    flex-direction: column;
    align-items: right;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

form p {
    font-size: 0.8em;
    font-weight: 300;
    font-style: light;
}


input,
textarea {
    padding: 0.5rem;
    border-radius: 0;
    border: .08em solid #000000;
    margin-bottom: 2rem;
    width: 100%;
    font-size: 1rem;
    font-family: n27;
    &:focus {
        outline:0;
    }
}

.final {
    margin-bottom: 1em;
    background-color: #e26565;
}

#mensaje {
    margin-bottom: 1em;
    padding-bottom: 6em;
}

input[type="submit"] {
    width: 10em;
    color: #ff5757;
    padding: 0.5rem 1rem;
    border: .15em solid #ff5757;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    border-radius: 0;
    margin-top: 2em;
    text-align: left;
    font-family: n27;
    font-style: normal;
}

input[type="submit"]:hover {
    background-color: #ff5757;
    border: .15em solid #ff5757;
    color: #ffffff;
}
  

/* Aside ________________________________*/

aside h4{
    text-align: right;
}

aside p{
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 12em;
    text-align: left;
    margin-left: auto;
}


/**
 * Basic CSS Media Query Template
 * TODO: I should probably use Sass...
 * Author: Michael Vieth
 * ------------------------------------------
 *  Responsive Grid Media Queries - 1280, 1024, 768, 480
 *   1280-1024   - desktop (default grid)
 *   1024-768    - tablet landscape
 *   768-480     - tablet 
 *   480-less    - phone landscape & smaller
 * --------------------------------------------
 */

  /*Tablet landcsape*/
 @media all and (min-width: 1024px) and (max-width: 1300px) {
 }
 /*Tablet portrait*/
 @media all and (min-width: 700px) and (max-width: 1024px) {
    .grid_1{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            'm_top m_top'
            'iframe iframe'
            'txt_1 txt_2';
        gap: 2em;
        padding-top: 10em;
        width: 90vw;
        margin: 0 auto;
        margin-bottom: 5em;
        padding-bottom: 4em;
    }
    .iframe{
        grid-area: iframe;
        position: relative;
        height: 90vw;
        margin-bottom: 2em;
    }

    .grid_2{
        display: flex;
        width: 90vw;
        margin: 0 auto;
        margin-bottom: 5em;
    }

    aside{
        display: none;
    }
    #mensaje_btn{
        padding-right: 2em;
    }
 }
 /*Phone*/
 @media all and (max-width: 700px) {
    .grid_1{
        display: block;
        padding-top: 10em;
        width: 90vw;
        margin: 0 auto;
        margin-bottom: 5em;
        max-width: 1280px;
    }
    .iframe{
        grid-area: iframe;
        position: relative;
        height: 100vw;
        margin-bottom: 2em;
    }
    .grid_1 h1{
        margin-bottom: 1em;
    }

    .grid_1 h3{
        margin-bottom: .5em;
    }
    .grid_2{
        display: block;
        width: 90vw;
        margin: 0 auto;
        margin-bottom: 5em;
        padding-bottom: 4em;
        max-width: 1280px;
        background-color: #ffffff;
    }
    .grid_2 h2{
        margin-bottom: 1em;
    }
    aside{
        display: none;
    }
 }
 
 
 /* Portrait */
 @media screen and (orientation:portrait) { /* Portrait styles here */ }
 /* Landscape */
 @media screen and (orientation:landscape) { /* Landscape styles here */ }
 
 
 /* CSS for iPhone, iPad, and Retina Displays */
 
 /* Non-Retina */
 @media screen and (-webkit-max-device-pixel-ratio: 1) {
 }
 
 /* Retina */
 @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
 only screen and (-o-min-device-pixel-ratio: 3/2),
 only screen and (min--moz-device-pixel-ratio: 1.5),
 only screen and (min-device-pixel-ratio: 1.5) {
 }
 
 /* iPhone Portrait */
 @media screen and (max-device-width: 480px) and (orientation:portrait) {
 } 
 
 /* iPhone Landscape */
 @media screen and (max-device-width: 480px) and (orientation:landscape) {
 }
 
 /* iPad Portrait */
 @media screen and (min-device-width: 481px) and (orientation:portrait) {
 }
 
 /* iPad Landscape */
 @media screen and (min-device-width: 481px) and (orientation:landscape) {
 }
 