:root {
    --main-white: #f0f0f0;
    --main-red: #a00016;
    --main-blue: #45567d;
    --main-gray: #303841;
  }
  @font-face {
    font-family: motocross;
    src: url(fonts/MOTOR\ -\ PERSONAL\ USE\ ONLY.ttf);
  }
  @font-face {
    font-family: sport;
    src: url(fonts/SF\ Sports\ Night\ NS.ttf);
  }
  * {
    margin: 0;
    padding: 0;
  }
  *,
  *::before,
  *::after {
    box-sizing: inherit;
  }
  
  html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
  }
  @media (max-width: 75em) {
    html {
      font-size: 60%;
    }
  }
  
  /* 980px / 16px = 61.25em */
  @media (max-width: 61.25em) {
    html {
      font-size: 58%;
    }
  }
  
  /* 460px / 16px = 28.75em */
  @media (max-width: 28.75em) {
    html {
      font-size: 55%;
    }
  }
  
  /* Base styles */
  
  body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem; /* 18px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-white);
  }
  
  h1,
  h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-align: center;
  }
  
  h1 {
    font-size: 6rem;
  }
  
  h2 {
    font-size: 4.2rem;
  }
  
  ul {
    list-style: none;
  }
  
  a {
    text-decoration: none;
    color: var(--main-white);
  }
  
  img {
    display: block;
    width: 100%;
  }
  
  /* nav */
  
  .nav {
    display: flex;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: black;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    z-index: 10;
  }
  
  .nav-list {
    display: flex;
    margin-right: 2rem;
  }
  
  @media (max-width: 28.75em) {
    .nav {
      justify-content: center;
    }
  
    .nav-list {
      margin: 0 1rem;
    }
  }
  
  .nav-list a {
    display: block;
    font-size: 2rem;
    padding: 2rem;
    transition: 0.5s;
  }
  
  .nav-list a:hover {
    background: var(--main-red);
    transition: 0.5s;
  }
  
  /* Welcome section */
  
  .welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url(image/portada.jpeg);
    background-position: center;
    background-size: cover;
    background-blend-mode: soft-light;
  }
  @keyframes Sacudida {
    0% {
      transform: translate(0);
    }
  
    10% {
      transform: translate(-2px, -2px);
    }
  
    20% {
      transform: translate(2px, -2px);
    }
  
    30% {
      transform: translate(-2px, 2px);
    }
  
    40% {
      transform: translate(2px, 2px);
    }
  
    50% {
      transform: translate(-2px, -2px);
    }
  
    60% {
      transform: translate(2px, -2px);
    }
  
    70% {
      transform: translate(-2px, 2px);
    }
  
    80% {
      transform: translate(-2px, -2px);
    }
  
    90% {
      transform: translate(2px, -2px);
    }
  
    100% {
      transform: translate(0);
    }
  }

  .welcome-section h1 {
    font-family: motocross;
    font-weight: 400;
    text-align: center;
    animation: Sacudida 1s linear 0s infinite normal none;
  
  }
  
  .welcome-section > p {
    font-size: 4rem;
    font-weight: 300;
    color: var(--main-red);
    font-family: 'Sigmar One', cursive;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
    text-align: center;
  }
  #fecha{
    text-align: center;
    font-family: sport;
    color: white;
    font-size: 3rem;
  }
  .masInfo{
    margin-top: 3rem;
    background-color: var(--main-red);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    border: 3px solid var(--main-red);
    text-align: center;
    transition: 0.3s;
  }
  .masInfo:hover{
    background-color: white;
    color: var(--main-red);
    border: 3px var(--main-red) solid;
    transition: 0.3s;
  }

  /* Projects section */
  
  .projects-section {
    text-align: center;
    padding: 5rem 0rem;
    background: rgb(24, 0, 0);
    padding-bottom: 0;
  }
  
  .projects-section-header {
    max-width: 640px;
    margin: 0 auto 6rem auto;
    border-bottom: 0.2rem solid var(--main-white);
    font-family: sport;
    font-weight: 300;
    text-align: center;
  }
  
  @media (max-width: 28.75em) {
    .projects-section-header {
      font-size: 4rem;
    }
  }

  .subti1{
    margin-bottom: 4rem;
    font-family: motocross;
    text-align: center;
    font-size: 3rem;
    font-weight: 100;
  }
  .subti2{
    margin-bottom: 1.5rem;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: center;
    font-size: 3rem;
  }
  .subti22{
    margin-bottom: 4rem;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: center;
    font-size: 3rem;
  }
  .item2{
    margin-bottom: 1.5rem;
  }
  .cronograma{
    text-align: justify;
    margin: 4rem 22rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  .cronograma li{
    display: flex;
    align-items: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  }
  .cronograma2{
    text-align: center;
    margin: 4rem 6rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-bottom: 6rem;
  }
  .banners{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
  .banners-item{
    width: calc(100% / 3);
  }
  .banners-item2{
    width: 100%;

  }
  
  @media (max-width: 640px){
    .banners-item{
        width: 100%;
    }
  }

  /* "Automagic" image grid using no media queries */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 4rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 6rem;
  }
  
  @media (max-width: 30.625em) {
    .projects-section {
      padding: 6rem 1rem;
    }
  
    .projects-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .project {
    background: var(--main-gray);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
  }
  
  .code {
    color: var(--main-gray);
    transition: color 0.3s ease-out;
  }
  
  .project:hover .code {
    color: #ff7f50;
  }
  
  .project-image {
    height: calc(100% - 6.8rem);
    width: 100%;
    object-fit: cover;
  }
  
  .project-title {
    font-size: 2rem;
    padding: 2rem 0.5rem;
  }
  
  .btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2px;
  }
  
  .btn-show-all {
    font-size: 2rem;
    background: var(--main-gray);
    transition: background 0.3s ease-out;
  }
  
  .btn-show-all:hover {
    background: var(--main-red);
  }
  
  .btn-show-all:hover > i {
    transform: translateX(2px);
  }
  
  .btn-show-all > i {
    margin-left: 10px;
    transform: translateX(0);
    transition: transform 0.3s ease-out;
  }
  
  /* Contact section */
  
  .contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 70vh;
    padding: 0 2rem;
    background-color: rgba(0,0,0,0.8);
    background-image: url(image/Background-contacto.jpg);
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light;

  }
  
  .contact-section-header > h2 {
    font-size: 6rem;
    font-family: sport;
    font-weight: 400;
  }
  
  @media (max-width: 28.75em) {
    .contact-section-header > h2 {
      font-size: 4rem;
    }
  }
  
  .contact-section-header > p {
    font-style: italic;
  }
  
  .contact-links {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin-top: 4rem;
    flex-wrap: wrap;
  }
  
  .contact-details {
    font-size: 2.4rem;
    text-shadow: 2px 2px 1px #1f1f1f;
    transition: transform 0.3s ease-out;
  }
  
  .contact-details:hover {
    transform: translateY(8px);
  }
  
  /* Footer */
  
  footer {
    font-weight: 300;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 2rem;
    background: rgba(12, 4, 0, 0.85);
    background-image: url(image/Img_Cross_panom.jpg);
    background-position: center;
    background-size: cover;
    background-blend-mode: soft-light;
    border-top: 4px solid rgb(65, 65, 0);
  }
  
  footer > p {
    margin: 2rem;
  }
  
  footer i {
    vertical-align: middle;
  }
  
  @media (max-width: 28.75em) {
    footer {
      flex-direction: column;
      text-align: center;
    }
  }
  @media (max-width: 865px) {
    .subti1{
      font-size: 2.5rem;
    }
    .subti2{
      font-size: 2.5rem;
    }
    .subti22{
      font-size: 2.5rem;
    }
    .item2{
      margin-bottom: 1.5rem;
    }
    .cronograma{
      text-align: justify;
      margin: 4rem 10rem;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }
    .cronograma2{
      text-align: center;
      margin: 4rem 6rem;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      margin-bottom: 6rem;
    }
  }
  @media (max-width: 865px) {
    .subti1{
      font-size: 2rem;
    }
    .subti2{
      font-size: 2rem;
    }
    .subti22{
      font-size: 2rem;
    }
    .item2{
      margin-bottom: 1.5rem;
      font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    }
    .cronograma{
      text-align: justify;
      margin: 4rem 2rem;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }
    .cronograma2{
      text-align: center;
      margin: 4rem 2rem;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      margin-bottom: 6rem;
    }
  }
  @media (max-width: 459px) {
    .projects-section-header{
      font-size: 3rem;
    }
    .contact-section-header h2{
      font-size: 3rem;
    }
  }
  #banerCortado1{
    display: none;
  }
  #banerCortado{
    display: block;
  }
  @media only screen and( max-width: 656px){
    
    #banerCortado1 {
      display: flex;
    }
    #banerCortado {
      display: none;
    }
  }
  