/* ====================================
   FUENTES
   ==================================== */
@font-face {
  font-family: Kessel_bold;
  src: url(kessel_bold.ttf);
}

@font-face {
  font-family: Kessel;
  src: url(kessel_book.ttf);
}

@import url(https://fonts.googleapis.com/css?family=Exo:100);

/* ====================================
   RESET Y ESTILOS BASE
   ==================================== */
* {
  margin: 0;
  padding: 0;
  font-family: Kessel;
  letter-spacing: 1px;
  font-weight: 300;
}

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

html {
  height: 100%;
  box-sizing: border-box;
}

body {
  font-size: 14px !important;
  color: #000000 !important;
  min-height: 100%;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 2s;
  padding-top: 120px; 
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  text-decoration: none !important;
  color: #babcbe;
}

a:active {
  text-decoration: none !important;
}

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

.nav {
  --bs-nav-link-hover-color: #212529; 
}


/* ====================================
   ANIMACIONES DE FONDO
   ==================================== */
@-webkit-keyframes bg-scrolling-reverse {
  100% {
    background-position: 50px 50px;
  }
}
@-moz-keyframes bg-scrolling-reverse {
  100% {
    background-position: 50px 50px;
  }
}
@-o-keyframes bg-scrolling-reverse {
  100% {
    background-position: 50px 50px;
  }
}
@keyframes bg-scrolling-reverse {
  100% {
    background-position: 50px 50px;
  }
}

@-webkit-keyframes bg-scrolling {
  0% {
    background-position: 50px 50px;
  }
}
@-moz-keyframes bg-scrolling {
  0% {
    background-position: 50px 50px;
  }
}
@-o-keyframes bg-scrolling {
  0% {
    background-position: 50px 50px;
  }
}
@keyframes bg-scrolling {
  0% {
    background-position: 50px 50px;
  }
}

@-webkit-keyframes square-to-circle {
  0% {
    border-radius: 0 0 0 0;
    transform: rotate(0deg);
    background: black;
  }
  25% {
    border-radius: 50% 0 0 0;
    transform: rotate(45deg);
    background: dimgray;
  }
  50% {
    border-radius: 50% 50% 0 0;
    transform: rotate(90deg);
    background: gray;
  }
  75% {
    border-radius: 50% 50% 50% 0;
    transform: rotate(135deg);
    background: silver;
  }
  100% {
    border-radius: 50%;
    transform: rotate(180deg);
    background: gainsboro;
  }
}


/* ====================================
   HEADER Y LOGO
   ==================================== */
header {
  width: 100%;
  background: #ffffff;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
}

#headerlogo {
  height: 4.5em;
  padding-top: 0.4em;
  text-align: center;
  border-bottom: 1px solid #e6e7e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo {
  text-align: center;
  border-bottom: 1px solid #e6e7e8;
  padding: 20px 0px;
}

#logo a {
  font-family: 'HelveticaNeue', Helvetica, sans-serif;
  font-size: 17px;
  color: #221f1f;
  letter-spacing: 10px;
}

#logo a img {
  width: 100%;
  max-width: 480px;
}

.logo {
  font-family: Kessel_bold;
  font-size: 1.3rem;
}

.logo2 {
  font-family: Kessel;
  font-size: 1.3rem;
}

/* ====================================
   MENÚ
   ==================================== */
#menu {
  background: #ffffff;
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.menu-item {
  display: block;
  cursor: pointer;
  color: #989898;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  margin: 0;
  padding: 11px 14px;
  background-color: white;
  transition: color 0.3s ease;
}

.menu-item:hover {
  color: #babcbe;
}

/* ====================================
   DROPDOWN (SUBMENÚ)
   ==================================== */
.menu-parent {
  position: relative;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.menu-parent:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  border-bottom: 1px solid #f5f5f5;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu .menu-item {
  padding: 12px 20px;
  font-size: 11px;
  white-space: nowrap;
}

.submenu .menu-item:hover {
  background-color: #f9f9f9;
}

/* ====================================
   BOTÓN HAMBURGUESA MÓVIL
   ==================================== */
.nav-mobile {
  display: none;
  position: absolute;
  right: 2em;
  top: 1.5em;
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 10000;
}

.nav-mobile::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 20px;
  height: 2px;
  background: #bbbdbf;
  transition: all 0.3s ease;
}

.nav-mobile::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 0;
  display: block;
  width: 20px;
  height: 2px;
  background: #bbbdbf;
  transition: all 0.3s ease;
  box-shadow: 0 8px 0 #bbbdbf;
}

.nav-mobile.nav-active::before {
  transform: rotate(45deg);
  top: 9px;
  box-shadow: none;
}

.nav-mobile.nav-active::after {
  transform: rotate(-45deg);
  top: 9px;
}

/* ====================================
   LAYOUT Y CONTENEDORES
   ==================================== */

#content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.container {
  padding-left: 4rem;
  padding-right: 4rem;
  width: 100%;
}


/* ====================================
   TIPOGRAFÍA
   ==================================== */
.nombre {
  font-size: 0.8em;
  font-weight: bold;
}

.titulo,
.info {
  font-size: 0.7em;
}

.titulo {
  color: #989898;
}

.textos {
  color: #4c4c4c;
  font-size: 12px;
  line-height: 20px;
}

.par {
  font-family: Kessel;
  font-size: 0.8em;
  text-align: justify;
}


/* ====================================
   EFECTOS DE IMAGEN Y TEXTO
   ==================================== */
.textfield {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.textfield figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
  transition: all 0.2s ease-out;
  transition-delay: 0.1s;
  text-align: center;
  color: black;
  cursor: pointer;
}

.textfield:hover figcaption {
  transform: all 0.5s ease-out;
  opacity: 1;
}

.photoframe {
  background-position: center center;
  background-size: cover;
  width: 100%;
  height: 100%;
  place-items: center;
  cursor: pointer;
  opacity: 1;
  transition: .25s ease;
  backface-visibility: hidden;
}

.photoframe::after {
  content: "";
}

.textfield:hover .photoframe {
  opacity: 0.3;
}

figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ====================================
   CARRUSEL
   ==================================== */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23989898' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
  margin-left: -1rem;
  width: 10px;
  height: 10px;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23989898' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
  margin-right: -1rem;
  width: 10px;
  height: 10px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 25%;
}

.carousel-inner {
  float: none;
  text-align: center;
}

.carousel-inner > .carousel-item > img {
  width: 100%;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-item .carousel-img {
  margin: auto;
  cursor: pointer;
  height: 400px;
}


/* ====================================
   FOOTER
   ==================================== */
.footer {
  font-family: Kessel;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.9em;
  bottom: 0px;
  position: fixed;
  background-color: #fff;
  width: 100%;
  text-align: center;
}


/* ====================================
   ICONOS Y ELEMENTOS VARIOS
   ==================================== */
.far, .fab {
  color: #989898;
}


.lista-item {
  padding: 4px;
}


#stacked_mobile {
  display: none !important;
}

/* ====================================
   MEDIA QUERIES - PANTALLAS GRANDES
   ==================================== */
@media screen and (min-width: 1367px) {
  .carousel-item .carousel-img {
    height: 640px;
  }
}

/* ====================================
   MEDIA QUERIES - PANTALLAS MEDIANAS
   ==================================== */
@media screen and (max-width: 1366px) {
  .carousel-item .carousel-img {
    height: 540px;
  }
}

/* ====================================
   MEDIA QUERIES - TABLET Y MÓVIL
   ==================================== */
@media screen and (max-width: 980px) {
  header {
    padding: 0px 15px;
  }

  #menu {
    width: 100%;
    float: none;
    padding-top: 0px !important;
  }
}

@media (max-width: 800px) {
  #stacked_mobile {
    display: block !important;
  }

  .carousel {
    display: none !important;
  }

  #proyectos-container {
    display: none !important;
  }
}

@media only screen and (max-width: 768px) {
  .nav-mobile {
    display: block;
  }

  #menu > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  #menu > ul.open-menu {
    max-height: 800px;
  }

  #menu li {
    border-bottom: 1px solid #ececec;
    width: 100%;
    text-align: center;
  }

  #menu li:last-child {
    border-bottom: 0;
  }

  #menu > ul > li > a {
    padding: 15px 0px;
    display: block;
  }

  .menu-parent {
    position: relative;
  }

  .menu-parent > .menu-item::after {
    display: none;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f9f9f9;
    max-height: none;
    overflow: visible;
    display: block;
  }

  .submenu li {
    border-bottom: 1px solid #e8e8e8;
    background: #f9f9f9;
    text-align: center;
  }

  .submenu li:last-child {
    border-bottom: 1px solid #ececec;
  }

  .submenu .menu-item {
    font-size: 11px;
    font-style: italic;  
    color: #b9b9b9;
  }

  .submenu .menu-item:hover {
    background-color: #efefef;
    color: #babcbe;
  }

  body {
    padding-top: 80px;
  }
}

@media screen and (max-width: 520px) {
  #logo a {
    font-size: 10px;
    letter-spacing: 5px;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .logo2 {
    font-size: 1rem;
  }
}

@media screen and (max-width: 320px) {
  #menu {
    width: 100%;
    float: none;
  }
}

.oculto {
  display: none !important;
}

/* ====================================
   LIGHTBOX
   ==================================== */

.sl-overlay {
  z-index: 20000 !important;
}

.sl-wrapper {
  z-index: 20001 !important;
}