/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */


/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */


/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */


/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}


/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

p,
h1,
h2,
h3,
h4 {
    font-family: Arial, Helvetica, sans-serif;
}


/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}


/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}


/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}


/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

div.inicio {
    background-image: url(../img/fondo.png);
    width: 100%;
    height: 100%;
    background-position: top center;
    background-size: cover;
    position: fixed;
    display: grid;
    grid-template-rows: 95% 5%;
}

div.inicio p {
    color: #363798;
    font-weight: bold;
    margin: 1.3vh auto;
    text-align: center;
}

div.caja {
    width: 90%;
    margin: 0 auto;
    border-radius: 1%;
    /* height: 90%; */
}

@media (min-width: 768px) {
    div.caja {
        width: 70%;
    }
}

div.logo img {
    width: 35vw;
    display: block;
    margin: 0 auto;
}

div.cajaInterna {
    /*margin: 20vh auto;*/
    background-color: whitesmoke;
    border-radius: 1%;
    border: 1px solid #363798;
    margin: 0 auto 10px auto;
}

@media (min-width: 768px) {
    div.cajaInterna {
        width: 60%;
    }
    div.logo img {
        width: 16vw;
    }
    div.imagenInicio img {
        width: 20%;
        border-radius: 50%;
        display: block;
        margin-top: 2.5vh;
        margin-right: auto;
        margin-left: auto;
    }
}

div.imagenInicio img {
    width: 50px;
    border-radius: 50%;
    display: block;
    margin-top: 2.5vh;
    margin-right: auto;
    margin-left: auto;
}

div.campo {
    display: grid;
    grid-template-rows: 0.5fr 0.5fr;
    text-align: left;
    padding: 3px 10px;
}

div.campo input {
    max-width: 95%;
    border: 1px solid #363798;
}

.campo-inicio {
    display: grid;
    grid-template-columns: 30% 70%;
    grid-column-gap: 5px;
    padding: 4px 4px;
}

div.campo-inicio input {
    max-width: 70%;
    border: 1px solid #363798;
}

.etiqueta {
    text-align: right;
}

div.boton {
    background-color: #BFE243;
    font-weight: bold;
    transition: .3s ease;
    border: 1px solid #363798;
}

.contenedor-boton {
    text-align: center;
}

.boton_personalizado {
    text-decoration: none;
    text-transform: uppercase;
    padding: 4px;
    font-weight: 500;
    font-size: 15px;
    color: #363798;
    background-color: #BFE243;
    border-radius: 6px;
    border: 2px solid #BFE243;
    margin: 0 auto;
    /*margin-bottom: 2vh;*/
}

.boton_personalizado:hover {
    color: #BFE243;
    background-color: #ffffff;
}

.botones_personalizados {
    display: flex;
    justify-content: space-between;
}

.inferior1 {
    display: flex;
    justify-content: space-between;
    margin-left: 1.5vw;
}

.inferior2 {
    display: flex;
    justify-content: flex-end;
    margin-right: 1.5vw;
}

div.boton a {
    text-transform: uppercase;
    text-decoration: none;
    font-size: small;
    max-height: 50%;
    padding-left: 1.2vw;
}

div.texto p {
    font-size: 0.75em;
    margin: 1.8vh 2vh;
    text-align: justify;
}


/*DatosCliente*/

div.genero {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    margin: 0 auto;
}

button.hombre,
button.mujer {
    background-color: transparent;
    margin: 1vh auto;
    width: 90%;
}

.hombre img,
.mujer img {
    width: 70px;
    /*height: 15vh!important;*/
    display: block;
    margin: 2vh auto;
    border-radius: 0;
}

@media only screen and (min-width: 768px) {
    .hombre img,
    .mujer img {
        width: 120px;
    }
}

.hombre:hover,
.mujer:hover {
    transition: .3s ease;
    border: 1px solid #363798;
}


/*servicios*/

.servicios {
    margin: 20px;
    display: grid;
    grid-template-columns: 50% 50%;
    text-decoration: none;
    align-items: center;
    transition: .3s ease;
    border: 1px solid #363798;
    border-radius: 10px;
    height: 16vh;
}

a.servicios:hover {
    transition: .2s ease;
    border: 2px solid #363798;
}

.imgSer {
    width: 62px;
    margin: 0 auto;
}

.servicios p {
    text-align: center;
    vertical-align: middle;
}


/*Boton*/

.infoButton {
    transition: .3s ease;
    border: 1px solid #363798;
    vertical-align: middle;
}

div.infoButton p {
    text-align: center;
    color: #363798;
}

button {
    background-color: transparent;
    border: none;
}

.boton {
    color: #363798;
    background-color: #BFE243;
    border-radius: 50%;
}

.boton:hover {
    transition: .2s ease;
    background-color: #ffffff;
}

.boton i {
    font-size: 10px;
}


/*Educación*/

div.cajaInternaE {
    width: 92vw;
    height: 65vh;
    background-color: whitesmoke;
    border-radius: 1%;
    border: 1px solid #363798;
    margin: 0 auto 10px auto;
}

@media only screen and (min-width: 768px) {
    div.cajaInternaE {
        width: 72vw;
        height: 60vh;
    }
}

.Educacion {
    padding-bottom: 5vh;
}

.logoeducacion img {
    width: 10%;
    display: block;
    margin: 0 auto;
}

@media only screen and (min-width: 768px) {
    .logoeducacion img {
        width: 8%;
    }
}

.logoResultados img {
    width: 10%;
    display: block;
    margin: 0 auto;
}

div.campoE {
    display: grid;
    grid-template-rows: 75% 25%;
    text-align: left;
    padding: 1px 5px;
}

@media only screen and (min-width: 980px) {
    div.campoE {
        grid-template-rows: 55% 45%;
    }
}

div.campoE input {
    width: 85%;
    border: 1px solid #363798;
}

@media only screen and (min-width: 768px) {
    .logoresultados img {
        width: 15%;
    }
}

.datosEducacion {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(12, 0.3fr);
    grid-template-rows: 50% 50%;
    grid-template-areas: "A A A A B B B B C C C C" "D D D E E E F F F G G G";
}

.campo-0 {
    grid-area: A;
    /*grid-column: 1/5;*/
}

.campo-1 {
    grid-area: B;
}

.campo-2 {
    grid-area: C;
}

.campo-3 {
    grid-area: D;
}

.campo-4 {
    grid-area: E;
}

.campo-5 {
    grid-area: F;
}

.campo-6 {
    grid-area: G;
}


/* 
@media (max-width: 900px) and (orientation:landscape) {
    div.logo img {
        width: 20vw;
    }
    div.cajaInterna {
        width: 95%;
    }
    div.imagenInicio img {
        width: 10%!important;
    }
    div.texto p {
        font-size: 0.55em!important;
    }
    .camposDatosCliente {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .hombre img,
    .mujer img {
        width: 50px!important;
    }
    div.inicio {
        grid-template-rows: 90% 10%;
    }
    .cajaInternaS {
        width: 60%!important;
        height: 95%;
    }
    .imgSer {
        width: 25%!important;
    }
    .cajaInterna p {
        font-size: 10px;
    }
    .cajaInternaE p {
        font-size: 10px;
    }
    .logoeducacion img {
        width: 8%!important;
    }
    .datosEducacion {
        display: flex;
    }
    .datosEducacion label {
        font-size: 12px!important;
    }
    div.datosEducacion input {
        height: 60%;
    }
    .cajaInternaR {
        width: 75%!important;
        height: 260px!important;
    }
    .cajaInternaR p,
    .cajaInternaR label {
        font-size: 10px;
    }
    .TodosLosResultados {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .campoR-0 {
        margin: 0 auto!important;
        grid-column-start: 1;
        grid-column-end: 3;
    }
    div.datosPension p,
    div.datosPension label,
    .vejezTitulo {
        font-size: 10px!important;
    }
    .tipoCalculo {
        height: 85px!important;
    }
    .vejezSub {
        font-size: 8px!important;
    }
    div.cajaPension {
        width: 70%!important;
        height: 240px!important;
    }
} */


/*Pensión*/

div.cajaPension {
    background-color: whitesmoke;
    border-radius: 1%;
    border: 1px solid #363798;
    width: 95%;
    margin: 0 auto 4vh auto;
    padding-bottom: 10vh;
    height: 55vh;
}

div.datosPension {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

div.datosPension input {
    width: 80%;
}

@media only screen and (min-width: 768px) {
    div.cajaPension {
        width: 60%;
        height: 50%;
    }
    div.datosPension input {
        width: 95%;
    }
}

.tipoCalculo {
    height: 15vh;
    transition: .3s ease;
    border: 1px solid #363798;
    border-radius: 2px;
    margin: 1em 0.5em;
}

@media only screen and (min-width: 768px) {
    .tipoCalculo {
        height: 10em;
    }
}

.vejezSub {
    font-size: 0.55em;
}

.vejezTitulo {
    font-size: 0.7em;
}

.tipoCalculo img {
    width: 35%;
    display: block;
    margin: 0 auto;
}

.tipoCalculo:hover {
    transition: .1s ease;
    border: 2px solid #363798;
}

div.tipopension {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}


/*Resultados*/

.cajaInternaR {
    width: 90%;
    height: 65vh;
    background-color: whitesmoke;
    border-radius: 1%;
    border: 1px solid #363798;
    margin: 0 auto 10px auto;
}

.TodosLosResultados input,
.TodosLosResultados label {
    width: 60%;
    text-align: center;
    margin: 0 auto;
}

@media only screen and (min-width: 768px) {
    .cajaInternaR {
        width: 60%;
        height: 65%;
    }
    .TodosLosResultados {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .campoR-0 {
        margin: 0 auto!important;
        grid-column-start: 1;
        grid-column-end: 3;
    }
}


/* ==========================================================================
   Helper classes
   ========================================================================== */


/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}


/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}


/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}


/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
    visibility: hidden;
}


/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after {
    clear: both;
}


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }
    tr,
    img {
        page-break-inside: avoid;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        page-break-after: avoid;
    }
}