/* Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Oswald", sans-serif;
  background-color:#f0e9e9;
  /* Pattern from https://www.heropatterns.com/ */
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f5f9f9' fill-opacity='0.2' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  color: #1e272e;
  font-size: 16px;
}

a {
  color: #1e272e;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 95%;
  margin: auto;
}

/* Navigation */
.nav-main {
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 20px 0;
}

.nav-logo {
  width: 250px;
  height: 50px;
}

/* Navbar Left */
.nav-main ul {
  display: flex;
}

.nav-main ul li {
  padding: 30px;
}

.nav-main ul li a {
  padding: 2px;
}

.nav-main ul li a:hover {
  border-bottom: 2px solid #1e272e;
}

.nav-main ul.nav-menu {
  flex: 1;
  margin-left: 100px;
}

hr {
  margin: 10px 0;
}

/* Responsive Button */
.menu-btn {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 30px;
  z-index: 2;
  display: none;
}

/* SHOWCASE */

.btn {
  cursor: pointer;
  display: inline-block;
  border: 0;
  font-weight: bold;
  padding: 10px 20px;
  background: #262626;
  color:#006699;
  font-size: 15px;
  border: 1px solid #fff;
}

.btn:hover {
  opacity: 0.9;
}

.showcase {
  width: 100%;
  height: 500px;
  background: url("./img/image2.jpg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  padding-bottom: 40px;
  margin-bottom: 20px;
  color:#1e272e;
}

.showcase h2,
.showcase p {
  margin-bottom: 10px;
  font-size: 30px;
  color:#f2f2f2;
}

.showcase .btn {
  margin-top: 20px;
}

/* News Cards */
.news-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 70px 0;
}

.news-cards img {
  width: 100%;
  height: 180px;
}

.news-cards h3 {
  font-size: 20px;
  margin: 10px 0;
}

.news-cards a {
  padding: 10px 0;
  color: #f2f2f2;
  text-transform: uppercase;
  display: inline-block;
  font-weight: bold;
}

/* CARDS BANNER ONE */
.cards-banner-one {
  width: 100%;
  height: 450px;
  background: url("./img/image3.jpg") no-repeat center center/cover;
  margin-bottom: 40px;
}

.cards-banner-one .content {
  width: 40%;
  padding: 90px 0 0 30px;
  color: #ffffff;
  font-size: 30px;
}

.cards-banner-one p,
.cards-banner-two p {
  margin: 10px 0 20px 0;
}

/* CARDS BANNER TWO*/
.cards-banner-two {
  width: 100%;
  height: 450px;
  background: url("./img/image4.jpg") no-repeat center center/cover;
}

.cards-banner-two .content {
  width: 50%;
  padding: 100px 0 0 30px;
  color:#ffffff;
  font-size: 30px;
  text-align: center;
  margin-left: auto;
  margin-right: 30px;
}
 
/* Mobil */
  @media (max-width: 700px) { 
.menu-btn {
  display: block;
  }

.menu-btn:hover {
  opacity: 0.5;
}

.nav-main ul.nav-menu {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background:yellowgreen;
  width: 50%;
  height: 100%;
  border-right: #ccc 1px solid;
  opacity: 0.9;
  padding: 30px;
  transform: translateX(-500px);
  transition: transform 0.5s ease-in-out;
  }

  .nav-main ul.nav-menu li {
   padding: 20px;
   border-bottom: #ccc solid 1px;
   font-size: 14px;
  }

  .nav-main ul.nav-menu li:last-child {
    border-bottom: 0;
  }

  .nav-main ul.nav-menu.show {
    transform: translateX(-20px); 
  }

  .nav-main ul.nav-menu-right {
    margin-right: 50px;
  }

  .news-cards {
    grid-template-columns: repeat(2, 1fr); 
  }

  .cards-banner-one .content,
  .cards-banner-two .content {
    width: 80%; 
  }
  }

  @media (max-width: 500px) {
  .news-cards {
    grid-template-columns: 1fr;
  }

  .cards-banner-one .content,
  .cards-banner-two .content {
    width: 100%;
    padding: 60px 20px;
  }
}
 
/*Galeria Imagenes*/
.caja1{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px;
  position:relative;
  max-width:410px;
  width:100%;
  height:500px;
  border-radius:10px;
  overflow:hidden;
  margin-left:auto;
  margin-right:auto;
}

img{
  max-width: 100%;
}

.slide{
  display: flex;
  transform: translate3d(0,0,0);
  transition: all 800ms;
  animation-name: autoplay;
  animation-duration: 8.5s;
  animation-direction:alternate;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}  

.item-slide{
  position: relative;
  display: flex;
  flex-direction:column;
  flex-shrink: 0;
  flex-grow: 0;
  max-width: 100%;
}

.pagination{
  position:absolute;
  bottom: 10px;
  left:0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pagination-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid red;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background:#008B8B;
  margin: 0 10px;
  text-align: center;
  transition: all 300ms;
}

.pagination-item:hover{
  transform: scale(2);
}

.pagination-item img{
   display: inline-block;
   max-width: none;
   height:100% ;
   transform: scale(1);
   opacity: 0;
   transition: all 300ms;
}

.pagination-item:hover img{
  opacity: 1;
  transform: scale(1);  
}

input[id="1"]:checked ~ .slide{
  animation: none;
  transform: translate3d(0, 0, 0);
}

input[id="1"]:checked ~ .pagination .pagination-item[for="1"]{
    background:#fff ;
}

input[id="2"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 1), 0, 0);
}

input[id="2"]:checked ~ .pagination .pagination-item[for="2"]{
    background:#fff ;
}

input[id="3"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 2), 0, 0);
}

input[id="3"]:checked ~ .pagination .pagination-item[for="3"]{
    background:#fff ;
}

input[id="4"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 3), 0, 0);
}

input[id="4"]:checked ~ .pagination .pagination-item[for="4"]{
    background:#fff ;
}

input[id="5"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 4), 0, 0);
}

input[id="5"]:checked ~ .pagination .pagination-item[for="5"]{
    background:#fff ;
}

input[id="6"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 5), 0, 0);
}

input[id="6"]:checked ~ .pagination .pagination-item[for="6"]{
    background:#fff ;
}

input[id="7"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 6), 0, 0);
}

input[id="7"]:checked ~ .pagination .pagination-item[for="7"]{
    background:#fff ;
}

input[id="8"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 7), 0, 0);
}

input[id="8"]:checked ~ .pagination .pagination-item[for="8"]{
    background:#fff ;
}

input[id="9"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 8), 0, 0);
}

input[id="9"]:checked ~ .pagination .pagination-item[for="9"]{
    background:#fff ;
}

input[id="10"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 9), 0, 0);
}

input[id="10"]:checked ~ .pagination .pagination-item[for="10"]{
    background:#fff ;
}

input[id="11"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 10), 0, 0);
}

input[id="11"]:checked ~ .pagination .pagination-item[for="11"]{
    background:#fff ;
}

input[id="12"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 11), 0, 0);
}

input[id="12"]:checked ~ .pagination .pagination-item[for="12"]{
    background:#fff ;
}

input[id="13"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 12), 0, 0);
}

input[id="13"]:checked ~ .pagination .pagination-item[for="13"]{
    background:#fff ;
}

input[id="14"]:checked ~ .slide{
  animation: none;
  transform: translate3d(calc(-100% * 13), 0, 0);
}

input[id="14"]:checked ~ .pagination .pagination-item[for="14"]{
    background:#fff ;
}


@keyframes autoplay{
    7.15%{
   transform: translate3d(calc(-100% * 0),0,0);
    }

    14.3%{
    transform: translate3d(calc(-100% * 1),0,0);
       }

    21.45%{
    transform: translate3d(calc(-100% * 2),0,0);
       }

    28.6%{
    transform: translate3d(calc(-100% * 3),0,0);
           }
    
    35.75%{
    transform: translate3d(calc(-100% * 4),0,0);
           }

    42.9%{
    transform: translate3d(calc(-100% * 5),0,0);
          }

    50.05%{
    transform: translate3d(calc(-100% * 6),0,0);
           }

    57.2%{
    transform: translate3d(calc(-100% * 7),0,0);
            }

    64.35%{
    transform: translate3d(calc(-100% * 8),0,0);
            }

    71.5%{
    transform: translate3d(calc(-100% * 9),0,0);
            }

    78.65%{
    transform: translate3d(calc(-100% * 10),0,0);
            }

    85.8%{
    transform: translate3d(calc(-100% * 11),0,0);
            }

    92.95%{
    transform: translate3d(calc(-100% * 12),0,0);
            }

    100%{
    transform: translate3d(calc(-100% * 13),0,0);
            }
}

 /*Servicios-Nosotros*/
 .acerca {
  font-size:20px;
  text-align: center;
  color:#000000;
  border: 2px;
  text-align: center; 
  background:#D3D3D3; 
  }
  .acerca h1 {
   color:#000000;
  }

/*Contactos-Formulario*/
#contact{
  width:650px;
  height:400px;
  margin-top:50px;
  background:#D3D3D3;
  float: left;
  font-size:30px;
  padding: 30px 40px;
  border-radius:7px;
  border-style: solid;
  border-color: black;                        
  }
  
.texto-contacto{
  text-align:left;
   }
 
#form{
 width:500px;
 max-width:100%;
 margin:auto;
 background:#008B8B;
 padding:10px 20px;
 margin-top:50px;
 border-radius:7px;
 float: right;
  }

h2 {
  color:#fff;
  text-align: center;
  margin: 0;
  font-family:'berlin sans fb';
  font-weight: 100;
  margin-bottom: 20PX;
  font-size: 30PX;
  }

input,textarea {     
  width: 100%;
  margin-bottom: 20px;
  padding: 8px;
  font-size:15px ;
  border: none;
  }
    
textarea {
  min-height: 130px;
  max-height: 200px;
  max-width: 100%;
  }
  
#boton{
  background-color: #31384a;
  color:#fff;
  font:17px;    
  padding:10px;
  }

#boton:hover{
  border: 1px solid #fffa;
  cursor: pointer;
  }

/* Follow */
.follow {
  margin: 10px;
  clear: both;  
}

.follow p {
  text-align: center;
  font-size: 30px;
  margin-bottom: 20px; 
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.links a {
  margin: 0 30px;
}

.links a i {
  font-size: 3rem;
}

/*footer*/    
.footer {
  max-width: 100%;
  background:#006699;
  margin: 0 auto;
  border-radius: 0 0 20px 20px;
  color:#ffffff;
  text-align: center;
  padding: 10px;
  box-sizing:border-box;
  font-family:arial;
  font-size: 18px;  
}








