/* =========================================
   1. VARIABLES Y BASES
   ========================================= */
:root {
  --kd-blue: #0c2d48;
  --kd-yellow: #f5a623;
}

body {
  font-family: "Roboto", sans-serif;
  opacity: 0;
  animation: fadeInPage 1s ease-out forwards;
}

@keyframes fadeInPage {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3,
.navbar-brand {
  font-family: "Montserrat", sans-serif;
}

/* Fondo fijo para toda la página */
.body-fixed-bg {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative; /* Necesario para el z-index */
  z-index: 0;
}

/* =========================================
   NUEVO: TELÓN DE OSCURECIMIENTO (OVERLAY)
   ========================================= */
#scroll-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000; /* Color Negro */
  opacity: 0; /* Empieza invisible */
  z-index: -1; /* Se pone DETRÁS del texto pero ENCIMA del fondo */
  pointer-events: none; /* Permite dar clicks a través de él */
  transition: opacity 0.1s linear; /* Suavidad inmediata */
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  background-color: #0c2d48 !important;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: padding 0.3s ease;
}
.navbar-nav .nav-link {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: none;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #000000 !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 1);
}
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #0c2d48;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
  }
}

/* =========================================
   TEXTOS Y UTILIDADES
   ========================================= */
h1,
h2,
h3,
h4,
p,
span,
a {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}
.text-warning {
  color: var(--kd-yellow) !important;
}
.btn-warning {
  background-color: var(--kd-yellow);
  border: none;
  color: #000;
  font-weight: 800;
  text-shadow: none !important;
}
.btn-warning:hover {
  background-color: #ffca2c;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
}

/* Títulos y Subtítulos Especiales */
.section-subtitle {
  font-size: 1.2rem !important;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.section-description {
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: white !important;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000,
    -1px 1px 0 #000, 1px 1px 0 #000;
}

/* =========================================
   IMÁGENES FLOTANTES
   ========================================= */
.servicio-img-container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.3);
  position: relative;
  animation: flotarVertical 4s ease-in-out infinite;
}
@keyframes flotarVertical {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}
.img-movimiento {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.servicio-img-container:hover .img-movimiento {
  transform: scale(1.15);
  filter: brightness(1.1);
}
.servicio-img-container:hover {
  animation-play-state: paused;
  border-color: var(--kd-yellow);
}
.project-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.project-link:hover {
  transform: translateY(-5px);
}

/* =========================================
   SECCIONES ALIADOS Y CLIENTES (SÓLIDOS)
   ========================================= */
.partners-section,
.clients-section {
  background-color: transparent !important;
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2; /* Encima del oscurecimiento */
}

.partner-card {
  background: transparent;
  border: none;
  padding: 10px;
  text-align: center;
  animation: flotarVertical 4s ease-in-out infinite;
}

/* LOGOS: Sólidos, sin transparencia */
.partner-logo {
  max-height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
  opacity: 1 !important; /* IMPORTANTE: Totalmente visibles */
  filter: none !important; /* IMPORTANTE: Sin gris ni blanco, color real */
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo {
  transform: scale(1.1);
}
.partner-card:hover {
  animation-play-state: paused;
}
.partner-name {
  font-weight: 800;
  font-size: 1rem;
  color: white !important;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px #000 !important;
  margin-top: 5px;
}

/* =========================================
   FOOTER
   ========================================= */
.bg-corporate {
  background-color: #0c2d48 !important;
}
.social-icon {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-shadow: none !important;
}
.social-fb {
  background-color: #1877f2;
  color: white !important;
}
.social-wa {
  background-color: #25d366;
  color: white !important;
}
.social-em {
  background-color: var(--kd-yellow);
  color: #000 !important;
}
.social-ig {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  color: white !important;
}
.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  filter: brightness(1.2);
}
