/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.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
 *
 * 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;
}

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

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

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

.content {width:1200px; margin: auto}
form textarea, form input{box-sizing: border-box; -moz-box-sizing: border-box;}
input, textarea {width: 100%; border: none; padding: 15px;}
a {text-decoration: none;}
a, a:hover, a:active, a:focus {outline:0;}
nav ul {margin: 0; padding: 0; list-style: none;}
nav ul li {display: block; float: left;}
img {width: auto; height: auto}
input[type='checkbox'] {display: inline-block; width: inherit;}
input[type='radio'] {display: inline-block; width: inherit;}

* {
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
-o-transition: all 0.5s;
-ms-transition: all 0.5s;
transition: all 0.5s;}

body {font-family: 'Open Sans', sans-serif; color: #475659; font-size: 14px; line-height: 2em;}
h1, h2, h3, h4, h5, h6 {color: #ff661b;}
a {color: #0a3d7e; text-decoration: none; font-style: italic;}

header {background: #fff;
-webkit-box-shadow: 0 3px 5px 2px rgba(0,0,0,0.2);
box-shadow: 0 3px 5px 2px rgba(0,0,0,0.2);
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 999;
}
header img {width: 180px;}
#search {border: solid 1px #475659; width: 90px; padding: 15px; padding-right: 40px;
-webkit-border-radius: 15px;
border-radius: 15px;
background: url('../img/busqueda.png') 110px center no-repeat;
}

.btn {background: #0a3d7e; color: #fff; font-style: normal; padding: 15px;
-webkit-border-radius: 20px;
border-radius: 15px;
}
header .btn, #search {float: right; margin-top: 15px; font-size: 0.8em; line-height: 1.5em;}
header .btn {margin-left: 20px;}

header a {font-style: normal;}
#menu {border-top: solid 1px #475659; border-bottom: solid 1px #475659; margin-top: 10px; text-align: center;}
nav a {display: block; color: #475659; padding: 5px 30px; font-size: 0.9em;}
nav a:hover {background: #0a3d7e; color: #fff;}
nav a.active, .current_page_item a {color: #0a3d7e; background: #E6E6FA;}

.btn:hover {background: #ff661b;}

#main {margin-top: 150px;}

img {max-width: 100%;}

body .slick-dots li button::before {font-size: 15px; color: #0a3d7e; opacity:1}
body .slick-dots li.slick-active button::before {color: #2264ad;}

#intro {text-align: justify; padding: 40px 0;}
#intro h2 {font-size: 3em; text-align: center;}
#intro .content {width: 860px;}

.slider-promos {padding-bottom: 40px;}
.slider-promos .slick-slide {padding-bottom: 20px;}

.slider-promos {width: 90%; margin: auto;}
.slider-promos .slick-prev::before {content: '❮'; color: #475659; opacity: 1; font-size: 60px;}
.slider-promos .slick-next::before {content: '❯'; color: #475659; opacity: 1; font-size: 60px;}
.slider-promos .slick-prev, .slider-promos .slick-next {width: 40px; height: 60px;}
.slider-promos .slick-next {right: -40px;}
.slider-promos .slick-prev {left: -40px;}
.slider-promos .slick-slide a {display: block; width: 90%; margin: auto;
-webkit-box-shadow: 2px 3px 5px 2px rgba(0,0,0,0.2);
box-shadow: 2px 3px 5px 2px rgba(0,0,0,0.2);
}

#ultimas-promociones {text-align: center; padding: 40px;}
#ultimas-promociones .btn {margin: auto; margin-top: 40px;}

footer {background: #475659; color: #fff; padding: 20px 0 10px 0; margin-top: 100px;}
footer a {color: #fff; font-style: normal;}

footer img {width: 120px;}
footer .content > img:first-child {margin-right: 40px;}
footer .redes {float: right; padding-top: 20px;}
footer .redes img {width: 30px;}

.datos {padding-top: 10px; border-top: solid 1px #fff; margin-top: 20px; font-size: 0.8em;}
.block {display: inline-block; margin-right: 40px;}

#promociones {text-align: center;}
.promo {width: 28%; display: inline-block; margin: 0 2% 40px 2%; position: relative;
-webkit-box-shadow: 2px 3px 5px 2px rgba(0,0,0,0.2);
box-shadow: 2px 3px 5px 2px rgba(0,0,0,0.2);
}

.promo span {position: absolute; background: rgba(0, 0, 0, 0.8); color: #fff; width: 100%; height: 100%; font-style: normal; opacity: 0;}
.promo h3 {color: #fff;}
.promo:hover span {opacity: 1;}

#ultimas-promociones span {position: absolute; background: rgba(0, 0, 0, 0.8); color: #fff; width: 100%; height: 100%; font-style: normal; opacity: 0; left: 0;}
#ultimas-promociones h3 {color: #fff;}
#ultimas-promociones .slick-slide a:hover span {opacity: 1;}
#ultimas-promociones .slick-slide a {position: relative; display: block;}

#contacto hr {border-top: 1px dashed #475659}

.fleft {float: left; width: 48%;}
.fright {float: right; width: 48%;}

#contacto {padding-top: 40px;}
#contacto h1 {font-size: 3em; line-height: 1em;}
#contacto input, #contacto textarea {background: #acbfd4; color: #0a3d7e; margin-bottom: 5px;}
#contacto h1 {margin-top: 0;}
#contacto textarea {height: 150px;}

#contacto input[type='submit'] {background: #0a3d7e; color: #fff;}

#mapa {text-align: center;}
#mapa h2 {margin-top: 100px; margin-bottom: 50px; font-size: 2.5em;}

.nosotros .fleft img, .nosotros .fright img {width: 200px; margin: auto; display: block;}
.nosotros .fleft, .nosotros .fright {text-align: justify; background: #ccc; padding: 40px 80px; margin: 80px 0;
box-sizing: border-box; -moz-box-sizing: border-box;
}

.nosotros ul {text-align: justify;
-moz-column-count: 3;
-moz-column-gap: 50px;
-webkit-column-count: 3;
-webkit-column-gap: 50px;
column-count: 3;
column-gap: 50px;
}

.nosotros h3 {text-align: center;}

.slogan {font-size: 4em; color: #0a3d7e; text-transform: uppercase; line-height: 1em;}

table {width: 100%; border: solid 1px #ddd;}
tr {}
table tr:nth-child(2n+1) {background: #ccc;}
table tr:nth-child(3) {background: #fff;}
th {}

/* ==========================================================================
   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
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * 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;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

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

@media only screen and (max-width: 1200px) {
    .content {width: 960px;}
    .nosotros .fleft, .nosotros .fright {height: 520px;}

}

@media only screen and (max-width: 960px) {
    .content, #intro .content {width: 720px;}
    .block {margin-right: 18px;}
    .nosotros .fleft, .nosotros .fright {padding: 40px; height: 550px;}
    .nosotros ul {
        -moz-column-count: 2;
        -moz-column-gap: 50px;
        -webkit-column-count: 2;
        -webkit-column-gap: 50px;
        column-count: 2;
        column-gap: 50px;
    }

}

@media only screen and (max-width: 720px) {
    .content, #intro .content {width: 560px;}
    nav a {padding: 5px 20px;}
    .nosotros .fleft img, .nosotros .fright img {width: 80%;}
}

@media only screen and (max-width: 560px) {
    .content, #intro .content {width: 90%;}
    #menu {border: none;}
    header {position: relative; padding-bottom: 20px;}
    nav ul li {display: block; margin-bottom: 10px; float: none;}
    nav a {display: block; padding: 10px 0; text-align: center; border: solid 1px #ccc; float: none;}
    #main {margin-top: 40px;}
    header img {display: block; margin: auto;}
    header .btn, #search {display: none;}
    .nosotros .fleft, .nosotros .fright {float: none; height: auto; width: 100%;}
    .nosotros ul {
        -moz-column-count: 1;
        -moz-column-gap: 50px;
        -webkit-column-count: 1;
        -webkit-column-gap: 50px;
        column-count: 1;
        column-gap: 50px;
    }
    .fright, .fleft {float: none; height: auto; width: 100%;}

}

/* ==========================================================================
   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 {
        white-space: pre-wrap !important;
    }
    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;
    }

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

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