.w-layout-blockcontainer {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.w-layout-hflex {
  flex-direction: row;
  align-items: center;
  display: flex;
}

@media screen and (max-width: 991px) {
  .w-layout-blockcontainer {
    max-width: 728px;
  }
}

@media screen and (max-width: 767px) {
  .w-layout-blockcontainer {
    max-width: none;
  }
}

.top-banner {
  width: 100%;
  display: block;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.image-bann {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

/* Media queries para el banner - simplificado para una sola imagen */
@media screen and (max-width: 991px) {
  .top-banner,
  .image-bann {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .top-banner,
  .image-bann {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .top-banner,
  .image-bann {
    width: 100%;
  }
}

@media screen and (max-width: 375px) {
  .top-banner,
  .image-bann {
    width: 100%;
  }
}

.image-2 {
  text-align: right;
  align-self: center;
  max-width: 100%;
}

.footer-inicio {
  box-sizing: border-box;
  clear: left;
  aspect-ratio: auto;
  text-align: center;
  object-fit: fill;
  justify-content: center;
  align-items: stretch;
  width: 90%;
  display: flex;
}

.text-block_1 {
  color: #ffffff;
  text-align: center;
  word-break: normal;
  align-self: center;
  padding-top: 4vw;
  font-family: Montserrat, sans-serif;
  font-size: 35px;
  font-weight: 500;
  
}

.text-block_1_1 {
  color: #ffffff;
  text-align: center;
  word-break: normal;
  align-self: center;
  padding-bottom: 30px;
  font-family: Montserrat, sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 40px;
}

.text-block_2 {
  color: #C93926;
  text-align: left;
  word-break: normal;
  align-self: center;
  padding: 100px 60px 60px;
  font-family: Montserrat, sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 40px;
}

.text-block_2_1 {
  color: #898989;
  text-align: left;
  word-break: normal;
  align-self: center;
  padding: 100px 60px 60px;
  font-family: Montserrat, sans-serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 40px;
}

.image-3 {
  align-self: center;
  max-width: 100%;				  
}

.image-4 {
  order: 0;
  align-self: center;
  margin-top: 20px;
}

.footer-content {
  padding: 0;
}

.quiz-body {
  text-align: center;
  padding-bottom: 20px;
}

.buttonIniciar {
  color: #FFF;
  background: #C9A350;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 27px;
  font-weight: 500;
  border-radius: 50px;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 1%;				
}

.buttonIniciarNuevo {
  color: #b95442;
  background: #ffffff;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 500;
  border-radius: 50px;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 1%;				
}

.btnDescubri {
  color: #FFF;
  background: #C9A350;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 500;
  border-radius: 50px;
  padding: 15px 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 1%;
  text-decoration: none;
}

/* Responsividad para pantallas medianas (tablets) */
@media (max-width: 768px) {
  .buttonIniciar {
    font-size: 28px; /* Reducimos el tamaño de la fuente */
    padding: 12px 25px; /* Reducimos el padding */
    border-radius: 45px; /* Ajustamos el radio del borde */
  }
}

/* Responsividad para pantallas pequeñas (móviles) */
@media (max-width: 480px) {

  .buttonIniciar {
    font-size: 22px; 
    padding: 10px 20px; 
    border-radius: 40px; 
    width: 50%; 
  }
  .btnMagicM{
    font-size: 10px;
    font-weight: 200;
  }

  .w-layout-hflex {
    align-items: center;
    flex-direction: column;
    max-width: 100%;
  }
  .text-block_2 {
    width: 90%;
    color: #C93926;
    text-align: center;
    word-break: normal;
    align-self: center;
    
    font-family: Montserrat, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 40px;

  }

  .buttonIniciar {
    color: #FFF;
    background: #C9A350;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    font-weight: 500;
    border-radius: 50px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1%;				
  }

 

  .section{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .flex-block {
    flex-flow: column;
    width: 100%;
    order: 2; 
  }

  .flex-block-2 {
    flex-flow: column;
    width: 100%;
    order: 1; 
  }

  .recommendations {
    max-width:200%;
    align-content: center;					
  }

  .recommendation-image {
    width: 100%;
    height: auto;
    margin:0;
  }
  
}

.btnCenter {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}



.quiz-container {
  justify-content: center;
  align-items: stretch;
  display: flex;
}

.quiz-container-1 {
  justify-content: center;
  align-items: stretch;
  display: flex;
}

.iniciar {
  position: static;
}

.section {
  justify-content: center;
  display: flex;
}

.flex-block {
  flex-flow: column;
  width: 50%;
}

.image-5 {
  flex: 0 auto;
  align-self: center;
}

.flex-block-2 {
  width: 50%;
}

@media screen and (max-width: 991px) {
  .text-block {
    padding-top: 40px;
    padding-bottom: 40px;
    font-size: 20px;
    line-height: 20px;
  }

  .image-4 {
    margin-top: 20px;
  }

  .flex-block {
    flex-flow: column;
  }

  .flex-block-2 {
    padding: 0;
    width: 50%;
  }
}

@media screen and (max-width: 479px) {
  .text-block {
    padding: 10px;
    font-size: 18px;
  }

  .footer-content {
    position: static;
  }
}

/* Estilos preguntas*/

.container {
  width: 100%;
  margin: auto;
  
  align-items: center;
}

.divContainer {
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 20px;
}

.optionsP1{
  display: grid;
  grid-template-columns: auto auto auto auto;
  padding: 5px;
}

.h1p1 {
  color: #001F5F;
  text-align: center;
  justify-content: center;
  font-family: Montserrat, sans-serif;
  font-size: 2em;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding: 4% 180px 1% 180px;
  margin-bottom: 0;
}

/* Ajustes para pantallas más pequeñas */
@media screen and (max-width: 1200px) {
  .h1p1 {
    font-size: 1.8em;
    padding: 4% 100px 1% 100px;
  }
}

@media screen and (max-width: 992px) {
  .h1p1 {
    font-size: 1.6em;
    padding: 4% 80px 1% 80px;
  }
}

@media screen and (max-width: 768px) {
  .h1p1 {
    font-size: 1.4em;
    padding: 4% 50px 1% 50px;
  }
}

@media screen and (max-width: 576px) {
  .h1p1 {
    font-size: 1.4em;
    padding: 4% 20px 1% 20px;
  }
  .quiz-container, .quiz-container-1 {
    flex-direction: column;
  }

  .recommendation-image {
    max-width:200%;
    align-content: center;					
  }
}



.h2p1{
  color: #001F5F;
  text-align: center;
  justify-content: center;
  font-family: Montserrat;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin:0;		
}

/* Botones atras-adelante */

.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.btn {
  display: flex;
  padding: 9px 9px 12px 20px;;
  font-size: 1rem;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  border: none;
  margin: 2%;
  flex-direction: row;
}

.btn.prev {
  display: flex;
  flex-direction: row;
  color: #7F7E7C;
  background-color: transparent;
  text-decoration: underline;
}

.btn.next {
  color: white;
  background-color: #cacaca;
  border-radius: 30px; 
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.next:hover {
  background-color: #C99E41;
  transform: scale(1.02);
}

.btn.next:not(:disabled) {
  background-color: #C99E41;
}

.btn.next:disabled {
  background-color: #cacaca;
  cursor: not-allowed;
}

.btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor; /* Usar el color actual del texto */
  position: relative;
  top: 1px; /* Baja el icono 3px */
  margin-bottom: -4px;
}


/* Barra del progreso*/

.progress-container {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5% 3% 3% 4%;
}

.bar-yellow {
  position: absolute;
  left: 0%; 
  width: 0%; 
  height: 100%;
  margin-top: -5px;
  transition: width 0.5s ease-in-out;
  background-color: #C99E41; 
  border-radius: 20px;
  z-index: 1;
}

.bar-blue {
  position: absolute;
  width: 80%;
  height: 70%;
  background-color: #001F5F;
  border-radius: 20px;
  margin-right: 45%;
  margin-left: 50%;
}

.logo {
  position: absolute;
  left: calc(14% - 40px); 
  width: 50px;
  height: auto;
  margin-top: -5px;
  transition: left 0.5s ease-in-out, transform 0.3s;
  z-index: 2;
}


/* Seleccion tipo de pelo*/
.circle-container {
  display: flex;
  justify-content: center; /* Centra los elementos */
  margin-top: 4%;
  margin-bottom: 5%;
  align-items: center;
  flex-wrap: wrap;  
  max-width: 90%;
  margin-left: auto; 
  margin-right: auto; 
  align-items: baseline;
}

/* Para la pregunta 3 */
.containerp3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  padding-top: 3%;
  padding-bottom: 2%;
}

.circle-label:hover{
  transform: scale(1.02);
  transition: 0.1s;
}

.circle-label {
  display: flex;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #d5d5d5;
  /* Forzar renderizado correcto en mobile */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* Asegurar que el borde se renderice correctamente */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Optimizar renderizado */
  will-change: border-color;
  /* Asegurar opacidad completa */
  opacity: 1;
  /* Eliminar highlight de tap en mobile */
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
}

/* Eliminar estilos de focus del label */
.circle-label:focus {
  outline: none;
  border-color: #d5d5d5;
}

/* Soporte para modo oscuro en dispositivos */
@media (prefers-color-scheme: dark) {
  .circle-label {
    border-color: rgba(255, 255, 255, 0.15);
  }
}

.circle-label:action{
  transform: scale(1.02);
  transition: 0.1s;
  box-shadow: #000000 0px 0px 10px;
}

.circle-label img {
  width: 100%; /* Ajusta la imagen al tamaño del contenedor padre */
  height: auto; /* Mantiene la relación de aspecto */
  max-width: 150px; /* Tamaño máximo de la imagen */
  border-radius: 50%; /* Hace que la imagen sea circular */
  align-content: center;
  object-fit: cover; /* Asegura que la imagen se recorte bien si es necesario */
  /* Optimizar renderizado en mobile */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* Forzar renderizado inmediato */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.circle-label img:hover{
  transform: scale(1.02);
  transition: 0.1s;
  align-content: top;				 
}

.circle-input {
  display: none;
  /* Prevenir interacción directa con el input */
  pointer-events: none;
  /* Eliminar outline de foco */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Prevenir que el foco del input afecte al label */
.circle-input:focus + .circle-label {
  border-color: #d5d5d5;
  outline: none;
}

.circle-input:checked + .circle-label {
  border-color: #C99E41; 
}

.circle-text {
  color: #898989;
  font-family: Montserrat;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  max-width: 180px;
}

.containerCP{
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  max-width: 100%;
  margin-left: 1%;
  margin-right: 1%;
}

/* Prevenir outline de foco en todos los elementos hijos */
.containerCP *:focus,
.containerCP *:focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.containerp2 {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.row{
  display: flex;
  justify-content: space-between; /* Separa las columnas */
  align-items: center;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra el texto y los inputs horizontalmente */
}

.grid-item {
  text-align: center; /* Asegura que el contenido de cada ítem esté centrado */
}

.flex-wrapper{
  display: flex;
  justify-content: center;
  padding: 5% 3% 4% 3%;
  width: 100%;
  box-sizing: border-box;

}

.button-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 100%;
  padding: 2%;
}


h3{
  color: #898989;
  font-family: Montserrat;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  max-width: 180px;
}

.hidden-input {
  display: none;
}

.hidden-radio {
  display: none;
}

.button-label {
  display: block;
  text-align: center;
  /* CORRECCIÓN: Prevenir efectos táctiles en mobile */
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.custom-button {
  padding: 10px 10px;
  background-color: #ffffff;
  color: #898989;  
  font-family: Montserrat;
  font-size: 1.2em;
  border: 1px solid #898989;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  min-width: 100px;
  /* CORRECCIÓN: Prevenir efectos táctiles en mobile */
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* CORRECCIÓN: Estado checked debe tener mayor especificidad */
.hidden-input:checked + .button-label .custom-button {
  background-color: #b68933 !important;
  color: white !important;
  border: 1px solid #b68933;
}

.hidden-radio:checked + .custom-button {
  background-color: #b68933 !important;
  color: white !important;
  border: 1px solid #b68933;
}

/* CORRECCIÓN: Solo aplicar hover en dispositivos que lo soporten */
@media (hover: hover) and (pointer: fine) {
  .custom-button:hover {
    background-color: #b68933;
    color: white;
    transform: scale(1.05);
  }
}

/* CORRECCIÓN: Eliminar hover en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  .custom-button:hover {
    /* No aplicar estilos de hover en dispositivos táctiles */
    background-color: inherit;
    color: inherit;
    transform: none;
  }
}

/* CORRECCIÓN: Estado activo para feedback visual inmediato en mobile */
.custom-button:active {
  transform: scale(0.98);
}

.custom-button.active {
  background-color: #b68933 !important; 
  color: white !important; 
  border: 1px solid #b68933;
}



/* Mejoras*/

.result-content {
  align-content: center;
  background-color: #ffffff;
  display: flex;
  justify-content: center; /* Centra el contenido horizontalmente */
  align-items: center; /* Centra el contenido verticalmente */
  height: 80vh; /* Asegura que el contenedor ocupe toda la altura de la pantalla */

}

@media (max-width: 480px) {
  .result-content {
    height: auto;
    min-height: 90vh;
    padding: 40px 20px;
    
  }

  .recommendations {
    width: 100%;
    margin-top: 20px;
  }

  .recommendation-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .buttonIniciar {
    width: 64%;
    max-width: 400px;
    margin-top: 30px;
  }
  .btnDescubri {
    width: 50%;
    max-width: 400px;
    margin-top: 30px;
  }
}

.damage-level {
  color: #C9A350;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.improvements {
  color: #333;
  font-size: 18px;
  margin-bottom: 20px;
}

.recommendations {
  max-width:100%;
  align-content: center;					
}

.recommendations h3 {
  color: #001F5F;
  margin-bottom: 15px;
}

.recommendations p {
  color: #666;
  margin: 10px 0;
  padding: 10px;
  background-color: #fff;
  border-left: 4px solid #C9A350;
  border-radius: 4px;
}

.btnMagicM{
  color: #C9A350; 
  background: #FFF; 
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 500;
  border-radius: 50px;
  padding: 15px 30px;
  cursor: pointer;
}

.glow{
  animation: glow 1.5s infinite; 
  border: 2px solid #C9A350; 
}
@keyframes glow {
  0% {
    box-shadow: 0 0 5px #C9A350, 0 0 10px #C9A350;
  }
  50% {
    box-shadow: 0 0 20px #C9A350, 0 0 30px #C9A350;
  }
  100% {
    box-shadow: 0 0 5px #C9A350, 0 0 10px #C9A350;
  }
}

/* Estilos para la notificación */
.notification {
  position: fixed;
  top: 20px; /* Distancia desde la parte superior */
  left: 50%;
  transform: translate(-50%, -100%); /* Inicia fuera de la pantalla */
  background-color: rgba(0, 0, 0, 0.8); /* Fondo semitransparente */
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-family: Arial, sans-serif;
  text-align: center;
  opacity: 0; /* Inicia invisible */
  transition: opacity 0.5s, transform 0.5s ease; /* Animación */
  z-index: 1000; /* Asegura que quede por encima de otros elementos */
}

/* Clase para activar la notificación */
.notification.show {
  opacity: 1;
  transform: translate(-50%, 0); /* Desliza hacia abajo */
}


.recommendation-image {
  width: 100%;
  height: auto;
  margin-bottom: 1px;
  margin-top: 10px;
}

/* Header de las preguntas */
.head_1 {
  text-align: center;
  background-image: url('../images/fondo-head-nuevo.png');
  background-position: 0 0;
  background-size: cover;
  justify-content: center;
  align-items: center;
  display: flex;
}

.felx_head_1 {
  max-width: 30%;
}

.felx_head_2 {
  justify-content: center;
  max-width: 70%;
}

.image, .image-2 {
  max-width: 50%;
}

.w-layout-hflex_header {
  flex-direction: row;
  align-items: flex-start;
  display: flex;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.oculto {
  display: none;
}		


.content_sup {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden; 
}

.bases_container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .bases_container {
    max-width: 728px;
  }
}

@media screen and (max-width: 767px) {
  .bases_container {
    max-width: none;
  }
}

.bases_title {
  text-align: center;
}

.bases_text {
  margin-top: 10px;
  padding: 20px;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
}

.bold-text {
  font-family: Montserrat, sans-serif;
  font-size: 35px;
}

@media screen and (max-width: 479px) {
  .bases_title {
    font-size: 2vw;
    line-height: 23px;
  }
}
/* begin home */


.text-block_1{
  padding: clamp(24px, 80px) clamp(16px, 60px) clamp(16px, 60px);
  font-size: clamp(1.25rem, 3.5vw, 2.2rem); 
  line-height: 1.25;
}

.text-block_1_1{
  padding: clamp(24px, 80px) clamp(16px, 60px) clamp(16px, 60px);
  font-size: clamp(1.25rem, 3.5vw, 2.2rem); 
  line-height: 1.25;
}


.text-block_2{
  padding: clamp(20px, 8vw, 100px) clamp(16px, 6vw, 60px) clamp(16px, 3vw, 10px);
  font-size: clamp(3.1rem, 3.2vw, 1.9rem); 
  line-height: 1.35;
}


.buttonIniciar,
.btnDescubri{
  font-size: clamp(1rem, 2.4vw, 1.7rem);  
  padding: clamp(8px, 1.2vw, 15px) clamp(16px, 2vw, 30px);
  border-radius: 50px;
}


.section {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 32px);
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 100px;
    max-width: 1200px;
}

.flex-block {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-block-2 {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.text-block_2 {
    color: #C93926;
    text-align: left;
    word-break: normal;
    padding: 0 0 20px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 3.1rem);
    font-weight: 700;
    margin: 0;
}

.text-block_2_1 {
    color: #898989;
    text-align: left;
    word-break: normal;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.7rem);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.image-5 {
    display: block;
    width: 100%;
    height: auto;
    max-width: 736px;
}

/* Tablet - mantiene diseño de 2 columnas */
@media (max-width: 768px) {
    .section {
        flex-direction: row; /* Mantiene horizontal en tablet */
        gap: 20px;
    }
    
    .flex-block,
    .flex-block-2 {
        width: 50%;
    }
}

/* Mobile - imagen abajo del texto */
@media (max-width: 480px) {
    .section {
        flex-direction: column-reverse;
        align-items: center;
       
    }
    
    /* Texto arriba */
    .flex-block {
        width: 100%;
        order: 1;
    }
    
    /* Imagen abajo */
    .flex-block-2 {
        width: 100%;
        order: 2;
        padding: 0;
    }
    
    .image-5 {
        width: 100%;
        padding: 0;
    }
    
    .text-block_2 {
        color: #C93926;
        text-align: left;
        padding: 0 0 12px 0;
        font-family: 'Montserrat', sans-serif;
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1.3;
        margin: 0;
        padding: 10px 20px 24px;
    }
    
    .text-block_2_1 {
        color: #898989;
        text-align: left;
        padding: 0;
        font-family: 'Montserrat', sans-serif;
        font-size: 1.25rem;
        font-weight: 400;
        line-height: 1.5;
        margin: 0;
        padding: 10px 20px 24px;
    }
}


@media (max-width: 480px){
  
  .flex-block-2{ order: 1; }
  .flex-block{ order: 2; }

 
  .image-5{
    width: 100%;       
    padding: 0;
  }
  .image-4{ max-width: 85vw; }
  .text-block_2{ padding: 24px 20px; }
}



.content_sup {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  transition: background-image 0.5s ease, background-color 0.5s ease;
}

.result-content {
  align-content: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  background-color: transparent;
}

/* Reducir padding en mobile para aprovechar más espacio */
@media (max-width: 768px) {
  .result-content {
    padding: 20px 10px;
  }
}

@media (max-width: 480px) {
  .result-content {
    padding: 15px 5px;
  }
}

.recommendations {
  max-width: 550px; 
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  
  padding: 50px 40px;
}

.recommendation-image {
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.uv-repair-image {
    width: 100%;
    height: auto;
}

/* Desktop: imagen al 90% */
.uv-repair-desktop {
    display: block !important;
    width: 90%;
}

/* Mobile: ocultar imagen desktop */
.uv-repair-mobile {
    display: none !important;
}

/* Tablets y móviles grandes (≤992px): comenzar transición */
@media (max-width: 992px) {
    .uv-repair-desktop {
        display: none !important;
    }
    
    .uv-repair-mobile {
        display: block !important;
        width: 100%;
    }
}

/* En mobile (≤768px): reafirmar reglas */
@media (max-width: 768px) {
    .uv-repair-desktop {
        display: none !important;
    }
    
    .uv-repair-mobile {
        display: block !important;
        width: 100%;
    }
}

/* En mobile pequeño (≤480px): reafirmar reglas */
@media (max-width: 480px) {
    .uv-repair-desktop {
        display: none !important;
    }
    
    .uv-repair-mobile {
        display: block !important;
        width: 100%;
    }
}

.gradient-container {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(90deg, #FEE767 0%, #C02526 100%); 
    padding: 20px 20px;
    box-sizing: border-box;
}

/* Para que coincida con el tamaño de UV_Repair si es diferente */
.recommendations:has(.uv-repair-image) .gradient-container {
    max-width: 700px;
}

@media (max-width: 480px) {
  .recommendations {
    padding: 20px;
  }
  
  /* Reducir padding aún más para resultado UV */
  .recommendations-uv {
    padding: 10px 8px;
  }
}


/* === Fondo del resultado ===
background: url("images/fondo-resultado.jpg") center/cover no-repeat;
  
*/
#result {
  
  min-height: 90vh;         /* ocupa toda la pantalla */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
  color: #fff;
  position: relative;
}

/* Sombra de texto para buena legibilidad sobre fondos claros u oscuros */
#result h1,
#result h2,
#result p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Opcional: suaviza la transición cuando aparece */
#result {
  animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   ESTILOS PERSONALIZADOS POR PREGUNTA
   ============================================
   
   A partir de aquí puedes agregar estilos específicos para cada pregunta.
   
   IMPORTANTE: Los estilos arriba mantienen el comportamiento original.
   Solo agrega estilos ADICIONALES aquí para personalizar preguntas específicas.
   
   Ejemplos de uso:
   
   .pregunta-1 .h1p1 { color: red; }
   .pregunta-grosor .circle-label { border-color: blue; }
   
   Clases disponibles por pregunta:
   - Pregunta 1: .pregunta-1 o .pregunta-grosor
   - Pregunta 2: .pregunta-2 o .pregunta-tratamientos
   - Pregunta 3: .pregunta-3 o .pregunta-calor
   - Pregunta 4: .pregunta-4 o .pregunta-puntas
   - Pregunta 5: .pregunta-5 o .pregunta-sol
   - Pregunta 6: .pregunta-6 o .pregunta-debil
   - Pregunta 7: .pregunta-7 o .pregunta-mejorar
   
   ============================================ */

/* Pregunta 7 pers */
.pregunta-7 .button-container {
  max-width: 750px;   
  gap: 10px;
}

  @media screen and (max-width: 576px) {
    pregunta-7 .h1p1 {
    font-size: 1.4em;
    padding: 3% 20px 1% 20px;
  }
}
/* Pregunta 5 pers */

.pregunta-5 .button-container {
  flex-direction: column;
}
@media (max-width: 480px) {
    .pregunta-5 .button-container {
        flex-direction: column; /* Cambia de row (horizontal) a column (vertical) */
        align-items: center; /* Centra los botones */
        gap: 15px; /* Espacio entre botones */
    }
    
    /* Opcional: hacer que los botones ocupen más ancho */
    .pregunta-5 .custom-button {
        width: 80%; /* O el ancho que prefieras */
        max-width: 300px; /* Limitar ancho máximo */
    }
}

/* Pregunta 6 pers */
.pregunta-6 .h1p1 {
    max-width: 750px; 
    margin-left: auto;
    margin-right: auto;
}

/* Pregunta 1 pers */
@media (max-width: 480px) {
  .pregunta-1 .circle-container {
    display:grid;
  }
}

.recommendations-uv {
    max-width: 95%;
}

/* Ajuste específico para UV en mobile - ocupa más espacio */
@media (max-width: 768px) {
    .recommendations-uv {
        max-width: 95%;
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .recommendations-uv {
        max-width: 98%;
        padding: 10px 5px;
    }
}