/*  BASE  */

html {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  font-family: sans-serif, serif;
  scroll-behavior: smooth;
  background-color: #111;
}

/*  IMÁGENES  */

.site__logo {
  max-width: 100%;
  height: auto;
  padding: 1vh;
  display: block;
  animation: appear-left 0.6s ease-in-out;
}

#card_video {
  background-color: #0000;
  min-width: auto;
  max-width: 20vw;
  min-height: auto;
  max-height: 40vh;
  border-radius: 1em;

  margin: 1vmin;

  /* Help me clip the videos to make it fill the box */
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#card_video:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/*  NAVBAR  */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #151515;
  box-shadow: 1px 1px 1px #000;
  z-index: 1;
  padding: 1vh 2vw;
}

.navbar__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: space-between;
}

.navbar__item {
  flex: 1;
  text-align: center;
  border-left: 1px solid #444;
}

.navbar__item:first-child {
  border-left: none;
}

.navbar__link {
  display: block;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar__link:hover {
  color: #aaa;
}

/*  TIPOGRAFÍA  */

.card__title,
.section__title,
.footer__title {
  font-size: clamp(2rem, 6vmin, 4rem);
  max-width: 90vw;
  line-height: 1.2;
  word-break: normal;
  color: #ffffff;
  animation: appear-left 0.6s ease-in-out;
}

.card__subtitle {
  font-size: clamp(1.5rem, 4.5vmin, 3rem);
  max-width: 80vw;
  line-height: 1.2;
  word-break: normal;
  color: #f5f5f5;
  animation: appear-left 0.6s ease-in-out;
}

.section__content,
.card__content,
.footer__text {
  font-size: clamp(1rem, 4vmin, 1.5rem);
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  color: #f2f2f2;
  animation: appear-left 0.6s ease-in-out;
}

.card__link,
.navbar__link {
  font-size: clamp(1rem, 3vmin, 1.5rem);
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-decoration: none;
  color: #f2f2f2;
  animation: appear-left 0.6s ease-in-out;
}

/*  SECCIONES PRINCIPALES  */

.site__section {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  min-height: 40vh;
  margin-bottom: 3vh;
  padding: 2vh 10vw;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* SECCIÓN INTRO */

.site__section--intro {
  min-height: 85vh;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 4vw;
}

.site__section--intro > .site__logo {
  flex: 1 1 40%;
  max-width: 40%;
  height: auto;
}

.site__section--intro > .card {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

.site__section--intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(images/albert-einstein.wallpaper.webp) fixed center no-repeat #000;
  z-index: -1;
  background-size: cover;
  filter: brightness(0.4) contrast(1.2) blur(1px);
}

/*  BOTÓN DE CONTACTO  */

.card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  min-height: 10vh;
  background-color: #0009;
  border: none;
  border-radius: 1em;
  cursor: pointer;
}

.card__button:hover {
  background-color: #000d;
}

.card__button .card__link {
  font-weight: 600;
  padding: 3vh 3vw;
  width: 100%;
  color: inherit;
  text-decoration: none;
  display: block;
  text-align: center;
}

/*  SECCIONES SECUNDARIAS  */

.site__section--quienes {
  min-height: 20vh;
}

.footer {
  width: 100%;
  padding: 2vh 5vw;
  background-color: #151515;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/*  MEDIA QUERIES  */

@media (max-width: 768px) {
  .site__section {
    padding: 2vh 6vh;
    flex-direction: column;
    align-items: center;
  }

  .site__section--intro {
    flex-direction: column;
    gap: 3vh;
  }

  .site__section--intro > .site__logo,
  .site__section--intro > .card {
    max-width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 480px) {
  .site__section {
    padding: 2vh 2vh;
  }
  #card_video {
    max-width: 90vw;
    max-height: auto;
  }
}

@media (max-width: 376px) {
  .card__title,
  .card__subtitle,
  .section__title {
    overflow-wrap: break-word;
    word-break:keep-all;
    white-space: normal;
    max-width: 75vw;
  }

  .footer__title {
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    max-width: 50vw;
  }
  .site__section {
    padding: 2vh 0;
  }

  .navbar__list {
    flex-direction: column;
  }

  .navbar__item {
    border-left: none;
    border-top: 1px solid #444;
  }

  .navbar__item:first-child {
    border-top: none;
  }
}

@keyframes appear-left {
  from {
    transform: translateX(-10px);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
