@import url("https://fonts.googleapis.com/css2?family=Roboto+Serif:opsz,wght@8..144,100;8..144,400;8..144,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Young+Serif&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;700&display=swap");

/*************************************************/
/************** Estilos generales ****************/
/*************************************************/

* {
  box-sizing: border-box;
  border: 0;
  font-family: "Montserrat", sans-serif;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lato", serif;
}

/*************************************************/
/********** Estilos en el header y menu **********/
/*************************************************/

.navbar-collapse {
  flex-grow: 0;
}

#navbar {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 10px 0 5px rgba(0, 0, 0, 0);
  overflow: hidden;
  padding: 80px 20px;
  position: fixed;
  transition: 0.4s;
  top: 0;
  width: 100%;
  z-index: 99;
}

#navbar li.nav-item a {
  color: #000066;
  font-family: "Young Serif", serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin: 15px;
  padding: 15px;
  text-transform: uppercase;
  transition: linear 1500ms;
}

.active{
  border-bottom: 3px solid #00ccff;
  border-bottom-left-radius: 25vh;
  border-bottom-right-radius: 25vh;
  font-weight: bold;
}

#navbar li.nav-item a.active:hover {
  background: #fff;
  border-bottom: 3px solid #00ccff;
  border-bottom-left-radius: 25vh;
  border-bottom-right-radius: 25vh;
}

#navbar li.nav-item a:hover {
  background: #fff;
  border-bottom: 3px solid #00ccff;
  border-bottom-left-radius: 25vh;
  border-bottom-right-radius: 25vh;
  border-radius: 25vh;
}

.link-index {
  padding-right: 20px;
  text-decoration: none;
}

.link-logo {
  border-left: solid 1px rgba(0, 0, 0, 0.5);
  padding-left: 20px;
  text-decoration: none;
}

#navbar #logo {
  height: 50px;
  width: 180px;
  transition: 0.4s;
}

#navbar #logoPPUY {
  height: 80px;
  width: 90px;
  transition: 0.4s;
}

.ppuy {
  margin: -15px 0 0 0;
}

/*************************************************/
/******* Estilos en el slide principal ***********/
/*************************************************/
.slide-video {
  padding-bottom: 150px;
  width: 100%;
}

video {
  background-size: cover;
  width: 100%;
}

.btn-landing {
  border: 2px solid #fff;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  left: 0;
  padding: 50px 20px 50px 10px;
  position: fixed;
  top: 45%;
  visibility: hidden;
}
/*************************************************/
/******** Section de servicios y productos *******/
/*************************************************/

.main-title {
  color: #333;
  font-size: 3rem;
  font-weight: 700;
}

.line::after {
  content: "______";
  color: #00ccff;
  font-size: 2rem;
  font-weight: 700;
}

.subtitle {
  color: #555;
  font-size: 1.3rem;
  margin-top: 2.5rem;
}

#servicios {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 50px;
  width: 100%;
}

.box {
  display: grid;
  grid-gap: 15px;
  grid-template-columns: 1fr 1fr;
}

.ficha-1 {
  align-items: flex-start;
  background-color: rgba(234, 235, 238, 0.5);
  border: solid 1px rgba(234, 235, 238, 0.5);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ficha-1:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.ficha-1 h4 {
  color: rgb(31, 31, 31);
  text-transform: uppercase;
  margin: auto;
}

.ficha-1 .img-producto-f1 {
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  background-size: cover;
  max-height: 300px;
  width: 100%;
}

.content-box-ficha-1 {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 25px;
}

.txt-services {
  color: #555;
  font-size: 1.1rem;
  line-height: 2.2rem;
  letter-spacing: 0.03rem;
  text-align: justify;
}

.ficha-2 {
  align-items: center;
  background-color: rgba(148, 145, 0, 0.2);
  border: solid 1px rgba(148, 145, 0, 0.2);
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  grid-column: span 2;
}

.ficha-2:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.ficha-2 h4 {
  color: rgb(31, 31, 31);
  text-transform: uppercase;
  margin: auto;
}

.ficha-2 .img-producto-f2 {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  height: 100%;
  max-width: 480px;
}

.content-box-ficha-2 {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 25px 0 5px;
}

.wsp-btn::after {
  content: url("../img/whatsapp.png");
  filter: invert(1);
  padding-left: 10px;
}

/*************************************************/
/************ seccion de trabajos ****************/
/*************************************************/

#trabajos {
  background: #dce8ff;
  padding: 200px 0;
}

.work {
  background: rgba(255, 255, 255, 0.6);
  border: #818181 double;
  border-radius: 25vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 50px;
  padding: 200px 100px;
}

#trabajos h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.row-container {
  margin-top: 50px;
}

.column {
  float: left;
  width: 25%;
  padding: 5px;
}

.column img {
  background-size: cover;
  width: 100%;
  opacity: 0.6;
  cursor: pointer;
}

.column img:hover {
  opacity: 1;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.container {
  position: relative;
  display: none;
}

.closebtn {
  position: absolute;
  top: 10px;
  right: 35px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

.closebtn::after {
  content: "";
}

/*************************************************/
/********** seccion de quienes somos *************/
/*************************************************/
#empresa {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 0;
}

#empresa h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.container-empresa {
  display: flex;
  flex-direction: row;
  margin-top: 50px;
}

.txt-empresa {
  background-color: rgba(195, 241, 255, 0.3);
  width: 50%;
  padding: 150px 50px;
}

.txt-empresa .esp {
  font-size: 1.1rem;
  line-height: 2.5rem;
  padding-bottom: 50px;
}

.txt-empresa .eng {
  border-top: solid 1px #000;
  font-size: 1.1rem;
  line-height: 2.5rem;
  padding-top: 50px;
}

.pic-empresa {
  align-items: stretch;
  width: 50%;
}

.pic-empresa img {
  width: 100%;
  height: 100%;
}
/*************************************************/
/*********** seccion de Contacto *****************/
/*************************************************/

#contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 0 0;
  width: 100%;
}

#contacto h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.info {
  background-color: #00ccff;
  color: #000;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 30px;
  padding: 25px;
  text-align: center;
}

form {
  align-items: flex-end;
  display: flex;
  justify-content: space-evenly;
  padding: 50px 50px 150px 50px;
  width: 100%;
}

fieldset {
  width: 40%;
}

.datos-personales {
  background-color: rgba(0, 204, 255, 0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(65, 65, 65, 0.205);
  border-radius: 15px;
  margin-top: 1em;
  padding: 2em;
}

.datos-personales input {
  width: 100%;
  margin-bottom: 0.5em;
  border-radius: 0.2em;
}

.msj {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-top: 1em;
  padding: 2em;
}

.msj input {
  width: 100%;
  margin-bottom: 0.5em;
  border-radius: 0.2em;
}

.send {
  margin-top: 2rem;
}

legend {
  float: none;
  padding: 0 1em;
  width: auto;
}

.error {
  color: #f00;
  font-size: 0.7rem;
  display: none;
}

.invalid{
  border: solid 1px #f00;
}

.validate{
  border: solid 1px #01ff23;
}

.exito{
  background-color: #a2ffae;
  border: solid 1px #1d5a25;
  color: #000066;
  font-size: 0.85rem;
  display: none;
  margin-top: 15px;
  text-align: center;
  padding: 10px;
}

.rechazado{
  background-color: rgb(255, 127, 127);
  border: solid 1px #641e1e;
  color: #ffffff;
  font-size: 0.85rem;
  display: none;
  margin-top: 15px;
  text-align: center;
  padding: 10px;
}

/*************************************************/
/***************  Footer *************************/
/*************************************************/

footer {
  align-items: flex-end;
  background-color: #333;
  display: flex;
  justify-content: space-between;
  height: 150px;
  padding: 50px;
  width: 100%;
}

.copy {
  color: #fff;
  font-size: 0.7rem;
}

.sign {
  color: #fff;
  font-size: 0.7rem;
}

.redes {
  display: flex;
  gap: 20px;
  list-style: none;
}

.facebook:hover {
  opacity: 0.5;
}

.instagram:hover {
  opacity: 0.5;
}

.twitter:hover {
  opacity: 0.5;
}

#currentYear::after {
  content: "";
}

/* --------------------------------------------------------- */
/*                  Error 404                        */
/* --------------------------------------------------------- */

#errores{
  align-items: center;
  background-color: #cceef7;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 200px 0 100px;
}

#errores h1{
  text-transform: uppercase; 
  font-size: 2.5rem; 
  text-align: center;
  color: #000;
}

#errores .centro{
  text-transform: uppercase; 
  text-align: center;
}

/* --------------------------------------------------------- */
/*                  Diseño Responsive                        */
/* --------------------------------------------------------- */

@media only screen and (max-width: 1199px) {
  #navbar li.nav-item a.active {
    background-color: #000066;
    border: none;
    border-radius: 0;
    color: #fff;
  }

  .box {
    grid-template-columns: auto;
  }

  .ficha-1 {
    grid-column: span 2;
  }

  .ficha-1 .img-producto-f1 {
    max-height: 400px;
  }

  .txt-services{
    text-align: left;
  }

  #trabajos {
    padding: 100px 0;
  }

  .work {
    padding: 100px 75px;
  }

  .btn-landing{
    top: 35%
  }

}

@media only screen and (max-width: 1023px) {
  
  #navbar{
    padding: 30px 10px !important;
  }

  .txt-services{
    text-align: left;
  }

  .btn-landing{
    top: 28%;
    padding: 30px 10px 30px 5px;
  }

  .ficha-2{
    gap: 10px;
  }

  .ficha-2 .img-producto-f2{
    max-width: 340px;
  }

  .content-box-ficha-2{
    gap: 5px;
    padding: 10px 5px;
  }

  .txt-services{
    font-size: 1rem;
    line-height: 1.3rem;
    text-align: left;
  }

  #trabajos h2{
    font-size: 1.6rem;
  }

}

@media only screen and (max-width: 992px) {
  
  .pic-empresa{
    display: none;
  }

  .txt-empresa{
    width: 100%;
  }

}

@media only screen and (max-width: 767px) {

  #navbar{
    padding: 30px 10px !important;
  }

  .main-title{
    font-size: 2.2rem;
  }

  .ficha-2 .img-producto-f2{
    max-width: 250px;
  }

  .container-empresa{
    flex-direction: column;
  }  

  #trabajos h2{
    font-size: 1.2rem;
  }

  form{
    flex-direction: column;
  }

  fieldset{
    width: 100%;
  }

  .btn-landing{
    top: 20%;
    font-size: 1rem;
  }

  .work{
    border-radius: 15vh;
    padding: 75px 50px;
  }

  #empresa h2{
    font-size: 1.5rem;
    text-align: center;
  }

  footer{
    align-items: center;
    flex-direction: column;
  }

}

@media only screen and (max-width: 600px) {

  .main-title{
    font-size: 1.5rem;
    text-align: center;
  }

  .subtitle{
    font-size: 1rem;
    text-align: center;
  }

  .ficha-2{
    padding: 15px;
  }

  .ficha-2 .img-producto-f2{
    display: none;
  }

  .txt-services´{
    font-size: 0.6rem;
    text-align: left;
  }

  #trabajos h2{
    font-size: 1rem;
    text-align: center;
  }

  .work{
    border-radius: 10vh;
    padding: 50px 30px;
    margin: 0 20px;
  }

  .esp{
    text-align: center;
  }

  .eng{
    text-align: center;
  }

  #contacto h2{
    font-size: 1.5rem;
    text-align: center;
  }

  .copy{
    font-size: 0.6rem;
  }

  .sign{
    font-size: 0.5rem;
  }

}

