:root{
    ---color1:#FD1543;
    ---color2:#ffffff;
    ---color3:#163276;
    ---color4:#173277;
    ---color5:#AFE1FC;
    ---color6:#147DCF;
    ---color7:#E73C48;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@font-face {
    font-family: "Museo_Sans_100";
    src: url("../fonts/MuseoSans-100.otf");
    font-weight: 100;
}
@font-face {
    font-family: "Museo_Sans_300";
    src: url("../fonts/MuseoSans-300.otf");
    font-weight: 300;
}
@font-face {
    font-family: "Museo_Sans_500";
    src: url("../fonts/MuseoSans-500.otf");
    font-weight: 500;
}
@font-face {
    font-family: "Museo_Sans_700";
    src: url("../fonts/MuseoSans_700.otf");
    font-weight: 700;
}
@font-face {
    font-family: "Museo_Sans_900";
    src: url("../fonts/MuseoSans_900.otf");
    font-weight: 900;
}
.d-none{
  display: none;
}
.hescritorio{
    display: block;
  }
  .hmovil{
    display: none;
  }
header{
  background-image: url("../img/fondoCuadrillas.png");
  background-size: cover;
  max-height: 310px;
  article{
    width: min(1000px, 95%);
    margin: 0 auto;
    overflow-y: visible;
    padding-top: 0px;
    .ribete{
      display: flex;
      height: 18px;
      width: 100%;
      max-width: 329px;
      div{
        &:first-child{
          width: 40%;
          height: 100%;
          background-color: var(---color6);
        }
        &:nth-child(2){
          background-color: var(---color7);
          width: 60%;
          height: 100%;
        }
        
      }
    }
    div{
      display: flex;
      flex-direction: row;
      height: calc(310px - 18px);
      img{
        &:first-child{
          align-self: center;
          
        }
        &:nth-child(2){
          align-self: flex-end;
          height: 200px;
         
        }
         &:nth-child(3){
         object-fit: none;
         align-self: center;
        }
      }
    }
  }
}
h1{
    display: none;
}
main{
    hr{
        border-top: var(---color3) 8px solid;
    }
}
article{
    width: min(1000px, 95%);
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 50px;
    h2{
    color: var(---color2);
    background-color: #FD1543;
    font-size: 26px;
    line-height: 31px;
    display: inline-block;
    padding-left: 10px;
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 12px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 900;
    font-family: "Museo_Sans_900";
    margin-bottom: 30px;
    border-radius: 4px;
}
    p{
        font-size: 16px;
        line-height: 19px;
        font-weight: 500;
        font-family: "Museo_Sans_500";
        color: var(---color4);
        margin-left: 0px;
        margin-bottom: 25px;
    }
}
.presente{
    background-color: var(---color2);
    article{
      p{
        a{
          text-decoration: none;
          color: var(---color1);
          font-weight: 900;
         font-family: "Museo_Sans_900";
         border: var(---color1) solid 1px;
         border-radius: 7px;
        
        }
      }
    }
}
.video{
    background-color: var(---color5);
   
    .bajada{
        font-size: 20px;
        line-height: 24px;
        font-weight: 500;
        font-family: "Museo_Sans_500";
        color: var(---color4);
        margin-top: 23px;
        position: relative;
        .izquierda{
          position: absolute;
          left: -100px;
          top: -10px;
        }
        .derecha{
          position: absolute;
          right: -100px;
          top: -5px
        }
    }
}
.jornada{
    background-color: var(---color2);
   
    div{
        width: min(1000px, 95%);
        margin: 0 auto;
        padding-top: 40px;
        padding-bottom: 50px;
         position: relative;
        h2{
            color: var(---color2);
            background-color: #FD1543;
            font-size: 26px;
            line-height: 31px;
            display: inline-block;
            padding-left: 10px;
            padding-right: 15px;
            padding-top: 10px;
            padding-bottom: 12px;
            margin-left: auto;
            margin-right: auto;
            font-weight: 900;
            font-family: "Museo_Sans_900";
            margin-bottom: 30px;
             border-radius: 4px;
        }
        article{
            padding-top: 0px;
            padding-bottom: 0px;
            margin-left: 0px;
            h3{
                color: var(---color4);
                font-size: 22px;
                font-weight: 900;
                font-family: "Museo_Sans_900";
                line-height: 27px;
                margin-bottom: 17px;
            }
            div{
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                padding: 0px 0px;
                .card{
                    display: flex;
                    flex-direction: column;
                    width: 30%; 
                    img{
                        max-width: 137px;
                        max-height: 137px;
                        width: 137px;
                        height: 137px;
                        display: flex;
                        align-self: center;
                        
                    }
                    h4{
                        color: var(---color1);
                        font-size: 16px;
                        font-weight: 900;
                        font-family: "Museo_Sans_900";
                        line-height: 19px;
                        text-align: center;
                        margin-top:14px;
                        margin-bottom: 7px;
                    }
                    p{
                        color: var(---color4);
                        font-size: 16px;
                        font-weight: 500;
                         font-family: "Museo_Sans_500";
                        text-align: center;
                    }
                }
            }
        }
    }
    .jizquierda{
      bottom: 0px;
      position: absolute;
      left: -100px;
    }
    .jderecha{
      position: absolute;
      bottom: 0px;
      right: -100px;
    }
    .centro{
      position: absolute;
      bottom: 0px;
    }
}
.noticias{
  background-image: url("./../img/fondoCuadrillas.png");
  article{
    padding-bottom: 5px;
    p{
      margin-bottom: 5px;
      background-color: rgba(255,255,255,.7);
      font-size: 18px;
      font-family: "Museo_Sans_900";
    }
  }
}
.degrado_final{
  width: 100%;
  text-align: center;
}
footer{
  background-color: var(---color4);
  article{
    h3{
      color: var(---color2);
      font-size: 28px;
      text-align: center;
      font-weight: 900;
       font-family: "Museo_Sans_900";
      margin-bottom: 50px;
    }
    div{
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      span{
        color: var(---color2);
        font-size: 20px;
        font-weight: 900;
        font-family: "Museo_Sans_900";
        text-align: center;
        align-self: center;
        width: 33%;
        span{
          font-weight: 500;
           font-family: "Museo_Sans_500";
        
        }
        img{
          width: 90%;
          text-align: center;
        }
      }
    }
  }
}
img{
  max-width: 100%;
  height: auto;
}
/* ===== Capa exterior ===== */
.carousel {
  position: relative;
  width: min(90vw, 1000px);
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  overflow: visible;
}

/* ===== Ventana que recorta ===== */
.viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  
}

/* ===== Pista de slides ===== */
.track {
  display: flex;
  width: 100%;        /* 3 imágenes */
  height: 100%;       /* importante para que herede la altura */
  transition: transform 0.5s ease;
}

/* ===== Cada slide ===== */
.slide {
  width: 100%;
  height: 100%;       /* importante */
  flex-shrink: 0;
}

.slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: scale-down;  /* ajusta al contenedor sin deformar */
  aspect-ratio: 16 / 9;
  display: block;
}

/* ===== Flechas ===== */
.arrow {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  /*background: rgba(0, 0, 0, 0.35); */
  padding: 0.25em 0.45em;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 5;
  transition: background 0.2s;
}
.arrow:hover {
 /* background: rgba(0, 0, 0, 0.55);*/
}
.arrow.prev {
  left: -2.4rem;
}
.arrow.next {
  right: -2.4rem;
  transform: translate(50%, -50%);
}
@media (max-width: 768px) {
  .hescritorio{
    display: none;
  }
  .hmovil{
    display: block;
    object-fit: none;
  }
  header{
    max-height: unset!important;
    article{
      padding-bottom: 0px;
      .ribete{
        flex-direction: row;
        margin: 0 auto;
      }
      div{
        flex-direction: column;
        height: auto;
        img{
          &:nth-child(2){
          transform: scale(1.5);
          padding-bottom: 8%;
          padding-top: 30px;
          }
          &:nth-child(3){
            object-fit: none;
            margin: 25px 0px;
          }
      }
    }
  }
}
  .video{
    & .bajada{
      .derecha{
        bottom: -80px !important;
        right: -30px;
        top: unset;
      }
    }
  }
  .jornada{
    div{
      article{
        div{
          flex-direction: column;
          .card{
            width: 50%;
          }
        }
      }
    }
    .jizquierda{
      left: 0px;
    }
    .jderecha{
      right: 0px;
    }
  }
  .viewport{
    width: 80%;
    margin: 0 auto;
  }
  .arrow{
    top: 35%;
  }
  .arrow.next{
    right: 0px;
    img{
      width: 80%;
    }
  }
  .arrow.prev{
    left: 0px;
     img{
      width: 80%;
    }
  }
  footer{
    article{
      div{
        span{
          font-size: 12px;
        }
      }
    }
  }
}