@import 'normalize.css';
@import 'tipografias.css';

*, *::before, *::after {
    line-height: 1.7;
    padding: 0; margin: 0;
    box-sizing: border-box;
}
html {
    min-height: 100%; height: 100%;
    transform: translate3d(0,0,1);
}
body {
    color: #0a39a2;
    background: #fff url(../pics/fondo_sup.webp) center top no-repeat;
    background-size: 2020px auto;
    font-family: 'ProximaNovaAltRegular';
    font-size: 17pt;
    text-align: center;
    padding-top: 857px;
    position: relative;
    z-index: 1;
}
.contenedor {
    width: 100%;
    margin: auto;
}
header {
    position: absolute;
    top: 74px; left: 13.90625%; right: 13.90625%;
}
header .contenedor {
    max-width: 924px;
}
header::after {
    content: ' ';
    display: block;
    clear: both;
}
h1 {
    float: left;
    display: inline-block;
    vertical-align: top;
    color: transparent;
    background: url(../pics/logo.webp) center center no-repeat;
    background-size: contain;
    width: 333px; height: 137px;
    overflow: hidden;
    /* cancela la fuente */
    font-size: 0;
    line-height: 0;
    word-spacing: 0;
    letter-spacing: 0;
    white-space: nowrap;
}
nav {
    float: right;
    display: inline-block;
    vertical-align: top;
    color: #0e2c7f;
    font-family: 'GothamBold';
    font-size: 9pt;
    text-transform: uppercase;
}
nav a {
    display: inline-block;
    vertical-align: middle;
    line-height: 28px !important;
    margin: 0 14px;
    position: relative;
}
a {
    text-decoration: none;
    color: currentColor;
}
nav a:hover {
    text-shadow: 0 0 1px currentColor;
}
nav a:hover::after {
    content: ' ';
    display: block;
    border: 3px solid;
    border-color: transparent #ff02ff #ff02ff transparent;
    width: 1em; height: 1em;
    margin: 0 auto;
    position: absolute;
    top: calc(100% - 0.5em); left: 0; right: 0;
    transform: rotate(45deg);
}
nav span:empty {
    display: inline-block;
    vertical-align: middle;
    width: 2px; height: 28px;
    background: #9c9c9c;
}
#inicio {
    position: absolute;
    top: 316px; left: 13.90625%; right: 13.90625%;
}
#inicio .contenedor {
    text-align: left;
    max-width: 924px;
}
#inicio .contenedor * {
    max-width: 382px;
    width: 41.3419%;
}
h2 {
    font-family: 'ProximaNovaAltBold';
    font-size: 57.62px;
    font-weight: normal;
    line-height: 1 !important;
}
#inicio h2 {
    font-size: 49.9pt;
    text-transform: uppercase;
    margin-bottom: 0.38em;
}
#inicio p:last-child {
    line-height: 1.2 !important;
    padding-bottom: 35px;
    position: relative;
}
#inicio p:last-child::after {
    content: ' ';
    display: block;
    background: #ff00ff;
    border-radius: 1px;
    width: 40px; height: 4px;
    position: absolute;
    left: 0; bottom: 0;
}
#prologo {
    margin: 0 22.309%;
}
#prologo .contenedor {
    max-width: 800px;
}
#prologo p {
    margin-bottom: 52px;
}
#prologo p:first-child {
    font-size: 24pt;
    margin-bottom: 86px;
}
#prologo p:first-child, #prologo p:first-child * {
    line-height: 1.2 !important;
}
#prologo p:last-child {
    margin-bottom: 71px;
}
b {
    font-family: 'ProximaNovaAltBold';
    font-weight: normal;
}
.rosadito {
    display: inline-block;
    color: #fff;
    position: relative;
}
.rosadito::before {
    content: ' ';
    display: block;
    background: #ff00ff;
    width: 105%; height: 100%;
    position: absolute; top: 50%; left: 50%; z-index: -1;
    transform: translate(-50%, -50%);
}
hr {
    display: block;
    background: #ff00ff;
    border: none;
    border-radius: 1px;
    width: 25.747%; height: 4px;
    margin: 0 auto 95px;
}
#quienes_somos {
    margin: 0 18.214%;
}
#quienes_somos .contenedor {
    max-width: 814px;
}
#quienes_somos h2 {
    color: #00a9ff;
    font-size: 62px;
    margin-bottom: 69px;
}
#quienes_somos .contenedor div {
    background: #f8f8f8;
    padding: 38px 5.676% 27px;
    margin-bottom: 78px;
}
h3 {
    font-family: 'ProximaNovaAltBold';
    font-weight: normal;
    line-height: 1 !important;
}
#quienes_somos h3 {
    font-size: 32px;
    margin-bottom: 22px;
}
#quienes_somos p {
    margin-bottom: 52px;
}
#consejo {
    background: url(../pics/fondo_inf_sup.webp) center bottom no-repeat;
    background-size: 100% auto;
    padding: 0 11.1683% 208px;
}
#consejo .contenedor {
    max-width: 994px;
}
#consejo h2 {
    color: #00a9ff;
    margin-bottom: 46px;
}
#consejo .contenedor div {
    margin-bottom: 28px;
}
#consejo .contenedor div::after {
    content: ' ';
    display: block;
    clear: both;
}
.ficha {
    display: block;
    border-radius: 10px;
    border: 10px solid #ff00ff;
    text-align: left;
    min-width: 280px;
    width: 21.875%;
    padding: 26px 26px 206px;
    margin-bottom: 64px;
    position: relative;
}
.ficha.izq {
    float: left;
    margin-right: 10.644%;
}
.ficha.der {
    float: right;
    margin-left: 10.644%;
}
.ficha h3 {
    font-size: 29pt;
}
.ficha i {
    color: #ff00ff;
    font-size: 14.62pt;
}
.ficha a {
    cursor: pointer;
    display: block;
    border-radius: 50%;
    background: url(../pics/icono_in.webp) center center no-repeat;
    background-size: contain;
    width: 48px; height: 48px;
    position: absolute;
    top: calc(100% - 23px);
    transition: all 0.35s ease;
    /* cancelar tipografía */
    font-size: 0;
    line-height: 0;
    word-spacing: 0;
    letter-spacing: 0;
}
.ficha.izq a { right: calc(100% - 15px); }
.ficha.der a { left: calc(100% - 15px); }
.ficha a:hover {
    transform: scale(1.1);
}
.ficha img {
    display: block;
    border-radius: 50%; border: 8px solid #fff;
    /* outline: 8px solid #fff; outline-offset: -8px; */
    box-shadow: 11px 0px 11px rgba(0,0,0,0.25);
    max-width: 261px; max-height: 261px;
    width: auto; height: auto;
    position: absolute;
    bottom: -48px;
}
.ficha.izq img { right: -48px; }
.ficha.der img { left: -48px; }
#consejo :not(.ficha) p {
    font-size: 12.26pt;
    line-height: 1.5 !important;
}
#consejo p:last-child::after {
    content: ' ';
    display: inline-block;
    background: #ff00ff;
    border-radius: 1px;
    width: 40px; height: 4px;
    margin-top: 35px;
}
#articulos {
    background: url(../pics/fondo_inf_med.webp) center center repeat;
    padding: 0 8.9034%;
}
#articulos .contenedor {
    max-width: 1052px;
}
#articulos h2 {
    color: #ff00ff;
    margin-bottom: 28px;
}
#articulos hr {
    background: #00a9ff;
}
#articulos .contenedor div {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
}
#articulos article {
    flex-grow: 1; flex-shrink: 0; flex-basis: auto;
    display: inline-block;
    vertical-align: middle;
    max-width: 26.372%; min-width: 300px;
    margin-bottom: 43px;
}
#articulos h3 {
    font-size: 24pt;
    margin-bottom: 20px;
}
#articulos h3::after {
    content: ' ';
    display: inline-block;
    background: #ff00ff;
    border-radius: 1px;
    width: 40px; height: 4px;
    margin-top: 20px;
}
#articulos p {
    font-size: 12.26pt;
    line-height: 1.5 !important;
}
#articulos a:only-child {
    display: inline-block;
    color: #fff;
    background: #ff00ff;
    font-family: 'GothamBold';
    font-size: 9pt !important;
    line-height: 0 !important;
    letter-spacing: 0.75em;
    text-shadow: 0 0 1px;
    padding: 1em 2em 0.75em;
    margin-top: 45px;
    transition: all 0.35s ease;
}
#articulos a:only-child::before { content: '\A0'; }
#articulos a:only-child:hover {
    box-shadow: 0.5em 0.35em 1em 0.25em rgba(0,0,0,0.25);
    transform: scale(1.05);
}
#contacto {
    background: url(../pics/fondo_inf_abj.webp) center top no-repeat;
    background-size: 100% auto;
    padding: 232px 24.9299% 131px;
}
#contacto .contenedor {
    max-width: 642px;
}
#contacto h2 {
    color: #00a9ff;
    margin-bottom: 46px;
}
#contacto form {
    display: block;
    font-family: 'GothamMedium';
    font-size: 10.45pt;
    text-align: left;
    position: relative;
}
fieldset {
    border: none; background: none;
    padding: 0; margin: 0;
}
label {
    display: block;
}
label span {
    display: inline-block;
    padding: 0 0.5em 0.5em;
}
label :not(span) {
    display: block;
    border-radius: 5px;
    border: 2px solid #ededed;
    background: #f5f5f5;
    width: 100%; min-height: 36px;
    font-family: 'GothamRegular';
    font-size: 14pt;
    line-height: 36px;
    padding: 0 0.5em;
    margin-bottom: 1em;
    resize: vertical;
}
[type='submit'] {
    display: inline-block;
    border: none; border-radius: 5px;
    text-shadow: 0 0 1px currentColor;
    color: #fff; background: #ff00ff;
    margin-top: 1em; padding: 1em 2em;
    transition: all 0.35s ease;
}
[type='submit']:hover {
    box-shadow: 0.5em 0.35em 1em 0.25em rgba(0,0,0,0.25);
    transform: scale(1.05);
}
footer {
    color: #00a9ff;
    background-image: linear-gradient(0deg, currentColor, currentColor);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 50% 2px;
    text-shadow: 0 0 1px currentColor;
    font-family: 'MonserratRegular';
    font-size: 9.5pt;
    padding: 61px 0 70px;
}
footer p {
    margin-bottom: 24px;
}
footer a, footer span {
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 0.33em;
}
footer a:hover {
    background: linear-gradient(0deg, currentColor, currentColor) center bottom no-repeat;
    background-size: 75% 1px;
}
footer span {
    margin: 0 20px;
}
/* envío de formulario */
.enviar div {
    text-align: center;
    border-radius: 50%;
    background: #f5f5f5 url(../pics/avion_de_papel.webp) center center no-repeat;
    background-size: 100% 100%;
    box-shadow: 0 0.165em 1em rgba(0,0,0,0.15), inset 0 0 2px 1px currentColor;
    width: 192px; height: 192px; padding: 38.4px;
    overflow: hidden;
    position: absolute;
    top: calc(50% - 96px); left: calc(50% - 96px);
    transition: all 1s ease;
}
.enviar div[class] {
    background-image: none;
    border-radius: 5px;
}
.enviar div.ok { background-color: #4CAF50; }
.enviar div.err { background-color: #F44336; }
.enviar div * {
    display: inline-block;
    color: #f5f5f5;
    position: relative;
    top: 50%; transform: translateY(-50%);
}
.enviar div.ok *::before { content: '\02713\0A'; white-space: pre-wrap; }
.enviar div.err *::before { content: '\02715\0A'; white-space: pre-wrap; }
.enviar div *::first-letter {
    font-size: 48px; line-height: 0.75;
}
@keyframes apagado {
    100% { opacity: 0.35; filter: saturate(0) blur(2px); }
}
.enviar fieldset:last-of-type {
    pointer-events: none;
    animation: apagado 1s ease;
    animation-fill-mode: forwards;
}
@keyframes entrar_creciendo {
    0% { transform: scale(0.01); }
    50% { transform: scale(1.11); }
}
.enviar div {
    transform-origin: center center;
    animation: entrar_creciendo 1s ease;
    animation-fill-mode: backwards;
}
/* activador de la animación */
.animacion {
    backface-visibility: hidden;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: backwards;
}
/* SET entorno de animación */
[class*="aparecer_"]:not(.animacion) {
    animation-name: none !important;
}
/* aparecer descendiendo */
@keyframes aparecer_rl_d {
    0% { opacity: 0; transform: perspective(800px) scale(0.9) translateY(-2rem) rotateX(45deg); }
}
.aparecer_rl_d {
    transform-origin: center top;
    animation-name: aparecer_rl_d;
}
/* aparecer rotanto leve desde abajo */
@keyframes aparecer_rl_a {
    0% { opacity: 0; transform: perspective(800px) scale(0.9) translateY(2rem) rotateX(-45deg); }
}
.aparecer_rl_a {
    transform-origin: center bottom;
    animation-name: aparecer_rl_a;
}
/* aparecer rotanto leve por el centro izquierda */
@keyframes aparecer_rl_ci {
    0% { opacity: 0; transform: perspective(800px) scale(0.9) translateY(2rem) rotateY(-45deg); }
}
.aparecer_rl_ci {
    transform-origin: center bottom;
    animation-name: aparecer_rl_ci;
}
/* aparecer con rebote */
@keyframes aparecer_cr {
    0% { opacity: 0; transform: perspective(800px) scale(0.2); }
    50% { opacity: 1; transform: perspective(800px) scale(1.2); }
}
.aparecer_cr {
    transform-origin: center center;
    animation-name: aparecer_cr;
}
/* aparecer con rebote */
@keyframes aparecer_aa {
    0% { opacity: 0; transform: perspective(800px) scale(1.2) translateY(1.2rem); }
}
.aparecer_aa {
    transform-origin: center center;
    animation-name: aparecer_aa;
}
/* algunos retrasos animación */
nav :nth-child(3) { animation-delay: 0.1s; }
nav :nth-child(5) { animation-delay: 0.2s; }
nav :nth-child(7) { animation-delay: 0.3s; }
nav :nth-child(9) { animation-delay: 0.4s; }
.animacion .animacion { animation-delay: 0.1s; }
.animacion + .animacion { animation-delay: 0.1s; }
.animacion + .animacion + .animacion { animation-delay: 0.2s; }
/* ajustes responsivo */
@media (max-width: 1160px) {
    nav { margin-bottom: 2em; clear: both; }
    #consejo :not(.ficha) p {
        max-width: inherit;
        width: inherit;
    }
    #consejo .ficha.izq ~ p { float: none; }
    #consejo .ficha.der ~ p { float: none; }
    #articulos div { justify-content: space-around; }
}
@media (max-width: 875px) {
    nav {
        text-align: right;
        position: absolute;
        top: 0; right: 0;
        z-index: 1;
    }
    nav::before {
        content: ' ';
        cursor: pointer;
        display: inline-block;
        width: 26px; height: 26px;
        background-image: linear-gradient(0deg, #0e2c7f 20%, transparent 20%, transparent 40%, #0e2c7f 40%, #0e2c7f 60%, transparent 60%, transparent 80%, #0e2c7f 80%);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 70% 70%;
    }
    nav * { display: none !important; }
    @keyframes crecer {
        0% { opacity: 0.01; transform: scale(0.9); }
    }
    nav:hover {
        padding: 1.5em 1.5em 1em;
        transform-origin: right top;
        animation: crecer 0.5s ease;
        animation-fill-mode: backwards;
    }
    @keyframes colocar {
        0% { transform: translate(-100%, 100%); }
    }
    nav:hover::before {
        pointer-events: none;
        background-image: linear-gradient(45deg, transparent 40%, #0e2c7f 40%, #0e2c7f 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, #0e2c7f 40%, #0e2c7f 60%, transparent 60%);
        position: absolute;
        left: 100%; bottom: 100%;
        transform-origin: left bottom;
        animation: colocar 0.5s ease;
        animation-fill-mode: backwards;
    }
    nav:hover::after {
        content: ' ';
        display: block;
        background-color: #0e2c7f;
        box-shadow: inset 0 0 0 1px #fff, 0.5rem 0.5rem 1rem 0.25rem rgba(0,0,0,0.2);
        position: absolute;
        top: 0; right: 0; left: 0; bottom: 0;
    }
    nav:hover a {
        display: block !important;
        color: #fff; z-index: 1;
    }
    nav:hover a:not(:first-child) { margin-top: 1em; }
    nav a:hover::after {
        width: 0.5em; height: 0.5em;
        margin: 0;
        top: 0.5em; left: 107%; right: inherit;
    }
}
@media (max-width: 768px) {
    .ficha.izq, .ficha.der {
        float: none;
        margin: 0 auto 96px;
    }
    #contacto { padding: 232px 12.46495% 131px; }
}
@media (max-width: 720px) {
    #articulos div { flex-flow: column no-wrap; }
    #articulos article { max-width: 100%; }
}
@media (max-width: 520px) {
    h1 { width: 100%; }
    nav { top: -26px; }
}
@media (max-width: 480px) {
    body { font-size: 12.75pt; }
    h2 { font-size: 43.21px; }
    #inicio .contenedor * { width: 62.01285%; }
    #inicio h2 { font-size: 37.42px; }
    #quienes_somos { margin: 0 13.66%; }
    #quienes_somos h2 { font-size: 46.5pt; }
    #quienes_somos h3 { font-size: 24pt; }
    .ficha { padding-bottom: 177px; }
    .ficha h3 { font-size: 21.75pt; }
    .ficha img { max-width: 220px; max-height: 220px; }
    .ficha.izq img { right: -19px; }
    .ficha.der img { left: -19px; }
}
