/*========================================
=            Variables CSS Root           =
==========================================*/

/* Definición de colores personalizados para Bootstrap (solo secundaria activa) */
:root {
  /*--bs-primary: #1d3557; */ /* Color primario comentado */
  --bs-secondary: #ffb703; /* Color secundario principal amarillo */
  /*--bs-success: #2a9d8f; */
  /*--bs-info: #00b4d8; */
  /*--bs-warning: #ffb703; */
  /*--bs-danger: #e63946; */
}

/*========================================
=                Loader                  =
==========================================*/

/* Oculto por defecto */
/* Fondo oscuro con opacidad y centrado absoluto */
#loader {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo opaco */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Se muestra al agregar la clase show */
#loader.show {
  display: flex;
}

/* Texto debajo del loader */
.loader-text {
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  font-family: sans-serif;
}

/* Tu loader animado */
.loader {
  color: #ffffff;
  font-size: 20px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  animation: load4 1.3s infinite linear;
  transform: translateZ(0);
}

/* Animación incluida (no modificada) */
@keyframes load4 {
  0%,
  100% {
    box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
  }
  12.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  25% {
    box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  37.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em,
      0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  50% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em,
      0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  62.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }
  75% {
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }
  87.5% {
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}

/*========================================
=            Botón Volver Arriba          =
==========================================*/

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 99;
}

/*========================================
=                 Botones                 =
==========================================*/

.btn {
  font-weight: 600;
  transition: 0.5s;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50%;
}

/* Tamaños cuadrados para botones */
.btn-square {
  width: 32px;
  height: 32px;
}
.btn-sm-square {
  width: 34px;
  height: 34px;
}
.btn-md-square {
  width: 44px;
  height: 44px;
}
.btn-lg-square {
  width: 56px;
  height: 56px;
}

/* Botón primario personalizado */
.btn.btn-primary {
  background: var(--bs-secondary) !important;
  color: var(--bs-white) !important;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  transition: 0.5s;
}

/* Efecto hover botón primario */
.btn.btn-primary:hover {
  background: var(--bs-primary) !important;
  color: var(--bs-secondary);
  border: 1px solid var(--bs-secondary);
}

/* Botón secundario transparente */
.btn.btn-secondary {
  background: transparent;
  color: var(--bs-secondary);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  border: none;
  transition: 0.5s;
}

/* Efecto hover botón secundario */
.btn.btn-secondary:hover {
  color: var(--bs-primary) !important;
}

/*========================================
=            Títulos de Sección           =
==========================================*/

.section-title {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

/* Estilo subtítulo con línea decorativa a la izquierda */
.section-title .sub-style {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.section-title .sub-style::before {
  content: "";
  width: 100px;
  position: absolute;
  bottom: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-bottom: -6px;
  margin-left: -100px;
  border: 1px solid var(--bs-secondary) !important;
}

/* Estilo subtítulo con línea decorativa a la derecha */
.sub-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.sub-title::before {
  content: "";
  width: 100px;
  position: absolute;
  bottom: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-bottom: -8px;
  margin-right: -100px;
  border: 1px solid var(--bs-secondary) !important;
}

/*========================================
=                 Topbar                  =
==========================================*/

.fixed-top .container {
  transition: 0.5s;
}

.topbar {
  padding: 2px 10px 2px 20px;
  background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
  transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
  color: var(--bs-secondary) !important;
}

/* Ocultar topbar en pantallas pequeñas */
@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}

/*========================================
=                 Navbar                  =
==========================================*/

/* Estilos links navbar */
.navbar-light .navbar-nav .nav-link {
  font-family: "Poppins", sans-serif;
  position: relative;
  margin-right: 25px;
  padding: 2rem 1rem;
  color: white !important;
  font-size: 17px;
  font-weight: 400;
  outline: none;
  transition: 0.5s;
}

/* Navbar sticky-top, color links cuando está fijo */
.sticky-top .navbar-light .navbar-nav .nav-link {
  padding: 2rem 1rem;
  color: var(--bs-primary) !important;
}

/* Efecto hover y link activo */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--bs-secondary) !important;
}

/* Logo navbar */
.navbar-light .navbar-brand img {
  max-height: 60px;
  transition: 0.5s;
}

/* Logo navbar sticky */
.sticky-top .navbar-light .navbar-brand img {
  max-height: 4rem;
}

/* Ícono flecha dropdown personalizado */
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  vertical-align: middle;
}

/* Dropdown menú animado */
@media (min-width: 1200px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    border: 0;
    border-radius: 10px;
    transition: 0.5s;
    opacity: 0;
  }
}

/* Hover en enlaces dropdown */
.dropdown .dropdown-menu a:hover {
  background: var(--bs-primary);
  color: var(--bs-secondary);
}

/* Mostrar dropdown menú al hacer hover en nav-item */
.navbar .nav-item:hover .dropdown-menu {
  transform: rotateX(0deg);
  visibility: visible;
  background: var(--bs-light) !important;
  transition: 0.5s;
  opacity: 1;
}

/* Responsive navbar para dispositivos menores a 992px */
@media (max-width: 991.98px) {
  .sticky-top {
    position: relative;
    background: var(--bs-white);
  }

  .navbar.navbar-expand-lg .navbar-toggler {
    padding: 10px 20px;
    border: 1px solid var(--bs-primary) !important;
    color: var(--bs-primary);
  }

  .navbar-light .navbar-collapse {
    margin-top: 15px;
    border-top: 1px solid #dddddd;
  }

  .navbar-light .navbar-nav .nav-link,
  .sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
    margin-left: 0;
    color: var(--bs-dark) !important;
  }

  .navbar-light .navbar-brand img {
    max-height: 45px;
  }
}

/* Navbar sticky-top para pantallas mayores a 992px */
@media (min-width: 991.98px) {
  .sticky-top .navbar-light {
    background: var(--bs-light) !important;
  }

  /* Animación decorativa para links navbar */
  .sticky-top .navbar-light .navbar-nav .nav-link:after {
    background: var(--bs-primary);
  }
  .navbar-light .navbar-nav .nav-link:before {
    bottom: auto;
  }
  .navbar-light .navbar-nav .nav-link:after {
    top: auto;
  }

  .navbar-light .navbar-nav .nav-link:hover:before,
  .navbar-light .navbar-nav .nav-link.active:before {
    top: 20px;
    opacity: 1;
  }

  .navbar-light .navbar-nav .nav-link:hover::after,
  .navbar-light .navbar-nav .nav-link.active::after {
    bottom: 20px;
    opacity: 1;
  }
}
.bg-breadcrumb {
  background: linear-gradient(rgba(0, 58, 102, 0.9), rgba(0, 58, 102, 0.8)),
    url(../img/breadcrumb.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: initial;
  background-size: cover;
  padding: 100px 0 60px 0;
}

/*========================================
   Acerca de Nosotros 
==========================================*/
.about-us .about-us-item {
  position: relative;
}

.about-us .about-us-item::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 58, 102, 0.7);
  border-radius: 10px;
  transition: height 0.5s;
  z-index: 1;
}

.about-us .about-us-item:hover::after {
  height: 100%;
}

.about-us .about-us-item .about-us-flag {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.5s;
  z-index: 2;
}

.about-us .about-us-item .about-us-flag img {
  border: 5px solid var(--bs-white);
  transition: border-color 0.5s, transform 0.5s ease;
}

.about-us .about-us-item:hover .about-us-flag img {
  transform: rotate(360deg);
}

.about-us .about-us-item .about-us-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 3;
}

.about-us .about-us-item:hover .about-us-name {
  opacity: 1;
}

.about-us .about-us-item img {
  transition: transform 0.5s;
}

.about-us .about-us-item:hover img {
  transform: scale(1.2);
}

.about-us .about-us-item .about-us-name a.fs-4 {
  transition: color 0.5s;
}

.about-us .about-us-item .about-us-name a.fs-4:hover {
  color: var(--bs-secondary) !important;
}

.about-us .features-image {
  position: relative;
  min-height: 400px;
}

.about-us .features-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.about-us h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.about-us h3:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  left: 0;
  bottom: 0;
  background: var(--accent-color);
  display: block;
}

.about-us .icon-box {
  margin-top: 50px;
}

.about-us .icon-box i {
  color: var(--accent-color);
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s;
}

.about-us .icon-box:hover i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.about-us .icon-box h4 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}

.about-us .icon-box h4 a {
  color: var(--heading-color);
  transition: color 0.3s;
}

.about-us .icon-box h4 a:hover {
  color: var(--accent-color);
}

.about-us .icon-box p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
}

/*========================================
=          Contadores Acerca de          =
==========================================*/

.stats-section {
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.8)
    ),
    url(../img/breadcrumb.png);
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Tarjeta individual del contador */
.stats-section .counter {
  position: relative;
  text-align: center;
  width: 200px;
  min-height: 215px;
  padding: 10px 15px;
  margin: 0 auto;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
  background: var(--bs-white);
}

/* Barra superior decorativa */
.stats-section .counter:before {
  content: "";
  position: absolute;
  height: 105px;
  width: 100%;
  left: 0;
  top: 0;
  background-color: var(--bs-primary);
}

/* Icono dentro del contador con forma y color */
.stats-section .counter .counter-icon {
  position: relative;
  width: 120px;
  height: 100px;
  margin: 0 auto 10px;
  border-radius: 10px 10px 0 0;
  transform: translateY(-20px);
  font-size: 50px;
  line-height: 90px;
  color: var(--bs-secondary);
  background: rgba(1, 143, 252, 0.5);
  clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

/* Sombra del icono para efecto profundidad */
.stats-section .counter .counter-icon:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 90px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px 10px 0 0;
  background: rgba(0, 58, 102, 0.5);
  z-index: -1;
  clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

/* Animación rotación al hacer hover sobre el icono */
.stats-section .counter:hover .counter-icon i {
  transform: rotate(360deg);
  transition: all 0.3s ease;
}

/* Texto título del contador */
.stats-section .counter h3 {
  color: var(--bs-primary);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 5px 0;
}

/* Valor numérico del contador */
.stats-section .counter .counter-value {
  font-size: 30px;
  font-weight: 700;
  display: block;
  color: var(--bs-secondary);
}

/* Margen inferior en pantallas menores a 1200px */
@media screen and (max-width: 1200px) {
  .stats-section .counter {
    margin-bottom: 40px;
  }
}

/*========================================
=               Servicios                  =
==========================================*/

/* Contenedor principal del servicio */
.service .service-item {
  position: relative;
  overflow: hidden;
}

/* Título del servicio con transición */
.service .service-item .service-inner .service-title {
  position: relative;
  margin-top: -30px;
  text-align: center;
  transition: 0.5s;
}

/* Contenido extra que aparece al hover */
.service .service-item .service-inner .service-title .service-content {
  position: absolute;
  bottom: -90%;
  left: 0;
  margin: 0 15px;
  text-align: center;
  border-radius: 10px;
  background: var(--bs-primary);
  opacity: 0;
  transition: 0.5s;
  height: 20rem;
}

/* Mostrar contenido extra al hacer hover */
.service .service-item:hover .service-inner .service-title .service-content {
  bottom: 0;
  opacity: 1;
}

/* Línea divisoria del título */
.service .service-item .service-inner .service-title .title {
  border-bottom: 1px solid rgba(256, 256, 256, 0.1);
}

/* Transición en el nombre del título */
.service .service-item .service-inner .service-title .service-title-name {
  transition: 0.5s;
}

/* Imagen del servicio con bordes redondeados */
.service .service-item .service-inner .service-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 20rem;
}

/* Capa semitransparente sobre la imagen */
.service .service-item .service-inner .service-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  transition: 0.5s;
  opacity: 0;
}

/* Transición para la imagen */
.service .service-item .service-inner .service-img img {
  transition: 0.5s;
  height: 19rem;
}

/* Escala la imagen y muestra la capa al hacer hover */
.service .service-item:hover {
  transform: scale(1.05);
}

/*========================================
   Sección de cada servicio
==========================================*/
.service-section .service-section-item {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.service-section .service-section-item .service-section-inner {
  position: relative;
}

.service-section .service-section-item .service-section-inner img {
  height: 28rem;
  transition: transform 0.5s;
}

.service-section .service-section-item:hover .service-section-inner img {
  transform: scale(1.3);
}

.service-section
  .service-section-item
  .service-section-inner
  .service-section-title-name {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  padding: 20px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  transition: background 0.5s;
}

.service-section
  .service-section-item:hover
  .service-section-inner
  .service-section-title-name {
  background: rgba(0, 58, 102, 0.5);
}

.service-section
  .service-section-item:hover
  .service-section-inner
  .service-section-title-name
  a {
  opacity: 0;
  transition: opacity 0.5s;
}

.service-section .service-section-item .service-section-content {
  position: absolute;
  width: 100%;
  bottom: -110%;
  left: 0;
  transition: bottom 0.5s;
}

.service-section .service-section-item:hover .service-section-content {
  bottom: 0;
}

/*========================================
   Formulario de contacto
==========================================*/
.contact .office .office-item {
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
  background: var(--bs-light);
  transition: box-shadow 0.5s;
}

.contact .office .office-item:hover {
  box-shadow: 20px 20px 20px rgba(0, 58, 102, 0.3);
}

.contact .office .office-item .office-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.contact .office .office-item .office-img img {
  transition: transform 0.5s;
}

.contact .office .office-item:hover .office-img img {
  transform: scale(1.3);
}

.contact .office .office-item .office-content a.text-secondary,
.contact .office .office-item .office-content a.text-muted {
  transition: color 0.5s;
}

.contact .office .office-item .office-content a.text-muted:hover {
  color: var(--bs-secondary) !important;
}

.contact .office .office-item .office-content a.text-secondary:hover {
  color: var(--bs-primary) !important;
}

/*========================================
   Footer
==========================================*/
.footer {
  background: var(--bs-primary);
}

.footer .footer-item a {
  line-height: 30px;
  color: var(--bs-white);
  transition: color 0.5s, letter-spacing 0.5s;
}

.footer .footer-item p {
  line-height: 30px;
}

.footer .footer-item a:hover {
  letter-spacing: 2px;
  color: var(--bs-secondary);
}

/*========================================
   Copyright
==========================================*/
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bs-primary) !important;
}

/*========================================
   Clases utilitarias
==========================================*/
.text-secondary {
  color: #ffb703 !important;
}

.border-secondary {
  border-color: #ffb703 !important;
}

.bg-secondary {
  background-color: #ffb703 !important;
}

.bg-primary.text-center.rounded.p-3.mx-5.mb-4 {
  height: 6rem;
  align-items: center;
  display: flex;
  justify-content: center;
}
/*========================================
   Owl Carousel Images
==========================================*/
.owl-carousel .owl-item img {
  width: 10rem;
  height: 10rem;
}

/*========================================
   Button Primary
==========================================*/
.btn-primary {
  border-color: #ffb703;
}

/*========================================
   WhatsApp Button
==========================================*/
.whatsapp-boton {
  position: fixed;
  right: 1.8rem;
  bottom: 6.5rem;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  padding: 0.3rem 0.9rem;
  font-size: 30px;
  z-index: 1100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  animation: brincar 1s infinite;
}

@keyframes brincar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
