/* Fonts */
:root {
  --default-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #3f5e9e; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #3f589e; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --nav-color: #2c3e50; /* The default color of the main navmenu links */
  --nav-hover-color: #3f5e9e; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #124265; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #3f5e9e; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

.container {
  font-family: var(--default-font) !important;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */
.light-background {
  --background-color: #f6fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #0c0c0c;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #3f5e9e;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: #469fdf;
  --contrast-color: #ffffff;
}

.btn-custom {
  padding: 12px 25px;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  color: black;
  background: none;
  border: none;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-custom span.dots {
  display: inline-flex;
  overflow: hidden;
  height: 1em;
  width: 0;
  transition: width 0.4s ease;
}

.btn-custom span.dots span {
  opacity: 0;
  animation: dotFadeIn 0.4s forwards;
}

.btn-custom span.dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.btn-custom span.dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.btn-custom:hover span.dots {
  width: 1em;
}

.btn-custom:hover span.dots span {
  animation-name: dotFadeIn;
}

@keyframes dotFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto al hacer click */
.btn-custom:active {
  transform: scale(0.97);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

/* .margen-top {
    padding-top: 20vh !important;
} */

.mainIndex {
  padding-top: 13vh !important;
}

.fancy-header {
  position: relative;
  display: flex;
  justify-content: center; /* Centrado horizontal */
  align-items: center; /* Centrado vertical */
}

.back-button-container {
  position: absolute;
  left: 0; /* Coloca el botón de "volver" a la izquierda */
  z-index: 10;
}

.back-button {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--nav-color);
  display: flex;
  align-items: center;
  padding: 10px;
  padding-top: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-button .bi-arrow-left {
  font-size: 1.75em;
  color: var(--nav-color);
}

@media (max-width: 800px) {
  /* Aplica para cada uno de los elementos */
  .back-button-container,
  #subtitulo_seccion,
  .text-muted {
    display: block; /* Asegura que cada elemento ocupe una fila */
    width: 100%; /* Hace que cada uno ocupe el 100% del ancho */
    text-align: center; /* Centra los elementos en pantalla pequeña */
    margin: 0 auto 50px; /* Centra y añade separación entre los elementos */
  }

  .back-button-container {
    margin-bottom: 10px; /* Espacio debajo del botón */
  }

  #subtitulo_seccion {
    margin-top: 50px; /* Espacio superior entre el título y la descripción */
  }

  .text-muted {
    margin-top: 10px; /* Espacio superior entre el título y la descripción */
  }
}

.back-text {
  opacity: 0;
  transform: translateX(-10px); /* Empezar desde la izquierda */
  margin-left: 10px;
  font-size: 1em;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: var(--default-font);
  color: var(--nav-color);
  position: relative;
}

.back-text::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--nav-color);
  transition: width 0.2s ease 0.1s;
}

.back-button:hover .back-text {
  opacity: 1;
  transform: translateX(0); /* Moverse a su posición original */
}

.back-button:hover .back-text::after {
  width: 100%; /* El subrayado se expande */
}

.fancy-title {
  font-size: 30px !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  color: var(--nav-color);
  padding-bottom: 10px;
}

/* Animación de desvanecimiento */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font) !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1 !important;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.img-small {
  max-width: 60%; /* Reduce el tamaño al 60% del contenedor */
  opacity: 0.5; /* Reduce la opacidad al 50% */
  margin: auto;
  display: block;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button, Smooth Scroll y scrollbar
--------------------------------------------------------------*/
*::before,
html {
  scroll-behavior: smooth;
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* Scrollbar en Chrome, Safari y Edge */
::-webkit-scrollbar {
  width: 12px; /* Ancho del scrollbar */
  height: 12px; /* Alto del scrollbar (para scroll horizontal) */
}

/* Pista del scrollbar */
::-webkit-scrollbar-track {
  background: #f0f0f0; /* Color de fondo del track */
  border-radius: 10px; /* Bordes redondeados */
}

/* Deslizador del scrollbar */
::-webkit-scrollbar-thumb {
  background-color: var(
    --accent-color
  ); /* Color del deslizador usando var(--nav-color) */
  border-radius: 10px; /* Bordes redondeados */
  border: 3px solid #f0f0f0; /* Bordes del deslizador */
  transition: background-color 0.3s ease; /* Transición suave para hover */
}

/* Deslizador del scrollbar al pasar el mouse */
::-webkit-scrollbar-thumb:hover {
  background-color: var(
    --accent-color
  ); /* Color del deslizador cuando está en hover */
}

/* Scrollbar en Firefox */
scrollbar {
  width: 12px;
  height: 12px;
}

scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

scrollbar-thumb {
  background-color: var(
    --accent-color
  ); /* Color del deslizador usando var(--nav-color) */
  border-radius: 10px;
  border: 3px solid #f0f0f0;
}

/* Estilo en Firefox (para el track y thumb) */
scrollbar-thumb:hover {
  background-color: var(
    --accent-color
  ); /* Color del deslizador cuando está en hover */
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding-bottom: 60px;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 76px;
  }
}

/* Sombra superior del footer */
.shadow-footer {
  box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.25); /* Sombra sutil en la parte superior */
  position: relative;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  background: #fff; /* Fondo blanco */
}

/* CLIENTES */
.img-small {
  opacity: 50% !important;
}
