/*! HTML5 Boilerplate v6.1.0 | 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
   ========================================================================== */
:root{
    --titulos: 'Quicksand', sans-serif;;  
}
html{
    box-sizing: border-box;
}

*, *:before, *:after{
    box-sizing: inherit
}
*{
    margin: 0;
    padding: 0;
}

h2{
    text-align: center;
    margin-top: 35px;
    font-family: var(--titulos);
   text-transform: uppercase;
    
}
h2:after{
    content: '';
    margin: 0 auto;
    background-image: url(../img/separador.png);
    height: 30px;
    width: 100px;
    display: block;}

h3{
    text-align: center;
    margin-top: 10px;
    font-family: var(--titulos);
    text-transform: uppercase;
}
h4{
   font-family: var(--titulos);
    text-align: center;
    margin-top: 10px;
    text-transform: uppercase;
}
span{
    font-weight: bold;
}
.contenedor p{
    margin: 20px 50px;
    text-align: justify;
    font-family: 'Josefin Sans', sans-serif;;
    
}
header{
    max-height: 300px;
    width: 100%;
    position: fixed;
    z-index: 100;
    background-color: white;
}
.contenedor{
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background-color: white;
}
.menuescritorio{
    width: 80%;
}
div .logo{
    text-align: center;
    width: 25%;
    float: left;
    background-color: white;
   
}
div.logo img{
    width: 95%;
}
div.menu{
    background-color:white;
    width: 75%;
    float: right;
    margin-top: 22px;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    
    
}


.menu nav ul{
    list-style: none;
    border-radius: 20px;
     
}
.menu nav >ul >li{
    float: left;
    width: 20%;
    
    

}
.menu nav >ul >li:last-child{
    margin-right: 0;
    
}
.menu nav ul:after{
    content: '';
    display: block;
    clear: both;
}

.menu nav ul li a{
    display: inline-block;
    width: 150px;
    font-size: 13px;
    color: black;
    text-decoration: none;
    text-align: center;
    padding:  14px 7px;
    font-family: 'Josefin Sans', sans-serif;
    border-radius: 10px; 
    
    
}

.menu nav ul li a:hover{
    background-color: #e4b8c9;
    border-radius: 10px;
    z-index: 10;
    
}

/**SUBMENU*/

.menu nav ul ul{
    position: absolute;
    top: 100%;
    background-color: RGBA(255,255,255,.9);
    display: none;
    border: solid 2px #e4b8c9; 
    
}

.menu nav ul li:hover >ul {
    display: block;
    margin-top: 1px;
    
}

/** MENU MOVILL **/


/**CABECERA MENU Y CUERPO Tablet*/

@media only screen and (max-width:768px){
    .menu nav >ul >li{
        float: none;
        width: 20%;
                
                    }
                div.logo{
                    float: none;
                    margin: 0 auto;
                    width: 100%;
                }
                div.logo img{
                width: 150px;
                
                }
                div.menu{
                    float: none;
                    position: relative;
                    width:100%;
                    margin: 0 auto;
                                
                }
              
                .menu nav >ul >li{
                    float: left;
                    

            }
                .menu nav ul:after{
                    content: '';
                    display: block;
                    clear: both;
                }
                .menu nav ul li a{
                display: inline-block;
                
                color: black;
                text-decoration: none;
                text-align: center;
                padding: 10px;
                margin-right: 10px;
                margin-left: 10px;  
            }
                .contenedor{
                margin: 0 auto;
            }
                .contenedor p{
               margin: 20px 50px
            }
                 div.imagencerdos img{
                width: 80%;
            }

                div.imagencerdos:before{
                    display: none;
    }
            
   
}

/**CABECERA MENU Y CUERPO MOVIL*/

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

    .menu{
        display: none;
    }
    div.logo img{
      }
    .contenedor{
        
        margin: 0 auto;
            }
     .contenedor p{
               margin: 0 50px;
         margin-bottom: 10px;
            }

    div.menumovil{
        
        width: 25px;
        display: block;
        float: left;
        text-align: right;
        margin-top: -30px;
        margin-left: 40px;
        z-index: 1;
    }
   
    div.menumovil:hover{
        cursor: pointer;
    }
    
    div.menumovil span{
        height: 4px;
        margin-bottom: 3px;
        background-color: #e4b8c9;
        display: block;
        
        
    }
     div.logo{
        float: none;
        width:100%;
    }
    div.logo img{
        width: 150px;

        }
    div.menu{
        float: none;
        position: relative;
        width:95%;
        margin: 0 auto;
        
 
    }
    .menu nav >ul >li{
        float: none;
        width: 100%;  
        
    }
   
   
     .menu nav ul li a{
        display: block;
        width: 100%;
        color: black;
        text-decoration: none;
        text-align: center;
        padding: 10px;        

    }
    
    .menu nav ul ul{
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    margin-left: 10px;
    display: none;
    border: solid 2px rgba(205,205,205, 0.5);
    background-color: RGBA(207,207,207,0.1)
    
}
 

.menu nav ul ul:hover >ul a{
    display: inline-block;
    width: 100%;
    margin: 0 auto;
    
}
    
    
 div.imagencerdos img{
    width: 40%;
}


div.imagencerdos:before{
    background-image: url(../img/cerditosmovil.jpg);
    display: none;
    content: '';
}

}



/**FOTOS CERDITOS PARALLAX*/
/**position: absolute;*/

.parallax:before{
    width: 100%;
    height: 100%;
    
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    background-attachment: fixed;
}
div.imagencerdos{
    position: relative;
    height: 50%;
    
}
div.imagencerdos img{
    width: 100%;
}


div.imagencerdos:before{
    background-image: url(../img/cerditos.jpg);
    content: '';
}


/**NUESTRA EMPRESA*/

article{
    display: flex;
    padding-bottom: 20px;
    
    
}

.descripcion-dto{
    width: 70%;
    
}
.foto{
    width: 30%;
}
.contenido{
    'box-shadow: 0px 5px 5px #999;
    margin-bottom: 20px;
   padding-bottom: 20px;
    
}
.fondo{
    background-color: #fcfcfc;
    padding-top: 5px;
    margin-top: 5px;
}
.contenido p{
    text-indent: 15px;
}
article img{
    float: left;
    width: 200px;
    margin-left: 130px;
    margin-right: 30px;
}
article p{
    text-align: center;
       
}
.descripcion-dto p{
    text-indent: 0;
}

.derecha.foto{
    float: right;
    text-align: center;
    padding-bottom: 20px;
    
}
.derecha.foto img{
    width: 200px;
    'margin-right: 120px;
    padding-bottom: 20px;
    
}
.derecha.descripcion-dto{
    float: left;
    max-width: 60%;
    margin-left: 70px;
    
}
.persona{
    margin-top: 10px;
    display: inline-block;
    width: 100%;
}


@media only screen and (max-width:768px){
  article img{
    float: left;
    width: 75%;
    margin-left: 30px;
    margin-right: 30px;
}
article p{
    text-align: center;

} 
.derecha.foto img{
    width: 75%;
    margin-right: 40px;
    padding-bottom: 20px;
    
}
.derecha.descripcion-dto{
    float: left;
    width: 70%;
    margin-left: 10px;
    
}
.descripcion-dto{
    width: 70%;
    
}
.foto{
    width: 30%;
}
   
}



@media only screen and (max-width:480px){
    article{
        width: 100%;
        text-align: center;
        display: block;
    }
    article img{
    float: none;
    width: 50%;
    margin-top: 10px;
    
}
    
    .descripcion-dto{
        margin-top: 15px;
    }
    p{
         font-size: .8rem; 
    }
    article p{
        text-align: center;
        margin-top: 10px;
         
    } 
    article .foto p{
        margin-top: 10px;
           

        
    }
    .derecha{
        display: inline-block;
    }
    .derecha.foto{
        float: none;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }
.derecha.foto img{
    width: 50%;
    margin-top: 10px;
    padding-bottom: 0;
    margin-right: 0;
    
}
.derecha.descripcion-dto{
    float: none;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%
    
}
    .derecha.descripcion-dto p{
        'margin:  0 auto;
        width: 100%;
        'text-align: center;
         

    }  
  
    
    .descripcion-dto{
    width: 100%;
    
}
.foto{
    width: 100%;
}
}



/**PIE DE PAGINA*/


footer:after{
    content: '';
    display: block;
    clear: both;  
}
footer{
    background-color: rgba(228,184,201,0.2);
    padding-top: 20px;
    font-family: 'Josefin Sans', sans-serif;
    
}
.logofooter img{
    width: 65%;
}
.logofooter{
    text-align: center;
    width: 25%;
    float: left;
}
.mapaweb{
    width: 50%;
    float: left;
    text-align: center;
    margin: 0 auto;
}
.contactofooter{
    width: 25%;
    float: right;
    
}
.mapaweb p{
    padding-top: 15px;
}


.menufooter nav ul{
    list-style: none;
      
}
.menufooter nav >ul >li:last-child{
    margin-right: 0;
}
.menufooter nav >ul >li{
    float: left;
    display: inline-block;
    width: 20%;
}
.menufooter nav ul:after{
    content: '';
    display: block;
    clear: both;
}

.menufooter nav ul li a{
    display: inline-block;
    max-width: 120px;
    color: black;
    text-decoration: none;
    text-align: center;
    padding: 15px 20px;
     font-size: 12px;
    margin: 0 10px;   
}
 
.redessociales i{
    color: palevioletred;
    padding: 5px 15px;
    margin-top: 10px;
}
.contactofooter{
    text-align: center;
}
.contactofooter h3{
    text-align: center
}
.contactofooter p{
    padding-top: 10px;font-size: .8rem;
}
p.copyright{
    background-color: rgba(228,184,201,0.2);
    padding: 10px 0;
    color: palevioletred;
    text-align: center;
    margin: 0;
}

/**PIE TABLET*/
@media only screen and (max-width:768px){
    
    .logofooter{
        width: 20%;
        padding-top: 10px;
    }
    .logofooter img{
        width: 95%;
    }
    .mapaweb{
        width: 60%;
        padding-top: 10px;   
    }
    .contactofooter{
        width: 20%;
        font-size: .5rem;
       
    }
    .contenedor{
        width: 100%;
    }
    .mapaweb nav ul li a{
        margin: 0 auto;
        
    }
    .menufooter nav ul li a{
        padding: 0;
        font-size: .6rem
    }
     .contactofooter h3{
        font-size: 1rem;
    }
   

   
}
/**BOTON SUBIR A INICIO
*/
.back-to-top {
    position: fixed;
    bottom: 2em;
    right: 0px;
    text-decoration: none;
    color: #000000;
    background-color: rgba(235, 235, 235, 0.80);
    font-size: 12px;
    padding: 1em;
    display: none;
}


.back-to-top:hover {    
    background-color: rgba(135, 135, 135, 0.50);
}

/**PIE MOVIL*/
@media only screen and (max-width:480px){
    footer{
        display: inline-block;
    }
    .logofooter{
        
        width: 100%;
    }
    .logofooter img{
        width: 30%;
    }
    .mapaweb{
        width: 100%;
    }
    .contactofooter{
        width: 100%;
    }
    .contactofooter h3{
        font-size: 1rem;
    }
}



/* CENTROS DE PRODUCCION*/


div.granja img{
    width: 20%;
    display: inline-block;
    -webkit-transition: all .2s ease-in-out;
   }
div.granja img:hover{
    border-radius: 15px;
    width: 25%;
    display: inline-block;
    -webkit-transform: scale(1.1);
   }
div.granja p{
    text-align: center;
    text-indent: 0;
}
div.galeria{
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
    
}
div.descripcion{
    margin-bottom: 15px;
}
div.descripcion p{
    font-size: 13px;
    text-align: center;
    margin: 10px 0;
    width: 40%;
    margin: 0 auto;

}



@media only screen and (max-width:480px){
   div.granja img{
    width: 30%;
    margin: 0 auto;
    margin-top: 5px;
   } 
    div.descripcion{
       margin-top: 10px; 
    }
     div.descripcion p{
    font-size: 13px;
    text-align: center;
    width: 50%;
}
}

/* CONTACTO*/

div.menucontacto{
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 25px;
}

div.formulario{
    border: solid 1px black;
    width: 400px;
    padding: 20px;
    text-align: center;
    font-family: 'Krub', sans-serif;
}

div.formulario input{
    margin-top: 7px;
    margin-bottom: 7px;
}
div.formulario textarea{
    margin-top: 7px;
}

div.formulario .boton{
    padding: 5px 10px;
    font-weight: bold;
}

div.contacto{
    width: 400px;
    text-align: center;
}
div.contacto p{
    text-align: center;
    font-size: 1.2em;
}

@media only screen and (max-width:767px){
    div.formulario{
       margin-left: 20px; 
       width: 380px;
    }
}
@media only screen and (max-width:480px){
   div.menucontacto{
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 25px;
} 
    div.formulario{
        margin: 0 auto;
        margin-bottom: 30px;
        width: 380px;
    }
    div.contacto{
    width: 100%;
    text-align: center;
    font-size: 0.8em;
}
}


/* LOGIN */

div.formularioacceso{
    border: solid 1px black;
    width: 400px;
    padding: 20px;
    text-align: center;
    font-family: 'Josefin Sans', sans-serif;
    margin: 0 auto;
    margin-top: 150px;
    margin-bottom: 250px;
}

div.formularioacceso label{
    width: 300px;
    text-align: right;
}
div.formularioacceso input{
    margin-top: 7px;
    margin-bottom: 7px;
}

div.formularioacceso .boton{
    padding: 5px 10px;
    font-weight: bold;
}

@media only screen and (max-width: 480px){
    div.formularioacceso{
        width: 80%;
    }
}



/* INNOVACION */
.logo-innovacion{
    text-align: center;
    float: left;
    width: 40%;
    
}

.logo-innovacion-derecha{
    text-align: center;
    float: right;
    width: 40%;
    
}

.logo-innovacion img{
    margin-top: 25px;
    margin-bottom: 25px;
    width: 90%;
}

.logo-innovacion-derecha img{
    margin-top: 25px;
    margin-bottom: 25px;
    width: 90%;
}

.listado{
    width: 60%;
    margin: 0 auto;
    font-family: 'Josefin Sans', sans-serif;
}

@media only screen and (max-width: 480px){
    .logo-innovacion{
        width: 50%;
    }
    
    .logo-innovacion-derecha{
        width: 50%;
    }
    .logo-innovacion img{
    margin-left: 15%;
    width: 80%;
    }
    .logo-innovacion-derecha img{
    margin-right: 15%;
    width: 80%;
    }
    .listado{
        margin-top: 15px;
        margin-bottom: 15px;
        font-size: .8rem;
    }
  
}









/* ==========================================================================
   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);
    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;
    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:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !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) ")";
    }

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