body,
html {
  font-family: "Montserrat", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
}
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
}
h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}
h3 {
  font-size: 30px;
  font-weight: 600;
  color: #333;
}
h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}
h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}
p {
  font-size: 25px;
}
p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}
a {
  color: #608dfd;
  font-weight: 400;
}
a:hover,
a:focus {
  text-decoration: none;
  color: #608dfd;
}
ul,
ol {
  list-style: none;
}
ul,
ol {
  padding: 0;
  webkit-padding: 0;
  moz-padding: 0;
}
hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}
/* Navigation */
#menu {
  margin-bottom: auto;
  padding: 5px;
  transition: all 0.8s;
}
#menu.navbar-default {
  background-color: #fff;
  border-color: rgba(231, 231, 231, 0);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
}
#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 2px;
  border-radius: 0;
  margin: 2px 20px 0;
}
#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  content: "";
  transition: width 0.2s;
}
#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
}
.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(to right, #922422 0%, #c60502 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}
.navbar-toggle {
  border-radius: 0;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #fff;
  border-color: #c60502;
}
.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: #c60502;
}
.section-title {
  margin-bottom: 70px;
}
.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
.section-title p {
  font-size: 18px;
}
.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #5ca9fb;
  background-image: linear-gradient(to right, #922422 0%, #c60502 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}
.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  background-color: #6372ff;
}
.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}
a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}
/* Header Section */
#header {
  margin-top: 5rem;
  position: relative;
  display: flex;
  justify-content: flex-end; /* Alinea los elementos al final (derecha) */
  align-items: end; /* Alinea los elementos al final (abajo) */
  flex-direction: column; /* Establece la dirección de flexión como columna */
  width: 100%;
  height: 65rem;
  padding: 0;
  background: url(../img/header.jpg) center center no-repeat;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Estilos para los h1 */
.vertical-h1 {
  writing-mode: vertical-rl; /* Texto vertical de derecha a izquierda */
  margin-right: 15%; /* Margen para separar del borde en escritorio */
}

/* Estilos para el h2 */
.horizontal-h2 {
  display: flex; /* Para que el h2 sea horizontal */
  align-items: center; /* Para centrar verticalmente el h2 */
  margin-right: 20px; /* Margen para separar del siguiente elemento */
}

/* Media query para dispositivos con un ancho máximo de 768px (típicamente dispositivos móviles y tablets) */
@media only screen and (max-width: 768px) {
  #header {
    justify-content: center; /* Centra los elementos horizontalmente */
    align-items: center; /* Centra los elementos verticalmente */
  }

  /* Para dispositivos responsivos, el margen de los h1 se reinicia */
  .vertical-h1 {
    margin-right: 0;
  }
  .horizontal-h2 {
    text-align: center; /* Para centrar verticalmente el h2 */
    margin-right: 0px; /* Margen para separar del siguiente elemento */
  }
}

.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.intro .overlay {
  background: rgba(0, 0, 0, 0.2);
}

#header h1 {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
  z-index: 999;
  background: transparent;
  position: relative;
  writing-mode: vertical-rl;
  margin-right: 20px; /* Agrega un margen entre los elementos */
}

#header h1:last-child {
  margin-right: 0; /* Elimina el margen del último elemento */
}

#header h2 {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
  z-index: 999;
  background: transparent;
  position: relative;
}

@media only screen and (max-width: 768px) {
  #header {
    height: 55rem; /* Ajusta la altura automáticamente en dispositivos móviles */
  }

  #header h1 {
    font-size: 48px; /* Cambia el tamaño de la fuente para dispositivos móviles */
    max-width: 100%; /* Cambia el max-width para dispositivos móviles */
  }
}

.intro h1 span {
  font-weight: 800;
  color: #5ca9fb;
}
.intro p {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto;
  margin-bottom: 60px;
}
header .intro-text {
  padding-top: 350px;
  padding-bottom: 200px;
  text-align: center;
}
.imagen {
  text-align: left;
  margin-top: -10rem;
  width: 15%;
  margin-left: -80%;
  background-color: #fbf7ee;
  padding: 1%;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .imagen {
    width: 42%;
    margin-top: -5rem;
    margin-left: 0%; /* Ajusta el ancho para pantallas más pequeñas */
  }
}
.boton {
  background-color: #fbf7ee00;
  border-radius: 10px;
  padding: 10px 20px; /* Tamaño fijo del padding para ajustar el ancho */
  border: 1px solid #fbf7ee;
  font-size: 20px;
  width: 200px; /* Ancho fijo para el botón */
  text-align: center; /* Centra el texto dentro del botón */
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #fbf7ee;
  font-family: "Montserrat", sans-serif;
}

.boton:hover {
  background-color: #fbf7ee;
  color: #c60502;
}

.botones {
  display: flex;
  justify-content: space-around;
}
/* Features Section */
#features {
  background: #f6f6f6;
}

#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}
/* About Section */
#about {
  padding: 50px 0;
}
#about h3 {
  font-size: 30px;
  margin: 0 0 20px;
}
#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
  color: #fff;
}
#about h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #f1c6c5 0%, #ffffff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}
#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
  color: #fff;
}
#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: #c60502;
  font-size: 11px;
  font-weight: 300;
  padding-right: 8px;
}
#about img {
  width: 520px;
  margin-top: 10px;
  background: #fff;
  border-right: 0;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}
#about p {
  line-height: 18px;
  margin: 30px 0;
  color: #fff;
}
/* Services Section */
#services {
  padding: 100px 0;
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  color: #fff;
}
#services .service-desc {
  margin: 10px 10px 20px;
}
#services h2 {
  color: #fff;
}
#services .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
#services i.fa {
  font-size: 42px;
  width: 120px;
  height: 120px;
  padding: 40px 0;
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}
#services h3 {
  font-weight: 500;
  padding: 5px 0;
  color: #fff;
}
#services p {
  color: rgba(255, 255, 255, 0.75);
}
#services .service-desc {
  margin-bottom: 40px;
}
/* Portfolio Section */
#portfolio {
  padding: 100px 0;
  background-color: #fbf7ee;
}
.portfolio-item {
  margin: 1px -15px 0 -14px;
  padding: 0;
}
.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}
.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}
.hover-bg .hover-text > h4 {
  opacity: 0;
  color: #fff;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}
.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.hover-bg:hover .hover-text {
  opacity: 1;
}
/* Testimonials Section */
#testimonials {
  padding: 100px 0;
  background: #f6f6f6;
}
#testimonials i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}
.testimonial {
  position: relative;
  padding: 20px;
}
.testimonial-image {
  float: left;
  margin-right: 15px;
}
.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.testimonial-content {
  position: relative;
  overflow: hidden;
}
.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}
.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}
/* Team Section */
#team {
  padding: 100px 0;
}
#team h4 {
  margin: 5px 0;
}
#team .team-img {
  width: 240px;
}
#team .thumbnail {
  background: transparent;
  border: 0;
}
#team .thumbnail .caption {
  padding: 10px 0 0;
  color: #888;
}
/* Contact Section */
#contact {
  padding: 100px 0 60px;
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  color: rgba(255, 255, 255, 0.75);
}
#contact .section-title {
  margin-bottom: 40px;
}
#contact .section-title p {
  font-size: 16px;
}
#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
}
#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}
#contact form {
  padding-top: 20px;
}
#contact .text-danger {
  color: #cc0033;
  text-align: left;
}
#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
}
#contact .btn-custom:hover {
  color: #1f386e;
  background: #fff;
}
label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}
#contact .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  color: #444;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}
#contact .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}
.form-control::-webkit-input-placeholder {
  color: #777;
}
.form-control:-moz-placeholder {
  color: #777;
}
.form-control::-moz-placeholder {
  color: #777;
}
.form-control:-ms-input-placeholder {
  color: #777;
}
#contact .contact-item {
  margin: 20px 0;
}
#contact .contact-item span {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  display: block;
}
#contact .contact-item i.fa {
  margin-right: 10px;
}
#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}
#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}
#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}
#contact .social i.fa:hover {
  color: #608dfd;
  background: #fff;
}
/* Footer Section*/
#footer {
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  padding: 30px 0;
}
#footer p {
  color: #ffffff;
  font-size: 20px;
}
#footer a {
  color: #608dfd;
}
#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

@media (max-width: 768px) {
  #about img {
    margin: 50px 0;
  }
}
/* Agrega estilos de transición para la clase fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
.ubi {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 10px;
}
.ubi nav {
  display: block;
}
.boton2 {
  background-color: #ffffff;
  border-radius: 10px;
  border: solid 2px #cc0033;
  padding: 10px 0; /* Elimina el padding vertical y deja solo el padding horizontal */
  width: 150px; /* Ajusta el ancho según tus necesidades */
  color: black;
  margin: 10px 0;
  font-size: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.boton2:hover {
  background-color: #c60502;
  color: #fff;
}
.ubi-conteiner {
  background-color: #c60502;
  text-align: justify;
  padding: 0 20px;
}
.ubi-conteiner h4 {
  text-align: center;
}
.titulo {
  margin-bottom: 70px;
  text-transform: uppercase;
}
.titulo {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  color: #fbf7ee;
  font-size: 25px;
}
.titulo::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #ffffff 0%, #fbf7ee 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
.titulo2 {
  margin-bottom: 70px;
}
.titulo2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  color: #fbf7ee;
  font-size: 20px;
}
.titulo2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #ffffff 0%, #fbf7ee 100%);
  height: 4px;
  width: 50px;
  bottom: 0;
  margin-left: -70px;
  /* left: 50%; */
}
.lista {
  color: #fff;
  margin: 20px 0;
}
.lista li {
  margin: 30px 0;
  font-size: 15px;
}
.datos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}
.datos img {
  max-width: 300px;
  margin: 20px;
}
.redes {
  margin: 20px;
}
.redes a {
  color: #fff;
  font-size: 16px;
  margin: 20px;
}
.redes i {
  color: #fff;
  font-size: 20px;
}
.redes li {
  margin: 20px 0;
}
.historia {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.historia img {
  max-width: 400px;
}
.historia p {
  color: black;
  font-size: 18px;
  text-align: justify;
  font-family: "Montserrat", sans-serif;
}
.historia p span {
  color: black;
  font-size: 22px;
  font-weight: bold;
  text-align: justify;
  font-family: "Montserrat", sans-serif;
}
@media (max-width: 768px) {
  .ubi {
    grid-template-columns: 1fr;
  }

  .datos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .datos img {
    max-width: 100%;
    margin: 20px 0;
  }

  .historia {
    grid-template-columns: 1fr;
  }

  .historia img {
    max-width: 100%;
  }

  .titulo::after,
  .titulo2::after {
    margin-left: -20px;
  }
}
@media (max-width: 768px) {
  .boton {
    padding: 10px 30px;
    margin: 20px 0; /* Ajusta el padding según tus necesidades */
  }

  .botones {
    flex-direction: column; /* Cambia a una disposición vertical */
    align-items: center; /* Centra los botones en el eje horizontal */
  }
}
.location-selector-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #fbf7ee;
  padding: 20px;
}

.selector {
  flex: 0 1 calc(33.3333% - 10px);
  margin-bottom: 20px;
}

.label {
  font-size: 18px;
  color: black;
  margin-bottom: 5px;
}

.select {
  width: 100%;
  font-size: 18px;
  padding: 8px;
  border: none; /* Quita el borde */
  border-radius: 5px; /* Agrega borde radius */
}
.navegacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.botones-flecha {
  background-color: #fbf7ee;
  border: 2px solid #bd0a07;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none; /* Eliminar el borde azul al enfocar */
}

.botones-flecha:hover {
  background-color: #bd0a07;
  color: #fbf7ee;
}

.ol-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #cccccc;
}

.ol-popup:after,
.ol-popup:before {
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.ol-popup:after {
  border-top-color: white;
  border-width: 10px;
  left: 48%;
  margin-left: -10px;
}

.ol-popup:before {
  border-top-color: #cccccc;
  border-width: 11px;
  left: 48%;
  margin-left: -11px;
}

.ol-popup-closer {
  position: absolute;
  top: 2px;
  right: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.card {
  background: linear-gradient(to right, #922422 0%, #c60502 100%);
  padding: 2vw;
  color: white;
  margin-bottom: 2vw;
  margin-right: 2vw;
  border-radius: 5px;
  box-shadow: 0 0 2vw rgba(0, 0, 0, 0.2);
  width: calc(33.33% - 4vw); /* Ancho del 33.33% menos margen a la derecha */
  max-width: 400px;
  max-height: 300px;
  font-size: 12px;
}

@media only screen and (max-width: 768px) {
  .card {
    width: calc(50% - 4vw); /* Ancho del 50% menos margen a la derecha */
  }
}

@media only screen and (max-width: 480px) {
  .card {
    width: calc(100% - 4vw); /* Ancho completo menos margen a la derecha */
  }
}
.responsive-styles {
  display: flex;
  margin-top: 0;
  justify-content: end;
}

@media (max-width: 768px) {
  .responsive-styles {
    margin-top: 8% !important;
    justify-content: center;
  }
}
