/* company.css */
/* Hero Section */
.hero-section-company {
  font-family: 'Didot';
  height: 100vh;
  background: no-repeat center center;
  background-image: url("img/companybg.jpg");
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 0;
  margin-bottom: 0px;
  transition: opacity 0.8s ease-in-out;
  /* inicialmente opacidad 1, y luego cambiaremos a 0 para hacer el fade */
}

.hero-side-text {
  position: absolute;
  right: 40px;
  font-family: 'Gothic';
  top: calc(50% + 60px); /* Ajuste para que no se solape con la cabecera */
  transform: translateY(-50%);
  width: 40%;
  color: black;
  background-color: rgba(0, 0, 0, 0.0);
  padding: 20px;
  /*border-radius: 10px;*/
  /*text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);*/
}

/* Título centrado */
.hero-side-text h2 {
  font-family: 'Didot';
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

/* Texto justificado */
.hero-side-text p {
  text-align: justify;
  font-size: 1rem;
  line-height: 1.5;
}

/* Firma centrada */
.hero-side-text .firma {
  margin-top: 20px;
  text-align: center;
  font-weight:normal;
  font-size: 1rem;
}

.timeline-section {
  background-color: #d7d0c6;
  padding: 60px 20px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-intro {
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timeline-intro h2 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.8rem;
  color: #333;
  font-weight: bold;
}

.timeline-item {
  text-align: justify;
  color: #333;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #000;
}

.timeline-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .timeline-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .timeline-intro {
    grid-column: span 2;
    writing-mode: horizontal-tb;
    transform: none;
    justify-content: center;
    margin-bottom: 20px;
  }
	
	.hero-side-text {
		width: 60%;
	}
}

@media (max-width: 768px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .timeline-intro {
    grid-column: span 1;
    margin-bottom: 30px;
  }
  .hero-side-text {
	width: calc(100% - 80px);
  }
}

/* Flecha de scroll en hero */
#scrollArrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  cursor: pointer;
  animation: bounce 2s infinite;
  text-decoration: none;
  z-index: 9999;  /* Aseguramos que la flecha esté encima de otros elementos */
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}
