/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.com/ */

/*
 * 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
 *
 * These selection rule sets have to be separate.
 * 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;
}

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

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

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

body{
    min-width: 1024px;
    width: 100%;
    overflow-x: hidden;
}


.color-bar{
    height: 9px;
    width: 100%;
    background: url(../img/color-bar.jpg);
}

.container{
    width:100%;
    max-width: 980px;
    margin: 0 auto; 
    min-width: 980px;
}

.go-link{
    padding-left: 4.2rem;
    text-decoration: none;
    color: #960c3f;
    font-family: 'FuturaStd-book', sans-serif;
    font-size: 18px;
}

#home{
    text-align: center;
    background: url(../img/home-2.jpg) top center;
    background-size: cover;
    color: #fff;
}

body.cronica #home{
    background: url(../img/cronica-big.jpg) top center;
}

body.cronica #home h1{
    text-align: center;
    font-size: 40px;
    margin-top: 7em;
    line-height: 100%;
    padding-bottom: 3em;
    margin-bottom: 0;
}

body.cronica .container{
    max-width: 700px;
    min-width: 700px;
}

body.cronica .container p{
    font-family: 'FuturaStd-book', sans-serif;
}

body.cronica .container p.intro{
    font-family: 'Crete Round', serif;
    font-size: 20px;
}

body.cronica .container h5{
    font-family: 'Crete Round', serif;
    font-size: 20px;
    margin-bottom: 0;
}

.go-back{
    position: fixed;
    left: 20px;
    top: 30px;
    display: inline-block;
    z-index: 90;
    padding: .8em 2em;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 90px;
    text-decoration: none;
    font-family: 'FuturaStd-book', sans-serif;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}


#home h1{
    font-family: 'Crete Round', serif;
    font-weight: normal;
    font-size: 80px;
    line-height: 80%;
    margin-top: 0;
    margin-bottom: 40px;
    text-shadow:0px 2px 3px rgba(0, 0, 0, 0.4);
    text-align: left;
}

#home .intro-text{
    text-align: left;
}

body.cronica #home .intro-text{
    text-align: center;
}

#home h1 span{
    font-size: 0.6em;
}

#home h1 span.big{
    font-size: 1.3em;
    line-height: 110%;
}

.share-button.sharer-0 .social ul li{
    display: block !important;
}

.entypo-export{
    display: none !important;
}

#home .fecha{
    font-family: 'FuturaStd-book', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    background:#be2432;
    display: inline-block;
    padding: 0.4em 0 0.4em 0.8em;
    letter-spacing: 0.5em;
    line-height: 100%;
    margin-top: 90px;
    text-align: left;
    margin-bottom: 0;

}

.share-button.sharer-0 .social.networks-5{
    width: 366px !important;
}

.share-button.sharer-0 .social.top{
    margin: 10px auto 20px auto !important;
}

.share-button.sharer-0{
    text-align: center !important;
    width: 100% !important;
}

.share-button.sharer-0 .social.networks-5 ul{
    width: 366px !important;
}

.share-button.sharer-0 .social.networks-5 ul li{
    margin: 0 6px !important;
    border-radius: 3px;
}

#home .fecha span{
    font-family: 'FuturaStd-heavy', sans-serif;
}

#home p{
    font-family: 'FuturaStd-book', sans-serif;
    font-size: 18px;
    max-width: 500px;
    text-shadow:0px 2px 3px rgba(0, 0, 0, 0.4);
    text-align: left;
}

#home .link-wrap{
    text-align: center;
    margin-top: 100px;
    padding-bottom: 80px;
}

#home .link-wrap a{
    color: #fff;
    font-family: 'Crete Round', serif;
    font-style: italic;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s linear;
    padding: 1em;
    position: relative;
}

#home .link-wrap a:after{
    background: url(../img/arrow.png);
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    bottom: -1.5em;
    content: "";
    height: 36px;
    width: 36px;
    transition:all 0.2s linear;
}

#home .link-wrap a:hover:after{
    -ms-transform: translate(0px,2px); /* IE 9 */
    -webkit-transform: translate(0px,2px); /* Safari */
    transform: translate(0px,2px);
}

#ley{
    background: url(../img/gray-bg.png);
    padding: 5em 0 9em 0;
}

#ley h3{
    font-size: 30px;
    color: #444444;
    font-family: 'Crete Round', serif;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    line-height: 120%;
    font-weight: lighter;
    text-shadow:0px 1px 0px #fff;
    margin-bottom: 1.4em;
}

#ley h3 .aqua{
    color: #6fadab;
}

#ley h3 .orange{
    color: #e38843;
}

#balance{
    position: relative;
    z-index: 0;
    padding-bottom: 22em;
}

body.cronica #balance{
    padding-bottom: 3em;
}

#balance:before{
    content: "";
    background: url(../img/solapa.png) no-repeat top center;
    position: absolute;
    height: 100px;
    width:890px;
    top: -70px;
    margin: 0 auto;
    left: 0;
    right: 0;
    z-index: -1;
}

#balance h4{
    text-align: center;
    font-family: 'Crete Round', serif;
    color:#444;
    font-size: 40px;
    line-height: 100%;
    margin-top: 0;
}

#balance h4 span{
    font-size: 0.75em;

}

#balance .container > div{
    width: 49%;
    display: inline-block;
    vertical-align: top;
    box-sizing:border-box;
}

#balance .container > div p{
    padding-left: 4.2rem;
    position: relative;
    font-family: 'FuturaStd-book', sans-serif;
    font-size: 18px;
    color: #444;
    padding-right: 1em;
    margin-top: 0;
}

#balance .container > div.left{
    position: relative;
}

#balance .container > div.left img{
    position: absolute;
    right: -3em;
    z-index: 2;
    margin-top: 4em;
}

#balance .container > div p:before{
    content: "P";
    font-size: 55px;
    color: #fff;
    background: #960c3f;
    font-family: 'Crete Round', serif;
    line-height: 115%;
    padding: 0 0.25em;
    position: absolute;
    top: 8px;
    left:0;
    display: block;
}

#balance .container > div p:after{
    height: 1px;
    position: absolute;
    bottom: -85px;
    left: 4.2rem;
    width: 50px;
    background: #960c3f;
    content: "";
}

#balance .right{
    padding-left: 1em;
    position: relative;
}

#balance .right img{
    position: absolute;
    top: 0;
    left: 0;
}

body.cronica #casos{
    padding-bottom: 0;
}

#casos{
    width: 100%;
    text-align: center;
    padding-bottom: 6em;
}

#casos h5{
    text-align: center;
    color: #fff;
    background: #72b4b3;
    font-family: 'Crete Round', serif;
    font-size: 22px;
    font-weight: lighter;
    text-shadow:0px 1px 1px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin: 0 auto;
    padding: 0.7em 2em;
    margin-bottom: -1em;
    z-index: 20;
    position: relative;
}

#casos .v-1{
    background: url(../img/video-1.jpg);

}

#casos .v-2{
    background: url(../img/video-2.jpg);

}

#casos .v-3{
    background: url(../img/video-3.jpg);

}

#casos .four-col{
    display: inline-block;
    width: 32%;
    box-sizing:border-box;
    vertical-align: top;
    height: 0px;
    padding-bottom: 21.5%;
    color: #fff;
    text-shadow:1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Crete Round', serif;
    font-size: 18px;
    position: relative;
    background-size: cover;
}

#casos .four-col:after{
    content: "";
    height: 52px;
    width: 52px;
    background: url(../img/play.png) no-repeat;
    position: absolute;
    margin: auto;
    top:0;
    bottom:0;
    left:0;
    right: 0;
}

#casos .four-col p{
    margin-top: 40%;
}

#grupal .two{
    width: 49%;
    display:inline-block;
    vertical-align: top;
    position: relative;
}

#grupal{
    padding-bottom: 10em;
}

#grupal .eight{
    width: 50%;
    display:inline-block;
    vertical-align: top;
}


#grupal h4{
    text-align: left;
    font-family: 'Crete Round', serif;
    color:#444;
    font-size: 30px;
    line-height: 120%;
    margin-top: 0;
}

#grupal p{
    font-family: 'FuturaStd-book', sans-serif;
    font-size: 18px;
    padding-left: 4em;
    position: relative;
    color: #444;
    padding-right: 1em;
    margin-top: 0;
}


#grupal p:before{
    content: "V";
    font-size: 55px;
    color: #fff;
    background: #960c3f;
    font-family: 'Crete Round', serif;
    line-height: 115%;
    padding: 0 0.25em;
    position: absolute;
    top: 8px;
    left:0;
    display: block;
}

#grupal p:after{
    height: 1px;
    position: absolute;
    bottom: -55px;
    left: 4em;
    width: 50px;
    background: #960c3f;
    content: "";
}

#grupal .two.t-1 img{
    position: absolute;
    right: 0;
    margin-right: 2em;
}

#grupal .two.t-2 img{
    position: absolute;
    left: 0;
    margin-left: 2em;
    top: 80px;
}

footer{
    background:url(../img/gray-bg.png);
    padding: 2em 0 0.3em 0;
}

footer ul{
    list-style: none;
    margin:0;
    padding: 0;
    text-align: center;
}


footer ul p{
    font-size: 16px;
    color:  #737373;
    font-family: 'Crete Round', serif;
    font-style: italic;
    font-weight: lighter;
}

footer ul li{
    display: inline-block;
    vertical-align: top;
}

footer ul li a{
    width: 37px;
    height: 37px;
    display: block;
    background: url(../img/redes.png) no-repeat;
    margin: 0 0.8em;
}

footer ul li a.twitter{
    background-position: -37px; 
}

footer ul li a.google{
    background-position: -74px; 
}

footer span{
    margin-top: 3em;
    font-size: 13px;
    font-family: 'Crete Round', serif;
    font-style: italic;
    font-weight: lighter;
    color:  #737373;
    text-align: center;
    display: block;
}

#grupal a{
    text-decoration: none;
    font-family: 'FuturaStd-book', sans-serif;
    text-transform: uppercase;
    padding-left: 4.5em;
    color: #960c3f;
}


















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

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

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

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

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

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
