

body {
  background-color: #fff9da; /* Color de fondo sólido */
  background-image: 
   linear-gradient(rgba(255, 249, 218, 0.85), rgba(255, 249, 218, 0.85)), /* Capa de opacidad */
   url('https://43971674.fs1.hubspotusercontent-na1.net/hubfs/43971674/Contenidos%20Per%C3%BA/Quiz-facial/SERVICE_ICON_FACE_DIAGNOSIS_64px.png') !important; /* Imagen en patrón */
  background-repeat: repeat !important; /* Repite la imagen en ambas direcciones (horizontal y vertical) */
  background-size: 48px 48px !important; /* Mantén el tamaño original de la imagen */
  background-position: top left; /* Comienza desde la esquina superior izquierda */
}


[data-vc-theme=light] .vc-month:hover, [data-vc-theme=light] .vc-year:hover{
  
  background: #FFF !important;
  
}

input[name="hs_context"]{
  display: none !important;
}

html{
  color: #001022 !important ;
  scroll-behavior: smooth;
}

.logo{
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translate(-50%, 0);
}

.logo img {
  filter: drop-shadow(0 0 1rem #c4c4c4);
}

input[type="checkbox"] {
  accent-color: #ffcb00;
}

form .form-columns-1 {
  display: none !important;
}

h1, h2, h3, h4, p, label, .c-quiz__label {  color: #001022 !important ;}

h1{
  margin-bottom: 64px;
  color: #001022 !important ;
}

h4{
  text-align: start;
  font-size: 22px !important;
  text-align: start !important;
}

h3{
  font-size: 24px !important;
  text-align: start !important;
}

h2{
  font-weight: 900;
}

.footer,
.header__bottom,
.hs_cos_wrapper.form-title,
form input[type='submit'], form .hs-button {
   display: none;
}

.dnd-section > .row-fluid, .content-wrapper, .header__wrapper{
   max-width: none;
}

.dnd-section{
   padding: 0;
}


/* Get Data from User */

.obtener_datos_cliente--container{
  border: 3px solid #0E1626; 
  padding: 24px; 
  margin: 40px 0; 
  width: 100%;
}

.obtener_datos_cliente--content{
  display: flex; 
  align-items: center;
  justify-content: space-around;
  gap: 24px;
}

.get_data_fields{
  display: flex; 
  align-items: center;
  gap: 10px;
}

 #loader_button{
    width: 100%;
    position: absolute;
    font-size: 16px;
    font-weight: bold;
  }
  
  #loader_button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.6rem;
    height: 1.6rem;
    background: url(https://cdn.shopify.com/s/files/1/0584/3625/5926/files/loader.svg?v=1712347940) no-repeat center;
    background-size: contain;
    z-index: 106;
    -webkit-animation-duration: 1.4s;
    animation-duration: 1.4s;
    -webkit-animation-name: loaderRotate;
    animation-name: loaderRotate;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

.get_data_fields input {
  min-width: 200px;
}

.obtener_datos_cliente--container #getClientDataBtn:disabled {
  opacity: 0.6;
}

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

  .obtener_datos_cliente--content{
    flex-direction: column;
  }
  
  .get_data_fields{
    width: 100%;
  }
  
  .get_data_fields input {
    min-width: auto;
    width: 100%;
    
  }
  
}

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

  .get_data_fields{
    flex-direction: column;
  }

 }

/* end Get Data from User */


.content__quiz{
  display: grid;
  grid-template-columns: 1fr;
  align-items: normal;
  justify-content: center;
  gap: 32px;
}

.back_btn{
  display: flex;
  align-items: center;
  font-size: 16px;
  text-decoration: underline;
  color: #000000 !important ;
  margin-bottom: 40px;
}

section.c-quiz.js-quiz{
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  min-height: 100dvh;
  justify-content: center;
}

#userNameText,
#nameResult{
  text-transform: capitalize;
}

.c-quiz__subtitle{
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: start;
}


.questions__grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(300px, 1fr) );
  gap: 24px;
  margin-top: 32px;
}


.products__grid .questions__grid{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.c-quiz__content {
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: start;
}

.c-quiz__content a{
  font-size: 16px;
  color: #000;
}


.c-quiz__container{
  position: relative;
  width: 100%;
  min-width: 288px;
  max-width: 1024px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #001022 !important ; 
  margin: 100px 0;
  overflow: hidden;
  padding: 16px;
}

.c-quiz__slide{
    width: 100%;
    max-width: 850px;
    padding: 80px 24px;
    background: #fff;
    /* background: #fffefa; */
    border-radius: 8px;
    box-shadow: 2px 0 15px 5px #0000000d;
    margin: 0;
}

.c-quiz__slide.c-quiz__slide--intro{
  padding: 40px 24px 80px;
}

.c-quiz__prev,
.c-quiz__next {
    cursor: pointer;
    padding: 12px 56px;
    border: none;
    background-color: #000; 
    color: #fff; /
    font-size: 16px;
}

.c-quiz__next{
  background-color: #888; 
  cursor: not-allowed;
}

.c-quiz__next.active{
    background-color: #000;
    cursor: pointer;
}

.c-quiz__prev:hover,
.c-quiz__next:hover {
    background-color: #333; 
}


.c-quiz__progress-bar {
    background-color: #ddd; 
    border-radius: 5px;
    margin: 20px 16px;
}

.c-quiz__progress {
    height: 20px;
    background-color: #FFCB00; 
    border-radius: 5px;
}

.c-quiz__nav{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 40px;
    width: 100%;
}

  .c-quiz__submit{
    max-width: 230px;
    width: 100%;
  }

.c-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.products__grid .c-quiz__options{
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.products__grid .js-quiz-answer {
  position: relative;
  align-items: center;
}

.products__grid .c-quiz__selection{
  position: absolute;
  left: 8px;
  top: 8px;
}

.products__grid .c-quiz__label{
  font-size: 14px;
}


.rutina__productos .questions__grid{
  grid-template-columns: 1fr;
}

.flex{
  display: flex;
  gap: 8px;
  align-items: center;
}


.row{
  flex-direction: row;
  align-items: center;
}

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

.type__of__skin--section{
  margin: 16px 0;
}

.type__of__skin--section p{
  text-align: start;
  font-size: 16px;
}

.c-quiz__slide--first input[type="radio"]{
  accent-color: #ffcb00 !important;
  width: 16px;
  height: 16px;
}

.c-quiz__slide--first p{
  margin: 0 0 8px;
}

.input__field--group{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input__field--groupTwo{
  flex: 49% 0;
}

.input__field--groupGrid{
  width: 100%;
}

.first_questions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.first_questions .c-quiz__content{
  width: 100%;
}

.input__field--groupTwo .input__field{
  background: white;
  padding: 12px 8px;
  border: 1px solid #b2c2c8;
  margin: 0;
}

.input__field--groupGrid .input__field{
  background: white;
  border: 1px solid #b2c2c8;
  margin: 0;
  display: flex;
  flex-direction: row;
}

.input__field--groupGrid .input__field .label__text{
  width: 100%;
  padding: 12px 8px;
 }
  
  
.input__field--groupGrid .input__field input{
  width: auto; 
 }

.input__field--groupTwo .input__field--group{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.type__of__skin--section .input__field {
  background: #FFF;
  border: 1px solid #b2c2c8;
  padding: 8px 16px;
  margin: 0;
}


.input__field{
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 100%;
  margin-bottom: 24px;
  gap: 4px;
}

.input__field__legal{
  margin-top: 16px;
}

.input__field--row{
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
}

.input__field--row.first{
  margin-top: 16px;
}

.input__field input,
.input__field select
{
  width: 100%;
  border: 1px solid #b2b7bc !important;
  padding: 12px 8px;
  outline: none;
  background: #FFF;
}

.input__field select {
  appearance: auto !important;
}

textarea {
  padding: 12px 8px;
  resize: none;
}


input::placeholder, select::placeholder { color: #717171; }
input:-ms-input-placeholder, select:-ms-input-placeholder { color: #717171; } 
input::-webkit-input-placeholder, select::-webkit-input-placeholder { color: #717171; }
input::-moz-placeholder, select::-moz-placeholder { color: #717171; }


.c-quiz__content.radio{
  display: grid;
  grid-template-columns: 135px 1fr;
  align-items: center;
  gap: 8px;
  text-align: start;
}

.input__field input[type="radio"]{
  padding: 2px;
}

.label__text{
  display: flex;
  align-items: center;
  gap: 8px;
}

.type__of__skin--section img{
  max-width: 50px;
  margin-left: auto;
 }

.input__field input:focus{
    border: 1px solid #000 !important;
}

.c-quiz__radio{
    display: flex;
    align-items: center;
    gap: 8px;
}

.c-quiz__checkbox:hover .c-quiz__selection,
.c-quiz__radio:hover .c-quiz__selection{
  background: #999;
}

.c-quiz__checkbox{
    display: flex;
    align-items: center;
    gap: 8px;
}

.js-quiz-answer{
  padding: 12px 8px;
  border: 1px solid #cecece; 
  background-color: #FFF;
  cursor: pointer;
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.js-quiz-answer:hover{
  border: 1px solid #FFCA00;
}

.js-quiz-answer.active{
  border: 1px solid #FFCA00;
  background: #FFF4CC;
}

.js-quiz-answer img{
  width: 100%;
  max-width: 100px;
  margin: 0 auto;
}
 
.c-quiz__label {
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

.products__grid .c-quiz__label{
 text-align: center;
}

.button{
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  color: black;
}

.button:hover{
  background: #000;
}

.button:hover svg{
    color: #FFF;
}

.quiz__result{
  display: none;
}

.c-quiz__counter{
  color: #2E2B32 !important;
  font-size: 14px
}

.c-quiz__selection {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #aaa;
    transition: background-color 0.3s ease;
}

.c-quiz__radio .c-quiz__selection {
  border-radius: 50%;
}

.js-quiz-answer.active .c-quiz__selection{
  background: #FFCA00;
  border: 1px solid #000;
}

input:-internal-autofill-selected {
  background: #FFCA00 !important;
}

.c-quiz__checkbox.js-quiz-answer .c-quiz__selection::after {
  content: '';
  width: 10px;
  height: 5px;
  border: 2px solid transparent;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  position: absolute;
  top: 3px;
  left: 5px;
  opacity: 0;
}


  .c-quiz__checkbox.js-quiz-answer.active .c-quiz__selection::after{
     opacity: 1;
  }

 .cJguiz_:not(.c-quiz__next){
  width: 180px;
}

.c-quiz__selection.active {
    background-color: #000;
}

.submitted-message{
    display: none !important;
    background: #F9F9F9 !important;
}

.result{
  padding: 16px;
}

.result h2{
   text-align: center;
}

.products__result{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 200px;
  width: 100%
 }

.product img{
  width: 100%;
}

.product .btn{
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #FFCB00;
    color: #000;
    text-decoration: none;
}

.product p{
    margin-bottom: 0.4rem;
}

.hidden{
  display: none;
}

form{
  background: #f7f6f3 !important;
  text-align: start !important;
  padding: 0;
}

form input,
form select{
  border: 1px solid #999 !important;
}

.quiz__result{
  padding: 24px 24px 32px 24px;
}

.form-prev-btn{
  width: 288px;
  margin: 32px auto 0;
}

.content__results{
    display: flex;
    background: #f7f6f3;
    flex-direction: column;
    text-align: center;
    padding: 24px;
    align-items: center;
}

form .hs-form-field{
  display: none;
}


.c-quiz__slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.c-quiz__slide.active {
    opacity: 1;
    display: block;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.fade-out {
    animation: fadeOut 0.8s ease-in-out forwards;
}

.content__results{
  background: #f7f6f3;
}

/* Animations */

 #loader{
    width: 100%;
    min-height: 200px;
    position: relative;
    font-size: 20px;
    font-weight: bold;
    margin-top: 25%;
  }
  
    #loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.8rem;
    height: 4.8rem;
    background: url(https://cdn.shopify.com/s/files/1/0584/3625/5926/files/loader.svg?v=1712347940) no-repeat center;
    background-size: contain;
    z-index: 106;
    -webkit-animation-duration: 1.4s;
    animation-duration: 1.4s;
    -webkit-animation-name: loaderRotate;
    animation-name: loaderRotate;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

@keyframes loaderRotate {
    0% {
      -webkit-transform: translate(-50%, -50%) rotate(0);
      transform: translate(-50%, -50%) rotate(0);
      }
    100%, 70% {
      -webkit-transform: translate(-50%, -50%) rotate(1turn);
      transform: translate(-50%, -50%) rotate(1turn);
      }
 }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#error__message__intro,
#error__message{
  display: block;
  font-size: 14px;
  text-align: center;
  color: red;
  margin-top: 16px;
}


.c-quiz__form{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

.c-quiz__form .c-quiz__prev{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
  max-width: 96px;
  width: 100%;
  font-size: 18px;
  
}

 .cJguiz_.c-quiz__next.js-quiz-next{
  opacity: 0.7;
}

  .cJguiz_.c-quiz__next.js-quiz-next{
    opacity: 1;
    background: #ffd533;
    color: black;
  }

#formDiv{
  align-items: center;
  justify-content: center;
}


#formDiv h3{
  text-align: center !important;
  font-size: 40px !important;
  margin-top: 40px !important;
}

.notes {
  display: grid;
  grid-template-rows: 20px 1fr;
  grid-column: 2/-1;
}


/* Para Chrome, Safari y Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Para Firefox */
input[type="number"] {
    -moz-appearance: textfield !important;
}

/* RESPONSIVE CSS */

@media only screen and (max-width:769px){
  
  .c-quiz__slide{
    padding: 24px 12px;
    margin: 16px;
  }
  
   .notes {
    grid-column: auto;
  }
   .c-quiz__container{
    position: relative;
    width: 100%;
    margin-inline: 0;
  }
  
 h1{
  margin-bottom: 32px;
}
  
}

@media only screen and (max-height:800px){

  .c-quiz__container{
    position: relative;
    width: 100%;
  }

}

@media only screen and (max-width: 690px){
  
  h1{
    font-size: 32px;
  }

  .logo img{
    max-width: 150px;
  }
  
  .campo__notas{
    height: 150px;
  }
  
  h2{
    font-size: 24px;
  }
  
  .c-quiz__prev, .c-quiz__next {
    cursor: pointer;
    padding: 12px 32px;
  }
  
  h4 {
    font-size: 18px !important;
  }
  
  .input__field--group{
    grid-template-columns: 1fr;
  }
  
   .input__field--groupTwo{
    flex: auto;
  }
  
  .first_questions{
    flex-direction: column;
  }  
  
    .c-quiz__label{
      font-size: 14px
    }
}


@media only screen and (max-width: 450px){
   .c-quiz__container{
    margin: 64px 0;
  }
  
}