/* Estilos generales responsive */
html, body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}
#banner-title {
  font-size: 4rem;
  font-weight: 500;
  color: #fff;
}

#banner-subtitle {
   font-size: 1rem;
  font-weight: 100;
  color: #fff;
}

#banner-text {
  font-size: 1.2rem;
  font-weight: 300;
  color: #fff;
}
/* Estilos específicos para el logo del navbar */
#navLogo {
  max-height: 45px;
  transition: all 0.3s ease;
}

.navbar {
	position: fixed;
	right: 0;
	left: 0;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	min-height: 50px;
	line-height: 50px;
	background: #1f9ed8;
  z-index: 1030;
}
/* .navbar .navbar-brand {
} */
.navbar .nav-item {
	margin: 0 5px;
	padding: 0;
}
.navbar .nav-item a {
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 13px;
}
.navbar .nav-item a:hover {
	color: #979797;
  
}
.navbar .nav-link {
	position: relative;
	padding: 0;
}
.navbar .navbar-toggler {
	cursor: pointer;
}
.navbar .navbar-toggler span {
	color: #fff;
}
.navbar-style2 .active:after, .navbar-style2 .nav-link:after {
	display: none;
}
.nav-scroll {
	background: #fff;
	-webkit-box-shadow: 0 1px 8px 3px rgba(0, 0, 0, 0.0509803922);
	box-shadow: 0 1px 8px 3px rgba(0, 0, 0, 0.0509803922);
	-webkit-transition: all .4s ease;
	transition: all .4s ease;
}
.nav-scroll .navbar-nav > li > a {
	color: #333;
}
.nav-scroll .navbar-brand img {
	-webkit-transform: scale(1.03) !important;
	transform: scale(1.03) !important;
}
.nav-scroll .navbar-toggler {
	cursor: pointer;
}
.nav-scroll .navbar-toggler span {
	color: #333;
}
.nav-scroll .nav-link:hover:after {
	background: #1f9ed8;	z-index: 1030;
}

/* Arreglo para el responsive menu */
@media (max-width: 991px) {
  #mainNav .navbar-collapse {
    overflow: auto;
    background: rgb(51, 51, 51);
    color: #1f9ed8 !important;
    text-align: center;
    padding: 10px 0;
    max-height: 80vh;
  }
  
  #mainNav .nav-item {
    margin: 8px 0;
  }
  
  #mainNav .nav-item a {
    display: inline-block;
    margin: 5px 0;
    padding: 5px 0;
  }
  
  #mainNav.nav-scroll .navbar-collapse {
    background: #fff !important;
  }
  
  #mainNav.nav-scroll .navbar-toggler span {
    color: #333;
  }
}

#mainNav.navbar-style2 .active:after, #mainNav.navbar-style2 .nav-link:after {
  display: none;
}

#mainNav.nav-scroll {
  background: #fff;
  -webkit-box-shadow: 0 1px 8px 3px rgba(0, 0, 0, 0.0509803922);
  box-shadow: 0 1px 8px 3px rgba(0, 0, 0, 0.0509803922);
  -webkit-transition: all .4s ease;
  transition: all .4s ease;
}

#mainNav.nav-scroll .navbar-nav > li > a,
#mainNav.nav-scroll .nav-item a {
  color: #333;
}

#mainNav.nav-scroll #navbarBrand img {
  -webkit-transform: scale(1.03) !important;
  transform: scale(1.03) !important;
}

/* Estilo para el banner principal */
#header {
  background: #1f9ed8;
  /* background: linear-gradient(to left, #1f9ed8, rgb(17, 130, 206)); */
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 80px; /* Espacio para el navbar */
  color: #fff;
}

@media (max-width: 991px) {
  #header {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 40px;
  }
  
  #banner-title {
    font-size: 2.2rem;
  }
  
  #banner-subtitle {
    font-size: 1.4rem;
  }
  
  .banner-buttons .btn {
    margin-right: 0;
  }
}



.banner {
  background: #1f9ed8;
  /* background: linear-gradient(to left, #1f9ed8, rgb(17, 130, 206)); */
  padding: 100px 0px;
  position: relative;
}

.banner::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
/* Ajustes responsivos */
@media (max-width: 991px) {
  .banner-text h2 {
    font-size: 2.2rem !important;
  }
  
  .banner-text h6 {
    font-size: 1rem !important;
  }
  
  .banner-text p {
    font-size: 0.95rem !important;
  }
  
  .banner .btn {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
  }
  
  .sectioner-header h3 {
    font-size: 1.8rem !important;
  }
  
  .service-box {
    margin-bottom: 20px;
  }
  
  .feature-img {
    margin-bottom: 30px;
  }
  
  .single-feature {
    margin-bottom: 15px;
  }
  
  .contact-info {
    margin-top: 30px;
  }
  
  #navLogo {
    max-height: 40px;
  }
  
  /* Ajustes específicos para el navbar en móvil */
  #mainNav {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  
  #mainNav .navbar-toggler {
    margin-right: 15px;
  }
  
  #mainNav.nav-scroll .navbar-brand img,
  #mainNav .navbar-brand img {
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
  }
}

@media (max-width: 767px) {
  .banner-text h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }
  
  .banner-text h6 {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
  }
  
  .banner-text p {
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
  }
  
  .banner-image-container {
    max-width: 80%;
    margin: 20px auto 0;
  }
  
  .team-detail img {
    max-width: 70%;
  }
  
  .video-section h3 {
    font-size: 1.5rem !important;
  }
  
  .video-section p {
    font-size: 0.9rem !important;
  }
  
  .media-right-margin {
    margin-right: 10px;
  }
  
  .faq-content h4 {
    font-size: 1.1rem !important;
  }
  
  .section-padding {
    padding: 40px 0 !important;
  }
  
  .contact form input, .contact form textarea {
    margin-bottom: 10px !important;
  }
  
  .contact-item {
    margin-bottom: 20px !important;
  }
  
  .contact-item i {
    font-size: 1.2rem !important;
  }
  
  /* Ajustes adicionales para el navbar */
  #mainNav .nav-item {
    margin: 5px 0;
  }
}

@media (max-width: 575px) {
  #banner-title {
    font-size: 1.8rem;
  }
  
  #banner-subtitle {
    font-size: 1.2rem;
  }
  
  #banner-text {
    font-size: 0.9rem;
  }
  
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .banner-text h2 {
    font-size: 1.6rem !important;
  }
  
  .banner .btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 10px;
  }
  
  .section-content {
    padding: 0 10px;
  }
  
  .feature-img {
    position: relative;
  }
  
  /* Ajustes específicos para el navbar en pantallas muy pequeñas */
  #mainNav .navbar-toggler span {
    font-size: 20px;
  }
  
  #navLogo, #mainNav .navbar-logo img.logo-1 {
    max-height: 35px;
  }
}

/* Clase auxiliar para botones responsive */
@media (min-width: 576px) {
  .w-sm-auto {
    width: auto !important;
  }
}

/* Ajustes para la navegación móvil */
@media (max-width: 991px) {
  #mainNav .navbar-collapse {
    overflow: auto;

    color: #1f9ed8 !important;
    text-align: center;
    padding: 10px 0;
    margin-top: 0;
  }
  
  #mainNav.nav-scroll .navbar-collapse {
    background: #fff !important;
  }
  
  #mainNav .navbar-nav .nav-item {
    margin: 5px 0;
  }
  
  #mainNav .navbar-nav .nav-link {
    color: #fff !important;
    padding: 8px 15px;
  }
  
  #mainNav.nav-scroll .navbar-nav .nav-link {
    color: #333 !important;
  }
}

/* Mejoras para la sección de servicios en móvil */
@media (max-width: 767px) {
  .service-box {
    padding: 25px 15px !important;
  }
  
  .service-box i {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }
  
  .service-box h5 {
    font-size: 1.1rem !important;
  }
  
  .icon-border {
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
  }
}

/* Ajustes para el video popup */
.video-popup {
  overflow-y: auto;
}

@media (max-width: 767px) {
  .iframe-src iframe {
    width: 100%;
    height: 250px;
  }
}

/* Hover effects para botones y elementos interactivos */
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15) !important;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Ajustes específicos para formulario de contacto */
@media (max-width: 575px) {
  .contact .row .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .contact-info {
    margin-bottom: 30px !important;
  }
  
  .form-input {
    font-size: 14px !important;
  }
  
  .contact textarea {
    min-height: 120px !important;
  }
}

/* Fix para el bug del video popup en móviles */
@media (max-width: 767px) {
  .video-popup {
    padding: 0 15px;
  }
  
  .iframe-src {
    width: 100%;
    max-width: 100%;
  }
}

/* Mejoras para mejorar el rendimiento en móviles */
@media (max-width: 767px) {
  .wow {
    animation-name: none !important;
    visibility: visible !important;
  }
  
  .banner-overlay {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .banner .svg-wave {
    bottom: -1px;
  }
}

/* Arreglos específicos para dispositivos extra pequeños */
@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  .banner-text h2 {
    font-size: 1.5rem !important;
  }
  
  .sectioner-header h3 {
    font-size: 1.5rem !important;
  }
  
  .icon-border {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
  }
  
  .service-box {
    padding: 20px 10px !important;
  }
  
  .contact-item i {
    font-size: 1.2rem !important;
  }
}

/* Mejoras responsivas para el banner */
@media (max-width: 767px) {
  #banner-title {
    margin-top: 80px;
    font-size: 2.2rem;
  }
  
  #banner-subtitle {
    font-size: 1.5rem;
  }
  
  #banner-text {
    font-size: 0.95rem;
  }
  
  .banner-buttons {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  #banner-title {
    font-size: 1.8rem;
  }
  
  #banner-subtitle {
    font-size: 1.2rem;
  }
  
  #banner-text {
    font-size: 0.9rem;
  }
  
  #header {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
  }
}

/* Clase auxiliar para botones responsive */
@media (min-width: 576px) {
  .w-sm-auto {
    width: auto !important;
  }
}

@media all and (max-width:991px) {
.navbar .navbar-collapse {
    overflow: auto;
    
    color: #1f9ed8 !important;
    text-align: center;
    padding: 10px 0;
}
.nav-scroll .navbar-collapse {
    background: #fff !important;
}
#contact_form {
    margin-bottom:20px;
}
}
@media all and (max-width:768px) {
.nav-scroll .navbar-brand img, .navbar-brand img {
    transform: scale(0.75) !important;
    -webkit-transform: scale(0.75) !important;
}
.banner-text {
    padding-right: 0px;
    margin: 10px 0px 0px;
}
h2 {
    font-size: 25px;
}
h3 {
    font-size: 23px;
}
.section-padding {
    padding: 40px 0px;
}
}

.search-container {
  display: flex;
  margin: 10px 0;
}

.search-input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  flex-grow: 1;
}

.search-button {
  padding: 8px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-button:hover {
  background-color: #0056b3;
}

/* Estilos para el botón hamburguesa flotante de filtros */
.btn-filtro-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1f9ed8, #0d7ab8);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(31, 158, 216, 0.3);
  font-size: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-filtro-flotante:hover {
  background: linear-gradient(135deg, #0d7ab8, #1f9ed8);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(31, 158, 216, 0.4);
  color: white;
}

.btn-filtro-flotante:focus {
  outline: none;
  color: white;
}

.btn-filtro-flotante:active {
  transform: translateY(-1px);
}

/* Modal de filtros para móvil */
.filtros-mobile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-end;
}

.filtros-mobile-modal.show {
  opacity: 1;
  visibility: visible;
}

.filtros-mobile-content {
  background: white;
  width: 100%;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.filtros-mobile-modal.show .filtros-mobile-content {
  transform: translateY(0);
}

.filtros-mobile-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.filtros-mobile-header h5 {
  margin: 0;
  font-weight: 600;
  color: #333;
  font-size: 1.2rem;
}

.filtros-mobile-header h5 i {
  color: #1f9ed8;
  margin-right: 8px;
}

.btn-close-filtros {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-close-filtros:hover {
  background: #f0f0f0;
  color: #333;
}

.filtros-mobile-body {
  padding: 25px;
  flex: 1;
  overflow-y: auto;
}

.filtros-mobile-body .filter-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.filtros-mobile-body .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.filtros-mobile-body .form-control:focus {
  border-color: #1f9ed8;
  box-shadow: 0 0 0 0.2rem rgba(31, 158, 216, 0.25);
}

.filtros-mobile-body .input-group-text {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-right: none;
  border-radius: 10px 0 0 10px;
}

.filtros-mobile-body .input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.estadisticas-mobile {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  border-left: 4px solid #1f9ed8;
}

.filtros-mobile-footer {
  padding: 20px 25px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
  display: flex;
  gap: 10px;
}

.filtros-mobile-footer .btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filtros-mobile-footer .btn-primary {
  background: linear-gradient(135deg, #1f9ed8, #0d7ab8);
  border: none;
  box-shadow: 0 4px 15px rgba(31, 158, 216, 0.3);
}

.filtros-mobile-footer .btn-primary:hover {
  background: linear-gradient(135deg, #0d7ab8, #1f9ed8);
  box-shadow: 0 6px 20px rgba(31, 158, 216, 0.4);
}

.filtros-mobile-footer .btn-outline-secondary {
  border: 2px solid #6c757d;
}

.filtros-mobile-footer .btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d;
}

/* Ajustes responsivos */
@media (max-width: 576px) {
  .btn-filtro-flotante {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 18px;
  }
  
  .filtros-mobile-content {
    max-height: 90vh;
  }
  
  .filtros-mobile-header {
    padding: 15px 20px 12px;
  }
  
  .filtros-mobile-body {
    padding: 20px;
  }
  
  .filtros-mobile-footer {
    padding: 15px 20px;
    flex-direction: column;
  }
  
  .filtros-mobile-footer .btn {
    margin-bottom: 0;
  }
}

/* Animación del botón flotante */
@keyframes pulse {
  0% {
    box-shadow: 0 8px 20px rgba(31, 158, 216, 0.3);
  }
  50% {
    box-shadow: 0 8px 20px rgba(31, 158, 216, 0.5);
  }
  100% {
    box-shadow: 0 8px 20px rgba(31, 158, 216, 0.3);
  }
}

.btn-filtro-flotante {
  animation: pulse 2s infinite;
}

/* Ocultar scrollbar en el modal cuando está abierto */
body.modal-open {
  overflow: hidden;
}