/* ========================================
   RESET
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}


/* ========================================
   HEADER
======================================== */

.header {
  width: 100%;
  min-height: 75px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 40px;

  background-color: #fff;

  position: relative;
  z-index: 1000;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


.header__title {
  font-size: 1.5rem;
  color: #1565c0;
}


.header__menu {
  display: flex;

  list-style: none;

  gap: 25px;
}


.header__link {
  display: block;

  padding: 10px 0;

  color: #333;

  text-decoration: none;

  font-size: 0.95rem;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}


.header__link:hover {
  color: #1565c0;
}


.header__link--active {
  color: #1565c0;

  font-weight: bold;

  border-bottom: 2px solid #1565c0;
}


/* ========================================
   SLIDER
======================================== */

.slider {
  width: 100%;

  position: relative;

  overflow: hidden;

  background-color: #111;
}


.slider__container {
  width: 300%;

  display: flex;

  animation: slider 15s infinite;
}


.slider__slide {
  width: 33.333333%;

  height: 550px;

  flex-shrink: 0;

  position: relative;

  overflow: hidden;
}


.slider__img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* ========================================
   OSCURECER IMAGEN
======================================== */

.slider__slide::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.70),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.10)
  );

  z-index: 1;
}


/* ========================================
   CONTENIDO DEL SLIDER
======================================== */

.slider__content {
  position: absolute;

  z-index: 2;

  top: 50%;
  left: 8%;

  transform: translateY(-50%);

  width: min(600px, 80%);

  color: #fff;
}


.slider__title {
  margin-bottom: 15px;

  font-size: clamp(2rem, 4vw, 3.5rem);

  line-height: 1.1;
}


.slider__description {
  margin-bottom: 25px;

  font-size: 1.1rem;

  max-width: 550px;
}


.slider__button {
  display: inline-block;

  padding: 12px 24px;

  color: #fff;

  background-color: #1565c0;

  border-radius: 5px;

  text-decoration: none;

  font-weight: bold;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}


.slider__button:hover {
  background-color: #0d47a1;

  transform: translateY(-2px);
}


/* ========================================
   ANIMACIÓN SLIDER
======================================== */

@keyframes slider {

  /* IMAGEN 1 */

  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(0);
  }


  /* IMAGEN 2 */

  33.333% {
    transform: translateX(-33.333333%);
  }

  58.333% {
    transform: translateX(-33.333333%);
  }


  /* IMAGEN 3 */

  66.666% {
    transform: translateX(-66.666666%);
  }

  91.666% {
    transform: translateX(-66.666666%);
  }


  /* VOLVER A IMAGEN 1 */

  100% {
    transform: translateX(0);
  }
}


/* ========================================
   NOSOTROS
======================================== */

.about {
  padding: 80px 40px;

  max-width: 1200px;

  margin: 0 auto;
}


.about__header {
  text-align: center;

  margin-bottom: 50px;
}


.about__title {
  margin-bottom: 10px;

  color: #1565c0;

  font-size: 2rem;
}


.about__subtitle {
  color: #666;
}


.about__grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 30px;
}


/* ========================================
   ABOUT CARD
======================================== */

.about-card {
  padding: 30px;

  background-color: #f5f7fa;

  border-radius: 10px;

  border-left: 5px solid #1565c0;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


.about-card__title {
  margin-bottom: 15px;

  color: #1565c0;

  font-size: 1.4rem;
}


.about-card__text {
  color: #555;
}


/* ========================================
   ACTIVIDADES
======================================== */

.activities {
  padding: 80px 40px;

  background-color: #f5f7fa;
}


.activities__title {
  max-width: 1200px;

  margin: 0 auto 40px;

  text-align: center;

  color: #1565c0;

  font-size: 2rem;
}


.activities__grid {
  max-width: 1200px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 30px;
}


/* ========================================
   ACTIVITY CARD
======================================== */

.activity-card {
  overflow: hidden;

  background-color: #fff;

  border-radius: 10px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.activity-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}


.activity-card__media {
  width: 100%;

  height: 250px;

  overflow: hidden;
}


.activity-card__img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}


.activity-card:hover .activity-card__img {
  transform: scale(1.05);
}


.activity-card__body {
  padding: 25px;
}


.activity-card__date {
  color: #1565c0;

  font-size: 0.85rem;

  font-weight: bold;
}


.activity-card__title {
  margin: 10px 0;

  font-size: 1.3rem;

  color: #333;
}


.activity-card__excerpt {
  margin-bottom: 15px;

  color: #666;
}


.activity-card__link {
  color: #1565c0;

  font-weight: bold;

  text-decoration: none;
}


.activity-card__link:hover {
  text-decoration: underline;
}


/* ========================================
   FOOTER
======================================== */

.footer {
  background-color: #0d47a1;

  color: #fff;
}


.footer__content {
  max-width: 1200px;

  margin: 0 auto;

  padding: 40px;
}


.footer__title {
  margin-bottom: 10px;
}


.footer__address,
.footer__contact {
  margin-bottom: 5px;

  opacity: 0.9;
}


.footer__bottom {
  padding: 20px;

  text-align: center;

  background-color: #093272;
}


.footer__copy {
  font-size: 0.85rem;
}


/* ========================================
   RESPONSIVE - TABLET
======================================== */

@media (max-width: 900px) {

  .header {
    padding: 15px 25px;

    flex-direction: column;

    gap: 10px;
  }


  .header__menu {
    gap: 15px;

    flex-wrap: wrap;

    justify-content: center;
  }


  .slider__slide {
    height: 450px;
  }


  .about__grid,
  .activities__grid {
    grid-template-columns: 1fr;
  }

}


/* ========================================
   RESPONSIVE - CELULAR
======================================== */

@media (max-width: 600px) {

  .header {
    padding: 15px;
  }


  .header__title {
    font-size: 1.2rem;

    text-align: center;
  }


  .header__menu {
    gap: 10px;
  }


  .header__link {
    font-size: 0.85rem;
  }


  .slider__slide {
    height: 400px;
  }


  .slider__content {
    left: 6%;

    width: 88%;
  }


  .slider__title {
    font-size: 2rem;
  }


  .slider__description {
    font-size: 0.95rem;
  }


  .about,
  .activities {
    padding: 60px 20px;
  }


  .about__title,
  .activities__title {
    font-size: 1.7rem;
  }


  .activity-card__media {
    height: 200px;
  }


  .footer__content {
    padding: 30px 20px;

    text-align: center;
  }

}