/*  1d1186  azul fosforito  */
/*  101c2c  azul oscuro  */

/***********************/
/* Estilos generales */
/***********************/

body {
  font-family: 'Lato', sans-serif;
}

header {
  background-size: cover;
  background-position: center;
  color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  margin-bottom: 0.8em;
}

p {
  font-weight: 400;
  margin-bottom: 1em;
}

@font-face {
  font-family: 'Salvatore';
  src: url('./fonts/Salvatore-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Salvatore';
  src: url('./fonts/Salvatore-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Salvatore';
  src: url('./fonts/Salvatore-book.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Salvatore';
  src: url('./fonts/Salvatore-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Prevenir scroll horizontal */
html, body {
  overflow-x: hidden;
}

.logo-carousel {
  overflow-x: hidden;
}

/* ================= HERO ================= */


.hero-title {
  font-family: 'Salvatore', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 5rem);
  color: #ffffff;
}

.hero-subtitle {
  font-family: 'Salvatore', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.8rem);
  color: #ffffff;
}

.btn-hero {
  font-family: 'Salvatore', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  padding: 0.75rem 2rem;
}

/* Estilo para la flecha hacia abajo */

.down-arrow {
  animation: bounce 2s infinite;
  display: inline-block;
  cursor: pointer;
  pointer-events: auto;
  position: absolute;
  bottom: 50px;
  /* separación desde el borde inferior */
  left: 50%;
  transform: translateX(-50%);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}


.btn-grad {
  background-image: linear-gradient(to right, #e52d27 0%, #b31217 51%, #e52d27 100%);
  margin: 10px auto;
  padding: 15px 45px;
  text-align: center;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  display: inline-block;
  font-family: 'Salvatore', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  cursor: pointer;
  text-decoration: none;
}

.btn-grad:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
}


/* ================= NAVBAR ================= */


.navbar {
  background-color: #f2f2f2;
    padding: 0.5rem 1rem; 
  transition: padding 0.6s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
  color: #1d1186;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #140c5e;
  text-decoration: none;
}

.navbar-brand img {
  max-height: 40px;
  transition: max-height 0.6s ease;
}


.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.offcanvas-body {
  background-color: #f2f2f2;
}

.offcanvas-body .nav-link {
  font-size: 14px;
  padding: 0.8rem 1rem;
  color: #1d1186;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.offcanvas-body .nav-link:hover {
  color: #140c5e;
}

/*  EFECTO SHRINK PARA NAVBAR  */
.navbar.shrink {
  padding: 0.3rem 1rem;
}

.navbar.shrink .navbar-brand img {
  max-height: 40px;
  transform: scale(0.8);
  transition: transform 0.6s ease;
}

/* Media query para móviles - logo más pequeño */
@media (max-width: 767px) {
  .navbar-brand img {
    max-height: 25px; /* Más pequeño en móvil */
  }
  
  .navbar.shrink .navbar-brand img {
    max-height: 25px;
    transform: scale(0.8); /* Escala más pequeña cuando se contrae */
  }
  
  .navbar {
    padding: 0.5rem 1rem; /* Menos padding vertical en móvil */
  }
}
/* ================= SERVICIOS ================= */

.accordion-item {
  border-radius: 6px;
  overflow: hidden;
}

.accordion-item+.accordion-item {
  margin-top: 1rem;
}

.accordion-body strong {
  color: #1d1186;
}

.accordion-button:not(.collapsed) {
  background-color: #1d1186;
  color: #fff;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-button.collapsed {
  background-color: #f8f9fa;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ================= QUIENES SOMOS ================= */


.qual-box {
  border: 2px solid #1d1186;
  border-radius: 12px;
  padding: 15px 20px;
  font-weight: 600;
  text-align: center;
  color: #1d1186;
  background-color: transparent;
  transition: all 0.3s ease;
}

.qual-box:hover {
  background-color: #1d11861f;
}


.person-card {
  flex: 1 1 300px;
  max-width: 350px;
  min-height: 350px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a1230, #142d60);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.3s ease;
}

.person-card:hover {
  transform: translateY(-5px);
}

.person-img {
  width: 70%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 3px solid #fff;
}

@media (max-width: 767px) {
  .person-card {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: none;
  }
}

/* ================= CLIENTES ================= */


.logo-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  width: calc(200px * 20);
  animation: scroll 60s linear infinite;
}

.logo-item {
  flex: 0 0 200px;
  height: 100px;
  margin: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1d1186;
  border-radius: 8px;
  font-weight: bold;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Animación de scroll infinito */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* ================= CONTACTO ================= */

.custom-border {
  border: 1px solid #1d1186;
  border-radius: 8px;
  padding: 10px;
  transition: border-color 0.3s ease;
}



/* ================= COOCKIES ================= */


.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.cookie-btn {
  background-color: #e0e0e0;
  color: black;
  font-weight: bold;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

/* En pantallas pequeñas, los botones se apilan */
@media (max-width: 600px) {
  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
  }

  .cookie-btn {
    width: 100%;
  }
}


/* ================= AOS ================= */

.lazy-image {
  opacity: 0;
  transition: opacity 0.3s;
  background: #f8f9fa;
}

.lazy-image[src] {
  opacity: 1;
}

[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}