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

*, *:before, *:after{
    box-sizing: border-box;
}
.contenedor{
    overflow: hidden;
}
body{
    font-family:'Roboto Slab','Roboto', Helvetica, Arial, sans-serif;
}
.imagen{
    width: 100%;
}
main a{
    color: black;
}


main{
    margin-top: 60px;
}
nav{
    background: #00a8f3;
    position:fixed;
    width:100%;
    display: inline;
    height:60px; 
    z-index: 2;
}

.nombrenav{
    float:left;
    margin-left: 20px;
    margin-top: 5px;
}

.nombrenav img{
    height: 48px;
    float: left;
    margin: 0 15px 0 0;
}

.nombrenav p{
    display: inline-block;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: bold;
    color:white;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1rem;
    
}

.menu ul{
    list-style: none;
    margin-right: 5vw;
    margin-top: 20px;
    margin-bottom: 12px;
    display: flex;
    float: right;
    
}
.menu ul li a{
    float:left;
    margin-left: 40px;
    color:white;
    font-weight:bold;
    letter-spacing: .5px;
    text-decoration: none;
    line-height: 16px;
}

.menu ul li a:hover{
    text-decoration: underline;
}
.franja_header{
    width: 100%;
    height: 18px;
    background-image: url(../img/cubo_morado.png), url(../img/cubo_azul.png);
    background-repeat: repeat-x;
    background-size: 12px,12px; 
    background-position: 0px 0px,6px 6px;
    float: left;
}
.pprincipal{
    height:100vh;
    width:100vw;
    background-image: url(../img/principal.jpg);
    background-size: 100%;
    background-color: rgba(0, 0, 0, .3);
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: 0 0;
    min-height: 630px;
    position: relative;
}
.bannerp{
    height: 100vh;
    width: 100vw;
    padding-top: 0;
    overflow: hidden;
}
.sliderp{
    margin-top: 0;
    height:100vh;
    width:100vw;
    list-style:none;
    padding:0;
    display:flex;
    
    animation: desplazamientop 24s infinite;
}
.sliderp li{
    width:100vw
}
.sliderp img{
    height:100vh;
    width:100vw;
    margin-right: 0;
}


@keyframes desplazamientop{
    0%{margin-left:0vw;}
    15%{margin-left:0vw;}
    
    25%{margin-left:-100vw;}
    40%{margin-left:-100vw;}
    
    50%{margin-left:-200vw;}
    65%{margin-left:-200vw;}
    
    75%{margin-left:-300vw;}
    90%{margin-left:-300vw;}
}
.pprincipal h2{
    position: absolute;
    bottom: 97px;
    margin-left: 30px;
    margin-bottom: 0px;
    font-size: 3.5rem;
    color:white;
}
.pprimera{
    overflow: hidden;
    height:100vh;
    width:100vw;
    background-color: white;
    background-image: url(../img/cactus2.png), url(../img/macetas2.png);
    background-size: 30%, 30%;
    background-repeat: no-repeat, no-repeat;
    background-position: left bottom, right bottom;
    position: relative;
    min-height: 600px;
}
.pprimera img{
    margin-top: -48vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 15%;
}

.margintop{
    height: 33vw;
    max-height: 60vh;
    min-height: 320px;
}
.cursiva{
    margin-bottom: 1%;
    position: relative;
    width: 90%;
    left: 5%;
    color:darkslategrey;
    text-align: center;
    font-size: 1.6rem;
    font-family: 'Parisienne', cursive;
}
.pprimera h2 {
    text-align: center;
    margin-top: 1%;
    font-size: 3rem;
    text-transform: uppercase;
    text-decoration: underline;
    letter-spacing:3px;
    margin-bottom: 10px;
}
.pprimera p{
    position: relative;
    width: 50%;
    left: 25%;
    color:black;
    margin-top: 0px;
    text-align: center;
    font-size: 2rem;
}

.psegunda{
    background-image: url(../img/botellaflor2.png);
    background-size:28%;
    background-position: right bottom;
    background-repeat: no-repeat;
    height:100vh;
    width:100vw;
    background-color: #f4f2f2;
    position: relative;
    min-height: 600px;
}
.imagenes_oficios{
    height: 100%;
    width: 55vw;
    position: absolute;
}

.imagenes_oficios img:nth-child(1){
    height: 40%;
    display: block;
    margin: 7% 0 4% 18%;
    border-radius: 2%;
}

.psegunda img:nth-child(2){
    height: 40%;
    display: block;
    margin-left: 40%;
    border-radius: 2%;
}

.titulo_oficios{
    width: 45vw;
    float: right;
}

.titulo_oficios h2{
    margin-top:200px;
    font-size: 2.4rem;
    line-height: 3rem;
    text-transform: uppercase;
    text-align: center;
    width: fit-content;
}

.titulo_oficios p{
    font-size: 2rem;
    line-height: 2rem;
    text-align: center;
    width: fit-content;
}

.anuncios_talleres{
    height:54vw;
    background-color:white;
    position: relative;
}
.anuncios_talleres h2{
    text-align: center;
    margin: 0 0;
    /*font-size: 3.5vw;
    line-height: 2.7rem;*/
    height:14%;
    padding-top:2vw;
    font-size: 2.4rem;
    letter-spacing: 3px;
    text-decoration: underline;
}
.anuncios_talleres p{
    text-align: center;
    font-size: 2rem;
    line-height: 2rem;
}
.banner{
    height: 34vw;
    width: 70vw;
    padding-top: 2vw;
    overflow: hidden;
    margin-left: 15vw;
    margin-right: 15vw;
}
.slider{
    height:30vw;
    width:400vw;
    list-style:none;
    padding:0;
    display:flex;
    
    animation: desplazamiento 20s infinite;
}
.slider li{
    width:45vw
}
.slider img{
    height:30vw;
    width:25vw;
    margin-right: 20vw;
    border: 1px solid #00a8f3;
    border-radius: 8px;
}


@keyframes desplazamiento{
    0%{margin-left:0vw;}
    16.5%{margin-left:0vw;}
    
    25.5%{margin-left:-90vw;}
    43%{margin-left:-90vw;}
    
    52%{margin-left:-180vw;}
    69.5%{margin-left:-180vw;}
    
    78.5%{margin-left:-270vw;}
    95%{margin-left:-270vw;}
    
}

.ptercera{
    background-image: url(../img/botella_vino_ramas.png);
    background-size: 25%;
    background-position: left bottom;
    background-repeat: no-repeat;
    background-color: #f4f2f2;
    position: relative;
    overflow: hidden;
    height:100vh;
    width:100vw;
   min-height: 615px;
}
.ptercera h2{
    position: absolute;
    display: inline;
    text-transform: uppercase;
    font-weight: lighter;
    font-size: 4rem;
    text-decoration: underline;
    letter-spacing: 3px;
    bottom: 41%;
    left: 19%;
}
.ptercera img:nth-child(2){
    position: absolute;
    width:500px;
    right: 13%;
    top:4%;
}
.ptercera img:nth-child(3){
    position: absolute;
    width:500px;
    top:53%;
    right: 8%;
    
}
.ptercera img:nth-child(2):hover,
.ptercera img:nth-child(3):hover{
    transform:scale(1.1);
    
} 

.pcuarta{
    overflow: hidden;
    height:100vh;
    width:100vw;
    background-color: white;
    position: relative;
    min-height: 600px;
}

.icono_link{
    display: contents;
}

.icono_img{
    height: 200px;
    display: block;
    margin: 20vh auto 0 auto;
}

.pcuarta h2{
    text-align: center;
    font-size: 3rem;
    text-transform: uppercase;
    text-decoration: underline;
    letter-spacing:3px;
    margin-bottom: 10px;
}
.pcuarta p{
    color:black;
    margin-top: 0px;;
    text-align: center;
    font-size: 2rem;
}
.pquinta{
    overflow: hidden;
    height:100vh;
    width:100vw;
    background-color: #f4f2f2;
    position: relative;
    min-height: 600px;
}

.pquinta h2{
    text-align: center;
    font-size: 3rem;
    text-transform: uppercase;
    text-decoration: underline;
    letter-spacing:3px;
    margin-bottom: 10px;
}
.pquinta p{
    color:black;
    margin-top: 0px;;
    text-align: center;
    font-size: 2rem;
}
.psexta{
    overflow: hidden;
    height:100vh;
    width:100vw;
    background-color: white;
    position: relative;
    min-height: 600px;
}
.psexta h2{
    text-align: center;
    font-size: 3rem;
    text-transform: uppercase;
    text-decoration: underline;
    letter-spacing:3px;
    margin-bottom: 10px;
}
.psexta p{
    color:black;
    margin-top: 0px;
    text-align: center;
    font-size: 2rem;
}
footer{
    font-size: .8vw;
}
footer a{
    color:black;
}
/*-----------media queries----------------*/
@media only screen and (max-width:1150px){
    .menu ul{
        display: none;
    }
    .pprincipal{
    height: 70vh;
    background-size:cover;
    background-position:right top;
    }
    .sliderp img{
    width:100vh;
    height: 70vh;
    }
    
    .pprincipal h2 {
    bottom: 65px;
    }
    
    .pprimera{
    height:50vh;
    width:100vw;
        
    }
    
    .pprimera img{
    margin-top: -29vh;
    }
    .pprimera h2 {
    margin-top: 1vh;
    }
    
    .psegunda{
    height: 50vh;
    background-size: 15%;
    }
    
    .imagenes_oficios img:nth-child(1) {
    display: none;
    }
    
    .psegunda img:nth-child(2) {
    width: 85vw;
    height: 100%;
    margin-left: 0;
    position: absolute;
    left: -35vw;
    border-radius: 0;
    }
    
    .titulo_oficios {
    margin-right: -3%;
    }
    
    .titulo_oficios h2 {
    font-size:2.1rem;
    }
    
    .titulo_oficios p {
    margin-left: 22px;
    }
    
    .pcuarta{
    height: 50vh;
    }
    
    .pcuarta .icono_img {
     margin-top: 5vh;   
    }
    
    .ptercera{
    height: 50vh;
    background-size: 18%;
    min-height: 615px;
    }
    
    .ptercera h2{
    left: 15%;
    top: 34%;
    }
    
    .ptercera img:nth-child(2) {
    width: 50vw;
    height: 50%;
    right: 0vw;
    top: 0;
    }
    .ptercera img:nth-child(3) {
    right: -10vw;
    width: 60vw;
    height: 50%;
    top: 50%;
    }
    .anuncios_talleres{
    height: 50vh;
    min-height: 700px;
    }
    
    .anuncios_talleres .banner{
    height: 44vw;
    width: 80vw;
    margin-left: 10vw;
    margin-right: 10vw;
    }
    
    .anuncios_talleres .slider img{
    height: 40vw;
    width: 35vw;
    }
    
    .pquinta{
    height: 50vh;
    }
    
    .pquinta .icono_img {
     margin-top: 5vh;   
    }
    .psexta{
    height: 50vh;
    }
    
    .psexta .icono_img {
     margin-top: 5vh;   
    }
    
    .margintop{
        height: 33vw;
        min-height: 38vh;
    }
    .cursiva{
        font-size: 1.4rem;
}
    .pprimera h2, .ptercera h2, .pcuarta h2, .pquinta h2, .psexta h2{
        font-size:2.5rem;
    }

    .pprimera p:nth-child(3), .psegunda p, .ptercera p, .pcuarta p, .pquinta p, .psexta p, .anuncios_talleres p{
        font-size:1.5rem;
    }
    
    .psegunda img:nth-child(3){
        width:30vw;
        margin-top:15vh;
        margin-left: 15%;
    }
    
    .anuncios_talleres img:nth-child(2){
    }
    .anuncios_talleres img:nth-child(3){
    }
    .anuncios_talleres img:nth-child(4){
    }
    
    .pcuarta h2, .pquinta h2, .psexta h2, .anuncios_talleres h2{
        margin-top: 4%;
        font-size: 2.1rem;
    }
    footer{
    font-size: 1.5vw;
}
}

@media only screen and (max-width:766px){
    
    nav{
    height: 55px; 
    }
    
    .nombrenav img {
    height: 40px;
    margin: 2px 10px 0 0
    }
    
    .nombrenav p {
    font-size: 10px;
    line-height: inherit;
    margin-top: 5px;
    }
    
    .franja_header {
    background-size: 9px,9px;
    background-position: 0px 0px,5px 4px
    }
    
    .pprincipal{
    height: 130vw;
    min-height: 0px;
    margin-top: -5px;
    }
    
    .bannerp {
    height: 130vw;
    }
    
    .sliderp img {
    height: 130vw;
    }
    
    .pprincipal h2 {
    font-size: 1.7rem;
    bottom: 25px;
    margin-left: 21px;
    }
    
    .pprimera{
    height: 110vw;
    min-height: 0px;
    background-size: 37%, 37%;
    }
    
    .pprimera img {
    margin-top: -31vh;
    width: 28%;
    }
    
    .pprimera h2 {
    margin-top: 3vh;
    }
    
    .psegunda{
    height: 125vw;
    min-height: 0px;
    background-size: 25%;
    }
    
    .imagenes_oficios img:nth-child(1) {
    display: block;
    width: 100vw;
    height: 60vw;
    margin: 0%;
    border-radius: 0%;
    }
    
    .imagenes_oficios img:nth-child(2) {
    display: none;
    }
    
    .titulo_oficios {
    width: 100vw;
    }
    
    .titulo_oficios h2 {
    margin-top: 73vw;
    width: inherit;
    line-height: 2rem;
    }
    
    .titulo_oficios p{
    width: inherit;
    line-height: 1rem;
    margin-left: 0px;
    margin-top: 26px;
    }
    
    .pcuarta{
    height: 110vw;
    min-height: 0px;
    }
    
    .ptercera{
    height: 102vw;
    min-height: 0px;
    background-size: 21%;
    }
    
    .ptercera img:nth-child(2) {
    width: 100vw;
    height: 62vw;
    }
    
    .ptercera img:nth-child(3) {
    display: none;
    }
    
    .ptercera h2 {
    left: 35%;
    top: 69vw;
    }
    
    .anuncios_talleres{
    height: 90vw;
    min-height: 0px;
    }
    
    .anuncios_talleres h2{
    margin-top: 6vw;
    }
    
    .anuncios_talleres p{
    margin-bottom: 0px;
    }
    
    .anuncios_talleres .banner {
    height: 70vw;
    width: 92vw;
    margin-left: 4vw;
    margin-right: 4vw;
    }
    
    .slider li {
    width: 46vw;
    }
    
    .anuncios_talleres .slider img {
    height: 56vw;
    width: 46vw;
    border: 0px solid #00a8f3;
    border-radius: 0px;
    }
    
    .pquinta{
    height: 110vw;
    min-height: 0px;
    }
    
    .psexta{
    height: 110vw;
    min-height: 0px;
    }
    
    .pprimera h2,
    .psegunda h2,
    .pcuarta h2,
    .ptercera h2,
    .anuncios_talleres h2,
    .pquinta h2,
    .psexta h2{
        font-size: 1.5rem;
    }
    
    .pprimera p,
    .psegunda p,
    .pcuarta p,
    .ptercera p,
    .anuncios_talleres p,
    .pquinta p,
    .psexta p{
        font-size: 1rem;
    }
    
    .pcuarta .icono_img,
    .pquinta .icono_img,
    .psexta .icono_img{
    height: 120px;
    margin-top: 9vh;
    }
    
    .pcuarta h2,
    .pquinta h2,
    .psexta h2{
    margin-top: 7%;
    }
    
}
/* ==========================================================================
   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 */
}

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