@import url('base.css');
@import url('./modules/layout.css');
@import url('./modules/cards.css');
@import url('./modules/carrusel-banner.css');
@import url('./modules/fonts.css');
@import url('./modules/constantes.css');

.slider {
  margin-top: 7rem;
  /* Increased margin for smaller devices */
}

@media screen and (min-width: 768px) {
  .slider {
    margin-top: 6rem;
    /* Reduced margin for medium devices */
  }
}

@media screen and (min-width: 992px) {
  .slider {
    margin-top: 6.5rem;
    /* Further reduced margin for larger devices */
  }
}

/* New styles for the new section */
.section-unete {
  padding: 2rem 0;
  color: var(--color-primary);
  /* Set text color to blue */
}

.section-unete h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  /* Increase font size */
}

.section-unete .larger-text {
  font-size: 2.5rem;
  /* Increase font size */
  font-weight: bold;
}

.section-unete .row {
  width: 100%;
  display: grid;
  grid-template-columns: 10% 20% 70%;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-unete .column-counter {
  max-width: 90%;
  overflow: hidden;
  word-wrap: break-word;
  text-align: justify;
  font-size: 1.5rem;
}

.section-unete .column {
  max-width: 90%;
  overflow: hidden;
  word-wrap: break-word;
  text-align: justify;
  font-size: 1.3rem;
}

.section-unete .animated-number {
  font-size: 2.5rem;
  font-weight: 700;
  animation: count 2s ease-in-out;
}

.section-unete .subtitle {
  font-weight: 700;
  max-width: 100%;
  text-align: center;
  font-size: 1.6rem;
  margin-left: 20%;
  line-height: 1.6rem;
}

.section-unete .column-counter h3 span:first-child {
  margin-left: 40%;
  font-size: 2.5rem;
}

.img-logo {
  width: 70%;
  margin-left: 50%;
  margin-bottom: 6%;
}

.section-explora h2 {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.3rem;
  font-weight: bold;
}

.section-primary {
  background: url('../images/cards/MANUAL CORPO_BANNER.jpg') no-repeat center center;
  background-size: cover;
  background-color: var(--color-primary);
  color: var(--color-background);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-primary h2 {
  margin-bottom: 1rem;
}

.section-primary .larger-text {
  font-size: 2rem;
  font-weight: bold;
}

.section-primary .small-text {
  font-size: 1.3rem;
  /* Increase font size */
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.section-primary .yellow-button {
  background-color: var(--color-secondary);
  /* Yellow background */
  border: 2px solid var(--color-background);
  /* White borders */
  color: var(--color-primary);
  /* Blue text */
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 25px;
  /* Make button rounded */
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);

  }

  50% {
    transform: scale(1);

  }

  100% {
    transform: scale(0.95);

  }
}

.section-primary .yellow-button svg {
  margin-right: 0.5rem;
}

@keyframes count {
  from {
    content: '0';
  }

  to {
    content: attr(data-target);
  }
}

.card-vacante {
  margin: 2rem auto;
  /* Center cards and prevent horizontal overflow */
  max-width: 90%;
  /* Ensure cards adapt to the screen width */
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f9f9f9;
  font-size: 1.2rem;
  font-weight: bold;
}

.card-header .ver-mas {
  background-color: var(--color-primary);
  color: var(--color-background);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: var(--color-primary);
  color: var(--color-background);
  font-size: 1rem;
  font-weight: bold;
}

.card-footer .departamento,
.card-footer .ubicacion {
  margin: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.pagination-button {
  background-color: #ccc;
  /* Gray background for inactive buttons */
  color: #333;
  /* Darker text for contrast */
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.pagination-button.active {
  background-color: var(--color-primary);
  /* Keep current styles for active button */
  color: var(--color-background);
}

@media screen and (max-width: 768px) {
  .img-logo {
    display: none;
  }

  .section-unete .row {
    display: flex;
  }

  .section-unete .row p {
    margin-left: 4rem;
  }

  .section-unete .column-counter h3 span:first-child {
    margin-left: 45%;
  }
}

@media screen and (max-width: 1024px) and (min-width: 992px) {
  .section-unete .column-counter h3 span:first-child {
    margin-left: 30% !important;
  }
}