:root {
  --color1: #d68634;
  --color2: #7f93ba;
  --color1hover: #646464;
}

/*  ========================
            Config         
    ======================== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
  transition: 0.3s;
}
body {
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
  color: #646464;
}
body.flex {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* From Uiverse.io by cssbuttons-io */ 
.btn {
  position: relative;
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.5em;
  display: inline-block;
  cursor: pointer;
  border-radius: 6em;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  font-weight: 500;
  color: black;
  background-color: white;
}

.hero-image img{
  height: 500px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}

.btn::after {
  background-color: #fff;
}

.btn:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}


.title {
  color: var(--color1);
}

.swiper-pagination-bullet {
  background: #d68634 !important;
}
/* Dropdown Button */
.navbar {
  background-color: #ebebeb;
  padding: 10px 20px;
}

/* Ajuste del ícono de la flecha */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-toggle i {
  transition: transform 0.3s ease-in-out;
  transform: rotate(270deg);

}

/* Gira la flecha cuando el menú está abierto */
.dropdown.show .dropdown-toggle i {
  transform: rotate(360deg);
}

.nav-list {
  list-style: none;
  display: inline-flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  display: block;
}

.dropdown {
  position: relative;
}


.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px); /* Ajusta el espacio entre el menú y el dropdown */
  left: 0;
  background-color: #ebebeb;
  border-radius: 5px;
  display: none;
  min-width: 220px;
  padding: 0; /* Eliminar padding extra */
  z-index: 1000;
}


.dropdown.show .dropdown-menu {
  display: block;
}

/* Ajustar los elementos dentro del menú */
.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  color: #333;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  width: 100%;
}

.dropdown-menu a:hover {
  background-color: var(--color2);
}
body {
  font-family: "Rubik", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}
a.link {
  color: var(--color1);
}
a:hover,
a:focus {
  color: var(--color1);
}

.icon-link h3:hover{
  color: var(--color1) !important;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.lista {
  padding-left: 30px;
}
ul.lista li {
  list-style: disc;
  padding: 0 10px;
}

.timeline {
  position: relative;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--color1);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--color1hover);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.timeline-item.left {
  left: 0;
}

.timeline-item.left::before {
  right: -10px;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::before {
  left: -10px;
}

.timeline-content h3 {
  margin-top: 0;
  color: #d68634;
}

.timeline-content p {
  margin: 5px 0;
  color: #555;
}

.timeline-date {
  text-align: right;
  font-size: 0.8em;
  color: #000000;
  margin-top: 10px;
  font-style: italic;
}


.cd-container {
  /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
  width: 50%;
  max-width: 1170px;
  margin: 0 auto;
}
.cd-container::after {
  /* clearfix */
  content: "";
  display: table;
  clear: both;
}

/* -------------------------------- 

Main components 

-------------------------------- */
header h1 {
  color: #ffffff;
  font-size: 18px;
  font-size: 1.125rem;
}


#cd-timeline {
  position: relative;
  padding: 2em 0;
  margin-top: 2em;
  margin-bottom: 2em;
}
#cd-timeline::before {
  /* this is the vertical line */
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: #d7e4ed;
}
@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}

.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}
.cd-timeline-block::after {
  clear: both;
  content: "";
  display: table;
}
.cd-timeline-block:first-child {
  margin-top: 0;
}
.cd-timeline-block:last-child {
  margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 4em 0;
  }
  .cd-timeline-block:first-child {
    margin-top: 0;
  }
  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}

.cd-timeline-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffffff, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.cd-timeline-img img {
  display: block;
  width: 100%;
  position: relative;
  border-radius: 100%;
}
.cd-timeline-img.cd-picture {
  background: #ffffff;
}
.cd-timeline-img.cd-movie {
  background: #ffffff;
}
.cd-timeline-img.cd-location {
  background: #f0ca45;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-img {
    width: 60px;
    height: 60px;
    left: 50%;
    margin-left: -30px;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
  .cssanimations .cd-timeline-img.is-hidden {
    visibility: hidden;
  }
  .cssanimations .cd-timeline-img.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-1 0.6s;
    -moz-animation: cd-bounce-1 0.6s;
    animation: cd-bounce-1 0.6s;
  }
}

@-webkit-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
  }
}
@-moz-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -moz-transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -moz-transform: scale(1.2);
  }
  100% {
    -moz-transform: scale(1);
  }
}
@keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
}
.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  background: #ffffff;
  border-radius: 0.25em;
  padding: 1em;
  box-shadow: 0 3px 0 #d7e4ed;
}
.cd-timeline-content::after {
  clear: both;
  content: "";
  display: table;
}
.cd-timeline-content h2 {
  color: #303e49;
}
.cd-timeline-content h2:hover {
  color: var(--color1);
}
.cd-timeline-content p, .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
  font-size: 13px;
  font-size: 0.8125rem;
}
.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
  display: inline-block;
}
.cd-timeline-content p {
  margin: 1em 0;
  line-height: 1.6;
}
.cd-timeline-content .cd-read-more {
  float: right;
  padding: 0.8em 1em;
  background: #acb7c0;
  color: #ffffff;
  border-radius: 0.25em;
}
.no-touch .cd-timeline-content .cd-read-more:hover {
  background-color: #bac4cb;
}
.cd-timeline-content .cd-date {
  float: left;
  padding: 0.8em 0;
  opacity: 0.7;
}
.cd-timeline-content::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #ffffff;
}
@media only screen and (min-width: 768px) {
  .cd-timeline-content h2 {
    font-size: 20px;
    font-size: 1.25rem;
  }
  .cd-timeline-content p {
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    margin-left: 0;
    padding: 1.6em;
    width: 45%;
  }
  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: #ffffff;
  }
  .cd-timeline-content .cd-read-more {
    float: left;
  }
  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #ffffff;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
  .cssanimations .cd-timeline-content.is-hidden {
    visibility: hidden;
  }
  .cssanimations .cd-timeline-content.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-2 0.6s;
    -moz-animation: cd-bounce-2 0.6s;
    animation: cd-bounce-2 0.6s;
  }
}

@media only screen and (min-width: 1170px) {
  /* inverse bounce effect on even content blocks */
  .cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in {
    -webkit-animation: cd-bounce-2-inverse 0.6s;
    -moz-animation: cd-bounce-2-inverse 0.6s;
    animation: cd-bounce-2-inverse 0.6s;
  }
}
@-webkit-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -moz-transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -moz-transform: translateX(20px);
  }
  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
    -moz-transform: translateX(-100px);
    -ms-transform: translateX(-100px);
    -o-transform: translateX(-100px);
    transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
    -moz-transform: translateX(20px);
    -ms-transform: translateX(20px);
    -o-transform: translateX(20px);
    transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}
@-webkit-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -moz-transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -moz-transform: translateX(-20px);
  }
  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
    -moz-transform: translateX(100px);
    -ms-transform: translateX(100px);
    -o-transform: translateX(100px);
    transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
    -moz-transform: translateX(-20px);
    -ms-transform: translateX(-20px);
    -o-transform: translateX(-20px);
    transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}

/*  ========================
        // Utilidades //         
    ======================== */

/*  ========================
            Topbar
    ======================== */

#mobile-menu-toggle {
  width: 40px;
  height: 40px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-topbar{
  background-color: #ebebeb;
}

#submenu {
  transition: max-height 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  padding: 1rem;
  width: 90%;
  text-align: center;
  flex-direction: column;
  align-content: center;
  gap: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#submenu a {
  display: block;
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}

#submenu a:hover {
  color: #f97316; /* Naranja */
}

#submenu.open {
  max-height: 300px;
}


#mobile-nav {
  z-index: 1000;
}

#mobile-nav.show {
  opacity: 1;
  pointer-events: auto;
}

#submenu-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

#submenu {
  transition: max-height 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#submenu.open {
  max-height: 300px;
}



  
.topbar {
  background-color: #ebebeb;
  height: 100px;
  padding: 15px 20px;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

#mobile-menu-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger-box {
  width: 30px;
  height: 30px;
}
.hamburger.is-active .hamburger-inner, 
.hamburger.is-active .hamburger-inner:after, 
.hamburger.is-active .hamburger-inner:before {
  background-color: #ffffff !important;
}

@media screen and (max-width: 640px) {
  .mm-subheadline{
    font-size: 35px !important;
    display: ruby-text;
  }
  .topbar .fa-envelope {
    position: static !important;
  }
  .clientes{
    height: 100% !important;
  }
  .topbar{
display: none !important;
  }
  #cd-timeline {
    /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
    width: 100%;
    padding: 0 1rem;
  }
  
footer .grid{
  text-align: center;
}

  
} 
.clientes{
  height: 600px;
}


.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 33px !important;
}

/*  ========================
        // Topbar //
    ======================== */

/* 
/* -------------------------------- 

Contenedeor con imagenes
-------------------------------- */
.contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 ;
  max-width: 900px;
  margin: auto;
  gap: 20px;
}

.texto {
  flex: 1;
}


.imagen {
  flex: 1;
  text-align: right;
}

.imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;

}

/* Responsive */
@media (max-width: 768px) {
  .contenedor {
    flex-direction: column;
    text-align: left;
  }
  .imagen {
    text-align: left;
  }
}
.galeria {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 ;
    max-width: 900px;
    margin: auto;
    flex-wrap: wrap;
  }

  .item {
    flex: 1 1 200px;
    text-align: center;
    background: #fff;
    padding: 5px;
  }

  .item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: 10px;
  }

  .item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
  }