body {
  scroll-behavior: smooth;
  background-color: #f8f9fa;
}
:root {
  --orange-color: #CB7731;
  --yellow-color: #FFC66D;
  --green-color: #698651;
  --white-color: #ffffff;
  --gray-color: #3D3F41;
  --black-color: #282828;
  
}
.text-accent { color: var(--orange-color) !important; }
.title-accent { color: var(--yellow-color) !important;  }
.green-accent { color: var(--green-color) !important; }
.white-accent { color: var(--white-color) !important; }
.black-accent { color: var(--black-color) !important; }
.btn-accent {
  background-color: var(--orange-color);
  color: #fff;
  border: none;
}
.btn-accent:hover { background-color: #FFC56D; }
.border-accent { border: 2px solid var(--yellow-color) !important; }
.bg-gradient-primary {
  background: linear-gradient(135deg, #3D3F41 0%, #3D3F41 100%);
}
.bg-gradient-secondary {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0e6ff 100%);
}
.bg-light-alt {
  background: #fafaff;
}
.hero {
  background: #282828;
  min-height: 100vh;
  padding-top: 80px;
}
.text-shadow { text-shadow: 2px 2px 6px rgba(0,0,0,0.6); }
.timeline {
  position: relative;
  padding-left: 40px;
  background-color: var(--black-color);
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  width: 4px;
  height: 100%;
  background: var(--yellow-color);
}
.timeline-marker {
  position: absolute;
  left: -2px;
  width: 20px;
  height: 20px;
  background: var(--yellow-color);
  border-radius: 50%;
  top: 10px;
}
.timeline-content {
  margin-left: 40px;
}
.grayscale-hover {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.grayscale-hover:hover {
  filter: grayscale(0%);
}
.step-box {
  transition: transform 0.3s ease;
}
.step-box:hover {
  transform: translateY(-5px);
}
.glass-form {
  background: #282828;
  backdrop-filter: blur(8px);
}

section {
  scroll-margin-top: 60px;
}

/* Swiper logos */
.company-logo {
  max-height: 50px;
  max-width: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.company-logo:hover {
  filter: grayscale(0%);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
  max-width: 800px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ddd;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 20px 0;
  width: 50%;
  padding: 20px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-date {
  font-weight: bold;
  color: var(--accent, #ff4d6d);
  margin-bottom: 8px;
}

.timeline-content {
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}

.timeline-content h5 {
  margin-bottom: 5px;
  font-weight: 600;
}

.timeline-content .badge {
  margin-top: 10px;
}

/* Proyectos vigentes destacados */
.timeline-item.active .timeline-content {
  border-left: 5px solid #28a745;
}

/* Ajuste responsive */
@media (max-width: 767px) {
  .timeline::before { left: 8px; }
  .timeline-item {
    width: 100%;
    padding-left: 40px;
    text-align: left !important;
  }
  .timeline-item:nth-child(even) { left: 0; }
}


/*LOGO*/


/* Contenedor de cada logo para centrarlo */
.logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px; /* ancho fijo del contenedor */
  height: auto;
}

/* Imagen ajustada al contenedor sin deformarse */
.logo-uniforme {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* mantiene proporción */
}

.logo-grayscale {
  height: 140px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-grayscale:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Ocultar scrollbar de manera elegante */
.d-flex::-webkit-scrollbar {
  height: 6px;
}
.d-flex::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.d-flex {
  -ms-overflow-style: none;
  scrollbar-width: thin;
}

/* Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #333;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1000;
  display: none; 
}

#cookie-banner span a {
  color: #fff;
  text-decoration: underline;
}

#cookie-banner button {
  margin-left: 10px;
  padding: 8px 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

#accept-cookies { background: #4CAF50; color: #fff; }
#deny-cookies { background: #f44336; color: #fff; }

/* Modal */
#cookie-modal {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

#cookie-modal .modal-content {
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: left;
}

/* --- Redes Navbar --- */

.social-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Separación visual respecto a Contacto */
@media (min-width: 992px) {
  .social-container {
    margin-left: 25px;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.2);
  }
}

/* En móvil que NO se ponga en columna */
@media (max-width: 991px) {
  .social-container {
    margin-top: 10px;
  }
}

/* Color llamativo para el texto */
.social-label {
  color: var(--orange-color) !important;
  font-weight: 600;
  cursor: default;
}


.social-label:hover {
  color: var(--yellow-color) !important;
}

#redes a {
  color: var(--yellow-color);
  transition: 0.3s ease;
}

#redes a:hover {
  color: var(--orange-color);
  transform: translateY(-3px);
}

/* Footer redes */
.footer-social {
  margin-top: 15px;
}

.footer-social a {
  display: inline-block;
  text-decoration: none !important;
  border: none !important;
  outline: none;
  color: #ffffff;
  font-size: 1.4rem;
  margin: 0px 5px;
  line-height: 1;
  transition: 0.3s ease;
}

.footer-social a:hover {
  color: #00c2ff;
  transform: translateY(-3px);
}