/* ESTILOS PARA LA PÁGINA "ACERCA DE NOSOTROS" */

:root {
  /* ----- COLORES MODO CLARO ----- */
  --base-color: #fff;
  --base-variant: #20325e;
  --bg-hero: linear-gradient(135deg, #345098 0%, #20325e 100%);
  --body-base: #fff;
  --body-secondary: #20325e;
  --body-details: #E0E0E0;
  --text-color-base: #666;
  --text-color-secondary: #fff;
  --accent-color: #0da44d;
}

.darkmode {
  /* ----- COLORES MODO OSCURO ----- */
  --base-color: #20325e;
  --base-variant: #fff;
  --bg-hero: linear-gradient(135deg, #2F3637 0%, #4B5658 100%);
  --body-base: #2F3637;
  --body-secondary: #2F3637;
  --body-details: #464F51;
  --text-color-base: #fff;;
  --text-color-secondary: #fff;
  --accent-color: #f69911;
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(13, 164, 77, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(13, 164, 77, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(13, 164, 77, 0.1) 0%,
    transparent 50%,
    rgba(13, 164, 77, 0.1) 100%
  );
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.hero-content {
  color: #fff;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.hero-title-emphasis {
  color: #0da44d;
  background: linear-gradient(45deg, #0da44d, #0bb03e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #e0e6f7;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0da44d;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #e0e6f7;
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image-container img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image-container:hover img {
  transform: scale(1.05);
}

/* HISTORIA SECTION */
.historia-section {
  padding: 120px 0;
  background: var(--body-base);
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 164, 77, 0.1);
  border: 1px solid rgba(13, 164, 77, 0.2);
  border-radius: 50px;
  padding: 12px 24px;
  margin-bottom: 20px;
}

.section-badge i {
  color: #0da44d;
  font-size: 1.1rem;
}

.section-badge span {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0da44d;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.historia-text {
  color: var(--accent-color);
}

.text-block {
  margin-bottom: 40px;
}

.text-block h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.text-block p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color-base);
  margin-bottom: 20px;
}

.text-block strong {
  color: var(--accent-color);
  font-weight: 600;
}

.historia-visual {
  position: relative;
}

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 8px rgba(13, 164, 77, 0.2);
  z-index: 2;
}

.timeline-content {
  background: var(--body-details);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 45%;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-color-base);
  font-size: 1rem;
}

/* RRHH SECTION */
.rrhh-section {
  padding: 120px 0;
  background: var(--body-details);
  position: relative;
}

.rrhh-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.rrhh-visual {
  position: relative;
}

.image-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  margin-bottom: 30px;
}

.image-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

.rrhh-text h2,
.vidRHC h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 30px;
  line-height: 1.2;
}

.rrhh-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color-base);
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: #0da44d;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #162653;
  margin-bottom: 8px;
}

.feature-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.vidRHC h2 {
  text-align: center;
  padding: 1rem;
}

.vidRHC {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--body-base);
}

.vid {
  position: relative;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  padding-bottom: 56.25%;
  height: 0;
}

.vid iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ANIMACIONES */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* RESPONSIVIDAD */
@media (max-width: 1200px) {
  .hero-container,
  .historia-content,
  .rrhh-content {
    gap: 60px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 900px) {
  .hero-container,
  .historia-content,
  .rrhh-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }

  .image-container img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .text-block h3 {
    font-size: 1.5rem;
  }

  .text-block p {
    font-size: 1rem;
  }

  .rrhh-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .text-block h3 {
    font-size: 1.3rem;
  }

  .rrhh-text h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .vidRHC h2 {
    font-size: 1.4rem;
  }
}
