/* Global variables*/
:root {
  --font-family: Tofino, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-family-second: "IBM Plex Serif", Cambria, Charter, Georgia, serif;
  --color-black: #111;
  --color-white: #fafafa;
}

a,
input {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--color-black);
}

/* Header styles */
.header {
  background-color: #212a34;
  background-image: linear-gradient(to bottom, #212a34, #161d25);
}

/* Navbar styles */
.navbar {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #ccc;
}

.navbar__logo {
  width: 20%;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  margin-left: auto;
  margin-right: auto;
  img {
    width: 100%;
    object-fit: contain;
  }
}

.navbar__links {
  width: fit-content;
  list-style: none;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  li {
    display: inline-block;
    margin-right: 2rem;
    &:first-child {
      margin-left: 3rem;
    }
    &:last-child {
      margin-right: 0;
    }
    a {
      text-decoration: none;
      color: var(--color-white);
      font-size: 1rem;
      font-family: var(--font-family);
    }
  }
}

.navbar__menu-toggle {
  display: none;
}

.navbar__links-mobile {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* visible solo en mobile */
}

/* Main styles */
.main {
  width: 100%;
  padding: 0;
  margin: 0;
  color: var(--color-black);
}

/* Section styles */
.section {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  &:nth-child(1) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.title,
.subtitle {
  font-family: var(--font-family);
}

.title {
  font-weight: 700;
  max-width: 696px;
  font-size: 34px;
  line-height: 44px;
}

.subtitle {
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
}

.section__title,
.section__last-time {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.section__links-social-networks {
  a {
    text-decoration: none;
    color: var(--color-black);
  }
  a:nth-child(1) {
    background: #111;
    color: var(--color-white);
    padding: 0.3rem 0.4rem 0.4rem 0.3rem;
    border-radius: 0.2rem;
    font-family: var(--font-family);
    font-weight: 600;
    margin-right: 0.5rem;
  }
}

.section__img {
  margin-top: 1rem;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  .img {
    width: 100%;
    height: auto;
    max-width: 1120px;
  }
}

.section__last-time {
  font-family: var(--font-family);
}

/* Article styles */
.article__paragraph {
  font-family: var(--font-family-second);
  line-height: 30px;
  font-size: 21px;
  a {
    color: #378708;
  }
}

.article__other-publish {
  div {
    span {
      font-family: var(--font-family);
      font-size: 11px;
      line-height: 16px;
      color: #707070;
      font-weight: 400;
    }
    a {
      color: var(--color-black);
      font-family: var(--font-family);
      font-size: 16px;
      font-weight: 700;
      &:hover {
        color: #cb3737;
      }
    }
  }
}

.article__video > iframe {
  width: 100%;
  height: 414px;
}

/* Form styles */
.form-subscribe {
  margin-bottom: 1rem;
  font-family: var(--font-family);
  .form-subscribe__input {
    width: calc(100% - 40px);
    padding: 1rem;
    border: 0px;
    border-radius: 10rem;
    margin-bottom: 1rem;
    background: #dfdfdf;
    &:focus {
      border-color: #dfdfdf;
    }
  }
  .form-subscribe__check-item {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    input {
      width: 15px;
      height: 15px;
    }
  }
  .form-subscribe__submit {
    background: var(--color-black);
    border: 0px;
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 10rem;
    width: 100%;
    height: 48px;
    font-weight: 600;
    cursor: pointer;

    &:hover {
      background-color: #dfdfdf;
      color: var(--color-black);
    }
  }
}

/* Media querys */

/*--/ Phone /--*/
@media screen and (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__logo > img {
    height: 100px;
  }

  .navbar__menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
  }

  .section {
    width: 100%;
  }
  .section__title,
  .section__last-time {
    width: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .section__img {
    width: 100%;
  }

  .title,
  .subtitle,
  .section__links-social-networks,
  .article__paragraph,
  .article__other-publish,
  .article__video,
  .form-subscribe {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .article__other-publish > img {
    width: 100%;
  }

  .article__video > iframe {
    width: 100%;
  }
}

/*--/ Tables /--*/
@media screen and (min-width: 768px) and (max-width: 1200px) {
  .section {
    width: 75%;
  }
  .section__title,
  .section__last-time {
    width: 75%;
  }

  .section__img {
    width: 75%;
  }
}

/*--/ Notebook /--*/
@media screen and (min-width: 1200px) and (max-width: 1440px) {
  .section {
    width: 70%;
  }
  .section__title,
  .section__last-time {
    width: 70%;
  }

  .section__img {
    width: 70%;
  }
}

/*--/ Notebook - Desktop /--*/
@media screen and (min-width: 1440px) and (max-width: 1600px) {
  .section {
    width: 70%;
  }
  .section__title,
  .section__last-time {
    width: 70%;
  }

  .section__img {
    width: 70%;
  }
}

@media screen and (min-width: 1600px) {
  
  .navbar__logo > img{
    height: 120px;
  }
  .section {
    width: 50%;
  }
  .section__title,
  .section__last-time {
    width: 50%;
  }

  .section__img {
    width: 60%;
  }
}