/* ===================================================================
 *
 * Estilos de juanmallet.com, mi página web personal
 *
 * =================================================================== */

/*------------------------
  Fuentes (alojadas en la propia web; solo el subconjunto latino, suficiente para ca/es/en)
--------------------------*/
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/josefin-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pixelify-sans-latin.woff2") format("woff2");
}

/*------------------------
  General
--------------------------*/
:root {
  --colorCorp: #0c1620;
  --colorCorpTrans: #0c162080;
  --colorCorp2: #243d4f;
  --colorCorp3: #919ea6;
  --colorCorp4: #d3d8db;
  --colorCorp5: #e9eced;
  --backgroundColor: #fff;
  --colorGbc: #3860d1;
}

:root.dark {
  --colorCorp: #f8f9fa;
  --colorCorpTrans: #f8f9fa85;
  --colorCorp2: #b4ccdd;
  --colorCorp3: #7f95a5; /* Texto secundario: contraste 5:1 sobre el fondo (antes #51697a, 2,7:1) */
  --colorCorp4: #2a3c49;
  --colorCorp5: #212d36;
  --backgroundColor: #1c242c; /* Fondo azulado, el mismo azul oscuro que la barra de cookies en modo claro (antes #212529) */
  --colorGbc: #5b80e6; /* Azul de la galería GBC, más luminoso para que se lea sobre el fondo oscuro */
}

html,
body {
  height: 100%;
  color: var(--colorCorp2);
  font-family: "Josefin Sans", sans-serif;
}

body {
  background-color: var(--backgroundColor);
}

/* Cambio de modo claro/oscuro: durante un instante todos los elementos cambian de color a la vez y al mismo ritmo.
   La clase la pone main.js al pulsar el botón (así no hay transiciones al cargar la página) */
html.cambiando-tema,
html.cambiando-tema *,
html.cambiando-tema *::before,
html.cambiando-tema *::after {
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, fill 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out, text-shadow 0.3s ease-in-out, filter 0.3s ease-in-out, transform 0.3s ease-in-out !important;
  transition-delay: 0s !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--colorCorp);
  margin: 0;
  font-weight: 600;
  font-family: "Josefin Sans", sans-serif;
  cursor: default;
}

p {
  font-size: 18px;
  color: var(--colorCorp3);
  line-height: 1.8;
  cursor: default;
}

img {
  max-width: 100%;
  height: auto;
}

input:focus,
select:focus,
button:focus,
textarea:focus {
  outline: none;
}

a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}

ul,
ol {
  padding: 0;
  margin: 0;
}

/*------------------------
  Bootstrap 5: ajustes para conservar el aspecto que tenía la web con Bootstrap 4
--------------------------*/
:root {
  --bs-link-color-rgb: 0, 123, 255;
  --bs-link-hover-color-rgb: 0, 86, 179;
  --bs-success-rgb: 40, 167, 69;
}

html.dark {
  --bs-link-color-rgb: 110, 168, 254;
  --bs-link-hover-color-rgb: 158, 197, 254;
}

.badge {
  --bs-badge-padding-x: 0.6em;
  --bs-badge-padding-y: 0.25em;
}

a {
  text-decoration: none;
}

/* Tamaños fijos de los títulos (Bootstrap 5 los reduce en pantallas pequeñas) */
h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

/* Mismo ancho máximo y separación entre columnas que en Bootstrap 4 */
.container,
.row {
  --bs-gutter-x: 30px;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}

/* Fila dentro de otra fila (galería GBC): en Bootstrap 4 no recibía el padding de columna y ocupaba todo el ancho */
.row > .row {
  width: calc(100% + var(--bs-gutter-x));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Las tablas heredan el color del texto y no tienen fondo propio (para el modo oscuro) */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: currentcolor;
}

/* Líneas de las tablas como en Bootstrap 4: encima de cada fila (Bootstrap 5 las pone debajo) */
.table > :not(caption) > * > * {
  border-bottom-width: 0;
  border-top: var(--bs-border-width) solid var(--bs-table-border-color);
}

.table > thead > * > * {
  border-bottom: 2px solid var(--bs-table-border-color);
}

/* Mismo relleno de celdas que en Bootstrap 4 */
.table > :not(caption) > * > * {
  padding: 0.75rem;
}

.table-sm > :not(caption) > * > * {
  padding: 0.3rem;
}

/* Texto de ayuda de los campos en gris, visible en modo claro y oscuro (Bootstrap 5 lo oscurece) */
.form-control::placeholder {
  color: #6c757d;
}

/* Tarjetas: heredan el color del texto y tienen el mismo relleno que en Bootstrap 4 */
.card {
  --bs-card-spacer-y: 1.25rem;
  --bs-card-spacer-x: 1.25rem;
  --bs-card-title-spacer-y: 0.75rem;
  color: inherit;
}

/* Botón de cerrar "×" de Bootstrap 4 (Bootstrap 5 lo sustituye por .btn-close, que no admite colores) */
.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  background-color: transparent;
  border: 0;
  padding: 0;
}

.close:hover {
  color: #000;
  opacity: 0.75;
}

.modal-header .close {
  padding: 1rem;
  margin: -1rem -1rem -1rem auto;
}

.alert-dismissible .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  color: inherit;
}

/*------------------------
  Iconos SVG (sustituyen a Font Awesome; mismo tamaño y alineación que su fuente)
--------------------------*/
.icono {
  display: inline-block;
  vertical-align: -0.143em;
  fill: currentColor;
  overflow: visible;
}

.icono-5x {
  font-size: 5em;
}

/*------------------------
  Helper css
--------------------------*/

.section-title {
  font-size: 60px;
}

/*------------------------
  Elementos comunes
--------------------------*/
.element {
  margin-bottom: 100px;
}

.element:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--colorCorp3) !important;
}

/*=== Botones ===*/
.site-btn {
  display: inline-block;
  font-size: 14px;
  min-width: 140px;
  text-align: center;
  padding: 15px 10px;
  position: relative;
  color: var(--backgroundColor);
  border: none;
  background-color: var(--colorCorp);
  margin-right: 15px;
  z-index: 1;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.site-btn.btn-white {
  background: var(--backgroundColor);
  color: var(--colorCorp);
  min-width: 70px;
  padding: 5px;
}

.site-btn.btn-white:hover {
  background: var(--colorCorp3);
}

.site-btn:hover {
  color: var(--backgroundColor);
  background-color: var(--colorCorp2);
}

/*------------------------
    Header Section
--------------------------*/
.header-section {
  padding-top: 30px;
  padding-bottom: 20px;
  position: relative;
}

.logo {
  display: inline;
  /* transition: all 0.3s ease-in-out; */
}

html.dark .logo {
  filter: invert(100%) brightness(100);
}

.site-logo {
  width: 75px;
}

.main-menu ul {
  list-style: none;
}

.main-menu ul li {
  display: inline;
}

.main-menu ul li a {
  position: relative;
  display: inline-block;
  font-size: 18px;
  color: var(--colorCorp);
  text-shadow:
    -1px -1px 0 var(--backgroundColor),
    1px -1px 0 var(--backgroundColor),
    -1px 1px 0 var(--backgroundColor),
    1px 1px 0 var(--backgroundColor);
  margin-left: 15px;
  margin-right: 10px;
  padding: 15px 0 5px;
  transition: all 0.3s ease-in-out;
}

.main-menu ul li a:hover,
.nav-item-active {
  color: var(--colorCorp2);
}

.main-menu ul li a::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--colorCorp);
  bottom: 10px;
  left: 0;

  -webkit-transform: scale(0, 1);
  -ms-transform: scale(0, 1);
  transform: scale(0, 1);
  -webkit-transform-origin: right center;
  -ms-transform-origin: right center;
  transform-origin: right center;
  z-index: -1;

  -webkit-transition: transform 0.5s ease;
  transition: transform 0.5s ease;
}

.main-menu ul li a:not(.nav-item-active):hover::before {
  -webkit-transform: scale(1, 1);
  -ms-transform: scale(1, 1);
  transform: scale(1, 1);
  background-color: var(--colorCorp2);
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
}

.main-menu ul li a.nav-item-active::before {
  transform: scale(1, 1);
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
  background-color: var(--colorCorp);
}

.main-menu ul li a.nav-item-active:hover::before {
  background-color: var(--colorCorp2);
}

.header-btn {
  float: right;
  margin-right: 0;
  color: var(--backgroundColor) !important;
}

.nav-switch {
  display: none;
  margin-top: -70px;
}

.nav-button {
  float: right;
}

.nav-button {
  position: relative;
  z-index: 1111;
  height: 42px;
  display: block;
  width: 50px;
  padding: 10px;
}

.nav-button #nav-icon3 {
  width: 24px;
  height: 22px;
  display: inline-block;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}

.nav-button #nav-icon3 span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--colorCorp);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.nav-button #nav-icon3 span:nth-child(1) {
  top: 0;
}

.nav-button #nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
  top: 7px;
}

.nav-button #nav-icon3 span:nth-child(4) {
  top: 14px;
}

.nav-open #nav-icon3 span:nth-child(1) {
  top: 9px;
  width: 0;
  left: 50%;
}

.nav-open #nav-icon3 span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.nav-open #nav-icon3 span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.nav-open #nav-icon3 span:nth-child(4) {
  top: 9px;
  width: 0;
  left: 50%;
}

.nav-item-mobile {
  display: none !important;
}

.custom-sel a {
  cursor: pointer;
}

/*===  Dropbox idiomas  ===*/

.custom-sel a {
  text-decoration: none;
  text-transform: uppercase;
  margin: 0;
  padding: 10px;
  text-align: left;
  color: var(--colorCorp);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  display: block;
}

.custom-sel .icono {
  color: var(--colorCorp3);
  transition: transform 0.2s ease-in-out;
}

.custom-sel .icono.girado {
  transform: rotate(180deg);
}

.hidden {
  display: none !important;
}

.custom-sel a:hover {
  text-decoration: none;
  background-color: var(--colorCorp3);
  color: var(--backgroundColor);
}

.custom-sel a.selected {
  background-color: transparent;
}

.custom-sel a.selected:hover {
  background-color: transparent;
  color: var(--colorCorp);
}

.show-sel {
  background-color: var(--colorCorp4);
}

.custom-sel {
  position: absolute;
  display: inline-block;
  margin-top: 10px;
  margin-left: 10px;
}

/*===  Efecto ripple  ===*/

.card-ripple {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-ripple .span-ripple {
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--colorCorpTrans);
  transform: scale(0);
  position: absolute;
  opacity: 1;
}
.rippleAnimation {
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/*------------------------
    Dark mode toggler
--------------------------*/
#dark-mode-toggle {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  width: 25px;
  height: 25px;
  line-height: 25px;
  cursor: pointer;
  border-radius: 35px;
  position: absolute;
  right: 175px;
  color: var(--colorCorp);
  text-align: center;
  font-size: 20px;
  margin: 13px 0;

  transition: all 0.3s ease-in-out;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  -o-transition-property: -o-transform;
  transition-property: transform;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  #dark-mode-toggle {
    right: 160px;
  }
}

@media only screen and (max-width: 767px) {
  #dark-mode-toggle {
    right: 75px;
  }
}

/*------------------------
    Back2Top
--------------------------*/
#back2Top {
  width: 50px;
  height: 50px;
  line-height: 50px;
  overflow: hidden;
  z-index: 999;
  display: block;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  border-radius: 35px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--colorCorp);
  color: var(--backgroundColor);
  text-align: center;
  font-size: 30px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

#back2Top.visible {
  opacity: 1;
  visibility: visible;
}

#back2Top:hover {
  background-color: var(--colorCorp2);
  color: var(--backgroundColor);
}

#back2Top img {
  width: 30px;
  margin-bottom: 3px;
  transition: all 0.3s ease-in-out;
}

html.dark #back2Top img {
  filter: invert(100%) brightness(100);
}

/*------------------------
    Cookie-Alert
--------------------------*/
.cookiealert {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  border-radius: 0;
  transform: translateY(100%);
  transition: opacity 500ms ease-out, visibility 500ms ease-out, transform 500ms ease-out;
  color: #fff;
  background: #1c242c url("../img/cookie-alert_background.png");
  z-index: 998; /* z-index 998 porque en 999 está el "Back2Top" */
}

.cookiealert.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0%);
  transition-delay: 1000ms;
}

.cookiealert a {
  color: #fff;
  text-decoration: underline;
  transition: all 0.3s ease-in-out;
}

.cookiealert a:hover {
  color: var(--colorCorp3);
}

.cookiealert .acceptcookies,
.cookiealert .rejectcookies {
  background-color: #fff;
  color: #0c1620;
  margin-left: 10px;
  margin-right: 10px;
  vertical-align: baseline;
}

.cookiealert-botones {
  white-space: nowrap;
}

/* En modo oscuro invertimos los colores (como el Back2Top) para que el banner destaque sobre el fondo */
html.dark .cookiealert {
  background: var(--colorCorp);
  color: var(--backgroundColor);
}

html.dark .cookiealert a {
  color: var(--backgroundColor);
}

html.dark .cookiealert a:hover {
  color: var(--colorCorp4);
}

html.dark .cookiealert .acceptcookies,
html.dark .cookiealert .rejectcookies {
  background-color: var(--backgroundColor);
  color: var(--colorCorp);
}

html.dark .cookiealert .acceptcookies:hover,
html.dark .cookiealert .rejectcookies:hover {
  color: var(--backgroundColor);
}

/*------------------------
    Cookies Section
--------------------------*/
.cookies-section {
  margin-top: 100px;
  text-align: justify;
}

.cookies-section table {
  color: var(--colorCorp);
  text-align: left;
}

.cookies-section .table td,
.cookies-section .table th {
  border-color: var(--colorCorp4);
}

.cookies-section .table td:first-child {
  white-space: nowrap;
}

/*------------------------
    About Section
--------------------------*/
.about-section {
  margin-top: 100px;
}

.about-section h1 {
  padding-bottom: 10px;
}

.about-section h2 {
  color: var(--colorCorp2);
  padding-bottom: 15px;
}

.about-section p {
  text-align: justify;
}

.pic-frame {
  position: relative;
  padding-left: 25px;
  padding-bottom: 25px;
  display: inline-block;
}

.pic-frame:after {
  position: absolute;
  content: "";
  width: calc(100% - 25px);
  height: calc(100% - 25px);
  bottom: 0;
  left: 0;
  border: 2px solid var(--colorCorp);
  z-index: 1;
}

/*------------------------
    Skills Section
--------------------------*/
.skills-section {
  margin-top: 100px;
}

.skills h2 {
  font-size: 30px;
}

.skills h4 {
  color: var(--colorCorp2);
  padding-top: 10px;
}

.skills li {
  list-style: none;
  margin-top: 10px;
}

.otherSkill {
  float: left;
  border: 1px solid var(--colorCorp3);
  border-radius: 3px;
  padding: 5px 10px;
  margin: 10px 10px 0 0;
}

.skills .col-lg-4 {
  padding: 0px 0px 25px 25px;
}

/*------------------------
    Resources Section
--------------------------*/

.resources-section {
  margin-top: 100px;
}

.resources-section table {
  color: var(--colorCorp);
}

.resources-section table thead tr th {
  border: none;
}

.resources-section table tbody tr td {
  vertical-align: middle;
}

.resources-section table tbody tr td a {
  color: var(--colorCorp);
  cursor: pointer;
}

.resources-section table tbody tr td a:hover {
  color: var(--colorCorp2);
}

html.dark .resources-section .bg-light {
  background-color: var(--colorCorp4) !important;
  transition: all 0.3s ease-in-out;
}

/*------------------------
    Stuff Section
--------------------------*/

.stuff-section {
  margin-top: 100px;
}

.stuff-section .stretched-link {
  cursor: pointer;
}

.card {
  background-color: var(--backgroundColor);
  border-color: var(--colorCorp4);
}

/*------------------------
    Footer Section
--------------------------*/
.footer-section {
  padding: 100px 0 50px;
}

.footer-section .copyright {
  font-size: 12px;
  color: var(--colorCorp3);
}

.copyright a {
  color: var(--colorCorp3);
  transition: all 0.3s ease-in-out;
}

.copyright a:hover {
  color: var(--colorCorp2);
}

.social-links {
  margin-top: 60px;
  margin-bottom: 40px;
}

.social-links a {
  color: var(--colorCorp3);
  font-size: 15px;
  margin-right: 30px;
  transition: all 0.3s ease-in-out;
}

.social-links a:hover {
  color: var(--colorCorp2);
}

.social-links a:last-child {
  margin-right: 0;
}

/*------------------------
    Contact Page
--------------------------*/
.contact-section {
  margin-top: 160px;
}

.contact h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 2rem;
}

.contact h4 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.contact a {
  color: var(--colorCorp2);
  font-size: 1.2rem;
}

.contact p {
  color: var(--colorCorp3);
  font-size: 1rem;
}

.contact span {
  color: var(--colorCorp3);
  font-size: 1rem;
}

.contact-section .card .icono {
  color: var(--colorCorp1);
  transition: all 0.3s ease-in-out;
}

.contact-section .card:hover .icono {
  color: var(--colorCorp2);
  transition: all 0.3s ease-in-out;
}

.contact-page .footer-question {
  display: none;
}

#alert-incorrect-password {
  z-index: 2;
  position: absolute;
  text-align: center;
  vertical-align: middle;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#cvModal .modal-content {
  background-color: var(--backgroundColor);
  border-color: var(--colorCorp4);
}

#cvModal .form-control,
#cvModal .form-control:focus {
  background-color: var(--backgroundColor);
  border-color: var(--colorCorp4);
  color: var(--colorCorp);
}

#cvModal .close {
  color: var(--colorCorp);
}

/*------------------------
    CV Section
--------------------------*/
.cvContainer {
  margin: 0;
  padding: 0px 20px 0px 20px;
}

.cvContainer h1 {
  margin-top: 30px;
  margin-bottom: 30px;
}

#download-cv {
  color: var(--colorCorp3);
  transition: all 0.3s ease-in-out;
}

#download-cv:hover {
  color: var(--colorCorp2);
}

.cv a {
  margin: 30px 0px;
}

iframe {
  background: var(--colorCorp2);
}

.cvContainer .footer-question {
  display: none;
}

/*------------------------
    Página Diccionario
--------------------------*/

.dictionary-section {
  margin-top: 100px;
}
.dictionary table {
  color: var(--colorCorp);
}

.dictionary table tr th {
  font-family: "Lora", serif;
}

.dictionary table thead tr th {
  border: none;
  font-size: 1.5em;
  text-transform: uppercase;
}

.dictionary table tbody tr th {
  width: 225px;
}

.dictionary table {
  border-color: var(--colorCorp4);
}

.dictionary table:not(:last-child) {
  margin-bottom: 45px;
}

.dictionary .table td,
.dictionary .table th {
  border-color: var(--colorCorp4);
}

html.dark .dictionary .bg-light {
  background-color: var(--colorCorp4) !important;
  transition: all 0.3s ease-in-out;
}

/*------------------------
    Página GBC
--------------------------*/
.gbc-section {
  margin-top: 100px;
  overflow-x: hidden;
}

.gbc .btn:focus,
.gbc .btn:active,
.gbc button:focus,
.gbc button:active {
  outline: none !important;
  box-shadow: none !important;
}

.gbc #image-gallery {
  overflow: hidden;
}

.gbc #image-gallery .modal-footer {
  display: block;
}

.gbc .thumb {
  background: var(--colorGbc);
  box-shadow: inset 0 0 0 5px var(--colorGbc);
  padding: 5px;
  position: relative;
  margin: 15px;
}

.gbc .thumb picture::before {
  background-color: var(--colorGbc);
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  height: 100%;
  width: 100%;
  z-index: -1;
  transition: all 0.5s;
}

.gbc .img-tn {
  width: 100%;
  height: auto;
}

.gbc .img-tn,
.gbc #image-gallery-image {
  image-rendering: pixelated;
}

.gbc #image-gallery-image {
  max-height: 100%;
  width: 80%;
}

/* Modal */
.gbc .modal-header,
.gbc h4 {
  font-family: "Pixelify Sans", sans-serif;
  color: var(--colorGbc);
}

.gbc .modal-content {
  background-color: var(--backgroundColor);
  border: 5px solid var(--colorGbc);
  border-radius: 0;
}

.gbc .close {
  color: var(--colorGbc);
  opacity: 1;
}

.gbc #show-next-image,
.gbc #show-previous-image {
  border: 6px solid var(--colorGbc);
  -webkit-clip-path: polygon(
    0 6px,
    3px 6px,
    3px 3px,
    6px 3px,
    6px 0,
    calc(100% - 6px) 0,
    calc(100% - 6px) 3px,
    calc(100% - 3px) 3px,
    calc(100% - 3px) 6px,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 3px) calc(100% - 6px),
    calc(100% - 3px) calc(100% - 3px),
    calc(100% - 6px) calc(100% - 3px),
    calc(100% - 6px) 100%,
    6px 100%,
    6px calc(100% - 3px),
    3px calc(100% - 3px),
    3px calc(100% - 6px),
    0 calc(100% - 6px)
  );
  clip-path: polygon(
    0 6px,
    3px 6px,
    3px 3px,
    6px 3px,
    6px 0,
    calc(100% - 6px) 0,
    calc(100% - 6px) 3px,
    calc(100% - 3px) 3px,
    calc(100% - 3px) 6px,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 3px) calc(100% - 6px),
    calc(100% - 3px) calc(100% - 3px),
    calc(100% - 6px) calc(100% - 3px),
    calc(100% - 6px) 100%,
    6px 100%,
    6px calc(100% - 3px),
    3px calc(100% - 3px),
    3px calc(100% - 6px),
    0 calc(100% - 6px)
  );
  color: var(--font-color);
  cursor: pointer;
  display: inline-block;
  font-size: var(--font-size);
  position: relative;
  -webkit-text-decoration: none;
  text-decoration: none;
}

.gbc #show-next-image:active,
.gbc #show-previous-image:active {
  transform: translate(5px, 5px);
}

.gbc .btn-deco {
  border: 3px solid var(--colorGbc);
  display: block;
  padding: 3px 6px;
}

.gbc .btn-deco::before {
  background-color: var(--backgroundColor);
  border-bottom: 3px solid var(--colorGbc);
  border-right: 3px solid var(--colorGbc);
  bottom: -3px;
  -webkit-clip-path: polygon(
    0 3px,
    3px 3px,
    3px 0,
    calc(100% - 6px) 0,
    calc(100% - 6px) 3px,
    100% 3px,
    100% calc(100% - 3px),
    calc(100% - 3px) calc(100% - 3px),
    calc(100% - 3px) calc(100% - 3px),
    calc(100% - 3px) 100%,
    6px 100%,
    6px calc(100% - 3px),
    3px calc(100% - 3px),
    3px calc(100% - 6px),
    0 calc(100% - 6px)
  );
  clip-path: polygon(
    0 3px,
    3px 3px,
    3px 0,
    calc(100% - 6px) 0,
    calc(100% - 6px) 3px,
    100% 3px,
    100% calc(100% - 3px),
    calc(100% - 3px) calc(100% - 3px),
    calc(100% - 3px) calc(100% - 3px),
    calc(100% - 3px) 100%,
    6px 100%,
    6px calc(100% - 3px),
    3px calc(100% - 3px),
    3px calc(100% - 6px),
    0 calc(100% - 6px)
  );
  content: "";
  left: -3px;
  position: absolute;
  right: -3px;
  top: -3px;
}

.gbc .btn-deco::after {
  background-color: var(--colorGbc);
  bottom: 0;
  content: "";
  height: 3px;
  position: absolute;
  right: 0;
  width: 3px;
}

.gbc .btn-content {
  position: relative;
  z-index: 1;
  color: var(--colorGbc);
}

.gbc .btn-content .icono {
  position: relative;
  color: var(--colorGbc);
}

.gbc #show-next-image:hover .icono,
.gbc #show-previous-image:hover .icono {
  color: var(--backgroundColor);
}

.gbc #show-next-image:hover,
.gbc #show-next-image:hover .btn-deco::before,
.gbc #show-previous-image:hover,
.gbc #show-previous-image:hover .btn-deco::before {
  background-color: var(--colorGbc);
}

.gbc .thumb:hover picture::before {
  left: 10px;
  top: 10px;
}

/*------------------------
    Páginas Errores 403/404
--------------------------*/

#notfound,
#forbidden {
  position: relative;
  height: 100vh;
}

#notfound .notfound,
#forbidden .forbidden {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.notfound,
.forbidden {
  max-width: 520px;
  width: 100%;
  line-height: 1.4;
  text-align: center;
}

.notfound .notfound-404,
.forbidden .forbidden-403 {
  position: relative;
  height: 240px;
}

.notfound .notfound-404 h1,
.forbidden .forbidden-403 h1 {
  font-family: "Montserrat", sans-serif;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 252px;
  font-weight: 900;
  margin: 0px;
  color: var(--colorCorp);
  text-transform: uppercase;
  letter-spacing: -40px;
  margin-left: -20px;
}

.notfound .notfound-404 h1 > span,
.forbidden .forbidden-403 h1 > span {
  text-shadow: -8px 0px 0px var(--backgroundColor);
}

.notfound .notfound-404 h3,
.forbidden .forbidden-403 h3 {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--colorCorp);
  margin: 0px;
  letter-spacing: 3px;
  padding-left: 6px;
}

.notfound h2,
.forbidden h2 {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--colorCorp);
  margin-top: 0px;
  margin-bottom: 25px;
}

/*------------------------
    Media queries
--------------------------*/

/* Medium screen - 992px */

/* Tablet - 768px */
@media only screen and (min-width: 768px) and (max-width: 991px) {

  .custom-sel {
    margin-top: 3px;
    padding: 5px 0px 5px 5px;
  }
  .main-menu {
    margin-left: 3em;
  }
  /*.main-menu ul li a {
    margin: 0 0.25em;
  }*/

  .dictionary table tbody tr th {
    width: 175px;
  }
}

/* Large Mobile - 480px */
@media only screen and (max-width: 767px) {

  .main-menu {
    position: fixed;
    background: var(--backgroundColor);
    width: 100%;
    z-index: 999;
    left: 0;
    top: 0;
    height: 100vh;
    text-align: center;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    display: none;
  }
  .main-menu ul li a {
    padding: 10px 15px;
    display: inline-block;
  }
  .main-menu ul li a::before {
    width: calc(100% - 30px);
    left: 15px;
  }
  .main-menu ul li a:hover::before {
    display: none;
    transform: none;
    -moz-transform: none;
    -webkit-transform: none;
    -o-transform: none;
    -ms-transform: none;
  }
  .main-menu ul li {
    display: block;
    padding-bottom: 45px;
  }
  .main-menu ul li:last-child a {
    border-bottom: none;
  }

  .nav-switch {
    font-size: 30px;
    color: #333;
    display: block;
  }
  .header-btn {
    display: none;
  }
  .section-title {
    font-size: 45px;
  }

  .nav-item-mobile {
    display: block !important;
  }
  .custom-sel {
    margin-top: 10px;
    padding: 5px 0px 5px 0px;
    margin-left: 5px;
  }
  .custom-sel a {
    display: inline;
  }
  .notfound .notfound-404,
  .forbidden .forbidden-403 {
    height: 200px;
  }
  .notfound .notfound-404 h1,
  .forbidden .forbidden-403 h1 {
    font-size: 200px;
  }

  .dictionary table tbody tr th {
    width: 100px;
  }
  .gbc .thumb {
    margin-right: 30px;
  }
}

/* small Mobile - 320px */
@media only screen and (max-width: 480px) {
  .section-title {
    font-size: 30px;
  }

  .nav-item-mobile {
    display: block !important;
  }
  .custom-sel {
    margin-top: 10px;
    padding: 5px 0px 5px 0px;
    margin-left: 5px;
  }
  .custom-sel a {
    display: inline;
  }
  .notfound .notfound-404,
  .forbidden .forbidden-403 {
    height: 162px;
  }
  .notfound .notfound-404 h1,
  .forbidden .forbidden-403 h1 {
    font-size: 162px;
    height: 150px;
    line-height: 162px;
  }
  .notfound h2 {
    font-size: 16px;
  }
}
