@import url('https://fonts.googleapis.com/css2?family=Josefin+Slab:wght@100&family=Lora:wght@400;700&display=swap');

* {
    margin: 0;
    color: #666666;
    font-family: "Lora", Sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65em;
}

html {
	height: 100%;
}

body{
	padding: 0;
	margin: 0;
	height: 100%;
}

#wrapper {
    height: 100%;

}

header {
  background: url('./img/bg.png') no-repeat fixed center center transparent;
  background-size: cover;
  height: 100%;
  min-height: 750px;
  position: relative;
}

header > img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

header, section, footer {
    width: 100%;
    float: left;
}

.content {
    max-width: 1200px;
    position: relative;
    margin: 80px auto;
}

#sobre-nosotros, #eventos {
    background: url('./img/ection_bg.jpeg');
}

#servicios, footer {
    background: #034720;
}

.subtitle {
    font-family: "Josefin Slab", Sans-serif;
    font-size: 48px;
    color: #C0986F;
    margin-bottom: -80px;
}

p {
    margin: 1em 0;
}

h2 {
    font-family: "Lora", Sans-serif;
    font-weight: 700;
    font-size: 150px;
    color: black;
}

#servicios h2 {
    color: white;
}

#servicios ul {
    list-style: none;
    padding: 0;
}

#servicios li {
    list-style: none;
    display: inline;
    width: 160px;
    height: 160px;
    background-color: white;
}

footer {
    text-align: center;
}

footer p {    
    font-size: 24px;
    color: white;
    margin: 0px 0px 20px 0px;
}

footer a, footer i {
    font-size: 24px;
    text-decoration: none;
    color: #C0986F;
}

footer ul {
    list-style: none;
}

footer li {
    display: inline;
    width: 64px;
    padding: 8px;
}

iframe {
    margin-bottom: 100px;
    filter: brightness(89%) contrast(111%) saturate(0%) blur(0px) hue-rotate(0deg);
}

#copyright {
    margin-top: 64px;
    color: #C0986F;
}

#copas > img {
    display: block; 
    margin: 0 auto;
    width: 100%;
}

@media screen and (max-width: 1200px) {
    h2 {
        font-size: 85px;
    }
    .subtitle {
        margin-bottom: -40px;
    }
    section {
        padding: 16px;
    }
    .content {
        margin: 16px auto !important;
    }
}

@media screen and (max-width: 800px) {
    h2 {
        font-size: 60px;
    }
    header > img {
        width: 360px;
        height: 139px;
    }
    .grid {
        display: block !important;
    }
    .subtitle {
        margin-bottom: -40px;
    }
    section {
        padding: 8px;
    }
    #copas {
        display: none !important;
    }
}

@media screen and (max-width: 422px) {
    .card-layout__item {
        flex-basis: 45.33333% !important;
    }
}

.card-layout {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}

.card-layout__item {
    flex-basis: 28.33333%;
    margin: 1.5%;
    background: white;
    border-radius: 128px;
    background: #C0986F;
}

.card-layout__item:hover {
    background: white;
}

.grid {
    display: flex;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.grid-cell {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.grid-cell-half {
    flex: 0 0 50%;
}

figcaption {
    height: 64px;
}

@keyframes tonext {
    75% {
      left: 0;
    }
    95% {
      left: 100%;
    }
    98% {
      left: 100%;
    }
    99% {
      left: 0;
    }
  }
  
  @keyframes tostart {
    75% {
      left: 0;
    }
    95% {
      left: -300%;
    }
    98% {
      left: -300%;
    }
    99% {
      left: 0;
    }
  }
  
  @keyframes snap {
    96% {
      scroll-snap-align: center;
    }
    97% {
      scroll-snap-align: none;
    }
    99% {
      scroll-snap-align: none;
    }
    100% {
      scroll-snap-align: center;
    }
  }
  
  .carousel ol, .carousel li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .carousel {
    position: relative;
    padding-top: 75%;
    filter: drop-shadow(0 0 10px #0003);
    perspective: 100px;
  }
  
  .carousel__viewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    overflow-x: scroll;
    counter-reset: item;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
  }
  
  .carousel__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    background-color: #f99;
    counter-increment: item;
  }
  
  .carousel__slide:nth-child(even) {
    background-color: #99f;
  }
  
  .carousel__slide:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%,-40%,70px);
    color: #fff;
    font-size: 2em;
  }
  
  .carousel__snapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
  }
  
  @media (hover: hover) {
    .carousel__snapper {
      animation-name: tonext, snap;
      animation-timing-function: ease;
      animation-duration: 4s;
      animation-iteration-count: infinite;
    }
  
    .carousel__slide:last-child .carousel__snapper {
      animation-name: tostart, snap;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .carousel__snapper {
      animation-name: none;
    }
  }
  
  .carousel:hover .carousel__snapper,
  .carousel:focus-within .carousel__snapper {
    animation-name: none;
  }