@font-face {
  font-family: 'Made';
  src: url('/Fonts/MADE_Tommy_Soft_Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Made', sans-serif;
}

/* Update general paragraph styling to use the grayish color */
p {
  color: #686868;
}

/* Encabezado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 95px;
  padding: 30px 30px;
  background-image: url('/images/RECTANGULO\ DE\ ARRIBA-12.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  z-index: 2;
}

.logo {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  z-index: 3;
}

.logo img {
  height: 125px;
  width: auto;
}

nav {
  position: absolute;
  top: 0;
  right: 20px;
  margin-top: 120px;
  z-index: 3;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #4CAF50;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  /* Reducido de -10px para que quede dentro del header */
  height: 10px;
  /* Reducido de 10px para ser más sutil */
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0px 0px 10px 10px;
  /* Reducido para corresponder a la nueva altura */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

.nav-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  margin-right: 15px;
  margin-top: 9px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s;
}

.rrhh-btn {
  background-color: transparent;
  color: black;
}

.rrhh-btn:hover {
  background-color: #4CAF50;
}

.login-btn {
  background-color: transparent;
  color: black;
}

.login-btn:hover {
  background-color: #4CAF50;
}

.nav-btn img {
  width: 20px;
  height: 20px;
}

/* Solución completa para el banner principal */
.main-banner {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 60vh;
  margin-top: -100px;
  z-index: 1;
}

.main-banner img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  z-index: -1;
  display: block;
}

/* Media queries específicas para el banner */
@media (max-width: 1024px) {
  .main-banner {
    min-height: 50vh;
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
    padding: 20px 20px;
  }

  .logo img {
    height: 100px;
  }

  .main-banner {
    min-height: 40vh;
    margin-top: -60px;
  }

  .main-banner img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 480px) {
  header {
    height: 60px;
    padding: 15px 15px;
  }

  .logo img {
    height: 80px;
  }

  .main-banner {
    min-height: 30vh;
    margin-top: -40px;
  }
}

/* Estilos generales de la línea del tiempo - CORREGIDOS */
.timeline {
  position: relative;
  list-style: none;
  padding: 20px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Asegura que la línea llegue al banner */
  margin-top: -20px;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #4CAF50;
  transform: translateX(-50%);
  /* Asegura que la línea llegue hasta arriba */
  height: calc(100% + 20px);
  top: -20px;
}

/* Estilos de cada ítem de la línea del tiempo */
.timeline li {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 50px;
}

/* Estilos de los paneles de texto */
.timeline-panel {
  width: 40%;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Estilos de los círculos con imágenes (agrandados) */
.timeline-image {
  width: 250px;
  height: 250px;
  /* Se ha eliminado el borde verde */
  border-radius: 50%;
  background-color: white;
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

/* Ajustar imagen para que ocupe todo el espacio del círculo */
.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.timeline-image:hover {
  transform: scale(1.2);
}

/* Alternar posiciones de imágenes y texto */
.timeline li:nth-child(odd) {
  flex-direction: row;
}

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

.timeline li:nth-child(odd) .timeline-panel {
  text-align: center;
  margin-right: 60px;
}

.timeline li:nth-child(even) .timeline-panel {
  text-align: center;
  margin-left: 60px;
}

/* Posicionamiento de los círculos en la línea del tiempo */
.timeline li:nth-child(odd) .timeline-image {
  left: calc(43% - 150px);
}

.timeline li:nth-child(even) .timeline-image {
  left: calc(36% + 150px);
}

/* Ajuste de márgenes en los textos */
.timeline li:nth-child(odd) .timeline-panel {
  margin-left: auto;
  margin-right: 1px;
}

.timeline li:nth-child(even) .timeline-panel {
  margin-left: 1px;
  margin-right: auto;
}

/* Punto final en la línea del tiempo */
.timeline::after {
  content: '';
  width: 15px;
  height: 15px;
  background-color: #4CAF50;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Estilos para los títulos */
h2 {
  color: #4CAF50;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
}

h4 {
  color: #4CAF50;
  font-size: 1.5rem;
  text-align: center;
}

/* Estilos para los párrafos */
.timeline-body p {
  color: #686868;
  font-size: 1rem;
  text-align: center;
  line-height: 1.5;
}

/* RESPONSIVE DESIGN - CORREGIDO */
@media (max-width: 1024px) {
  .timeline:before {
    left: 50%;
    /* Aseguramos que la línea permanezca centrada */
    height: 100%;
    /* Asegura que cubra todo el contenido */
  }

  .timeline li {
    flex-direction: column;
    align-items: center;
  }

  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    flex-direction: column;
  }

  .timeline-panel {
    width: 80%;
    text-align: center;
    margin: 0 0 20px 0 !important;
  }

  .timeline-image {
    position: relative;
    left: 0 !important;
    margin-bottom: 20px;
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
  }

  .timeline li:nth-child(odd) .timeline-panel,
  .timeline li:nth-child(even) .timeline-panel {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 768px) {

  /* Corrección específica para asegurar que la línea llegue hasta el banner en móvil */
  .timeline {
    margin-top: -40px;
    /* Ajustado para móviles */
    padding-top: 40px;
    /* Añadido espacio superior */
  }

  .timeline:before {
    height: calc(100% + 40px);
    /* Asegura que la línea sea más larga */
    top: -40px;
    /* Empieza más arriba */
  }

  .timeline li {
    margin-bottom: 30px;
  }

  .timeline-image {
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
  }

  .timeline-panel {
    width: 90%;
  }

  .timeline-body p {
    text-align: center;
  }
}

@media (max-width: 480px) {

  /* Ajustes adicionales para pantallas muy pequeñas */
  .timeline {
    margin-top: -60px;
    /* Ajustado aún más para móviles pequeños */
    padding-top: 60px;
  }

  .timeline:before {
    height: calc(100% + 60px);
    top: -60px;
  }

  .timeline-image {
    width: 120px;
    height: 120px;
  }
}

/* Estilos generales de la sección */
.equipo {
  padding: 60px 0;
  background-color: white;
}

.section-heading {
  color: #4CAF50;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: bold;
  text-align: center;
}

/* Estilo para la imagen del equipo */
.imagen-equipo {
  margin-bottom: 30px;
  max-width: 100%;
  height: auto;
}

/* Contenedor general para los miembros del equipo */
.contenedor-equipo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 10px;
}

/* Estilo para los miembros del equipo (cajas) */
.miembro {
  background-color: white;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Efecto hover para agrandar las cajas */
.miembro:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  background-color: #f0f0f0;
}

/* Estilo para las imágenes de los miembros */
.miembro img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 15px;
  aspect-ratio: 1 / 1;
}

/* Estilo para los títulos */
.miembro h4 {
  font-size: 1.2rem;
  color: #4CAF50;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  text-align: center;
}

/* Estilo para los párrafos */
.miembro p {
  color: #686868;
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.3s ease;
  text-align: center;
}

/* Cambios de color para el título y párrafo dentro del hover del contenedor */
.miembro:hover h4 {
  color: #4CAF50;
}

.miembro:hover p {
  color: #686868;
}

/* Ajustes para pantallas pequeñas (mobile-first approach) */
@media (max-width: 1024px) {
  .contenedor-equipo {
    grid-template-columns: repeat(2, 1fr);
  }

  .miembro {
    text-align: center;
  }
}

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

  .miembro p,
  .miembro h4 {
    text-align: center;
  }
}

/* Footer */
footer {
  background: linear-gradient(to right, #333333, #4CAF50);
  color: #fff;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .social-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

footer .social-links img {
  height: 35px;
  width: 35px;
}

footer p {
  font-size: 12px;
  text-align: right;
  margin: 0;
  color: #fff;
  /* Keep footer text white for better contrast */
}
@media (min-width: 1600px) {
  body {
    max-width: 1400px;
    font-size: 18px;
  }

  .contenedor-principal {
    padding: 0 80px;
    gap: 40px;
  }

  h1 {
    font-size: 3rem;
  }

  /* Ajusta más secciones si es necesario */
}