:root {
  --color-primary: #ED6F2F;
  --color-bg-dark: #262425;
  --transitionSlow: 1s; /* Añadir esta línea */
}

body, html {
  height: 100%;
  width: 100%;
  font-family: 'Avenir', sans-serif;
  background: url('Recursos Digitales/Images/yourBackground.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heroSection {
  position: fixed; /* ✅ Fijar en pantalla */
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1; /* ✅ Asegurar que esté por debajo */
}

.heroCarousel {
  position: absolute;
  inset: 0;
}

.carouselSlide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transitionSlow);
  will-change: opacity;
}

/* ===== Optimización de animaciones ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.carouselSlide.active {
  opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Barra de Navegación ===== */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navLogo {
  position: absolute;
  top: 15px;
  left: 50px;
  z-index: 1001;
  display: flex;
  align-items: center; /* Alinea verticalmente */
  gap: 20px; /* Espacio entre logo y texto */
}

.navLogoImg {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease;
}

.navLogoFont {
  height: 60px; /* Puedes ajustar según visual */
  width: auto;
}

.navLogoImg:hover {
  transform: scale(1.1);
}

.navLinksContainer {
  position: absolute;
  top: 50px;
  right: 50px;
  display: flex;
  justify-content: flex-end;
}

.navLinks {
  display: flex;
  gap: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
}

.navLink {
  color: white;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navLink:hover {
  color: #ED6F2F;
  transform: scale(1.1);
}

.navLink::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ED6F2F;
  transition: width 0.3s ease;
}

.navLink:hover::after {
  width: 100%;
}

.overlay {
  position: fixed; /* ✅ Fijar igual que el carrusel */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1920px;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.logoFont {
  width: 15%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.progressWrapper {
  width: 400px;
  height: 12px;
  border-color: #262425;
  background-color: var(--color-bg-dark);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0px;
}

.progressBar {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--color-primary) 0%,
    transparent 50%,
    var(--color-primary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 5s linear infinite;
}

.barTextContainer {
  width: 400px;
  display: flex;
  justify-content: center; /* Centra los elementos hijos horizontalmente */
  margin: 0 auto; /* Centra el contenedor mismo si es necesario */
}

.progressBarText{
  font-size: 1.25rem;
  font-weight: bold;
  color: #FBF4E2;
  margin: 0.5rem 0; /* Elimina margen izquierdo/derecho */
  margin-bottom: 60px;
  text-align: center;
  width: 100%; /* Ocupa todo el ancho disponible */
}
 

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.contactButton {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-bottom: 60px;
}

.contactButton:hover {
  background-color: #ff7b3f;
  transform: scale(1.05);
}

.socialIcons {
  width: 400px;
  height: auto  xw;
  display: flex;
  gap: 60px;
}

.iconWrapper {
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
}

.iconWrapper img {
  position: absolute;
  width: 60px;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.iconWrapper .iconHover {
  opacity: 0;
}

.iconWrapper:hover .iconDefault {
  opacity: 0;
}

.iconWrapper:hover .iconHover {
  opacity: 1;
}

@media (max-width: 768px) {
  .progressWrapper {
    width: 80%;
  }

  .logoFont {
    max-width: 250px;
  }
}
