@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-size: 20px;
  font-family: Montserrat, sans-serif;
}

body {
  font-family: "Montserrat", sans-serif;
}

#preloader {
  background: #000;
  display: flex;
  justify-content: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 5425246;
}

#preloader img {
  height: auto;
  max-width: 300px;
  -webkit-animation: rotate-vert-center 2s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
  animation: rotate-vert-center 2s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
}

 @-webkit-keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/*---------- NAVBAR --------------*/
nav {
  background: rgba(0, 0, 0, 0.699);
  height: 6vh;
  width: 100%;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 5;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin: 0 5px;
}

nav ul li a {
  color: #fff;
  padding: 7px 12px;
  border-radius: 3px;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: 0.9em;
}

nav ul li a:visited a:active {
  background: #b5fc4c;
}

#logo {
  width: auto;
  height: 100%;
  -webkit-animation: rotate-vert-center 2s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
	        animation: rotate-vert-center 2s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
}

 @-webkit-keyframes rotate-vert-center {
  0% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  100% {
    -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
  }
}
@keyframes rotate-vert-center {
  0% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  100% {
    -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
  }
}


li a.active,
li a:hover {
  background: #b5fc4c;
  transition: 0.5s;
}

#checkbtn {
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

#burguer {
  filter: brightness(0) invert(1);
  width: 35px;
  height: 35px;
}

/*---------- LANDING ----------  */
.landing {
  display: flex;
  flex-direction: column;
  color: white;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center center;
  height: 100vh;
  width: 100%;
  font-size: 24px;
  margin: 0px;
  text-align: center;
  gap: 20%;
  background-image: url(./Images/landing55.jpg);
  background-attachment: fixed;
  animation: Move 60s ease infinite;
  background-color: black;
  
}

@keyframes Move {
  0% {
    background-position: center;
  }

  25% {
    background-position: right;
  }

  50% {
    background-position: center;
  }

  75% {
    background-position: left;
  }

  100% {
    background-position: center;
  }
}

.landing h1 {
  font-size: 2.8em;
  font-weight: 300;
  justify-content: center;
  color: #84c227;
  text-shadow: 3px 2px rgb(2, 2, 2);
  letter-spacing: 2px;
  font-family: Montserrat, sans-serif;
	animation: mymove2 5s infinite;
}

 @keyframes text-focus-in {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

.landing h2 {
  font-size: 1.6em;
  line-height: 72px;
  font-weight: 100;
	animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.landing h3 {
  font-size: 1em;
  line-height: 72px;
  font-weight: 100;
  color: #b5fc4c;
	animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

/*---------- SERVICIOS CARDS.. ----------  */
.services {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 50px;
  height: 100%;
  min-height: 60vh;
}

.cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35vh;
  padding: 50px;
  gap: 10px;
}

.cards img {
  width: 70px;
  
}

.cards img:hover {
  animation: rotate-center 0.6s ease-in-out both;
}

@keyframes rotate-center {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*---------- HACE VALER.. ----------  */
.adomicilio {
  display: flex;
  color: white;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  background-image: url(./Images/servicios-law2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  width: 100%;
  height: 90vh;
  color: white;
  padding: 50px;
  gap: 30px;
  text-align: center;
  background-position: center center;
}

.adomicilio h1 {
  font-size: 1.6em;
  width: 50%;
  margin-bottom: 20px;
  line-height: 1.5em;
  text-align: center;
  font-weight: 100;
  text-align: center;
  color: #b5fc4c;
  text-shadow: 3px 2px black;
}

.adomicilio h2 {
  font-size: 1em;
  align-self: center;
  color: #aeee4e;
  text-shadow: 3px 2px black;
  -webkit-animation: shake-horizontal 8s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
	        animation: shake-horizontal 8s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
}

 @-webkit-keyframes shake-horizontal {
  0%,
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70% {
    -webkit-transform: translateX(-10px);
            transform: translateX(-10px);
  }
  20%,
  40%,
  60% {
    -webkit-transform: translateX(10px);
            transform: translateX(10px);
  }
  80% {
    -webkit-transform: translateX(8px);
            transform: translateX(8px);
  }
  90% {
    -webkit-transform: translateX(-8px);
            transform: translateX(-8px);
  }
}
@keyframes shake-horizontal {
  0%,
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70% {
    -webkit-transform: translateX(-10px);
            transform: translateX(-10px);
  }
  20%,
  40%,
  60% {
    -webkit-transform: translateX(10px);
            transform: translateX(10px);
  }
  80% {
    -webkit-transform: translateX(8px);
            transform: translateX(8px);
  }
  90% {
    -webkit-transform: translateX(-8px);
            transform: translateX(-8px);
  }
}


/*---------- QUE HACEMOS ----------  */
.ofrecemos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  background-color: rgb(255, 255, 255);
  color: black;
  margin: auto;
  width: 80%;
  line-height: 150%;
}

span {
  width: 100%;
  display: block;
  height: 5px;
  background-color: #5e8a1c;
  margin: 5px auto;
}

/* -------------BUTTON-------- */
.button {
  align-self: flex-end;
  background-color: white;
  color: black;
  border-radius: 5%;
  padding: 3px;
  line-height: 80%;
  font-size: 0.7em;
  text-decoration: none;
  border: 2px solid rgb(104, 101, 101);
  font-weight: bold;
  box-shadow: 0.5px 0.5px;
  animation: color-change-2x 2s linear infinite alternate both;
}

 @keyframes color-change-2x {
  0% {
    background: #ffffff;
  }
  100% {
    background: #b5fc4c;
  }
}

a:hover {
  background-color: #b5fc4c;
  color: black;
  font-weight: bold;
}

#button2 {
  margin-bottom: 15px;
}

/* ------FIN BUTTON ---- */
.ofrecemos h2 {
  font-size: 1em;
}

.ofrecemos p {
  padding: 4%;
  font-size: 0.9em;
}

.ofrecemos h2 {
  margin-top: 34px;
}

.legales {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20%;
  font-weight: 800;
  
}
.legales a:link{
  color:white
}

.legales a:visited{
  color:white
}

.legales a {
  line-height: 150%;
  padding: 5px;
  font-size: 0.7em;
  width: 150px;
}

.legales a:hover {
  color:black;
  border-radius: 10%;
}

.privacidad {
  padding:10px;
}
.privacidad h2 {
  margin-bottom: 15px;
  margin-top: 15px;
}

#terminos {
  padding:10px;
}
#terminos h2 {
  margin-bottom: 15px;
  margin-top: 15px;
}

/*---------- FOOTER ----------  */

footer {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background-color: black;
  color: white;
  gap: 3vh;
  padding: 30px;
  background-color: rgb(0, 0, 0);
  z-index: 0;
}

footer::after{    
  background-image: url("./Images/LOGOwebp.webp");
  content: "";
  background-size: contain;
  background-repeat:no-repeat;
  background-position: center center;
  opacity: 0.16;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;  
  
}

footer h3 {
  font-size: 2.2em;
  color: #b5fc4c;
  animation: mymove2 5s infinite;
}

footer h4 {
  font-size: 1.4em;
}

footer p {
  font-size: 1em;
}

@keyframes mymove2 {
  50% {
    color: white;
  }
}

#contacto p {
  font-size: 1.1em;
}

#icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  align-items: center;
  margin: 5px;
}
#icons a:hover {
  border-radius: 10%;
}

#insta {
  width: 30px;
  height: auto;
}

#twitter {
  max-width: 30px;
  height: auto;
}

#copyright {
  padding: 5px;
  color: white;
  font-size: 0.6em;
  background: black;
  text-align: center;
}


/* -------------PAGS ALTERNATIVAS---------- */

#Serv-cont {
  text-align: left;
  line-height: 32px;
  padding: 15px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-family: Montserrat, sans-serif;
  margin-top: 10vh;
}

#Serv-cont p {
  font-size: 0.8em;
}

#Servicios-text {
  text-align: center;
  line-height: 250%;
  font-size: 1 em;
}

#mail {
  font-weight: 600;
  margin-top: 5px;
}

#arrow1 {
  display: inline;
  width: 100px;
  height: 90px;
  align-self: flex-end;
  margin: 15px;
  margin-bottom: 80px;
}

#arrow1 p {
  margin-top: -15px;
  width: 60px;
}

#arrow1 a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

#arrow1 :hover {
  background-color: #b5fc4c;
  border-radius: 20%;
}

/******Formulario*********/

.contact-form {
  margin-left: auto;
  margin-right:auto;
  width: 80%;
  z-index: 0;
}

.contact-form>* {
  padding:0.5rem;
  margin:1rem auto;
  display:block;
  width:100%;
}

.contact-form textarea {
  resize: none;
}

.contact-form legend,
.contact-form-response {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  font-size: 1rem;
  font-family: sans-serif;
}

.contact-form input[type="submit"] {
  width: 50%;
  font-weight: bold;
  cursor: pointer;
}

.contact-form *::placeholder {
  color: black;
}

.contact-form [required]:valid{
  border: 4px solid green;
}

.contact-form [required]:invalid{
  border: thin solid black;
}

.contact-form-error {
  margin-top: -1rem;
  font-size: 80%;
  background-color: red;
  color: white;
  transition:all 800ms ease;
  block-size: auto;
}

.contact-form .is-active {
  display: block;
  animation: show-message 1s 1 normal 0s ease-out both;
}

.none {
  display:none;
}

@keyframes show-message {
  0%{
      visibility: hidden;
      opacity: 0;
  }
  100% {
      visibility: visible;
      opacity: 1;
  }
}

/* --------MEDIA QUERIES ---------------- */

@media (max-width: 1000px){
 
  
  #checkbtn {
    display: flex;
  }

  nav {
    padding: 0 30px;
  }

  ul {
    position: absolute;
    width: 100%;
    height: 96vh;
    background: rgba(0, 0, 0, 0.8);
    top: 6vh;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
    flex-direction: column;
  }

  nav ul li {
    margin: 20px 0;
  }

  nav ul li a {
    font-size: 16px;
  }

  #check:checked~ul {
    left: 0;
  }
}

#discord {
  filter: brightness(100) invert(1);
  width:40px
}