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

/* ==========================================================================
   Custom styles
   ========================================================================== */
/*General*/
body {
    font: 400 16px/1.8 "Helvetica Neue",Helvetica,Arial,sans-serif
	line-height: 1.42857143;
	color: #333;
}
/*body {font: 400 16px/1.8 DIN_Pro_Regular_Italic;line-height:20px;-webkit-font-smoothing: antialiased;} */
p {margin-bottom: 20px;}
a {color: #264f7c;text-decoration: none !important;-webkit-transition: color 0.3s;transition: color 0.3s; }
a:hover {color: #CC0000;}
h1,h2,h3,h4,h5,h6 {color: #264f7c; font-family:robotocondensed_italic; font-weight: bold; margin-top: 0;text-shadow: 1px 1px 1px rgba(0,0,0,0.2);}
h5{ font-size:1.3em;  }
.section-title {margin: 0 auto 30px;}
.section-title h2 { /*text-transform: uppercase; font-weight:bold;*/ font-size: 1.7em; border-bottom: #56779b solid 1px; background-color: #264F7C; color:#fff; padding: 10px auto;}
/*.section-title p {text-transform: uppercase;font-weight:bold; line-height:1;}  */
.hover img:hover {-webkit-transform: scale(1.2);-moz-transform: scale(1.2);-o-transform: scale(1.2); /*opacity: 1;*/z-index: 10;}
.back0{ background-color: #fff; }
.scrolltop{background-color: black;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";filter: alpha(opacity=40);-moz-opacity:0.4;-khtml-opacity: 0.4;opacity: 0.4;/*border: 1px solid grey;*/border-radius:4px;cursor:pointer; }
.scrolltop:hover{ background-color: #2780D3; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";filter: alpha(opacity=1);-moz-opacity:1;-khtml-opacity: 1;opacity: 1; }
.nina{ margin:10px auto; text-align: center;}
.modal-header {border-bottom:none;}
.modal-footer {border-top:none;}



/*Header*/
.header{ background: transparent; }
.navbar-default {background-color: transparent;border-width: 0;margin-bottom: 0 !important;-webkit-transition: background-color 0.3s, height 0.3s;transition: background-color 0.3s, height 0.3s;}
.navbar-mini .navbar-default {/*background-color: rgba(40, 40, 40, 0.95);*/height: 50px;}
.navbar-mini .navbar-default .navbar-brand {padding: 15px 15px;}
.navbar-mini .navbar-default .navbar-brand img {height: 80px; margin-top:-10px}
.navbar-mini .navbar-default img{ margin:0 auto; }
.navbar-mini .navbar-default .navbar-nav > li.active > a,
.navbar-mini .navbar-default .navbar-nav > li.active a:hover,
.navbar-mini .navbar-default .navbar-nav > li.active a:focus,
.navbar-mini .navbar-default .navbar-nav > li.active a:active {/*background-color: rgba(0, 0, 0, 0.5);*/ color: #264f7c; background-color:#e7e7e7; }
.navbar-brand {height: auto;-webkit-transition: padding 0.3s;transition: padding 0.3s;}
.navbar-brand img {max-height: 80px;-webkit-transition: height 0.3s;transition: height 0.3s; margin-top: -15px;}
.navbar-nav > li > a {font-size: 15px;font-weight: 300;padding-left: 10px;padding-right: 10px;color: #fff;-webkit-transition: color 0.3s, background-color 0.3s, padding 0.3s;transition: color 0.3s, background-color 0.3s, padding 0.3s; letter-spacing: 1px;}
.navbar-nav > li > a:hover,.navbar-nav > li > a:focus,.navbar-nav > li > a:active {color: #264f7c;outline-width: 0; background-color:#e7e7e7; }
.navbar-nav > li.active > a,.navbar-nav > li.active a:hover,.navbar-nav > li.active a:focus,
.navbar-nav > li.active a:active {color: #264f7c; background-color:#e7e7e7; }
.navbar-default .navbar-nav > li > a {color: #fff;}
.navbar-default .navbar-nav > li.active > a,.navbar-default .navbar-nav > li.active a:hover,.navbar-default .navbar-nav > li.active a:focus,.navbar-default .navbar-nav > li.active a:active {color: #264f7c; /*background-color: rgba(0, 0, 0, 0);*/}
.navbar-default .navbar-nav > li > a:hover,.navbar-default .navbar-nav > li > a:focus {color: #264f7c; background-color:#e7e7e7; }
.navbar-brand{ padding-left: 5px;  }

.navbar-nav { background-color: rgba(40, 40, 40, 0.7);}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {background-color: #e7e7e7;}

/*Home*/
.back1 {background: url(../img/home/bnjm_1.jpg) #000 top center no-repeat; }
.back2 {background: url(../img/home/bnjm_2.jpg) #000 top center no-repeat;}
.back3 {background: url(../img/home/bnjm_3.jpg) #000 top center no-repeat;}
.back4 {background: url(../img/home/bnjm_4.jpg) #000 top center no-repeat;}
.back1,.back2,.back3,.back4{background-size: cover;background-attachment:fixed;margin:0 0 0;padding: 0;position: relative;height:100%;}
.home small{ color:#fff; }

.home{ height: 100%; }
.home-title{color:#fff; font-size:2em;}
.home-txt {text-align: center;text-shadow: 1px 1px 1px rgba(0,0,0,0.2); background-color: rgba(0, 0, 0, 0.5); padding:10px 0;margin-top:20.5%}
/*.home-txt .home-title {color: #fff;font-weight: bold;text-align:center; text-shadow:2px 2px 2px rgba(0,0,0,0.3);}
.home-txt .home-sub-title { color:#fff; }*/
.efemerides{ margin: 5px auto; }
.efemerides li{ margin: 0 15px; }
.efemerides a:hover, .news a:hover, .labiblioteca a:hover, .ascubi a:hover, .snbp a:hover, .pnl a:hover{opacity: 0.5; filter: alpha(opacity=50); /* For IE8 and earlier */}
.news .thumb img{ max-height:90px; float: right;}

.calendar{ font-family:robotocondensed_italic; font-size:2em; font-weight: bold; line-height:1em; /*text-align:center; background: url(../img/home/calendar.png) bottom right no-repeat; min-height: 70px; min-width: 70px*/text-shadow: 1px 1px 3px #808080; text-align: center; margin-top:5px}
.enlaces{ margin:10px auto 0; text-align: center; }
.const img{ max-width: 250px; margin: 0 auto; }
.banner img{ margin: 30px auto; }

/*Noticias*/
.paginas{ text-align: center; margin:20px auto;}
.paginas a{font-size: 1.2em;font-weight: bold;}
.active_pag{ background-color: #CC0000; color: #FFFFFF; font-weight: bold;font-size: 1.2em; padding: 0 3px;}

/*Contact*/
.contact li{ margin-bottom:20px; }
.btn-warning{ background-color: #cd2878; border-color:  #CD2878 }

.mark{ color: #FF0000; font-weight: bold;}

.bibliotecas_digitales{ margin:20px 0 0;}

/*Conozca Cuba*/
.conozca_cuba{ margin: 20px auto; }
.conozca_cuba li{ margin-bottom: 15px;}

/*News*/
.backnews{ background-color: #E7E7E7; }
.news, .events_home{ margin:20px 0;}
.news li{ margin-bottom:10px;}
.events_home li{ margin-bottom:3px;}
.noti { margin-bottom: 20px; }
.noti li { min-height: 110px; margin-bottom: 20px;}

.holdernoti {width: 100px;height:100px;overflow: hidden;z-index: 10; padding: 0;
box-shadow: rgba(0,0,0, 0.5) 0px 0px 4px;}
.holdernoti img{ height: 180px; min-width:130px; /*width: 100%;*/ }
.center_in_holdernoti { position: relative;display: table-cell;vertical-align:middle;text-align:center;margin:-30px 0 0 -30px;z-index: 10;/*width: 300px;*/ }

.iframe-container { overflow: hidden; padding-top: 56.25%; position: relative; }
.iframe-container iframe {border: 0;height: 100%;left: 0;position: absolute;top: 0;width: 100%;margin-top: 0;   }
.notiselect li{height: auto;}
.notiselect { margin-bottom: 30px; }

.old_news{ margin:30px 0; }
.old_news h6{ font-size:110%;}
.old_news .imagen_der{ float:right; }
.old_news .imagen_izq{ float:left; }
.old_news img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	padding: 4px;
	line-height: 1.42857143;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	-webkit-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}
.old_news .centro{ text-align: center;}
.old_news p{ clear: both;}
.old_news li{margin-bottom:10px; height: auto; }
.keyword{ background-color:#FFFF00; color:#000; text-transform: uppercase;}



/*Directores*/
.hoverdir li{ padding-top: 5px; width: 150px; vertical-align: top; }
.hoverdir li:hover{-webkit-transform: scale(1.2);-moz-transform: scale(1.2);-o-transform: scale(1.2); /*opacity: 1;*/z-index: 10; background-color: #fff; border:#E7E7E7 solid 1px; box-shadow:4px 3px 5px -1px #808080;}

/*Organigrama*/
.primer_nivel,.segundo_nivel,.tercer_nivel,.cuarto_nivel{ min-height: 50px;}
.primer_nivel img,.segundo_nivel img,.tercer_nivel img,.cuarto_nivel img{border: 2px solid #ddd;}

.primer_nivel .row{padding:0 0 5px; }
.segundo_nivel .row{padding:10px 0 5px 4em;}
.tercer_nivel .row{padding:10px 0 5px 8em;}
.cuarto_nivel .row{padding:10px 0 5px 10em;}

.primer_nivel .cargo, .snbpest1{font-size:1.2em;font-weight: bold; color: #CC0000;}
.segundo_nivel .cargo, .snbpest2{font-size:1.2em;font-weight: bold; color: #264F7C;}
.tercer_nivel .cargo, .snbpest3{font-size:1.2em;font-weight: bold; color: #24AD05;}
.cuarto_nivel .cargo, .snbpest4{font-size:1.2em;font-weight: bold; color: #A7950C;}

/*Directores*/
.directores{background-color: #E7E7E7; margin:10px 0 20px; padding: 20px 0;}

/*Documentos*/
.documentos li{font-size: 90%}

h4.modal-title{ background-color: #2780D3; color:#fff; }
.close{ color:#fff;}

/*Colecciones*/
.colecc{ margin-bottom: 50px; }
.colecciones{ border: #E7E7E7 solid 1px; box-shadow:2px 3px 3px rgba(0,0,0,0.2); background-color: #D4E6F7;}
.colecciones li{ min-height: 70px;}

/*Catalogos*/
.separar{ margin: 50px 0 10px}
.iframe-container2 { overflow: hidden; padding-top: 56.25%;position:relative; margin: 0 0 20px;  padding: 20px 0; border-top: #D9D9D9 solid 1px; border-bottom: #D9D9D9 solid 1px;}
.iframe-container2 iframe {/*height: 100%;left: 10px;  position: absolute;top: 10px;*/width: 100%;min-height: 500px; margin-left: -30px; border: none}

/*PNL - ASCUBI*/
.ascubi .row,.pnl .row{ margin-bottom: 30px; }
.pnl dl{ margin-left: 20px; }

/*Galería*/
.galeria li{ height: 300px;}
.center_in_holder { position: relative;display: table-cell;vertical-align:middle;text-align:center;margin:-70px 0 0 -20px;z-index: 10;/*width: 300px;*/ height: 350px}
.holder {width: 100%;height:250px;overflow: hidden;z-index: 10; padding: 0;
box-shadow: rgba(0,0,0, 0.5) 0px 0px 4px;}

.center_in_holder:hover, .center_in_holdernoti:hover {-webkit-transform: scale(1.2);-moz-transform: scale(1.2);-o-transform: scale(1.2); opacity: 0.9;z-index: 10;
-moz-transition: all 0.8s ease-in-out; -webkit-transition: all 0.8s ease-in-out; -o-transition: all 0.8s ease-in-out;-ms-transition: all 0.8s ease-in-out;transition: all 0.8s ease-in-out;}
.estructura dt{font-size:1.2em;font-weight: bold; color: #CC0000;}
.estructura dd{ margin:0 20px 20px; }

/*SNBP*/
.ascubi li,.snbp li{ margin-bottom: 10px; }

/*Fechario*/
.label {
	display: inline;
	padding: .2em .6em .2em .5em;
	font-size: 100%;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25em;
}

/*Referencias*/
.norefer{ background-color: #8F0000; color:#fff; }

/*FAQ*/
.faq dt{ font-size: 120%; margin-bottom: 20px; background-color: #D4E6F7; padding: 0 10px;}
.faq dd{ margin:0 0 50px 20px; background-color: #E7E7E7;padding:10px 20px;}
.faq li{ list-style: circle}
/*Footer*/
.footer{/* border-top: #808080 solid 1px; */background-color: #E7E7E7;  margin:50px 0 0;}
.info{ font-size: 90%;/*margin:50px auto;*/ padding-top:20px; }
.copyright{ text-align: center; }
.info dd{ margin-bottom: 20px; }
ul.social li{ margin:0;padding:0; }
.info li{ margin-bottom: 5px; }
/*.fa{padding-right:5px; /* text-align: center; }  */
img.pull-left{ margin-right: 10px; }
.creditos li{ margin-bottom: 15px; }

/*ADMIN*/
ul.top_menu { text-align: center; background-color: #D4E6F7; font-size: 120%;}
ul.top_menu li { margin:5px auto; }
.form .row{ margin-bottom: 10px; }
.footeradmin{ margin:50px auto; }
.noticiasadmin{ margin-bottom: 50px; }

@media (max-width: 767px) {
    .navbar-default .navbar-collapse {background-color: rgba(0, 0, 0, .9);border:none;}
    .home .home-txt .home-title{ font-size:1.2em; }
    .container > .navbar-header{margin-left:5px;}
    .efemerides, .enlaces{text-align: left; }

    .primer_nivel .row{padding:0 0 2px; }
    .segundo_nivel .row{padding:10px 0 5px 2px;}
    .tercer_nivel .row{padding:10px 0 5px 2px;}
    .cuarto_nivel .row{padding:10px 0 5px 2px;}
    }
@media(max-width:350px) {
 .home .home-txt {padding:5px 0;margin-top:50% }
 .segundo_nivel, .tercer_nivel, .cuarto_nivel{margin-left:0;}
 .iframe-container2 {min-height: 300px; width: 130%}

    .primer_nivel .row{padding:0 0 2px; }
    .segundo_nivel .row{padding:10px 0 5px 2px;}
    .tercer_nivel .row{padding:10px 0 5px 2px;}
    .cuarto_nivel .row{padding:10px 0 5px 2px;}
}
/* ==========================================================================
   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;
    }
}
