/* VARS */

:root {
    --amarillo: #ffd700;
    --cafe: #c7c2b0;
    --negro: #363636;
    --blanco: #ffffff;
    --verde-catalogo: #8ab094;
    --azul-biblioteca: #7ab0bd;
    --naranja-directorio: #d18861;
}

/* FIX: I HAVE NO IDEA WHAT ELEMENT IS LARGER THAN 100% */
html, body {
    overflow-x: hidden;
}

/* THEMES */
/* CATALOGO THEME OVERRIDE */
.theme-catalogo .cabecera,
.theme-catalogo .listado-portada {
    background-color: var(--verde-catalogo);
}
.theme-catalogo .modal-card-foot .modal-button-primary {
    background-color: var(--verde-catalogo);
    color: var(--blanco);
}
.theme-catalogo .modal-card-foot .modal-button-primary:hover {
    background-color: #3b6347;
}

/* BIBLIOTECA THEME OVERRIDE */
.theme-biblioteca .cabecera,
.theme-biblioteca .listado-portada {
    background-color: var(--azul-biblioteca);
}
.theme-biblioteca .modal-card-foot .modal-button-primary {
    background-color: var(--azul-biblioteca);
    color: var(--blanco);
}
 .theme-biblioteca .modal-card-foot .modal-button-primary:hover {
    background-color: #3e707c;
    color: var(--blanco);
}

/* DIRECTORIO THEME OVERRIDE */
.theme-directorio .cabecera,
.theme-directorio .listado-portada {
    background-color: var(--naranja-directorio);
}
.theme-directorio .modal-card-foot .modal-button-primary {
    background-color: var(--naranja-directorio);
    color: var(--blanco);
}
 .theme-directorio .modal-card-foot .modal-button-primary:hover {
    background-color: #975835;
    color: var(--blanco);
}

/* ELEMENTS */

a {
    color: var(--negro);
    text-decoration: underline;
}

/* BASE.HTML ELEMENTS */

.marca {
    color: var(--blanco);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

/* NAV BAR */

.navbar.is-dark {
    background-color: var(--negro);
}

.navbar-end .navbar-item {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.2em;
    text-decoration: none;
}

.logo-catalogo {
    max-height: 4.5rem !important;
}

.logo-citec {
    max-height: 4rem !important;
    margin-right: 1rem;
    padding-top: 1rem;
}

.navbar-brand, .navbar-tabs {
    min-height: 6rem;
}

.navbar .navbar-link {
    text-decoration: none;
}

.navbar-burger {
    color: var(--blanco);
}

/* ANIMATION */

@media only screen and (max-width: 1023px) {
    .navbar-menu {
        display: block;
        opacity: 0;
        position: relative;
        left: 0;
        right: 0;
        max-height: 0;
        transition: all 0.4s ease-in-out;
        pointer-events: none;
        overflow: hidden;
        padding: 0;
        background-color: var(--negro);
    }

    .navbar-menu.is-active {
        max-height: 500px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        padding: 0.5rem 0;
    }
}

/* FOOTER */

.main-footer {
    background-color: var(--negro);
    color: var(--blanco);
}

.copyright a {
    color: #ffffff;
}

/* COOKIE LAW BANNER */
#CookielawBanner {
    background-color: var(--negro);
    color: var(--blanco);
    position: fixed;
    bottom: 0;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#CookielawBanner a {
    color: var(--amarillo);
}

/* INICIO.HTML ELEMENTS */

/* HERO */

.cabecera {
    background-color: var(--amarillo);
}

.cabecera .title {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
}

.cabecera .subtitle {
    font-family: 'Roboto', sans-serif;
}

.cabecera .subtitle p {
    margin-bottom: 1rem;
}

.cabecera .image {
    width: 25rem;
    height: 25rem;
}

.cabecera .image img {
    object-fit: cover;
    object-position: top;
    aspect-ratio: 1/1;
}

.cabecera .image figcaption {
    font-family: 'Roboto Slab', serif;
    padding: 0.2rem;
    font-size: 0.8rem;
}

@media screen and (max-width: 768px ) {
    .cabecera .image {
        max-width: 100%;
    }
}

.cabecera .acciones {
    margin-top: auto;
}

/* CATEGORIAS GRID */

.categorias .input {
    background-color: var(--cafe);
    border-radius: 0;
    width: 350px;
}

@media screen and (max-width: 768px ) {
    .categorias .input {
        width: 100%;
    }
}

.categorias ::placeholder {
    color: #6b6564;
}

.categorias .control button {
    background-color: var(--negro);
    color: var(--blanco);
    border-radius: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

.categorias .control button:hover {
    background-color: #000000;
}

.grid-de-botones .button {
    background-color: var(--negro);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: var(--blanco);
    font-weight: 600;
    white-space: normal;
    height: 4em;
    font-size: 1.3rem;
    border-radius: 0;
    text-decoration: none;
}

.activo {
    background-color: var(--cafe) !important;
    color: var(--negro) !important;
}

.grid-de-botones button:focus {
    border: 0;
}

@media screen and (min-width: 1024px) and (max-width: 1407px) {
    .grid-de-botones .button {
        font-size: 1.2rem;
        height: 5em;
    }
}

/* LISTADO */

.listado-portada {
    background-color: var(--amarillo);
}

@media screen and (min-width: 769px ) {
    .listado-portada #results-grid {
        position: relative;
        top: -2.5rem;
    }
}

/* EQUIPO */

.equipo-card {
    background-color: var(--cafe);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 0;
}

.equipo-card .media-content {
    flex-basis: auto;
    flex-grow: 2;
}

.equipo-card .media-right {
    margin-left: 2rem;
    flex-basis: 15%;
    text-align: right;
}

.equipo-card .title {
    font-family: 'Roboto Slab', serif;
    color: var(--negro);
    margin-bottom: 0.25rem !important;
}

.equipo-card .subtitle {
    font-family: 'Roboto', sans-serif;
    color: var(--negro);
}

.equipo-card p {
    font-family: 'Roboto', sans-serif;
}

@media screen and (max-width: 768px) {
    .equipo-card .media {
        flex-direction: column;
    }

    .equipo-card .media-content {
        margin-bottom: 1rem;
    }

    .equipo-card .media-right {
        margin-left: 0;
        text-align: left;
    }
}

/* CARD OBJECT */

.card {
    background-color: var(--cafe);
    border: 1rem solid var(--cafe);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    height: 100%;
}

.card .card-content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding-bottom: 0;
    width: 100%;
}

.card .card-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card .card-bottom a {
    text-decoration: none;
}

.card .title {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    text-decoration: underline;
}

.card .lead {
    font-weight: 400;
    padding-top: 1rem;
}

.card > .card-image {
    width: 100%;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MODAL STYLING */      
.modal-card-body .columns {
    row-gap: 0.75rem;
}

.modal-card-foot .button {
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    flex-grow: 1;
    max-width: 250px;
}

.modal-card-foot .modal-button-primary {
    background-color: var(--amarillo);
    color: var(--negro);
}
.modal-card-foot .modal-button-primary:hover {
    background-color: #e6c000;
    color: var(--negro);
}

.modal-card-foot .modal-button-secondary {
    background-color: var(--negro);
    color: var(--blanco);
    margin-left: 0.75rem;
}
.modal-card-foot .modal-button-secondary:hover {
    background-color: #2a2a2a;
    color: var(--blanco);
}

.modal-card-foot {
    justify-content: flex-end;
}

#modal-preview-img {
    object-fit: cover;
    object-position: top;
}

/* TRANSITIONS FOR MODAL */

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes modal-card-pop-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal.is-opening .modal-background {
  animation: modal-fade-in 0.2s ease-out;
}

.modal.is-opening .modal-card {
  animation: modal-card-pop-in 0.3s ease-out;
}

.modal.is-closing .modal-background,
.modal.is-closing .modal-card {
  animation: modal-fade-out 0.2s ease-in;
}

/* BADGE */
.card-badge {
    background-color: var(--negro);
    color: var(--blanco);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    
    user-select: none;
}

/* DETALLES */
.acciones a {
    font-family: 'Roboto Slab', serif;
    text-transform: uppercase;
}

/* CONTACTO */
.contacto .button {
    background-color: var(--negro);
    color: var(--blanco);
}

.contacto .card-content {
    width: 100%
}

/* TABLES */
.table-web {
    font-family: "Roboto", sans-serif;
}

.table-web thead {
    background-color: var(--amarillo);
    text-transform: uppercase;
}

.table-web thead tr th {
    border-bottom: var(--negro) solid 1px;
}

.table-web > thead > tr > th:nth-child(2) {
    font-weight: 400;
    border-left: var(--negro) solid 1px;
}

.table-web tbody th {
    border-bottom: var(--negro) solid 1px;
}

.table-web tbody td {
    border-left: var(--negro) solid 1px;
    border-bottom: var(--negro) solid 1px;
}

/* IMPRIMIBLE */

.imprimible {
    font-size: 0.8em;
}

.imprimible .logo {
    max-width: 10rem;
}

.imprimible .image {
    max-width: 17rem;
    max-height: 17rem;
    border: var(--negro) 2px solid;
}

.imprimible .title {
    text-decoration: underline;
    padding-bottom: 1rem;
    font-family: 'Roboto Slab', serif;
}

.imprimible .subtitle {
    margin-bottom: 0.3rem;
    font-family: 'Roboto Slab', serif;
}

@page {
    margin: 10px 10px 20px;
}

.imprimible .table {
    width: 100%;
    break-inside: avoid;
    box-decoration-break: clone
}

.imprimible .table-web thead {
    background-color: var(--blanco);
    text-transform: uppercase;
}

.imprimible .table-web {
    border: var(--negro) solid 1px;
}

/* Nosotros */

.indice .panel-heading {
    background: var(--cafe);
    font-family: 'Roboto Slab', serif;
}

.indice .panel-block {
    background: var(--blanco);
}

/* SOCIAL SHARE */
.resp-sharing-button__link,
.resp-sharing-button__icon {
    display: inline-block
}

.resp-sharing-button__link {
    text-decoration: none;
    color: #fff;
    margin: 0.5em
}

.resp-sharing-button {
    border-radius: 5px;
    transition: 25ms ease-out;
    padding: 0.5em 0.75em;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif
}

.resp-sharing-button__icon svg {
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    vertical-align: top
}

.resp-sharing-button--small svg {
    margin: 0;
    vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
    stroke: #fff;
    fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
    fill: #fff;
    stroke: none
}

.resp-sharing-button--twitter {
    background-color: #55acee
}

.resp-sharing-button--twitter:hover {
    background-color: #2795e9
}

.resp-sharing-button--pinterest {
    background-color: #bd081c
}

.resp-sharing-button--pinterest:hover {
    background-color: #8c0615
}

.resp-sharing-button--facebook {
    background-color: #3b5998
}

.resp-sharing-button--facebook:hover {
    background-color: #2d4373
}

.resp-sharing-button--tumblr {
    background-color: #35465C
}

.resp-sharing-button--tumblr:hover {
    background-color: #222d3c
}

.resp-sharing-button--reddit {
    background-color: #5f99cf
}

.resp-sharing-button--reddit:hover {
    background-color: #3a80c1
}

.resp-sharing-button--google {
    background-color: #dd4b39
}

.resp-sharing-button--google:hover {
    background-color: #c23321
}

.resp-sharing-button--linkedin {
    background-color: #0077b5
}

.resp-sharing-button--linkedin:hover {
    background-color: #046293
}

.resp-sharing-button--email {
    background-color: #777
}

.resp-sharing-button--email:hover {
    background-color: #5e5e5e
}

.resp-sharing-button--xing {
    background-color: #1a7576
}

.resp-sharing-button--xing:hover {
    background-color: #114c4c
}

.resp-sharing-button--whatsapp {
    background-color: #25D366
}

.resp-sharing-button--whatsapp:hover {
    background-color: #1da851
}

.resp-sharing-button--hackernews {
    background-color: #FF6600
}

.resp-sharing-button--hackernews:hover, .resp-sharing-button--hackernews:focus {
    background-color: #FB6200
}

.resp-sharing-button--vk {
    background-color: #507299
}

.resp-sharing-button--vk:hover {
    background-color: #43648c
}

.resp-sharing-button--facebook {
    background-color: #3b5998;
    border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
    background-color: #2d4373;
    border-color: #2d4373;
}

.resp-sharing-button--twitter {
    background-color: #55acee;
    border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
    background-color: #2795e9;
    border-color: #2795e9;
}

.resp-sharing-button--tumblr {
    background-color: #35465C;
    border-color: #35465C;
}

.resp-sharing-button--tumblr:hover,
.resp-sharing-button--tumblr:active {
    background-color: #222d3c;
    border-color: #222d3c;
}

.resp-sharing-button--email {
    background-color: #777777;
    border-color: #777777;
}

.resp-sharing-button--email:hover,
.resp-sharing-button--email:active {
    background-color: #5e5e5e;
    border-color: #5e5e5e;
}

.resp-sharing-button--pinterest {
    background-color: #bd081c;
    border-color: #bd081c;
}

.resp-sharing-button--pinterest:hover,
.resp-sharing-button--pinterest:active {
    background-color: #8c0615;
    border-color: #8c0615;
}

.resp-sharing-button--telegram {
    background-color: #54A9EB;
}

.resp-sharing-button--telegram:hover {
    background-color: #4B97D1;
}

