/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #2c1528;
}

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

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

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

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

img {
    max-width: 100%;
}

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

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

textarea {
    resize: vertical;
}

/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 17px/27px Helvetica, Helvetica Neue, Arial;
}

.footer-llamada {
    width: 100%;
    height: 55px;
    background: #800080;
    position: fixed;
    bottom: 0;
    color: white;
    right: 0;
    cursor: pointer;
    font-size: 150%;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Orange Theme
   =================== */

.header-container {
    border-bottom: 20px solid #800080;
}

.footer-container,
.main aside {
    border-top: 20px solid #800080;
}

.header-container {
    background: #f2f2f2;
}

.footer-container {
    background: #f2f2f2;
}

.main aside {
    background: #fce8ff;
}

.title {
    text-align: left;
    margin: 0;
    text-decoration: none;
    font-style: italic;
    font-family: serif;
    font-size: 1.40em;
    display: inline-block;
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;

    text-align: center;
    text-decoration: none;
    font-weight: bold;

    color: white;
    background: #d371ba;
}

nav a:hover,
nav a:visited {
    color: white;
}

.selected {
    background: #800080;
}

nav a:hover {
    background: #800080;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0;
}

.main article h1 {
    font-size: 2em;
    color: #8f1874;
}

.main aside {
    color: #2c1528;
    padding: 0 5% 10px;
}
.footer-container footer {
    color: #ccc;
    padding: 20px 0;
    font-size: 0.9em;
    text-align: center;
    clear: both;
}
footer ul {
    list-style: none;
    padding: 0;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

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

.social-icon {
    width: 20px;
    height: 20px;
    margin: 0 5px;
}

aside h1 {
    text-align: center;
    color: #8f1874;
}

aside img {
    border-radius: 10%;
}

aside section footer {
    font-size: 0.75em;
    clear: both;
}

#gallery {
    margin: 0;
    padding: 0;
    align-self: center;

}

#gallery article {
    float: left;
    width: 95%;
    margin: 2.5%;
    background-color: #f5f5f5;
    color: #da3ad9;
    text-align: center;
    border-radius: 10%;
}

#gallery img, #gallery video {
    padding-top: 4%;
    border-radius: 100%;
}

#gallery article h2 {
    padding: 0 0 0 5%;
    color: #b034af;
}

#gallery article p {
    margin: 0;
    padding: 5%;
    color: #7d5378
}

.button {
    display: inline-block;
    background-color: #71486c;
    text-decoration: none;
    color: white;
    padding: 0 20px 0 5px;
}

h2, h3 {
    color: #b034af;
}

h1 a {
    color: #8f1874;
}

.noticias {
    list-style: inside;
    padding-left: 20px;
}

#contacto {
    display: block;
}

#contacto label {
    display: block;
    height: 31px;
}

#contacto input {
    float: left;
    width: 50%;
    font-size: 13px;
    line-height: 1.23em;
    padding: 4px 10px;
    margin: 0;
    border: 1px solid #e5e5e5;
    background: none;
}

#contacto textarea {
    float: left;
    height: 175px;
    overflow: auto;
    width: 80%;
    font-size: 13px;
    line-height: 1.23em;
    padding: 3px 10px;
    margin: 0;
    border: 1px solid #e5e5e5;
}

.text-form {
    float: left;
    display: block;
    font-size: 14px;
    line-height: 26px;
    width: 112px;
}

form #botones {
    width: 84%;
}

#contacto input, #contacto textarea {
    border-radius: 2px;
    -moz-transition: padding .25s;
    -webkit-transition: padding .25s;
    -o-transition: padding .25s;
    transition: padding .25s;
}

#contacto input:focus, #contacto textarea:focus {
    border: 1px solid #ff23d5;
    box-shadow: 0 0 3px #aaa;
    padding-right: 80px;
}

.pie {
    font: small-caption;
}
.pie li{
    padding-bottom: 5px;
}
aside a{
    text-decoration: none;
}
.slidernoticias{
    max-width: 256px;
}
.telefono a{
    font-family: cursive;
}
.telefono img{
    max-width: 40px;
}

#menuclick{
    visibility: visible;
    display: block;
}
nav ul li {
    display: none;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {

    /* ====================
        INTERMEDIATE: Menu
       ==================== */
    nav a {
        float: left;
        width: 16%;
        padding: 25px 2%;
        margin-bottom: 0;
    }

    nav li {
        display: inline-block;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }

    /* ========================
        INTERMEDIATE: IE Fixes
       ======================== */
    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }

    .imagenizquierda {
        margin-bottom: 100px;
    }

    .imagenizquierda img {
        float: left;
        margin-right: 20px;
        border-radius: 10%;
    }
    #menuclick{
        visibility: hidden;
        display: none;
    }
    nav ul li {
        display: block;
    }
}

@media only screen and (min-width: 768px) {

    /* ====================
        WIDE: CSS3 Effects
       ==================== */
    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
        -moz-box-shadow: 0 5px 10px #aaa;
        box-shadow: 0 5px 10px #aaa;
        border-radius: 3%;
    }

    /* ============
        WIDE: Menu
       ============ */
    .title {
        float: left;
        margin-left: 5%;
    }

    nav {
        float: right;
        font-size: 1.125em;
        margin-right: 2%;
        text-align: right;
        width: 60%;
    }

    /* ============
        WIDE: Main
       ============ */
    .main article {
        float: left;
        width: 57%;
    }

    .main aside {
        float: right;
        width: 28%;
    }

    /*********************************************/
    /* Hover Shadow */
    @-webkit-keyframes hover {
        50% {
            -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
        }

        100% {
            -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
        }
    }

    @keyframes hover {
        50% {
            -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
        }

        100% {
            -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
        }
    }

    @-webkit-keyframes hover-shadow {
        0% {
            -webkit-transform: translateY(6px);
            transform: translateY(6px);
            opacity: .4;
        }

        50% {
            -webkit-transform: translateY(3px);
            transform: translateY(3px);
            opacity: 1;
        }

        100% {
            -webkit-transform: translateY(6px);
            transform: translateY(6px);
            opacity: .4;
        }
    }

    @keyframes hover-shadow {
        0% {
            -webkit-transform: translateY(6px);
            transform: translateY(6px);
            opacity: .4;
        }

        50% {
            -webkit-transform: translateY(3px);
            transform: translateY(3px);
            opacity: 1;
        }

        100% {
            -webkit-transform: translateY(6px);
            transform: translateY(6px);
            opacity: .4;
        }
    }

    .hover-shadow {
        display: inline-block;
        position: relative;
        -webkit-transition-duration: 0.3s;
        transition-duration: 0.3s;
        -webkit-transition-property: transform;
        transition-property: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    }

    .hover-shadow:before {
        pointer-events: none;
        position: absolute;
        z-index: -1;
        content: '';
        top: 100%;
        left: 5%;
        height: 10px;
        width: 90%;
        opacity: 0;
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
        /* W3C */
        -webkit-transition-duration: 0.3s;
        transition-duration: 0.3s;
        -webkit-transition-property: transform, opacity;
        transition-property: transform, opacity;
    }

    .hover-shadow:hover, .hover-shadow:focus, .hover-shadow:active {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
        -webkit-animation-name: hover;
        animation-name: hover;
        -webkit-animation-duration: 1.5s;
        animation-duration: 1.5s;
        -webkit-animation-delay: 0.3s;
        animation-delay: 0.3s;
        -webkit-animation-timing-function: linear;
        animation-timing-function: linear;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
        -webkit-animation-direction: alternate;
        animation-direction: alternate;
    }

    .hover-shadow:hover:before, .hover-shadow:focus:before, .hover-shadow:active:before {
        opacity: .4;
        -webkit-transform: translateY(6px);
        transform: translateY(6px);
        -webkit-animation-name: hover-shadow;
        animation-name: hover-shadow;
        -webkit-animation-duration: 1.5s;
        animation-duration: 1.5s;
        -webkit-animation-delay: 0.3s;
        animation-delay: 0.3s;
        -webkit-animation-timing-function: linear;
        animation-timing-function: linear;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
        -webkit-animation-direction: alternate;
        animation-direction: alternate;
    }

    /******************************************************************
    /* Buzz */
    @-webkit-keyframes buzz {
        50% {
            -webkit-transform: translateX(3px) rotate(2deg);
            transform: translateX(3px) rotate(2deg);
        }

        100% {
            -webkit-transform: translateX(-3px) rotate(-2deg);
            transform: translateX(-3px) rotate(-2deg);
        }
    }

    @keyframes buzz {
        50% {
            -webkit-transform: translateX(3px) rotate(2deg);
            transform: translateX(3px) rotate(2deg);
        }

        100% {
            -webkit-transform: translateX(-3px) rotate(-2deg);
            transform: translateX(-3px) rotate(-2deg);
        }
    }

    .buzz {
        color: darkgoldenrod;
        display: inline-block;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    }

    .buzz:hover, .buzz:focus, .buzz:active {
        -webkit-animation-name: buzz;
        animation-name: buzz;
        -webkit-animation-duration: 0.15s;
        animation-duration: 0.15s;
        -webkit-animation-timing-function: linear;
        animation-timing-function: linear;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
    }

    /***********************************************************

    /* Curl Bottom Right */
    .curl-bottom-right {
        display: inline-block;
        position: relative;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    }

    .curl-bottom-right:before {
        pointer-events: none;
        position: absolute;
        content: '';
        height: 0;
        width: 0;
        bottom: 0;
        right: 0;
        background: white;
        /* IE9 */
        background: linear-gradient(315deg, white 45%, #aaaaaa 50%, #cccccc 56%, white 80%);
        box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.4);
        -webkit-transition-duration: 0.3s;
        transition-duration: 0.3s;
        -webkit-transition-property: width, height;
        transition-property: width, height;
    }

    .curl-bottom-right:hover:before, .curl-bottom-right:focus:before, .curl-bottom-right:active:before {
        width: 25px;
        height: 25px;
    }

    #gallery article {
        width: 45%;
    }
    #gallery article:nth-child(odd){
        float: left;
        clear: left;
    }
    #gallery article:nth-child(even){
        float: right;
        clear: right;
    }
    .noticias{
        max-width: 100%;
        float:left;
    }
    .slidernoticias article{
        width: 100%;
    }

}

@media only screen and (min-width: 1140px) {

    /* ===============
        Maximal Width
       =============== */
    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
    .noticias{
        max-width: 50%;
        float:right;
    }
}

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

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

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

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

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

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

    img, video{
        max-width: 100% !important;
    }
    @page {
        margin: 0.5cm;
    }

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

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