* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.page {
  width: 100%;
  max-width: 1600px;
  line-height: 20px;
  margin: 0 auto;
  font-family: "arial", sans-serif;
  font-size: 16px;
}

.header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/antenas.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 5%;
  font-family: sans-serif;
  color: white;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__logo {
  width: 80px;
  height: auto;
  filter: brightness(0) invert(1);
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__links {
  display: flex;
  column-gap: 40px;
  list-style-type: none;
  padding: 0;
  margin: 8px 0 0;
}
.nav__menu-btn {
  display: none; /* Oculto en PC */
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1100;
  width: 30px;
  height: 24px;
}

.nav__menu-icon,
.nav__menu-icon::before,
.nav__menu-icon::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background-color: white;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.nav__menu-icon::before {
  top: -10px;
}
.nav__menu-icon::after {
  bottom: -10px;
}

/* Animación a X cuando esté activo */
.nav__menu-btn.active .nav__menu-icon {
  background: transparent;
}
.nav__menu-btn.active .nav__menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.nav__menu-btn.active .nav__menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}
.nav__link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.header__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.header__title {
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.1;
  font-weight: 700;
  max-width: 800px;
  margin: 0;
}

.header__description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.header__footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.staff {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 720px;
  max-height: none;
  padding: 60px 5%;
  position: relative;
  box-sizing: border-box;
}

.staff__title {
  text-align: center;
  font-size: 44px;
  line-height: 52px;
  font-weight: 400;
  margin: 0 0 24px;
  color: #000;
}

.staff__subtitle {
  text-align: center;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  margin: 0 auto 60px;
  color: #000;
  max-width: 900px;
}
.staff__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 360px;
  min-height: 420px;
  background-color: #fff;
  border-radius: 6px;
  padding: 30px;
  box-sizing: border-box;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.card__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.card__text {
  display: block;
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 20px;
}

.specialties {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 80px 10%;
  font-family: sans-serif;
}

.specialties__main-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 60px;
}

.specialty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-bottom: 80px;
}

.specialty-row:nth-of-type(even) {
  flex-direction: row-reverse;
}

.specialty-row:nth-of-type(even) .specialty-info {
  text-align: right;
}

.specialty-row:nth-of-type(odd) .specialty-info {
  text-align: left;
}

.specialty-image {
  width: 450px;
  height: 450px;

  flex: 0 0 450px;

  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
}

.specialty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.specialty-info {
  flex: 1;
  max-width: 600px;
}

.specialty-title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 700;
}

.specialty-text {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
}

.events {
  padding: 100px 0 120px 80px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: white;
}

.events__content {
  flex-basis: 580px;
}

.events__heading {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  margin: 0;
}

.events__title {
  font-size: 44px;
  font-weight: 500;
  line-height: 52px;
  margin: 32px 0 0;
}

.events__info-section {
  margin-top: 32px;
}

.event-info__item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-weight: 500;
}

.event-info__icon {
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 12px;
  width: 24px;
  height: 24px;
}

.event-info__text {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  margin: 0;
}

.events__description {
  margin: 40px 0 60px;
}

.events__more {
  color: #2f80ed;
  text-decoration: none;
}

.events__cover {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 780px;
  max-width: 780px;
  position: relative;
}

.events__image {
  max-width: 100%;
}

.person {
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.person_name_feynman {
  top: -30px;
  left: 319px;
}

.person_name_burbidge {
  top: 96px;
  right: 125px;
}

.person_name_cannon {
  right: 216px;
  bottom: 18px;
}

.person_name_mitchell {
  bottom: 82px;
  left: 142px;
}

.person_name_tarter {
  top: 79px;
  left: 159px;
}

.person__image {
  max-width: 100%;
}

.person__image_size_l {
  width: 140px;
}

.person__image_size_m {
  width: 100px;
}

.person__image_size_s {
  width: 80px;
}

.person__caption {
  text-align: center;
  font-size: 14px;
  margin: 0;
}
.membership {
  padding: 100px 0 140px;
  background-color: #057bf2;
  color: #ffffff;
}

.membership__title {
  max-width: 574px;
  margin: 0 auto;
  text-align: center;
  font-size: 44px;
  font-weight: 500;
  line-height: 52px;
}

.membership__steps {
  list-style-type: none;
  padding: 0;
  margin: 100px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.step {
  flex-basis: 220px;
  padding: 1px;
  border-radius: 8px;
  margin: 0 20px;
  text-align: left;
}

.step__title {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.step__icon {
  margin-left: 20px;
}

.step__description {
  margin: 0;
}

.footer {
  background-color: #000;
  color: #fff;
  padding: 60px 80px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.footer__columns {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer__column_content_hours {
  flex: 0 0 auto;
  min-width: 200px;
  margin-left: auto;
  margin-right: 80px;
}

.footer__column_content_social {
  flex: 0 0 auto;
  min-width: 200px;
}

.footer__logo {
  width: 58px;
  height: 80px;
  display: block;
  object-fit: contain;
  margin-bottom: 100px;
}
.footer__column-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.footer__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer__list-item {
  margin-bottom: 8px;
}

.footer__column-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer__social-icon {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: middle;
}

.footer__copyright {
  font-size: 14px;
  color: #ccc;
  text-align: left;
  margin: 0;
}

/* --- VISTA TABLET (Menos de 1024px) --- */
@media (max-width: 1024px) {
  .staff__cards {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en lugar de 3 */
    justify-items: center;
  }

  .specialty-image {
    flex: 0 0 350px;
    height: 350px;
  }

  .events {
    flex-direction: column;
    padding: 40px;
  }

  .events__cover {
    flex-basis: auto;
    width: 100%;
  }
}

/* --- VISTA CELULAR (Menos de 768px) --- */
@media (max-width: 768px) {
  .staff {
    height: auto; /* IMPORTANTE: Quita el 100vh para que el contenido fluya hacia abajo */
    max-height: none;
    padding: 40px 20px; /* Menos espacio a los lados para el celular */
  }

  .staff__title {
    font-size: 32px; /* Título un poco más pequeño para móvil */
  }

  .staff__subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .staff__cards {
    grid-template-columns: 1fr; /* Una sola tarjeta por fila */
    gap: 30px; /* Más espacio entre tarjetas para que no se vean pegadas */
  }

  .card {
    height: auto; /* Permite que la tarjeta se estire si el texto es largo */
    min-height: auto;
    padding: 25px;
  }

  .nav {
    height: 80px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.4s ease-in-out;
    z-index: 1200;
    margin: 0;
  }

  .nav__menu-btn {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%; /* Menú escondido a la derecha */
    width: 250px;
    height: 100vh;
    background-color: #1a1a1a;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: 0.4s;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    margin: 0;
  }

  /* Clase que activaremos con JS */
  .nav__links--active {
    right: 0;
  }

  .specialty-row,
  .specialty-row:nth-of-type(even) {
    flex-direction: column !important;
    text-align: center !important;
  }

  .specialty-row:nth-of-type(even) .specialty-info,
  .specialty-row:nth-of-type(odd) .specialty-info {
    text-align: center;
  }

  .specialty-image {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
  }

  .membership__steps {
    flex-direction: column;
    gap: 50px;
  }

  .footer__columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__column_content_hours {
    margin: 0 0 40px 0;
  }
}
