/*
 * HTML5 Boilerplate
 *
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

/* ==========================================================================
   Pipaon style
   ========================================================================== */

body{

}

  #menu{
    width: 100%;
    height: 185px;
    background-image: linear-gradient(#fff, 87%, rgba(255,255,255, 0));
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
  }

    img.firma{
        width: 139px;
        height: 171px;
        position: fixed;
        top: 15px;
        left: 50px;
    }

    nav{
        width: 750px;
        position: fixed;
        top: 95px;
        left: 250px;
        font-family: 'Din';
        font-size: 0.85em;
        font-weight: bolder;
        text-align: justify;
        z-index: 2;
    }

        nav ul{
            margin: 0;
            padding-left: 0;
            list-style-type: none;
            display: inline;
        }

        nav ul li{
            display: inline-block;
            position: relative;
            overflow: visible;
        }

            nav ul li img.tachado{
                position: absolute;
                top: -8px;
                left: -35px;
                z-index: -1;
            }

            nav ul li.joyas img.tachado{
                left: -42px;
            }

            nav ul li.blog img.tachado{
                left: -45px;
            }

            nav ul li a{
                display: inline-block;
                color: #000;
                text-decoration: none;
            }

        nav span{
            display: inline-block;
            width: 100%;
        }

    #content{
        width: 1000px;
        margin: 185px auto 0;
    }

        #legal{
          font-family: 'Din';
        }

        #artista, #pintura, #escultura, #joya, #blog, #contacto{
            width: 1000px;
            height: auto;
            min-height: 900px;
            margin: 185px auto 0;
            font-family: 'Din';
        }

        #artista{
            height: 1100px;
        }

        #contacto{
            width: 700px;
            min-width: 700px;
        }

            #contacto p{
                font-size: 1.25em;
            }

            div.info{
                width: 450px;
                margin-left: 25px;
                font-size: 0.85em;
                position: relative;
                display: inline-block;
            }

                div.info.small{
                    width: 300px;
                }

                div.info h5{
                    margin: 10px 0 10px 0;
                    font-size: 1.25em;
                    font-weight: bolder;
                    color: #ff5b31;
                }

                div.info p{
                    width: 430px;
                    margin-top: 7px;
                    font-size: 1.05em;
                }

                    div.info p a{
                        color: black;
                        font-weight: bold;
                    }

                    div.info p a:hover{
                        color: #ff5b31;
                    }

                div.info ul{
                    margin: 7px 0 0 7px;
                    font-size: 0.95em;
                    list-style: none;
                }

                div.info span{
                    color: #ff5b31;
                }

                    div.info div.control{
                        width: 300px;
                        height: 39px;
                        position: absolute;
                        top: 125px;
                    }

                        div.info div.control.pinturas ul{
                            margin: 0 52px 0 52px;
                        }

                        div.info div.control.escultura{
                            width: 325px;
                            top: 175px;
                        }

                            div.control.escultura ul{
                                margin: 0 65px 0 65px;
                            }

                        div.info div.control.big{
                            width: 350px;
                            top: 250px;
                        }

                        div.control div.left{
                            width: 39px;
                            height: 39px;
                            float: left;
                            background: url('../img/left.png') top;
                            cursor: pointer;
                        }

                            div.control div.left:hover{
                                background-position: bottom;
                            }

                        div.control div.right{
                            width: 39px;
                            height: 39px;
                            float: right;
                            background: url('../img/right.png') top;
                            cursor: pointer;
                        }

                            div.control div.right:hover{
                                background-position: bottom;
                            }

                        div.control ul{
                            margin: 0 70px 0 70px;
                            padding: 10px 0 0;
                            font-size: 1.2em;
                            text-align: justify;
                        }

                            div.control ul li{
                                display: inline;
                                font-weight: bold;
                            }

                                div.control ul li.selected{
                                    color: #ff5b31;
                                }

                            div.control ul span{
                                display: inline-block;
                                width: 100%;
                            }

                img.preview{
                    position: absolute;
                    top: 330px;
                }

            div.exposiciones{
                width: 950px;
                height: auto;
                margin: 0 auto;
                padding-top: 50px;
                clear: both;
                position: relative;
            }

                div.exposiciones .left{
                    float: left;
                }

                div.exposiciones .right{
                    float: right;
                    margin-right: 58px;
                }

                div.exposiciones h5{
                    margin: 10px 0 10px 0;
                    font-size: 1.05em;
                    font-weight: bolder;
                    color: #ff5b31;
                }

                div.exposiciones ul{
                    margin: 7px 0 0 7px;
                    font-size: 0.95em;
                    list-style: none;
                }

                div.exposiciones span{
                    color: #ff5b31;
                }

                div.exposiciones iframe{
                    position: absolute;
                    top: 418px;
                    left: 3px;
                }

            div.imagen{
                float: right;
                margin-right: 25px;
            }

                div.imagen img.artista{
                    width: 450px;
                    height: 341px;
                }

            div.galeria-pinturas{
                width: 600px;
                height: 742px;
                float: right;
            }

            div.galeria-esculturas{
                width: 600px;
                height: 594px;
                float: right;
            }

            div.galeria-joyas{
                width: 450px;
                height: 525px;
                float: right;
            }

        #escultura iframe{
            float: right;
            margin: 100px 71px 0 0;
        }

        #contact-form{
            width: 350px;
            float: right;
            font-family: 'Din';
        }

            #contact-form h5{
                margin: 7px 0 7px 0;
                font-size: 1.15em;
                font-weight: bolder;
                color: #ff5b31;
            }

            #contact-form div.fieldgroup{
                width: 350px;
                margin-bottom: 12px;
            }

                div.fieldgroup label{
                    font-size: 0.9em;
                    display: inline;
                }

                    div.fieldgroup label.error{
                        display: block;
                        color: #ff5b31;
                    }

                div.fieldgroup input{
                    float: right;
                }

                div.fieldgroup input[type="text"], div.fieldgroup textarea{
                    width: 220px;
                    display: inline;
                }

                div.fieldgroup input[type="submit"]{
                    width: 85px;
                    height: 39px;
                    background: url('../img/boton-enviar.png') top;
                    border: none;
                    text-indent: -9999px;
                }

                    div.fieldgroup input[type="submit"]:hover{
                        background-position: bottom;
                    }

                div.fieldgroup textarea{
                    height: 100px;
                    border: 2px inset;
                    float: right;
                }

            #contact-form #mensaje{
                color: #ff5b31;
            }

#cookies{
  width: 100%;
  border-top: 2px solid #cf0a2c;
  font-family: 'Din';
  font-size: 1em;
  text-align: center;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
  z-index: 1;
  display: none;
}

  #cookies p{
    margin: 3px 0;
  }

    #cookies p a{
      color: #000;
    }

  #cookies img{
    width: 20px;
    margin-left: 30px;
    cursor: pointer;
  }

/* ==========================================================================
   Pipaon fonts
   ========================================================================== */

@font-face {
    font-family: 'Din';
    src: url('../fonts/DINPro-Light.otf') format("opentype");
    font-weight: normal;
    font-style: normal;
}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

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

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses 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 only screen and (max-width: 1024px) {
    nav{
        width: 700px;
    }
}

@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 required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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