/*
Theme Name: Carpinteria Garbajosa Theme
Author: Hugo Díaz
Description: Estilos de la Carpinteria Garbajosa
Version: 1.0.0
Template: genesis
*/

@import "../genesis/style.css";

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

*::selection{
  background-color: var(--primary-blue);
  color: white;
}

body{
  min-height: 100vh;
}

/*** FUENTES ***/
@font-face {
  font-family: 'Nunito';
  src: url(./fonts/nunito/static/Nunito-Medium.ttf);
}

@font-face {
  font-family: 'Roboto';
  src: url(./fonts/roboto/Roboto-Regular.ttf);
}

@font-face {
  font-family: 'Quicksand';
  src: url(./fonts/quicksand/Quicksand-Regular.ttf);
}


/*** VARIABLES PARA TODA LA APP ***/
:root{
  --primary-font: 'Nunito';
  --secondary-font: 'Roboto';
  --primary-blue: #2896CE;
  --secondary-blue: #0B73B4;
  --primary-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
  --cover-animation: 30px;
  --entry-animation: -30px;
  --up-animation: 30px;
}

/******* CABECERA *******/
#header{
  display: none;
}

hr{
  display: none;
}

.cky-consent-container, .cky-btn-revisit-wrapper, #pojo-a11y-toolbar.pojo-a11y-toolbar-right.pojo-a11y-toolbar-open {
  font-family: 'Nunito';
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  gap: 1rem;
  background-color: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  z-index: 9999;
}

.nav__label--logo {
  font-size: 1.5rem;
}

.nav__label--logo__img {
  width: 200px;
}

#menu-cabecera{
  display: flex;
  list-style: none;
  margin: 0;
  background-color: white;
  gap: 1.5rem;
  margin-top: .5rem;
}

#menu-cabecera > li{
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

#menu-cabecera > li > a{
    transition: all 300ms linear;
    text-decoration: none;
    font-size: 1rem;
    color: var(--primary-blue);
    font-family: var(--primary-font);
}

#menu-cabecera > li > a:hover {
  color: var(--primary-blue);
  transform: scale(1.05);
}

.nav__info__tel {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: end;
  gap: .8rem;
}

.nav__info__tel__anchor{
  display: flex;
  gap: .5rem;
  text-decoration: none;
}

.nav__info__tel__anchor > i{
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0B73B4;
}

.nav__info__tel__img {
  width: 20px;
  height: 20px;
}

.nav__info__tel__text {
  font-family: 'Nunito';
  color: var(--secondary-blue);
  font-weight: 700;
}

.checkbtn {
  color: var(--primary-blue);
  font-size: 30px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

@media screen and (width < 1050px) {
 .nav{
  flex-direction: column;
  gap: 2rem;
 } 

 .nav__info__tel{
  justify-content: center;
 }

 #menu-cabecera{
  flex-direction: column;
  margin: 2rem 0;
 }

}

/******* FIN CABECERA *******/

/******* PIE DE PÁGINA *******/
.footer{
  padding: .5rem 0;
  background: radial-gradient(rgb(126, 192, 214), rgb(90, 172, 200));
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  box-shadow: 1px 9px 4px 9px rgb(0 0 0 / 0.25);
  overflow-x: hidden;
}

#menu-pie-de-pagina{
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  margin-bottom: .5rem;
  gap: 3rem;
}

#menu-pie-de-pagina > li > a{
  font-family: var(--primary-font);
  text-decoration: none;
  color: #fff;
  text-align: center;
}

.footer-separator{
  height: 1px;
  width: 80vw;
  background-color: #fff;
}

.footer__div{
  margin-top: .5rem
}

.footer__ue{
  width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__ue{
  margin: 2rem 0;
  div:first-child img{
    height: 120px;
  } 
  img{
    height: 80px;
  }
}

@media screen and (width < 1050px) {
  .footer__ue{
    margin: 2rem 0;
    div:first-child img{
      height: 90px;
    } 
    img{
      height: 60px;
    }
  }
}

@media screen and (width < 750px){
  .footer__ue{
    flex-direction: column;
    gap: 3rem;
  }
}

.footer__garbajosa{
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: .5rem;
  border-top: 1px solid white;
  padding-top: 2rem;
  width: 80%;
}

.footer__garbajosa__img{
  width: 400px;
  height: auto;
  margin-bottom: .5rem;
}

.footer__garbajosa__text{
  color: white;
  font-family: var(--secondary-font);
  font-size: 1.1rem;
  text-align: center;
  text-wrap: pretty;
}

@media screen and (width < 700px) {
  #menu-pie-de-pagina{
    flex-direction: column;
    gap: .5rem;
    li{
      text-align: center;
    }
  }
}

@media screen and (width < 500px) {
  .footer__garbajosa__text{
    font-size: 0.9rem;
  }
}

.footer__div__text, .footer__div__text > a{
  color: #fff;
  font-family: var(--primary-font);
}

.footer__div__text > a{
  text-decoration: none;
  font-weight: 600;
}

@media screen and (width < 450px) {
  .footer__div__text::before{
    content: "| ";
  }


  .footer__div__text > a{
    display: none;
  }
}

/******* SHORTCODE --> SECTION-SUPPLIERS *******/
.window-section--suppliers{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
  flex-direction: column;
}

.window-section--suppliers__block{
  width: 80%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 1rem;
}

.window-section--suppliers__title{
  text-align: center;
  text-wrap: pretty;
  width: 80%;
  margin-bottom: 2rem;
  color:#f9f9f9;
  font-family: var(--secondary-font);
  text-shadow: 2px 2px 1px var(--primary-blue);
  font-size: 2rem;
}

.window-section--suppliers__block > div{
  display: flex;
  justify-content: center;
  align-items: center;
}

.window-section--suppliers__block__img{
  width: 100px;
  height: auto;
}

@media screen and (width < 1000px) {
  .window-section--suppliers__block{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (width < 800px) {
  .window-section--suppliers__block{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (width < 600px){
  .window-section--suppliers__block__img{
    width: 100px;
  }
}
/******* FIN SHORTCODE --> SECTION-SUPPLIERS *******/

/******* PÁGINA DE INICIO ********/

/**************** BOTÓN ENLACES ******************/
#section-windows > div > article > div > a, .single-section-descPost div > a {
  background-color: lightblue;
  text-decoration: none;
  padding: 8px 20px;
  color: #2c2d2f;
  position: relative;
  display: inline-block;
  font-weight: 600;
  border-radius: .2rem;
}

#section-windows > div > article > div > a > div, .single-section-descPost div > a > div{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#section-windows > div > article > div > a > div > img, .single-section-descPost div > a > div > img{
  height: 25px;
}

#section-windows > div > article > div > a p::after, .single-section-descPost div > a p::after{
  content: '';
  position: absolute;
  left: 0;
  width: 0;
  bottom: -2px;
  height: 3px;
  background-color: #2c2d2f;
  transition: width .6s ease;
}

#section-windows > div > article > div > a:hover p::after , .single-section-descPost div > a:hover p::after{
  width: 40%;
}
/**************** FIN BOTÓN ENLACES ******************/

section{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 6rem 0;
}

section.img-begin {
  background-color: #F1F5F9;
  padding: 0;
  img{
    width: 100%;
  }
}

.img-begin {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  position: relative;
}

.img-begin img {
  width: 100%;
  height: auto;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 10px;
  width: 100%;
  h1{
      font-size: 40px;
      color: #f1f1f1;
      font-family: var(--primary-font);
      font-family: "Inter";
      font-family: "Quicksand";
      font-weight: 900;      
      font-style: italic;

  }
  h2{
      font-size: 30px;
      text-indent: 20rem;
      color: lightblue;
      font-family: var(--primary-font);
      font-family: "Inter";
      font-family: "Quicksand";
      font-weight: 900;
  }
}

@media screen and (width < 900px) {
  .text-overlay h2{
    text-indent: 0rem;
    font-size: 20px;
  }

  .text-overlay h1{
    font-size: 30px;
  }
}

@media screen and (width < 600px) {
  .img-begin{
    display: none;
  }
}

section#section-desc{
  background-color:lightblue;
}

section#section-windows, section#section-seo{
  background-color:#F1F5F9;
}

/******** SECCIÓN DE DESCRIPCIÓN (INICIO) *********/
#section-desc{
  flex-direction: column;
  gap: 5rem;
  color: #2c2d2f;  
  font-family: var(--secondary-font);
}

#section-seo{
  flex-direction: column;
  gap: 5rem;
  color: #2c2d2f;  
  font-family: var(--secondary-font);
}


.section-seo__block--desc{
  text-wrap: pretty;
  width: 85%;
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  margin: 2rem 0;
  letter-spacing: .4px;
}

.section-seo__block--desc p{
  animation-range: entry 10% cover 20%;
  animation: entry-animation linear both;
  animation-timeline: view();
  strong{
    color: #0c5684;
  }
  span{
    color: #0c5684;
    font-size: 3.5rem;
    line-height: 1px;
  }
}

.section-seo__block--desc img{
  animation-range: entry 10% cover 20%;
  animation: cover-animation linear both;
  animation-timeline: view();
}

.section-seo__block--desc img{
  width: 450px;
  height: auto;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
  border-radius: .5rem;
}

.section-desc__block--characteristics__article{
  animation-range: entry 0% cover 10%;
  animation: up-animation linear both;
  animation-timeline: view();
}

@media screen and (width < 1000px) {
  .section-seo__block--desc{
    gap: 3rem;
  }

  .section-seo__block--desc img{
    width: 300px;
  }

  .section-seo__block--desc{
    font-size: 1rem;
  }

  .section-seo__block--desc p{
    span{
      font-size: 1.2rem;
    }
  }
}

@media screen and (width < 700px) {
  .section-seo__block--desc{
    flex-direction: column;
  }

  .section-seo__block--desc img{
    width: 80%;
  }

  .section-seo__block--desc p{
    order: 2;
  }
}

@media screen and (width < 550px) {
  .section-seo__block--desc img{
    width: 100%;
  }
}

@media screen and (width < 750px) {
  .section-seo__block--desc{
    text-align: center;
  }

  .section-seo__block--desc p{
    animation: none;
  }
  
  .section-seo__block--desc img{
    animation: none;
  }
}


@keyframes entry-animation {
  0%{
      opacity: 0.8;
      translate: var(--entry-animation) 0px;

  }
  100%{
      opacity: 1;
      translate: 0 0;
  }
}

@keyframes cover-animation {
  0%{
      opacity: 0.6;
      translate: var(--cover-animation) 0px;

  }
  100%{
      opacity: 1;
      translate: 0 0;
  }
}

@keyframes up-animation {
  0%{
      opacity: 0.6;
      translate: 0px var(--up-animation);

  }
  100%{
      opacity: 1;
      translate: 0 0;
  }
}

.section-desc__block--title{
  text-align: center;
  text-wrap: pretty;
  width: 90%;
}

.section-desc__block--characteristics{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 2rem;
  width: 90%;
}

.section-desc__block--characteristics__article{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.section-desc__block--characteristics__article__img{
  width: 40%;
  height: auto;
}

.section-desc__block--characteristics__article__title{
  text-align: center;
  text-wrap: pretty;
  font-size: 1.2rem;
}

.section-desc__block--characteristics__article__text{
  text-align: center;
  text-wrap: pretty;
}

@media screen and (width < 1000px) {
  .section-desc__block--characteristics{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (width < 700px) {
  .section-desc__block--characteristics{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (width < 500px) {
  .section-desc__block--characteristics{
    grid-template-columns: repeat(1, 1fr);
    padding: 0 2rem;
    gap: 5rem;
  }
}
/******** FIN SECCIÓN DE DESCRIPCIÓN (INICIO) *********/


/******** SECCIÓN DE VENTANAS (INDEX) ********/
#section-windows > div{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 3rem 0;
  gap: 3rem;
  font-family: var(--secondary-font);
  color: #2c2d2f;
}

#section-windows > div > article{
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#section-windows > div > article > img{
  width: 100%;
  height: 100%;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
}

#section-windows > div > article > h3{
  font-size: 1.4rem;
  text-align: center;
}

#section-windows > div > article > p {
  display: none;
}

#section-windows > div > article > div {
  display: flex;
  justify-content:center;
  align-items:center;
}

@media screen and (850px < width < 1000px) {
  #section-windows > div > article > p {
    display: none;
  }
}

@media screen and (width < 850px){
  #section-windows > div {
    flex-direction: column;
  }

  #section-windows > div > article{
    width: 80%;
  }
}
/******** FIN SECCIÓN DE VENTANAS (INDEX) ********/

/******** SECCIÓN DE TABLAS COMPARATIVAS *******/
#section-comparison{
  color: #2c2d2f;
  font-family: var(--secondary-font);
  background-color: lightblue;
  flex-direction: column;
  gap: 3rem;
}
/******** FIN SECCIÓN DE TABLAS COMPARATIVAS *******/

/******** FIN PÁGINA DE INICIO *********/

/******** PÁGINA SIMPLE ********/
.single-section-descPre, .single-section-descPost, .single-section-gallery{
  background-color: #F1F5F9;
  flex-direction: column;
  font-family: 'Roboto';
  color: #2c2d2f;
}

.single-section-descPre > div{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  width: 90%;
  font-family: 'Roboto';
  h1{
    text-align: center;
    text-wrap: pretty;
  }
  p{
    text-align: center;
    text-wrap: pretty;
  }
}

.single-section-descPost{
  padding: 6rem .5rem;
}

.single-section-descPost > ul{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-family: 'Roboto';
  width: 90%;
}

.single-section-descPost > div{
  margin-top: 2rem;
}

.single-section-descPost > h1, .single-section-gallery > h1{
  text-align: center;
  text-wrap: pretty;
}

.single-section-gallery{
  background-color: lightblue;
  gap: 4rem;
}

.single-section-descPost{
  gap: 4rem;
}

.single-section-gallery > figure{
  width: 90% !important;
  display: inline;
}

.single-section-gallery > figure > figure > img{
  width: 95% !important;
  height: auto !important;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
}

@media screen and (width < 950px) {
  .single-section-gallery > figure{
    flex-direction: column !important;
  }

  .single-section-gallery > figure > figure{
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    width: 100% !important;
  }
}

/******** FIN PÁGINA SIMPLE ********/

/******** PÁGINA CONTACTO ********/
#background-contact{
  background: url(../../uploads/2024/07/img-contact2.jpg) center no-repeat;
}

.contact-section{
  width: 90%;
}

.contact-section--block{
  opacity: 0.95;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  background-image: linear-gradient(#F1F1F1, #fff);
  border-radius: 1rem;
  box-shadow: 0 4px 3px -1px #F1F5F9, 0 2px 4px -2px #F1F5F9;
}

.contact-section--block__title{
  font-family: 'Roboto';
  color: var(--primary-blue);
}

@media screen and (width < 500px) {
  .contact-section--block__title{
    font-size: 1.2rem;
  }
  
}

.subrayado-title{
  width: 30%;
  height: 3px;
  background-color: #0B73B4;
}

.contact-section--block__title::first-letter{
  font-size: 2rem;
}

.contact-section--block__block{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  margin-top: 2rem;
}

.wpcf7 input{
  width: 100%;
}

.wpcf7-form{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  div{
    display: flex;
    flex-direction: column;
    gap: .5rem;
    label{
      font-family: 'Roboto';
      color: var(--secondary-blue);
      font-size: 1.1rem;
      font-weight: 600;
      display: flex;
      flex-direction: column;
      gap: .5rem;
    }

    p{
      display: flex;
      flex-direction: column;
    }
    
    input, textarea, input[type="submit"]{
      border: 2px solid #ccc;
      font-size: 1.1rem;
      padding: .5rem .3rem;
      border-radius: .3rem;
      color: var(--primary-blue);
      display: flex;
    }

    input[type="submit"]{
      color: #F1F5F9;
      background-color: var(--secondary-blue);
      font-family: 'Roboto';
      border: 2px solid #ccc;
      cursor: pointer;
      transition: all 200ms linear;
      text-align: center;
      justify-content: center;
      align-items: center;
    }

    input[type="submit"]:hover{
      background-color: var(--primary-blue);
    }

    textarea{
      min-height: 12rem;
      resize: none;
    }

    textarea::-webkit-scrollbar {
      width:7px;
    }
      
    textarea::-webkit-scrollbar-track {
        border-radius: 10px;
        background: var(--primary-blue);
    }
    
    textarea::-webkit-scrollbar-thumb {
        background-color: var(--secondary-blue);
        border-radius: 10px;
    }
  }
}

.contact-section--block__block__map__iframe{
  width: 500px;
  height: 400px;
  border-radius: .5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
}


@media screen and (width < 1025px) {
  .contact-section--block__block{
    flex-direction: column;
  }

  .contact-section--block__block__map__iframe{
    width: 100%;
  }
}

@media screen and (width < 550px) {
  input, textarea, input[type="submit"]{
    width: 100% !important;
  }
}


/******** FIN PÁGINA CONTACTO ********/

/************************** PÁGINAS DE POLÍTICAS (FOOTER) **************************/
.page-policy{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  font-family: 'Roboto';
}

.block-pages-footer{
  padding: 0 .2rem;
  width: 90%;
}

.title-pages-footer{
  color: var(--secondary-blue);
  text-align: center;
  text-wrap: pretty;
  margin: 2rem 0;
  width: 90%;
  font-size: 2.5rem;
}

.block-pages-footer > h3{
  color: var(--secondary-blue);
  margin-top: 2rem;
}

.block-pages-footer > ul{
  margin-left: 2rem;
  color: var(--secondary-blue); 
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.block-pages-footer > p{
  margin: 1rem 0;
  color: var(--secondary-blue); 
}

.block-pages-footer > p > a{
  color: var(--secondary-blue); 
}
/************************** FIN PÁGINAS DE POLÍTICAS (FOOTER) **************************/