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

/* ==========================================================================
   AMV Abogados styles
   ========================================================================== */

html,body{
    min-width: 1000px;
    height: 100%;
}

header{
    width: 100%;
    height: 550px;
    font-family: 'Trajan';
}

    header #header-content{
        width: 980px;
        height: 150px;
        margin: 0 auto;
        position: relative;
    }

        header #header-content a.logo{
            position: absolute;
            top: 28px;
            left: 92px;
        }

        header #header-content a.link{
            width: 340px;
            height: 30px;
            position: absolute;
            top: 0;
            right: 0;
            background-color: #0c72b7;
            line-height: 2em;
            text-align: center;
            text-decoration: none;
            color: #fff;
            display: block;
        }

        header #header-content p{
            margin: 0;
            position: absolute;
            top: 48px;
            right: 0;
            font-size: 0.85em;
            font-weight: bold;
            text-align: right;
            color: #00133b;
        }

        header #header-content p a{
            color: #00133b;
        }

            header #header-content p a:hover{
                color: #33adff;
            }

    header #line-menu{
        width: 100%;
        height: 40px;
        background-image: linear-gradient(bottom, rgb(0,19,61) 49%, rgb(2,42,128) 0%);
        background-image: -o-linear-gradient(bottom, rgb(0,19,61) 49%, rgb(2,42,128) 0%);
        background-image: -moz-linear-gradient(bottom, rgb(0,19,61) 49%, rgb(2,42,128) 0%);
        background-image: -webkit-linear-gradient(bottom, rgb(0,19,61) 49%, rgb(2,42,128) 0%);
        background-image: -ms-linear-gradient(bottom, rgb(0,19,61) 49%, rgb(2,42,128) 0%);
        background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.49, rgb(0,19,61)), color-stop(0, rgb(2,42,128)));
    }

        header #line-menu #menu{
            width: 980px;
            height: 40px;
            margin: 0 auto;
        }

            header #line-menu a{
                text-decoration: none;
            }

                header #line-menu a h1{
                    margin: 0 0 0 30px; 
                    padding-top: 12px;
                    font-size: 1.2em;
                    font-weight: normal;
                    line-height: 1em;
                    display: inline-block;
                    color: #fff;
                }

            header #line-menu #menu .links{
                width: 570px;
                height: 30px;
                margin-top: 10px;
                float: right;
                font-size: 0.95em;
                font-weight: bold;
                text-align: justify;
                display: block;
            }

                header #line-menu #menu .links ul{
                    height: 30px;
                    margin: 0;
                    padding-left: 0;
                    list-style-type: none;
                    display: inline;
                    cursor: default;
                }

                    header #line-menu #menu .links ul li{
                        display: inline;
                    }

                    header #line-menu #menu .links ul li a{
                        padding-bottom: 9px;
                        display: inline-block;
                        color: #33adff;
                        cursor: pointer;
                    }

                        header #line-menu #menu .links ul li a.selected{
                            background: url('../img/arrow.png') center bottom no-repeat;
                        }

                    header #line-menu #menu .links span{
                        display: inline-block;
                        width: 100%;
                    }

    header #submenu{
        width: 980px;
        height: 30px;
        margin: 0 auto;
        font-family: 'GillSans';
    }

        header #submenu a{
            text-decoration: none;
        }

            header #submenu a h2{
                margin: 0 0 0 126px; 
                padding-top: 8px;
                font-size: 1em;
                font-weight: normal;
                line-height: 1em;
                display: inline-block;
                color: #00133b;
            }

        header #submenu .links{
            height: 20px;
            margin-top: 6px;
            float: right;
            font-size: 0.9em;
            text-align: justify;
            display: none;
        }

            header #submenu .links.firma{
                width: 470px;
                margin-right: 80px;
            }

            header #submenu .links.servicios{
                width: 620px;
            }

            header #submenu .links.selected{
                display: block;
            }

            header #submenu .links ul{
                margin: 0;
                padding-left: 0;
                list-style-type: none;
                display: inline;
                cursor: default;
                display: block;
            }

                header #submenu .links ul li{
                    display: inline;
                }

                header #submenu .links ul li a{
                    padding-bottom: 9px;
                    display: inline-block;
                    color: #00133b;
                }

                    header #submenu .links ul li a.selected{
                        color: #33adff;
                    }

                header #submenu .links span{
                    display: inline-block;
                    width: 100%;
                }

    header #banner{
        height: 330px;
        background-color: #00133b;
    }

        header #banner #slider{
            width: 980px;
            height: 330px;
            margin: 0 auto;
        }

        header #banner img{
            width: 980px;
            height: 330px;
            margin: 0 auto;
            display: block;
        }

#content{
    width: 980px;
    height: auto;
    margin: 0 auto;
    padding-bottom: 125px;
    font-family: 'GillSans';
}

    #content #columns{
        width: 940px;
        margin: 0 20px;
        overflow: auto;
    }

        #content #columns .left{
            width: 320px;
            float: left;
        }

            #content #columns .left p{
                margin-right: 25px;
                font-size: 1.2em;
                color: #33adff;
            }

            #content #columns .left.contacto p{
                margin: 0 25px 0 0;
                font-size: 1.2em;
                color: #858589;
            }

            #content #columns .left a{
                font-style: italic;
                color: #33adff;
            }

        #content #columns .right{
            width: 620px;
            float: right;
        }

            #content #columns .right p{
                font-size: 1em;
                color: #858589;
            }

            #content #columns .right p.margin {
                margin-top: 76px;
            }

            #content #columns .right ul{
                font-size: 1em;
                color: #858589;
            }

        #content #columns h1{
            margin: 25px 0;
            font-size: 1.5em;
            font-weight: normal;
            line-height: 1em;
            color: #00133b;
        }

        #content #columns .respuesta{
            margin-top: 65px;
            font-size: 1.2em;
            display: none;
        }

        #content #columns form{
            width: 500px;
        }

            #content #columns form ul{
                list-style-type: none;
            }

                #content #columns form ul li{
                    margin-bottom: 5px;
                    overflow: auto;
                }

                    #content #columns form ul li label{
                        margin-top: 5px;
                        float: left;
                    }

                    #content #columns form ul li input[type="text"]{
                        width: 250px;
                        margin-right: 100px;
                        border: 1px solid #858589;
                        padding: 3px 5px 3px 5px;
                        float: right;
                    }

                        #content #columns form ul li input[type="text"].error{
                            border: 2px solid red;
                        }

                    #content #columns form ul li input[type="submit"]{
                        margin-top: 20px;
                        float: right;
                    }

                    #content #columns form ul li textarea{
                        width: 350px;
                        border: 1px solid #858589;
                        padding: 3px 5px 3px 5px;
                        float: right;
                    }

                        #content #columns form ul li textarea.error{
                            border: 2px solid red;
                        }

.button{
    padding: 6px 35px;
    border: none;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #00133d), color-stop(1, #022a80) );
    background:-moz-linear-gradient( center top, #00133d 5%, #022a80 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00133d', endColorstr='#022a80');
    background-color: #00133d;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    display: inline-block;
}.button:hover{
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #022a80), color-stop(1, #00133d) );
    background:-moz-linear-gradient( center top, #022a80 5%, #00133d 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#022a80', endColorstr='#00133d');
    background-color:#022a80;
}

/* ==========================================================================
   AMV Abogados fonts
   ========================================================================== */

@font-face {
    font-family: 'Trajan';
    src: url('../fonts/trajan.woff') format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GillSans';
    src: url('../fonts/gillsansmt.woff') format("woff");
    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.
   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,
       (-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;
    }
}
