/*Grid Template Área Layout Móvil*/
.grid-container {
    display: grid;
    grid-template-areas: 
    "nav"
    "ppal"
    "pie";
    grid-template-rows: 1fr 16fr 1fr;
    max-height: 100vh;
    max-width: 100vw;
}
/*Componentes transversales*/
body {
    margin: 0;
}
h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 47.78px;
}
h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 39.81px;
}
h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 33.18px;
} 
h4 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 27.65px;
}
h5 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 23.04px;
}
h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 19.2px;
}
p {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
}
small {
    font-family: "Montserrat", sans-serif;
    font-size: 13.3px;
}
ul {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    padding-left: 4px;
    list-style-position: inside;
}
a {
    font-family: "Montserrat", sans-serif;
}
/*Menú de Navegación*/
.nav-bar {
    grid-area: nav;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: rgba(40, 78, 147,0.3);
    border-bottom: 2px solid #D9E0E3;
    border-radius: 0 0 50px 50px;
}
.nav-bar img {
    padding: 8px;
}
.nav-bar button {
    background-color: transparent;
    font-size: small;
    text-decoration: none;
    margin:0;
    padding: 8px;
    color: #D9E0E3;
    border-color: transparent;
}
body {
    background-image: url(fondo-mobile.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}
aside button:hover {
    background-color: transparent;
    border-inline-color: 2px solid #D9E0E3;
    color: #D9E0E3;
}
aside a{
    border-width: 2px;
    border-color: transparent;
    border-style: outset;
}
aside a:hover {
    background-color: rgba(40, 78, 147,0.5);
    border-bottom: 2px solid #D9E0E3;
}
/*Dropdown*/
.dropdown {
    float: left;
    overflow: hidden;
}
.dropbtn {
    background-color: transparent;
    text-align: end;
    padding: 8px;
    width: 200px;
    border: none;
    outline: none;
    margin: 0;
    font-family: inherit;
    cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus{
    background-color:rgba(242, 138, 0, 0.5);
    padding: 8px;
}
.dropdown-content {
    display: none;
    position: absolute;
    text-align: center;
    background-color: #D9E0E3;
    width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(56,85,98,0.2);
    border-radius: 0 0 50px 50px;
    border: 2px solid #F28A00;
    z-index: 1;
}
.dropdown-content img {
    padding: 0;
}
.dropdown-content a {
    float: none;
    color: #284E93;
    border-bottom: 1px solid #F28A00;
    font-weight: bold;
    padding: 8px 16px;
    text-decoration: none;
    text-align: left;
    display: block;
}
.dropdown-content a:hover {
    background-color:  rgba(251,220,179,.5);
    border-left: 4px solid #F28A00;
}
.dropdown:hover .dropdown-content {
    display: block;
}
/*Botonera*/
.botonera {
    margin: 0;
    padding:8px 16px; 
    background-color: rgba(40, 78, 147,0.3);
    border-bottom: 2px solid #D9E0E3;
    border-radius: 0 0 50px 50px;
}
.botonera button {
    background-color: transparent;
    font-size: small;
    text-decoration: none;
    margin:0;
    padding: 0 16px;
    height: 24px;
    border-radius: 10px;
    color: #D9E0E3;
    cursor: pointer;
}
.botonera button:hover {
    background-color: transparent;
    border-bottom: 2px solid #D9E0E3;
    color: #D9E0E3;
}
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(56,85,98,0.3); /* Black w/ opacity */
}
  /* Modal Content/Box */
.modal-content {
    background-image: url(modall-mobile.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
    margin: 26% auto;
    padding:8px;
    width: 320px;
    height: 550px;
    border-radius: 20px;
    overflow-x: hidden;
    overflow-y: scroll;
}
  /* The Close Button */
.close {
    display: grid;
    align-content: center;
    color: #F28A00;
    border: 2px solid #F28A00;
    border-radius: 50px;
    padding: 2px;
    height: 16px;
    position: fixed;
    right: 24px;
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
}
.close:hover,
.close:focus {
    color: #D9E0E3;
    text-decoration: none;
    border: 2px solid #D9E0E3;
    cursor: pointer;
}
/*Sección Principal*/
.principal {
    grid-area: ppal;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
}
.rowdirection {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.columndirection {
    flex-direction: column;
    justify-content: center;
}
.textocentrado {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.textocentrado p {
    margin: 0;
}
.card {
    display: flex;
    flex-direction: column;
    padding: 8px;
}
.card h6 {
    margin: 0;
    width: 250px;
    padding: 8px;
    color: #385562;
    border: 1px solid #F28A00;
    border-radius: 10px 10px 0 0;
}
.cardbottom {
    display: flex;
    flex-direction: row;
    text-align: justify;
    margin: 0;
    width: 250px;
    padding: 8px;
    color: #385562;
    border: 1px solid #F28A00;
    border-radius: 0 0 10px 10px;
}
.formatocardvideo {
    display: flex;
    flex-direction: column;
    padding: 8px;
}
.formatocardvideo h6 {
    margin: 4px 0 0 0;
    width: 250px;
    padding: 8px;
    color: #385562;
    border: 1px solid #F28A00;
    border-radius: 10px 10px 0 0;
}
.formatocardvideo video {
    margin: 0;
    max-width: 250px;
    height: auto;
    padding: 8px;
    border-left: 1px solid #F28A00;
    border-right: 1px solid #F28A00;
}
.formatocardvideo img {
    display: flex;
    justify-content: center;
    margin: 0;
    max-width: 250px;
    height: auto;
    padding: 0;
}
.controls {
    margin: 0;
    display: flex;
    justify-content: space-around;
    max-width: 250px;
    height: auto;
    padding: 8px;
    border-left: 1px solid #F28A00;
    border-right: 1px solid #F28A00;
}
.formatocardvideo button {
    color: #284E93;
    border: 1px solid #284E93;
    background-color: #D9E0E3;
    border-radius: 10px;
    padding: 4px 8px;
    cursor: pointer;
}
.formatocardvideo button:hover {
    background-color: #284E93;
    color: #D9E0E3;
    border: 1px solid #D9E0E3;
}
.formatocardvideobottom {
    display: flex;
    flex-direction: column;
    text-align: justify;
    margin: 0;
    width: 250px;
    padding: 8px;
    color: #385562;
    border: 1px solid #F28A00;
    border-radius: 0 0 10px 10px;
}
.formatocardvideobottom ul {
    padding-left: 8px;
    color: #385562;
}
/*Pie de página*/
.foot {
    grid-area: pie;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;        
}
.foot h6 {
    margin: 0;
    background-color: rgba(40, 78, 147,0.3);
    border-radius: 50px 50px  0 0;
    border-top: 2px solid #D9E0E3;
    color: #D9E0E3;
    padding: 16px 24px;
}
.mobile {
    display: flex;
}
.desktop {
    display: none;
}

/*Media queries*/
/*Grid Template Área Layout sobre 576px*/
@media (min-width: 576px) {
    .grid-container{
        display: grid;
        grid-template-rows: 1fr 12fr 1fr;
        grid-template-columns: 8fr;
        grid-template-areas:
        "nav"
        "ppal"
        "pie";
        max-height: 100vh;
        max-width: 100vw;
    }
    body {
        background-image: url(fondo-desktop.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: bottom;
    }
    .nav-bar {
        grid-area: nav;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        border-color: transparent;
    }
    .nav-bar img {
        margin: 0;
    }
    .dropdown {
        display: none;
    }
    .dropbtn {
        display: none;
    }
    .botonera {
        border-bottom: 2px solid #D9E0E3;
        border-radius:  0 0 50px 50px;
        background-color: rgba(40, 78, 147,0.3);        
        padding-top: 16px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .modal-content {
        background-image: url(modal-desktop.png);
        background-repeat: no-repeat;
        background-position: right;
        background-size: cover;
        margin: 5% auto;
        padding:8px;
        width: 600px;
        height: 570px;
        scrollbar-color: transparent;
        scroll-margin: 24px;
    }
    ::-webkit-scrollbar {
        width: 6px;
        height: 24px;
    }
    ::-webkit-scrollbar-thumb {
        background-color: rgba(40, 78, 147,0.5);
    }
    ::-webkit-scrollbar-track {
        background-color: transparent
    }
    .close {
        display: grid;
        align-content: center;
        padding: 2px;
        height: 16px;
        position: fixed;
        right:48px;
    }
    .principal {
        grid-area: ppal;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .card h6 {
        width: 540px;
    }
    .card div {
        padding: 0;
        padding-left: 16px;
    }
    .cardcontenido {
        width: 270px;
        padding: 8px;
    }
    .card img {
        min-width: 270px;
        max-width: 270px;
        height: auto;
        margin: 0;
        padding: 0;
    }
    .cardbottom {
        width: 540px;
        align-content: end;
    }
    .formatocardvideo h6 {
        width: 540px;
    }
    .formatocardvideo video {
        min-width: 540px;
        max-width: 540px;
        height: auto;
    }
    .formatocardvideo img {
        min-width: 540px;
        max-width: 540px;
        height: auto;
    }
    .formatocardvideo div {
        min-width: 540px;
        max-width: 540px;
        height: auto;
    }
    .formatocardvideobottom {
        width: 540px;
    }
    .foot {
        grid-area: pie;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
    }
    .foot h6{
        margin: 0;
        background-color: rgba(40, 78, 147,0.3);
        border-radius: 50px 50px 0 0;
        border-top: 2px solid #D9E0E3;
        color: #D9E0E3;
        padding: 16px;
    }
    .feet {
        flex-direction: column;
    }
    .toe {
        flex-direction: row;
        width: 314px;
    }
    .toe a {
        padding: 8px;
    }
    .mobile{
        display: none;
    }
    .desktop {
        display: flex;
    }
}