/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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;
}

/*
 * 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;
}

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

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

/*
 * Hide visually and from screen readers
 */

.hidden,
[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: ' ';
    display: table;
}

.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: #fff !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;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

body {
    font-family: 'Lato', sans-serif;
    color: #4b4b4b;
    font-size: 16px;
    background-color: #fff;
}
.container-jpa {
    margin: auto;
    max-width: 640px;
}
.container2 {
    margin: auto;
    max-width: 550px;
    padding: 15px;
}
.container3 {
    margin: auto;
    max-width: 1200px;
}
header {
    position: relative;
    padding-top: 30px;
    overflow: hidden;
    height: 443px;
    padding-left: 15px;
    padding-right: 15px;
}
.bg-header {
    background-image: url(../img/landing.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    position: relative;
    left: -50%;
    width: 100%;
    max-width: 1200px;
    height: 380px;
    z-index: -1;
    padding: 0;
    margin: 0;
    border-radius: 0 0 36px 36px;
}
/* 
@media only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (min--moz-device-pixel-ratio: 2),
  only screen and (-o-min-device-pixel-ratio: 2/1),
  only screen and (min-device-pixel-ratio: 2),
  only screen and (min-resolution: 192dpi),
  only screen and (min-resolution: 2dppx) {
  header {
    background-image: url(../img/boy-little@2x.png);
    background-size: 381px 383px;
  }
} */

h1 {
    margin-top: 30px;
    margin-bottom: 0;
    font-size: 48px;
    font-weight: 900;
    line-height: 48px;
    color: #fff;
}
h2 {
    font-size: 21px;
    font-weight: 900;
    line-height: 21px;
    margin: 0;
    color: #fff;
    line-height: 1.33;
}
h2 small{
  font-size: 21px;
  font-weight: 900;
  line-height: 1.33;
}
section h2 {
    color: #4b4b4b;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 30px;
}
.logo {
    text-indent: -9999px;
    white-space: nowrap;
    background-image: url(../img/logos_nuevos/LOGO_IES.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 84px;
    height: 67px;
}
.ayuda {
    position: relative;
    margin: 30px;
    padding: 30px;
    border-radius: 15px;
    background-color: #fff1ef;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    height: 174px;
}
.button-jpa {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.38;
    color: #ffffff;
    border-radius: 4px;
    background-color: #00aae4;
    padding: 10px;
    text-decoration: none;
    white-space: nowrap;
}
.button-jpa:hover {
    background-color: #00384b;
    color: #ffffff;
}
.arrow{
    position: relative;
    padding-right: 28px;
}
.button-jpa.arrow::after{
    content:'';
    background-image: url(../img/Arrow.svg);
    background-repeat: no-repeat;
    width: 7px;
    height: 6px;
    display: block;
    position: absolute;
    right: 10px;
    margin-top: -13px;
}
.tabela {
    background-image: url(../img/tabela-trabajando-y-culpando-al-resto-por-su-inutilidad.svg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 132px;
    height: 69px;
    position: relative;
    right: -37px;
}
.col-1-jpa {
    flex: 2;
}
.col-2-jpa {
    flex: 1;
    align-items: flex-end;
    display: flex;
}
.break {
    background-image: url(../img/break.svg);
    background-repeat: no-repeat;
    width: 78px;
    height: 6px;
    margin: auto;
    margin-top: 40px;
}

.play_video {
    position: relative;
    display: block;
}
.play_video .boton_play {
    position: absolute;
    top: 50%;
    margin-top: -61px;
    left: 50%;
    margin-left: -61px;
    width: 123px;
    height: 123px;
    background-image: url(../img/play_video.png);
    background-repeat: no-repeat;
    background-size: 100%;
    -webkit-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}
@media (max-width: 1019px) {
    .play_video .boton_play {
        margin-top: -31px;
        margin-left: -31px;
        width: 62px;
        height: 62px;
    }
}
.play_video .imyt {
    margin: auto;
    display: block;
    width: 100%;
    height: auto;
}
.items {
    justify-items: stretch;
    align-items: center;
}

.color1 {
    background-color: #fff1ef;
}

.color2 {
    background-color: #eaf9fe;
}

.item {
    color: #4b4b4b;

    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    align-items: center;
    margin-bottom: 30px;
    padding: 10px 5px;
    overflow: hidden;
    width: 100%;
}
.item table {
    width: 100%;
}
.item h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}
.item h4 {
    font-size: 12px;
    font-weight: normal;
    margin: 0;
}
.col-carreras,
.col-taller {
    padding: 10px;
    vertical-align: middle;
}
.col-carreras:first-child {
    text-align: left;
    width: 60px;
}
.col-carreras:nth-child(1) {
    text-align: left;
}
.col-carreras:last-child,
.col-taller:last-child {
    text-align: right;
}
.col-carreras h3 {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
}
.bg-beneficio {
    background-image: url(../img/landing.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    position: relative;
    left: -50%;
    width: 100%;
    max-width: 1200px;
    height: 340px;
    z-index: -1;
    padding: 0;
    margin: 0;
    border-radius: 0 0 36px 36px;
}
.beneficio {
    position: relative;
    padding-top: 30px;
    overflow: hidden;
    height: 428px;
}
.container4 {
    margin: auto;
    max-width: 768px;
    padding: 15px;
}
.b2 {
    position: relative;
    box-sizing: content-box;
    margin: 30px;
    padding: 30px;
    border-radius: 15px;
    background-color: #fff1ef;
    font-size: 24px;
    font-weight: bold;
    margin: auto;
    text-align: center;
    padding: 40px 30px 25px 30px;
    border: dashed 1px #727272;
    margin-top: 10px;
    height: auto;
}
.beneficio {
    margin-top: 50px;
}
.beneficio h2 {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    margin-top: 30px;
}
.beneficio p {
    font-size: 16px;
    font-weight: normal;
}
.beneficio h3 {
    font-size: 24px;
    font-weight: normal;
    margin: 0;
}
.icon-beneficio {
    margin-bottom: 25px;
}
footer {
    background-color: #00aae4;
    color: #ffffff;
    text-align: center;
    padding: 30px;
}
footer .logo {
    margin: auto;
    margin-top: 30px;
}

.logo_footer {
    background-image: url(../img/logos_nuevos/LOGO_IES_FONDO_COLOR.png);
}
footer h3 {
    font-size: 24px;
    font-weight: normal;
}
footer a {
    font-size: 28px;
    color: #fff;
    text-decoration: none;
}

section.inscripcion {
    margin: auto;
    margin-top: -140px;
    margin-bottom:50px;
    background: #fff;
    position: relative;
    max-width: 640px;
    border-radius: 36px;
    padding: 36px 23px;
}
.inscripcion h2{
  font-size: 20px;
  font-weight: normal;
  margin:0;
  margin-bottom: 30px;
}
.inscripcion h1{
  font-size: 21px;
  font-weight: bold;
  color: #323232;
  text-align: center;
  margin-top:0;
}
.inscripcion h3{
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  margin-top:0;
}
.error-submit{
    text-align: center;
    margin:auto;
    color:red;
}
@media (max-width: 600px) {
    .b2 {
        padding: 20px;
    }
    .ayuda {
        margin: 10px;
        margin-top: 30px;
        padding: 10px;
        font-size: 20px;
        height: 124px;
    }

    .logo {
        margin: auto;
    }
    section h2 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 25px;
    }
    .break {
        margin-top: 20px;
    }
    header {
        height: 395px;
    }
    .tb2 {
        display:none;
    }
}

@media (max-width: 400px) {
    .container-jpa {
        text-align: center;
    }
    .item table tr {
        display: flex;
        flex-direction: column;
    }
    .col-2-jpa {
        display: none;
    }
    .col-1-jpa {
        text-align: center;
    }
    .beneficio h2 {
        font-size: 26px;
        margin-top: 10px;
    }
    .container4 {
        max-width: 768px;
        padding: 15px;
    }
    .beneficio {
        padding-top: 10px;
        height: auto;
        margin-top: 20px;
    }
    .b2 {
        margin-top: 10px;
        padding: 10px;
    }
    .beneficio h3 {
        font-size: 18px;
    }
    .beneficio p {
        font-size: 14px;
        font-weight: normal;
    }
    .icon-beneficio {
        margin-bottom: 15px;
        max-width: 38px;
    }
    footer h3 {
        font-size: 14px;
    }
    footer a {
        font-size: 14px;
    }
}
