html, body {
    height: 100%;
}

body {
    font-size: 13px;
    font-family: 'Open Sans', Helvetica, sans-serif;
    padding: 0;
    margin: 0;
}

* {
    outline: none;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100%;
    vertical-align: top;
    background-repeat: no-repeat;
    position: relative;
    transition: all .2s;
}

*.no-transition {
    transition: none;
}

.middlestyle {
    text-align: center;
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: auto;
    padding-top: 100px;
    z-index: 1;
}

.content-box {
    box-sizing: content-box;
}

#content {
    /*padding: 30px;*/
    padding-top: 15px;
}

pre {
    max-width: 100%;
    padding: 21px 15px 20px;
    color: black;
    border: 1px solid #6E6E6E;
    border-radius: 5px;
    margin: 15px 0;
    display: block;
    line-height: 21px !important;
    background: #fff;
    background: -moz-linear-gradient(top, #fff 50%, #eee 50%);
    background: -webkit-linear-gradient(top, #fff 50%, #eee 50%);
    background: -o-linear-gradient(top, #fff 50%, #eee 50%);
    background: linear-gradient(top, #fff 50%, #eee 50%);
    background-size: 42px 42px;
    white-space: pre-wrap;
    max-height: 500px;
    overflow: auto;
    position: relative;
}

.textright {
    text-align: right;
}

span, span * {
    vertical-align: baseline;
}

span.superindice {
    font-size: 0.5em;
    text-align: left;
    vertical-align: top;
}

h1 {
    text-align: left;
    text-transform: uppercase;
    font-weight: normal;
    font-style: oblique;
    line-height: normal;
    font-size: 20px;
}

h2 {
    font-style: oblique;
    font-weight: normal;
}

h3 {
    font-style: oblique;
    font-weight: normal;
    text-transform: uppercase;
}

h4 {
    text-transform: uppercase;
}

div, section, ul, a {
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: normal;
}

ul, ul > li {
    list-style: none;
    display: inline-block;
    padding: 0;
    margin: 0;
}

a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.5s;
    cursor: pointer;
}

a:hover {
    text-decoration: none;
    color: #D72448;
}

.red {
    color: #D72448;
}

.green {
    color: #158416;
}

/*-------------------
    FOTO PREVIEW
 */

img.with-preview {
    cursor: pointer;
}

#foto-preview-container {
    background: rgba(0, 0, 0, .8);
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 10;
}

#foto-preview-container .controls {
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;
    max-height: 0;
    width: 100%;
    background: rgba(0, 0, 0, .60);
    transition: all 1s;
    overflow: hidden;
    padding: 0 10px;
    z-index: 1;
    color: white;
}

#foto-preview-container .controls.visible {
    max-height: 150px;
    transition: all 1s;
}

#foto-preview-container .controls .close {
    height: 40px;
    cursor: pointer;
    line-height: 40px;
    vertical-align: middle;
    font-size: 20px;
    font-weight: 100;
}

#foto-preview-container .controls .close i {
    padding: 5px;
    font-size: 28px;
}

#foto-preview-container figure {
    text-align: center;
    height: 100%;
}

#foto-preview-container figure.main img {
    padding: 20px;
    vertical-align: middle;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#foto-preview-info {
    vertical-align: middle;
    line-height: 40px;
}

#foto-preview-info #logo {
    height: 30px;
    vertical-align: middle;
    margin-top: -5px;
}

/*-------------------
    TABS
 */

.tab-label {
    padding: 2px 7px;
    border: 1px solid #747474;
    text-transform: uppercase;
    font-size: .8em;
    cursor: pointer;
}

.tab-label.active {
    background-color: #747474;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: inline-block;
}

/*-------------------
	SWAP
	----------------*/
.swap {
    max-height: 0 !important;
    transition: max-height 1s;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.swapped {
    transition: max-height 1s;
    max-height: 3000px;
}

i.swap-icon {
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 1s;
    display: block;
}

/*-------------------
	LISTADOS
	----------------*/

.table.listado {
    display: table;
}

.caption.listado {
    display: table-caption;
}

.tr.listado {
    width: 100%;
    display: table-row;
}

.th.listado {
    width: 100%;
    display: table-cell;
}

.td.listado {
    display: table-cell;
}

.listado-actions {
    text-align: right;
    width: 100%;
    padding-right: 5px
}

table.listado, .table.listado {
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
    border: 2px solid #b2b2b2;
    font-size: 12px;
}

table.listado {
    border-collapse: collapse;
}

table.listado caption, .caption.listado {
    font-style: oblique;
    font-weight: normal;
    font-size: 1.8em;
    text-align: left;
    padding: 7px 7px 15px 0;
}

table.listado tr {
    border-collapse: collapse;
}

table.listado tr:nth-child(odd), .tr.listado:nth-child(even) {
    background-color: #f2f2f2
}

.tr.listado.pretty:nth-child(odd) {
    background-color: #f2f2f2
}

.tr.listado.pretty:nth-child(even) {
    background-color: #fff
}

table.listado td, .td.listado {
    padding: 10px;
    vertical-align: middle;
    margin-bottom: 10px;
    overflow: hidden;
    border-collapse: collapse;
}

table.listado td.nombre {
    text-transform: uppercase;
}

table.listado td.cabecera {
    padding: 10px 30px;
}

table.listado td.cabecera img {
    border-radius: 50%;
}

table.listado th, .th.listado {
    padding: 10px;
    background-color: white;
    text-align: left;
    font-weight: 700;
}

table.listado a, .table.listado a {
}

table.listado.public td {
    vertical-align: top;
}

table.listado.public a {
    font-size: inherit;
}

/*-------------------
	MENU
	-------------------*/
ul.menu {
    width: 100%;
    text-align: left;
}

ul.menu > li, .button:not(.unstyled) {
    padding: 10px;
    border: 1px solid #b2b2b2;
    color: black;
    background: white;
    margin: 5px;
    text-transform: uppercase;
    cursor: pointer;
}

ul.menu > li.dark, .button.dark {
    background-color: #545454;
    color: white;
    border: 1px solid #747474;
}

ul.menu > li.dark:hover, .button.dark:hover {
    background-color: #333;
    color: white;
}

.button.medium {
    padding: 7px;
    margin: 3px;
    font-size: .9em;
}

.button.small {
    padding: 7px;
    margin: 3px;
    font-size: .7em;
}

ul.menu > li:first-child {
    margin-left: 0;
}

ul.menu > li.inactive, .button.inactive {
    color: #b2b2b2;
    cursor: default;
}

ul.menu > li.unmarged, .button.unmarged {
    margin: 0;
}

ul.menu > li.unmarged, .button.unmarged-left {
    margin-left: 0;
}

ul.menu > li.unmarged, .button.unmarged-right {
    margin-right: 0;
}

ul.menu > li:not(.inactive):hover, .button:not(.unstyled):not(.inactive):hover {
    background-color: #349cb4;
    color: white;
    border-color: #349cb4;
}

ul.menu > li a, .button a {
    font-weight: normal;
}


/*-----------------
	NOTICIATIONS
------------------*/
body > .notifications-container {
    padding: 40px;
}

.notifications-container {
    width: 100%;
    margin-bottom: 20px;
}

.notification {
    border: 2px solid grey;
    border-radius: 5px;
    background: #e9e9e9;
    color: black;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
}

.notification.success {
    border-color: #129919;
    background-color: #5C9946;
    color: white;
}

.notification.error {
    border-color: #c40000;
    background-color: #C46159;
    color: white;
}

/**/

header, section {
    /*
    width: 1240px;
    */
    position: relative;
    margin: auto;
    display: block;
    overflow: hidden;
}

header {
    overflow: visible !important;
}

header.none {
    display: none;
}

div.title, div.message {
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    font-size: 22px;
}

div.title a:hover {
    text-decoration: none;
    color: #D72448;
}

/*-------------------------------
	HOME
	-----------------------------*/
img#caporale {
    max-width: 150px;
    border: 1px solid #b2b2b2;
}

div.home-cv {
    padding-left: 40px;
    display: none;
}

/*-------------------------------
	SLIDESHOW
	-----------------------------*/
div.slideshow {
    height: 600px;
    line-height: 600px;
    width: 1240px;
    position: relative;
    overflow: hidden;
}

div.slide {
    position: relative;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    position: absolute;
    line-height: inherit;
    overflow: hidden;
}

div.slide a {
    vertical-align: top;
}

div.slide img {
    height: auto;
    width: 100%;
}

div.slideshow ul.controls {
    width: 100%;
    text-align: center;
    height: 60px;
    line-height: 40px;
    padding: 10px;
    vertical-align: bottom;
    z-index: 2;
    position: absolute;
    bottom: 0;
}

div.slideshow li.control {
    height: 20px;
    width: 20px;
    background-size: 100% 100%;
    cursor: pointer;
    display: inline-block;
    background: white;
    border: 1px solid black;
}

/*----------------------------------
	GALLERY
	-------------------------------*/
#gallery {
    width: 100%;
}

div.gallery-single {
    text-align: center;
}

div.gallery-single iframe {
    float: left;
}

div.gallery div.image-container {
    height: 250px;
    overflow: hidden;
    padding: 5px;
}

div.gallery div.image-frame {
    height: 250px;
    max-height: 100%;
    overflow: hidden;
    padding: 25px;
    border: 1px solid #b2b2b2;
    text-align: center;
}

/*------------------------------
	TEXTOS
	----------------------------*/
div.textos h1 {
    text-align: left;
}

div.textos p {
    font-size: 1.2em;
}

div.textos p.footnote, div.textos p.bajada {
    font-size: 1em;
}

div.textos div.cuerpo-del-texto {
    margin-top: 20px;
    margin-bottom: 10px;
}

/*----------------------------
	OBRAS
	-------------------------*/
div.enlaces {
    text-align: left;
    font-size: 0.9em;
    vertical-align: middle;
}

div.enlaces a {
    font-size: 1.1em;
}

div.nav-ant-sig a {
    font-weight: normal;
}

div.nav-ant-sig.images {
    height: 0;
    padding: 0;
}

div.nav-ant-sig.images a {
    font-size: 20px;
    height: 40px;
    width: 40px;
    line-height: 40px;
    color: #b1b1b1;
    border: 1px solid #b1b1b1;
    border-radius: 5px;
}

div.nav-ant-sig.images a:hover {
    color: black;
    border-color: black;
    text-decoration: none;
}

div.nav-sig {
    float: right;
}

div.nav-ant-sig.images > div {
    vertical-align: middle;
    text-align: center;
    position: fixed;
    top: 50%;
}

div.nav-ant-sig.images div.nav-sig {
    right: 5px;
}

div.nav-ant-sig.images div.nav-ant {
    left: 5px;
}

/* */

ul.image-changer {
    text-align: right;
    width: 100%;
    margin-top: 10px;
}

ul.image-changer li {
    width: 20px;
    height: 20px;
    text-align: center;
    margin-left: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    background-color: #D72448;
    transition: all .2s;
    color: white;
    opacity: .5;
}

ul.image-changer li.active {
    opacity: 1;
    transition: all .2s;
}

/*----------------------------
	IMAGES
	-------------------------*/
#video {
    margin: auto;
    text-align: center;
}

#image-description-24 {
    margin-bottom: 5px;
}

.underlined {
    border-bottom: 1px solid #b2b2b2;
}

#pages-links {
    line-height: 25px;
}

#pages-links ul {
    vertical-align: middle;
}

i.image-preload {
    color: #949494;
    font-size: 16px;
    vertical-align: middle;
    width: 100%;
    text-align: center;
}

/*-----------------------
	AJAX
	------------------*/
#ajax-container {
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    z-index: 99;
}

#ajax-nav {
    background: white;
    height: 50px;
    position: absolute;
    left: 20px;
    right: 20px;
    margin: auto;
    padding: 10px;
    border-bottom: 2px solid #b2b2b2;
    z-index: 2;
}

#ajax-nav ul {
    padding: 0;
}

#ajax-nav li {
    cursor: pointer;
    padding: 0;
    line-height: 25px;
    font-weight: 600;
    transition: all .5s;
    color: #747474;
    max-width: 0;
    overflow: hidden;
}

#ajax-nav li.visible {
    max-width: 500px;
}

#ajax-nav li.visible:hover {
    color: #D72448;
    transition: all .2s;
}

#ajax-nav li:last-child:after {
    display: none;
}

#ajax-nav li.visible:not(:last-child):after {
    content: '|';
    margin-left: 10px;
    margin-right: 10px;
    vertical-align: top;
    margin-top: -2px;
    display: inline-block;
    position: relative;
}

#ajax-body {
    background: white;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
    padding-top: 70px;
    overflow: auto;
}

#dynamic-ajax {
    width: 100%;
}

/*---------------------------
	PAGINADOR
	-------------------------*/
ul.paginador {
    padding: 20px 0;
}

ul.paginador li {
    width: 30px;
    height: 30px;
    text-align: center;
    margin: 5px;
    border: 1px solid #b2b2b2;
}

ul.paginador li.current {
    line-height: 30px;
    border-color: #333;
    color: #333;
}

ul.paginador li a {
    vertical-align: middle;
    color: #b2b2b2;
    width: 100%;
    height: 100%;
    line-height: 28px;
}

ul.paginador li:hover {
    border-color: #333;
}

ul.paginador li:hover a {
    color: #333;
}

/*---------------------------
	FOOTER
	-------------------------*/
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

/*---------------------------
	ICONS
	-------------------------*/
.fa { vertical-align: middle }

/*---------------------------
	jQUERY
	-------------------------*/
.accordion, .accordion *{
    transition:none;
}

/*----------------------------------
	RESPONSIVE
	-------------------------------*/

@media all and (max-width: 960px) {
    div.gallery div.image-container {
        height: auto;
    }

    div.gallery div.image-frame {
        height: auto;
    }
}

@media all and (max-width: 520px) {
    header div.textright {
        margin-bottom: 15px;
    }
}
