.tf__main_menu {
  background: white !important;
}

.tf__brand_img img[src="images/wardus/logo_policia.png"] {
  max-width: 70px !important;
}

.tf__brand_img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  /* Ajusta según sea necesario para la alineación vertical */
}

body {
  padding-top: 0;
  margin: 0;
}

html {
  margin: 0;
}

.logo-item img {
  max-width: 150px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo-item img[src="img/policia.png"] {
  max-width: 100px;
}

.logo-item img:hover {
  filter: grayscale(0%);
}

/* Forzar que el header esté totalmente pegado arriba */
.navbar.tf__main_menu,
.tf__main_menu.menu_fix {
  position: fixed;
  top: 0 !important;
  left: 0;
  right: 0;
  margin: 0 !important;
  z-index: 9999;
}

/* Separar el contenido inicial del header fijo */
.tf__banner {
  padding-top: 110px;
  /* Ajusta según la altura real del menú */
}

/* Opcional: más espacio en móviles
        @media (max-width: 767px) {
            .tf__banner { padding-top: 130px; }
        }
        */

/* Fuerza ocultar las formas decorativas si existen */
.banner_shape_1,
.banner_shape_2,
img[src*="banner_shape_1"],
img[src*="banner_shape_2"] {
  display: none !important;
}

/* Quitar posibles límites de ancho del título y ampliar área */
.tf__banner_text h1 {
  font-size: 100px;
  display: block;
  width: 100%;
  max-width: none !important;
  margin-bottom: 35px;
  letter-spacing: 1px;
  word-spacing: 7px;
}

/* Espaciado entre elementos del banner */
.tf__banner_text h6 {
  margin-bottom: 35px;
}

.tf__banner_text h1 {
  margin-bottom: 35px;
}

.tf__banner_text p {
  margin-bottom: 35px;
}

/* Estilos para igualar el tamaño de los recuadros de servicios */
.tf__main_service .tf__single_service {
  height: 290px;
  display: flex;
  flex-direction: column;
  padding: 25px 20px;
  margin-bottom: 25px !important;
  position: relative;
  transition: all 0.3s;
}

.tf__main_service .tf__single_service span {
  margin-bottom: 15px;
}

.tf__main_service .tf__single_service a.tf__single_service_link {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
  line-height: 1.4;
}

.tf__main_service .tf__single_service p {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.tf__main_service .tf__single_service ul {
  margin-top: auto;
}

.tf__main_service .tf__single_service ul li {
  font-size: 14px;
  margin-bottom: 5px;
}

/* Estilo para el último recuadro (distinto) */
.tf__single_service_right {
  height: 630px;
  /* Aumentado de 665px a 700px para dar más espacio */
  display: flex;
  flex-direction: column;
  padding: 25px 20px;
  margin-bottom: 25px !important;
}

.tf__single_service_right_img {
  margin-bottom: 20px;
}

.tf__single_service_right a.tf__single_service_right_heading {
  margin-bottom: 15px;
  line-height: 1.4;
}

.tf__single_service_right p {
  margin-bottom: 20px;
}

.tf__single_service_right a.tf__common_btn {
  margin-top: auto;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 767px) {
  .tf__single_service_right {
    height: auto;
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  /* Reflow counter block so the image sits neatly under the text on small screens */
  .tf__counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tf__counter_text,
  .tf__counter_img {
    width: 100% !important;
    float: none;
  }

  .tf__counter_img {
    height: auto;
    max-width: 260px;
    margin: 24px auto 0;
  }

  .tf__counter_img img {
    height: auto !important;
    object-fit: contain !important;
  }
}

/* Estilos para centrar los elementos de contacto */
.tf__contact_area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 15px;
}

.tf__contact_area span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.tf__contact_icon_text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.tf__contact_icon_text p {
  margin-bottom: 5px;
}

.footer_bottom {
  background-color: #000;
  padding: 25px 0;
  margin-top: 40px;
}

.ft_inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
}

.copy_text {
  margin-bottom: 0;
  margin-right: 0;
  text-align: left;
}

.links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links li {
  margin: 0 15px;
}

/* Forzar que los títulos h2 no tengan límite de ancho en esta página */
.tf__common_heading h2,
.tf__common_heading h2.tf__common_heading_color,
.tf__banner_text h2 {
  max-width: none !important;
  width: auto !important;
  padding-bottom: 25px;
}

/* Estilos para un Footer Moderno y Elegante */
.footer-modern {
  background-color: #000;
  color: #ccc;
  /* Un gris claro para el texto general para reducir el contraste fuerte */
  padding-top: 60px;
}

.footer-modern .logo-img {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer-modern .social-media a {
  color: #fff;
  font-size: 24px;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-modern .social-media a:hover {
  color: #007bff;
  /* Un color de acento al pasar el ratón */
}

.footer-modern h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.footer-modern .footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-modern .footer-links li {
  margin-bottom: 12px;
}

.footer-modern .footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-size: 1rem;
}

.footer-modern .footer-links a:hover {
  color: #fff;
  padding-left: 5px;
  /* Un pequeño desplazamiento al pasar el ratón */
}

.footer-bottom {
  background-color: #181818;
  padding: 25px 0;
  margin-top: 40px;
  border-top: 1px solid #333;
  /* Una línea sutil de separación */
}

.footer-bottom p {
  color: #aaa;
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom .links a {
  color: #aaa;
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom .links a:hover {
  color: #fff;
}

/* Alineación y espaciado para pantallas pequeñas */
@media (max-width: 768px) {
  .footer-modern .text-center {
    margin-bottom: 40px;
  }

  .footer-bottom .ft_inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom .copy_text {
    margin-bottom: 15px;
  }
}

/* Allow horizontal scrolling for brand logos on very small screens */
@media (max-width: 575.98px) {
  .tf__brand_scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 8px 8px;
    margin-right: 0;
    margin-left: 0;
  }

  .tf__brand_scroll::-webkit-scrollbar {
    display: none;
  }

  .tf__brand_scroll > [class*="col-"] {
    flex: 0 0 auto;
    max-width: none;
    width: 70%;
  }
}

.social-icon {
  font-size: 25px;
  /* <-- Puedes ajustar este valor a tu gusto (ej. 36px, 40px) */
  transition: transform 0.2s ease-in-out;
  margin-inline: 5px;
  margin-top: -5px;
}

/* Efecto opcional para que el icono se agrande un poco al pasar el ratón por encima */
.social_media a .social-icon {
  color: white !important;
}
