/* ********** Custom Properties ********** */
:root {
    --first-color: rgb(220, 0, 0);
    --first-alpha-color: rgba(217, 0, 98, 0.75);
    --second-color: rgb(25, 31, 54);
    --second-alpha-color: rgba(20, 25, 45, 0.75);
    --third-color: #501464;
    --third-alpha-color: rgba(80, 20, 100, 0.75);
    --white-color: #fff;
    --gray-light-color: #f3f3f3;
    --gray-color: #ccc;
    --gray-dark-color: rgb(79, 78, 77);
    --black-color: #000;
    --link-color: rgb(0, 217, 255);
    --title-color: #333;
    --text-color: #222;
    --white-alpha-color: rgba(255, 255, 255, 0.5);
    --black-alpha-color: rgba(14, 14, 14, 0.5);
    --font: "Raleway", sans-serif;
    --max-width: 1200px;
    --header-height: 4.3rem;
   /*Mío*/
   
   --cuerpo-logo-color: rgb(110, 110, 198);
    
  }

  /* ********** Reset ********** */
  html {
    box-sizing: border-box;
    font-family: var(--font);
    font-size: 16px;
    scroll-behavior: smooth;
  }
  
  *,
  *::after,
  *::before {
    box-sizing: inherit;
  }
  
  body {
    margin: 0;
   overflow-x: hidden;
    color: var(--text-color);
    background-color: rgb(225, 225, 231);    
 
  }
  
  a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.5s ease-out;
  }
  
   a:hover{
    opacity: 0.65;
    
  }
  
  h1 {
    margin: 0;
    font-size: 1.5rem;
  }
  
  h2 {
    margin: 0;
    font-size: 1.25rem;
  }
  
  h3 {
    margin: 0;
    font-size: 1rem;
  }
  
  h4 {
    margin: 0;
    font-size: 0.75rem;
  }
  
  h5 {
    margin: 0;
    font-size: 1rem;
  }
  
  h6 {
    margin: 0;
    font-size: 0.4rem;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  p {
    line-height: 1.6;
  }


  /*COMPONENTES*/



  /* ********** Modal ********** */
  .modal {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--black-alpha-color);
    /*que no se vea y no interactúe hasta estar modal*/
    opacity: 0;
    pointer-events: none;
    transition: all 1s;
  }
  
  .modal-content {
    position: relative;
  }
  
  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
   /*selector avanzado de css que busca dentro
    de la clase .modal todo id que empiece con el término 
    especificado, en este caso, gracias */
    .modal[id|="gracias"]:target {
      opacity: 1;
      pointer-events: auto;
    }
  
  
    
    ::placeholder{  /*lo encontré yo, para que se despeguen de la iz*/
      padding-left: 1rem;
    }
  
   

  /* ********** HeroImage ********** */
  .hero-image {
     background-image: url("../assets/cableado-HP.webp");
    
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: var(--hero-attachment);
  }
  
  .hero-image-opacity {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--hero-opacity-color);
  }
  
  .hero-image-title {
    font-size: 2.1rem; /*que el texto se adapte al vw sin 
    usar  MQ (fluid design)*/
    color: var(--link-color);
    
    
    
    
  }

  .rotate{
    transition: transform 7s ease-in-out;
  }

  .rotate:hover{
    transform: rotateY(360deg);
  }

  .rotate-30deg{
    transition: transform 1s ease-in-out;
  }
  .rotate-30deg:hover{
    transform: rotateY(30deg);
  }
/*ESTILOS DEL SITIO*/

.about{
  text-align: center;
}

h1{
  color: var(--first-color);
  margin-bottom: 2rem;
 
}


.home-h1{
  background-color: var(--second-color);
  font-style: italic;
  display: inline-block;
  border-radius: 50%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
}


.home h3{
    font-size: 4.5vw;
    color: var(--gray-color);
}

.home-obj{
  color: var(--first-color);
  font-style: italic;
}
  /* ********** Menu ********** */
  .menu-btn {
    outline: thin solid var(--first-color);
    border: 0;
    cursor: pointer;
    background-color: var(--second-color);
  }
  
  .menu-btn svg {
    fill: var(--first-color);
  }
  
  .menu {
    position: fixed;
    left: 0;
    bottom: var(--header-height);
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--second-color);
    
    opacity: 0;  /*solo se verá cuando sea activo*/
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  
  .menu.is-active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .menu a {
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: var(--link-color);
  }
  
  .menu a:hover {
    color: var(--white-color);
    background-color: var(--first-color);
    font-size: 1.5rem;
  }
  
  @media screen and (min-width: 1024px) {
    .menu-btn {
      display: none;
    }
  
    .menu {
      position: static;
      width: auto; /*que el ancho se adapte al nª enlaces que tenga*/
      flex-direction: row;
      opacity: 1;
      pointer-events: auto;
    }
  
    .menu a {
        font-size: 1.2rem;
      padding: 0 1rem;
      
    }
  
    .menu a:last-child { /*para igualar los paddings del último enlace
      con el del iz del logo*/
      padding-right: 0;
      margin-right: 1rem;
    }
  
    .menu a:hover {
      background-color: transparent;
      font-size: 1.2rem;
      
    }
  }
  
    .p-width{
      width: 90vw;
      text-align: center;
    }
  /* ********** Utilities ********** */
  

 
  .bg-comun{
    background-color: rgb(236, 228, 228);
  }

  .bg-color-form{
    background-color: var(--second-color);
  }
  .bg-gray-light {
    background-color: var(--gray-light-color);
  }
  
  .box-shadow-1{
    box-shadow: 0.25rem 0.25rem 1rem;
  }
 
 
  .container {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--max-width);
    
  }
  .gray-scale {
    filter: grayscale(1);
  }
  
  .none {
    display: none;
  }
 
  .section {
    padding: 2rem 1rem;
  }
  
  .section-title {
    border-top: thin solid var(--first-color);
    border-bottom: thin solid var(--first-color);
    margin: 2rem auto;
    padding: 0.5rem 1rem;
    width: 250px;
    text-align: center;
    color: var(--title-color);
  }
  
  .text-first-color {
    color: var(--first-color);
  }
  
  .text-center {
    text-align: center;
  }
  
  .text-left {
    text-align: left;
  }
  
  .text-right {
    text-align: right;
  }
  
  @media screen and (min-width: 1024px) {
    .full-lg-screen {
      width: 100%;
      min-height: 100vh;
    }
  
    .text-lg-center {
      text-align: center;
    }
  
    .text-lg-left {
      text-align: left;
    }
    .text-lg-right{
      text-align: right;
    }
  }



  /* ********** Site Styles ********** */
  .about > article {
    margin-bottom: 2rem;
  }
  
  .contact-card {
    margin: 3rem auto;
    padding: 1rem;
    width: 100%;
    height: 300px;/*según el caso*/
    display: flex;
    flex-direction: column;
    justify-content: space-around;/*reparte el
    espacio sobrante considerando las orillas*/
    align-items: center;
    background-color: var(--white-color);
    font-size: 1.2rem;
    color: var(--second-color);
  }
  
  .contact-card > svg { /*color al svg #*/
    width: 2rem;
    height: 2rem;
    fill: var(--first-color);
  }
  
  .contact-card > small {
    margin-top: -1rem;
    font-size: 1.2rem;
    color: var(--second-color);
  }
.contact-subtitle{
  display: inline;
  color: var(--first-color);
  font-size: 1rem;
}
.domicilio{
  color: var(--first-color);
}
  #empresa h3{
    margin-bottom: 3rem;
    font-size: 1.2rem;
  }
  #empresa p{
    font-style: italic;
    font-family: sans-serif;
    margin-bottom: 2rem;
    
    margin-left: auto;
    margin-right: auto;
    
  }

  .flex{
    display: flex;
    flex-direction: column;

  }
  .flex >* {
    text-align: center;
  }
  .footer {
    margin-bottom: var(--header-height); /*para que se vea en mobile y no 
    lo tape el header */
    padding: 0.5rem;
    text-align: center;
    color: var(--white-color);
    background-color: rgb(146, 145, 145);
  }
  .nombre-desarrollador{
    
    font-weight: 100;
    
    color: rgb(195, 192, 192);
  }
  .desarrollo{
    font-style: normal;
    color: rgb(66, 65, 65);
  }
  
 
  .header {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 999;
    padding: 1rem 2rem;
    
    width: 100%;
    height: var(--header-height);
    background-color: var(--second-color);
  }
  
  .header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
  }
  
  
  .service-card h3 {
    color: var(--first-color);
  }
  
  .service-card svg {
    margin-bottom: 1.25rem;
    fill: var(--first-color); /*color a los svg*/
  }
  
  .social-media a {
    padding: 0 0.4rem;
    text-decoration: none;
  }
  
  .social-media svg {  /*enlaces a RRHH*/
    width: 1.5rem;
    height: 1.5rem;
  }

  
/*Media query versión tablet*/  
  @media screen and (min-width: 768px) {
    .contact-cards {
      display: grid;
      grid-template-columns: repeat(2, 48%);
      justify-content: space-between;
    }
  
    .portfolio > .container {
      display: grid;
      grid-template-columns: repeat(2, 50%);
    }
  
    .portfolio .section-title {
      grid-column: span 2; /*para centrar el título*/
    }
  
    .portfolio-modal {  /*el contenido modal se separa horizontalmente en 2 */
      max-width: 800px; /*el doble que en mobile*/
      flex-direction: row;
    }
  
    .portfolio-info {
      margin-left: 1rem;
      align-self: center; /*centra el texto*/
    }
  
    .services > .container {
      display: grid;
      grid-template-columns: repeat(2, 45%);
      justify-content: space-between;
      align-content: center;
    }
  
    .services .section-title {
      grid-column: span 2;
    }
    .slide-h2{
      font-size: 3rem;
    }

    .carousel-menu h3{
      font-size: 1.8rem;
    }
   .hero-image-title{
     font-size: 3rem;
   }
   .volver a{
     margin-top: -1rem;
     margin-left: -1.5rem;
     
   }
  }
  
  /*Media query versión desktop*/

  @media screen and (min-width: 1024px) {
    .about {
      display: grid;
      grid-template-columns: repeat(1, 100%);
      justify-content: space-between;
      align-content: center;
    }
   
    

    .contact-cards {
      grid-template-columns: repeat(2, 48%);
    }
  
    .footer {
      margin-bottom: 0; /*que el footer quede abajo de nuevo, ya que en
      desktop no está el header abajo*/
    }
  
    .header {
      position: fixed; /*no tapa el sig elem, como sí lo hace fixed*/
      top: 0;
      padding: 0.5rem;
      height: calc(var(--header-height) - 0.2rem);
    }
  
    .portfolio > .container {
      grid-template-columns: repeat(3, 1fr); /*fr reparte el 
      espacio que queda (1%) de manera proporcional*/
    }
  
    .portfolio .section-title {
      grid-column: span 3;/* centrar el título*/
    }
  
    
    .services > .container {
      grid-template-columns: repeat(3, 30%); /*hacer 3 columnas*/
    }
  
    .services .section-title {
      grid-column: span 3; /*que el title ocupe 3 col*/
    }

    /*Míos*/
    .home h3{
        font-size: 2rem;
    }
     .home h2{
         font-size: 3.5rem;
     }  
    

    .volver a{
      
      
      width: 3.5rem;
      height: 1.8rem;
      border-bottom: var(--link-color);
      position: fixed;
      top: 6rem;
      left: 2rem;
     
    }
}
  
/*LOGO-con código CSS*/

@keyframes logo {
  0% {
    transform: rotateY(0deg);
    }

  100% {
    transform:rotateY(360deg);
  }
}

.carousel-menu a{
  color: var(--link-color);
  display: inline-block;
  padding: 0.2rem;
  transition: all 0.2s linear;
  
}
.carousel-menu a:hover{
  color: var(--first-color);
  opacity: 1;
}
 .carousel-menu{
   transition: all 0.5s linear;
 }
.carousel-menu:hover{
  background-color: rgba(17, 17, 60, 0.5);
}
 
/*estilos carrusel*/


.carrousel-services{               
    
  height: auto;
  width: 90vw;
  margin-left: auto;
  margin-right: auto;  
 overflow-x: hidden;   
  display: flex;  
  background-image: url("../assets/cableado-HP.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  
  
  
}
.carrousel-products{               
    
  height: 270px;
  width: 330px;
  margin-left: auto;
  margin-right: auto;  
 overflow-x: hidden;   
  display: flex;  
 
  
   
}

  
/*Media query versión tablet*/  
@media screen and (min-width: 768px){
   
.carrousel-products{               
    
  height: 281.25px;
  width: 500px;}
}


  
/*Media query versión Desktop */  
@media screen and (min-width: 1024px){

  .carrousel-products{               
    
    height: 337.5px;
    width: 600px;
}
}

.carrousel-slide img{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.carrousel-container{
  scroll-snap-type: x proximity; 
width: 100%;
overflow-y: hidden;
overflow-x: scroll;
display: grid; 
grid-template-columns: repeat(4, 100%);
}
.carrousel-slide{
     position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center; 
      align-items: center;
 scroll-snap-align: center;
}


.carrousel-slide:nth-child(odd){

  background-color: rgba(15, 15, 15, 0.4);
}

.carrousel-slide:nth-child(even){

  background-color: rgba(8, 0, 0, 0.5);
}    

@keyframes carousel-slide { 
  0% {
    transform: translateX(0%);
  }
  25% {
      transform: translateX(-100%);
    }
    50% {
      transform: translateX(-200%);
    }
       

  
  75% {
      transform: translateX(-300%);
      
    }
}

.carrousel-container .carrousel-slide{
  
 animation: carousel-slide 12s ease-in-out 1.5s;   
}

.carrousel-slide-content{
  text-align: center;
}

.slide-h2{
  font-size: 1.6rem;
}

.carousel-menu h3{
  font-size: 1.3rem;
}
.product-items {
  font-size: 2rem;
  padding: 0 3rem;
  color: red;
}
.definition{
  
   color: var(--second-color);  
}

.description{
  
  color: var(--first-color);
}
.item-h1{
  display: inline-block;
  
  
  border-bottom: solid var(--second-color);
  
}
.item-container{
  text-align: center;
  padding: 0 2rem;
  }
.volver a{
   
  background-color: #14192d;
  border-radius: 0.5rem;
  position: fixed;
  bottom: 5rem;
  right: 1.4rem;
  padding: 0.3rem;
  
}

.p-width{
  text-align: center;
  white-space: pre-wrap;
  
}

/*ANIMATION RAYO*/
@keyframes translate-rayo{ 
  
  0% {
      transform: translateY(-40px) translateX(-15px)  rotate(0deg);;
      opacity: 0;
      color: yellow;
      filter: blur(0);
    }
   3% {
    transform: translateY(-5px) translateX(-15px)  rotate(0deg);
    opacity: 0;
    background-color: yellow;
    filter: blur(0);
  } 
  5% {
    transform: translateY(-10px) translateX(-15px)  rotate(0deg);
    opacity: 1;
    background-color: yellow;
    filter: blur(0);
  }
  5.5% {
    transform: translateY(-5px) translateX(-15px) rotate(0deg);
    opacity: 1;
    background-color: yellow;
    filter: blur(0rem);
  }  
 
 80% {
  transform: translateY(-5px) translateX(-2px) rotate(20deg);
  opacity: 0;
  background-color: rgb(255, 0, 0);
  filter: blur(0rem);
} 
100% {
  transform: translateY(-5px) translateX(5px) rotate(20deg);
  opacity: 0;
  background-color: rgb(220, 6, 6);
  filter: blur(1rem);
} 

  
}

@keyframes rotate-logo{ 
  0% {
    transform: perspective(10rem) rotateY(0);
  }
  100% {
      transform: perspective(10rem) rotateY(360deg);
    }
}
.logo-container{
  background-color: var(--second-color);
  width: 170px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  bottom: 0.2rem;
  
}
/*Rayo*/
.logo-text{
  
  width: 150px;
  height: 50px;
  text-align: center;
  border-radius: 50%;
  position: relative;
  top: -182%;
  left: 3%;
  color: red;
  font-size: 0.9rem;
  font-style: italic;
  
  animation: rotate-logo 5s linear infinite;
}


 .rayo-big{
   
   position: relative;
   
   width: 70px;
   height: 88px;
   transform: rotate(10deg);
   left: 12%;
   top: 0;
   
   clip-path: polygon(2% 26%, 36% 15%, 44% 28%, 37% 31%, 51% 41%, 46% 43%, 61% 61%, 36% 45%, 40% 45%, 21% 37%, 28% 35%);
  z-index: 0;
   background-color: yellow;

   animation: translate-rayo 5s ease-in-out infinite;
 }