/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */


/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */


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


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
    --fuentePrincipal: 'Great Vibes', sans-serif;
    --fuenteSecundaria: 'Kameron', sans-serif;
    --primario: #375b69;
    --primarioOscuro: #2f4d58;
    --colorBoton: #4d7e92;
    --colorBotonHover: #3a5f6e;
    --secundario:rgb(57, 75, 175);
}

html {
    /*font-size: 62.5%;*/
    box-sizing: border-box;
}

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

body {
    background-color: #ffffff;
    font-family: var(--fuenteSecundaria);
}


/**Globales **/

.contenedor {
    width: 98%;
    margin: 0 auto;
}

@media only screen and (min-width:480px) {
    .contenedor {
        width: 95%;
    }
}

@media only screen and (min-width:768px) {
    .contenedor {
        width: 90%;
    }
}

@media only screen and (min-width:992px) {
    .contenedor {
        width: 90%;
        max-width: 1100px;
    }
}

.wf-300 {
    font-weight: 300;
}

.centrar-texto {
    text-align: center;
}

.button {
    background-color: var(--colorBoton);
    padding: 10px 40px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    font-size: 1em;
    margin-top: 20px;
    display: inline-block;
    transition: all .3s ease;
    border: 2px solid #4d7e92;;
}

.button.hollow,
.button.button.hover {
    text-decoration: none;
    background-color: white;
    color: #3a5f6e;
}

.button.transparente {
    background-color: transparent;
    border: 2px solid #ffffff;
}

.button.transparente:hover {
    text-decoration: none;
    border: 2px solid #3a5f6e;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.button:hover {
    background-color: var(--colorBotonHover);
    text-decoration: none;
}

h3 {
    font-family: var(--fuenteSecundaria);
    font-size: 18px;
}


/* Header */

.site-header {
    background-color: var(--primario);
    padding: 1rem 0 3rem 0;
}

.site-header.inicio {
    background-image: url(../img/portada.jpg);
    background-position: center center;
    background-size: cover;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    /*height: 95vh;*/
    /*min-width: 60rem;*/
}

.contenido-header {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.barra {
    padding-top: 3rem;
}

@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}


/*Navegacio */

.navegacion a {
    font-family: var(--fuenteSecundaria);
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    /*font-size: 1.8rem;*/
    /*== 18px*/
    display: block;
}

@media (min-width: 768px) {
    .navegacion a {
        display: inline-block;
        font-size: 20px;
        /*== 18px*/
        margin-right: 2rem;
    }
    .navegacion a:last-of-type {
        margin: 0;
    }
}

.navegacion a:hover {
    color: rgb(185, 187, 50);
}
.navegacion-redes a {
  font-family: var(--fuenteSecundaria);
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  /*font-size: 1.8rem;*/
  /*== 18px*/
  display: block;
}

@media (min-width: 768px) {
  .navegacion-redes a {
    display: inline-block;
    font-size: 20px;
    /*== 18px*/
    margin-right: 2rem;
  }

  .navegacion-redes a:last-of-type {
    margin: 0;
  }
}
.navegacion-redes a:hover {
  color: rgb(35, 79, 145);
}
.redes a {
  font-family: var(--fuenteSecundaria);
  color: #0a0a0a;
  text-decoration: none;
  font-size: 22px;
  /*font-size: 1.8rem;*/
  /*== 18px*/
  display: block;
}

@media (min-width: 768px) {
  .redes a {
    display: inline-block;
    font-size: 20px;
    /*== 18px*/
    margin-right: 2rem;
  }

  .redes a:last-of-type {
    margin: 0;
  }
}

.redes a:hover {
  color: rgb(35, 79, 145);
}

/** Movil Menu **/

.mobile-menu img {
    width: 5rem;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

.navegacion:target {
    display: block;
}

.navegacion {
    display: none;
}

@media only screen and (min-width: 768px) {
    .navegacion {
        display: block;
    }
}

h1.nombre-sitio {
    color: #ffffff;
    font-size: 3rem;
    /*line-height: 1;*/
    font-family: 'Great Vibes', sans-serif;
}

@media only screen and (min-width:768px) {
    h1.nombre-sitio {
        font-size: 5.8rem;
        margin: 3.5rem;
        /*line-height: 1;*/
    }
}


/*iconos*/

.icono-nosotros .icono img {
    /*float: left;*/
    width: 20%;
    border-radius: 50%;
    margin-left: 20px;
}

@media (min-width: 768px) {
    .icono-nosotros {
        display: flex;
        justify-content: space-between;
    }
}

.icono {
    text-align: center;
}

@media (min-width: 768PX) {
    .icono {
        flex-basis: calc(33.3% - 1rem);
    }
}


/*Utilidades*/

.seccion {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contenedor.seccion {
    font-family: var(--fuenteSecundaria);
}

p.slogan span {
    font-weight: bold;
}


/**Contenedores principales*/

img {
    max-width: 100%;
}

.entrada {
    border: 1px solid #B5B5B5;
    background-color: #F5F5F5;
    margin-bottom: 2rem;
}

.contenido-principal,
.sidebar {
    padding: 20px;
}

@media (min-width: 768px) {
    .contenido-principal {
        width: 60%;
        float: left;
        padding: 0 60px 0 0;
    }
    article.entrada {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .entrada {
        flex: 0 0 calc(33.3% - 1rem);
    }
    .sidebar {
        width: 30%;
        flex: 2;
        float: right;
        padding: 0;
    }
}

.contenido-principal .entrada {
    padding: 1.5rem;
}

.contenido-principal .entrada img {
    width: 95%;
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}


/** Sidebar **/

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
}

.sidebar ul li:hover {
    background-color: #3b6170;
}

.sidebar ul li a {
    color: #3b6170;
    font-size: 18px;
    text-decoration: none;
}

.sidebar ul li:hover a {
    color: #ffffff;
}


/*Autoridades*/

.contenido-autoridades {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2rem;
    /*grid-template-columns: 50% 50%; esta linea hace lo mismo que la anterior*/
}

div.icono a {
    display: block;
    text-align: center;
    color: #3b6170;
    text-decoration: none;
    font-size: 16px;
}

div.icono {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .contenido-autoridades {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 2rem;
        /*grid-template-columns: 50% 50%; esta linea hace lo mismo que la anterior*/
    }
    div.icono a {
        display: block;
        text-align: center;
        font-size: 16px;
    }
}

.card-title {
    color: #ffffff;
}
.import {
  color: red;
}

/*carousel*/

h5 {
    display: inline-block;
    padding: 10px;
    background: var(--colorBoton);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.carousel {
    position: relative;
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    /*display: -ms-flexbox;*/
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
}


/*Organismos Judiciales*/


/*Panel tabs*/

div.panel-primary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

ul.nav.panel-tabs {
    text-align: center;
    text-decoration: none;
    padding: 3rem 0;
}

.panel-tabs {
    position: center;
    bottom: 70px;
    clear: both;
    border-bottom: 1px solid transparent;
}

.panel-tabs>li {
    float: left;
    margin-bottom: -1px;
}

.panel-tabs>li>a {
    margin-right: 2px;
    margin-top: 4px;
    line-height: .85;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    color: #3b6170;
    font-size: 18px;
    padding: 10px;
}

.panel-tabs>li>a:hover {
    border-color: transparent;
    font-size: 18px;
    background-color: transparent;
    color: var(--colorBotonHover);
}

.panel-tabs>li.active>a,
.panel-tabs>li.active>a:hover,
.panel-tabs>li.active>a:focus {
    color: var(--colorBotonHover);
    cursor: default;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, .23);
    border-bottom-color: transparent;
}

.nomb-oficina {
    font-family: var(--fuenteSecundaria);
    font-size: 25px;
}


/*Biblioteca & Legislacion*/

.card.card-tabs:not(.card-outline)>.card-header {
    border-bottom: 0;
}

.card-primary:not(.card-outline)>.card-header,
.card-primary:not(.card-outline)>.card-header a {
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    background-color: transparent;
}

.card-primary:not(.card-outline)>.card-header {
    background-color: var(--primarioOscuro);
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.nav-link {
    display: block;
    padding: .5rem 1rem;
}

.nav {
    list-style: none;
}

.card {
    word-wrap: break-word;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
}

.leg {
    margin-bottom: 30px;
}

.col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}


/*
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}*/

.leg img {
    /*float: left;*/
    height: 40px;
    width: 40px;
}

.img-circle {
    border-radius: 50%;
}

.img-bordered-sm {
    border: 2px solid #adb5bd;
    padding: 2px;
}

div.leg a {
    margin-right: 2px;
    margin-top: 4px;
    line-height: .85;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    color: #3b6170;
    font-size: 16px;
    padding: 1px;
}

div.leg a:hover {
    border-color: transparent;
    font-size: 16px;
    background-color: transparent;
    color: var(--colorBotonHover);
}

@media (min-width: 768px) {
    div.leg a {
        display: block;
        font-size: 14px;
    }
}


/*Footer*/

.footer-sitio {
    background-color: #375b69;
    padding-top: 40px;
    margin-top: 60px;
    color: #ffffff;
    text-align: center;
}

.footer-sitio h2 {
    font-family: var(--fuenteSecundaria);
    color: #ffffff;
}

.footer-sitio a {
    font-family: var(--fuenteSecundaria);
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    margin-right: 20px;
}

.footer-sitio a:last-of-type {
    margin-right: 0;
}

.footer-sitio a:hover {
    color: rgb(233, 233, 93);
}

.footer-sitio .menu {
    display: none;
}

@media (min-width:768px) {
    .footer-sitio .menu {
        display: block;
    }
}

.copyright {
    background-color: #375b69;
    margin: 50px 0 0 0;
    padding: 20px 0;
}


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


/*
 * Hide visually and from screen readers
 */

.hidden,
[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
 */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}


/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}


/*
 * 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: " ";
    display: table;
}

.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: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        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:
   * https://web.archive.org/web/20180815150934/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;
    }
}
