/* destinos */
#destinations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#destinations article {
    position: relative;
    width: 45%;
}

#destinations article:nth-child(even) {
    box-shadow: -1px 0 0 #fff;
}

#destinations article img {
    display: block;
    width: 100%;
    height: auto;
}

#destinations article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF;
    text-shadow: 0 0 10px #333;
    position: absolute;
    bottom: 30px;
    z-index: 1;
    transition: opacity .2s linear;
    padding: 0 40px;
}

#destinations article:hover h2 {
    opacity: 0;
}

#destinations article div.filler {
    padding: 8%;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    display: none;
    transition: opacity .2s linear;
}

#destinations article:hover div.filler {
    display: block;
    opacity: 1;
}

#destinations article div.filler h3 {
    margin-bottom: 20px;
    color: #007AB6;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2em;
    text-align: center;
    text-transform: uppercase;
}

#destinations article div.filler p {
    max-width: 550px;
    margin: 0 auto 55px auto;
    color: #000;
    font-size: 1rem;
    line-height: 1.3em;
    text-align: center;
}

#destinations article div.filler a {
    position: relative;
    padding: 13px 54px 13px 20px;
    color: #007AB6;
    background-color: #D9F0ED;
    font-size: 1.4em;
    line-height: 1em;
    border-radius: 35px;
}

#destinations article div.filler a span {
    font-weight: 700;
}

#destinations article div.filler a + a {
    margin-left: 10px;
}

#destinations article div.filler a i {
    position: absolute;
    width: 25px;
    height: 25px;
    top: 10px;
    right: 20px;
    background: url(/front/javax.faces.resource/images/arrow-link-blue.png.xhtml) center center / 25px 25px no-repeat;
}

#destinations article div.filler a.booking i {
    top: 9px;
    background: url(/front/javax.faces.resource/images/ico-calendar.png.xhtml) center center / 25px 25px no-repeat;
}

#destinations .banner {
    width: 90%;
    height: 222px;
    max-height: 222px;
    background: url(/front/javax.faces.resource/images/banners_publicitario_home.png.xhtml) center/contain no-repeat;
    margin: 20px 0;
}

#destinations .banner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

#destinations .banner-simple {
    display: flex;
    justify-content: center;
    width: 90%;
}

#destinations .banner-doble {
    display: flex;
    justify-content: center;
    width: 90%;
}

#destinations .banner-doble .banner {
    width: 50%;
    height: 222px;
    max-height: 222px;
}

#destinations .banner-doble .banner:first-child {
    background: url(/front/javax.faces.resource/images/banner1_intermundial_ok.jpg.xhtml) center/contain no-repeat;
}

#destinations .banner-doble .banner:last-child {
    background: url(/front/javax.faces.resource/images/banner2_formulario.gif.xhtml) center/contain no-repeat;
}

#destinations .banner-doble .banner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* todos los destinos */
#destinations .todos-destinos {
    float: left;
    width: 100%;
    margin-top: 20px;
    background: url(/front/javax.faces.resource/images/bg-points.gif.xhtml);
}

#destinations .todos-destinos a {
    display: block;
    width: 280px;
    background: #FFF;
    margin: 0 auto;
    text-align: center;
    font-size: 1.8em;
    line-height: 50px;
    color: #000;
}

/* Noticias */
#news {
    margin: 50px 0 auto;
    width: 100%;
}

#news h2 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #007AB6;
    text-transform: uppercase;
    margin: 0 30px;
}

#news .header-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 100px;
}

#news .horizontal-bar {
    height: 20px;
    width: 100%;
    background-color: #BCD5F0;
    border-radius: 10px;
}

#news .news-container {
    display: flex;
    padding: 0 100px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#news article {
    color: #007AB6;
    width: 33.33%;
    max-width: 500px;
}

#news article time {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#news article h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.2em;
}

#news article p {
    font-size: 1.2rem;
    line-height: 1.3em;
    color: #4C4B50;
}

#news article div {
    margin: 30px 0 40px;
}

#news article a {
    position: relative;
    line-height: 1.2em;
    padding: 10px 40px 10px 20px;
    color: #007AB6;
    background-color: #D9F0ED;
    font-size: 1.4em;
    border-radius: 35px;
}

#news article a i {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 9px;
    right: 10px;
    background: url(/front/javax.faces.resource/images/arrow-link-blue.png.xhtml) center center / 20px 20px no-repeat;
}


/* ventajas */
.container {
    text-align: center;
    padding: 20px;
    flex: 1;
    margin-top: 50px;
}

.container h1 {
    font-weight: bold;
    color: #4C4B50;
    font-size: 2.2rem;
}

.container h1 .color {
    color: #007AB6;
    font-weight: bold;
}
.benefits {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}
.benefit {
    flex: 1;
    max-width: 300px;
    padding: 10px;
}
.benefit img {
    width: 100px;
}

.benefit p {
    font-size: 1rem;
    color: #007AB6;
}

.img-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.img-container img {
    width: 100%;
    height: auto;
}

.footer-button {
    display: block;
    background-color: #d0e8ff;
    color: #007AB6;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

@media screen and (min-width: 320px) and (max-width: 480px) {
    #destinations article {
        width: 100%;
    }

    #destinations article div.filler h3 {
        margin-bottom: 40px;
    }

    #destinations article div.filler p {
        display: none;
    }

    #destinations article div.filler a span {
        display: none;
    }

    #destinations article div.filler a {
        padding-left: 10px;
    }

    #ventajas {
        padding-top: 0;
        box-shadow: none;
    }

    #ventajas .info {
        width: 90%;
        margin: 0 5%;
    }

    #ventajas .info h2 strong {
        font-size: 1.8em;
    }

    #ventajas .filler.background {
        width: 100%;
        height: 40vw;
        margin-bottom: 20px;
        position: relative;
        display: block;
        top: auto;
        left: auto;
    }

    #news article {
        width: 100%;
        margin: 0 3%;
        font-size: 0.95em;
    }

    #news article + article {
        margin-top: 20px;
    }
}

@media screen and (min-width: 481px) and (max-width: 720px) {
    #destinations article {
        overflow: hidden;
        min-height: 28vw;
    }

    #destinations article > img {
        height: 28vw;
        width: 100%;
        height: 100%;
    }

    #destinations article div.filler h3 {
        margin-bottom: 50px;
    }

    #destinations article div.filler p {
        display: none;
    }

    #destinations article div.filler a span {
        display: none;
    }

    #destinations article div.filler a {
        padding-left: 10px;
    }

    #ventajas {
        padding-top: 0;
        box-shadow: none;
    }

    #ventajas .info {
        width: 90%;
        margin: 0 5%;
    }

    #ventajas .filler.background {
        width: 100%;
        height: 40vw;
        margin-bottom: 20px;
        position: relative;
        display: block;
        top: auto;
        left: auto;
    }

    #news article {
        width: 47%;
        font-size: 0.95em;
    }

    #news article + article {
        margin-left: 5%;
    }

    #news article:nth-child(3n) {
        display: none;
    }

    .benefit p {
        font-size: .8rem;
    }

    .container h1 {
        font-size: 1.8rem;
    }

    footer p {
        font-size: .8rem;
    }

    footer p a:not(:last-child)::after {
        content: '';
    }
}

@media screen and (min-width: 721px) and (max-width: 979px) {
    #destinations article div.filler h3 {
        margin-bottom: 50px;
    }

    #destinations article div.filler p {
        display: none;
    }

    #ventajas .info {
        width: 60%;
        margin: 0 0 0 40%;
    }

    #ventajas .info h2 strong {
        font-size: 2.2em;
    }

    #ventajas .filler.background {
        width: 65%;
    }

    #news {
        width: 100%;
    }

    #news .news-container, #news .header-container {
        padding: 0 20px;
    }

    #destinations {
        padding: 0 10px;
    }
}

@media screen and (min-width: 980px) and (max-width: 1150px) {
    #destinations article div.filler {
        padding: 5%;
    }

    #destinations article div.filler p {
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {
    #destinations .banner-simple {
        width: 100%;
    }

    #destinations .banner-doble .banner:last-child {
        margin-bottom: 0;
    }

    #destinations .banner-doble .banner {
        width: 100%;
        margin: 0;
        height: 110px;
    }

    #destinations .banner {
        height: 110px;
        margin: 0;
        width: 100%;
    }

    #destinations .banner-doble {
        width: 100%;
        margin-bottom: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    #destinations article h2 {
        font-size: 1.1rem;
        bottom: 17px;
        padding: 0 15px;
    }

    .benefits {
        align-items: center;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .benefit img {
        margin-bottom: 10px;
    }

    #news .header-container, #news .news-container {
        padding: 0 10px;
    }
}
