html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding: 0;
}
header {
    background: #fff;
    padding: 1px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}
.logo {
    height: 40px;
}
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin: 0px auto 40px auto;
    max-width: 900px;
    height: 100%;
}
.image-section {
    position: relative;
    width: 350px;
    min-height: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
    line-height: 1;
    padding: 18px 36px;
    position:relative;
}

#image-section { width: calc(100% - 100px); }
#main-image {
  width: 100%;
  border-radius: 12px;
  margin: 30px 0;
}

#main-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
    z-index: 2;
    height: 100%;
    visibility: visible;
}

.loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/*
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
*/

#soulmate-form {display: none;}
.form-section {
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 320px;
}
.form-section label {
    font-weight: 600;
    margin-bottom: 4px;
}
.form-section input,
.form-section select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
.form-section button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.form-section button:hover {
    background: #217dbb;
}

.personality-options-woman,
.personality-options-man { display:none; }
.loading  { display:none; }


@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .image-section, .form-section {
        width: 100%;
        min-width: unset;
    }
}

/* Questionnaire container */
.questionnaire {
  max-width: 420px;
  width: 84%;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 25px 15px;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin-top: 15px;
}
.question-step {
  /* display: none; */
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s;
}
.question-step:not(.active-step) {
  display: none;
}
.question-step.active-step {
  display: flex;
}
.question-step label {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: normal;
  color: #222;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 24px;
  align-items: anchor-center;
  
}

.options label
{
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid #eee;
  transition: border 0.2s, background 0.2s;
}

.options.personality-options-man { gap: 0px; margin-bottom: 15px; }
.options.personality-options-woman {  gap: 0px; margin-bottom: 15px; }

.options.personality-options-woman label,
.options.personality-options-man label { padding: 8px 16px;}

.question-step.active-step h2 { text-align: center; margin: 0; font-size: 18px; }

.question-step.active-step h3 {
  text-align: center;
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 1.1;
}

.gender-options {
  flex-direction: column;
  gap: 18px;
  align-items: anchor-center;
}
.gender-label {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid #eee;
  transition: border 0.2s, background 0.2s;
}
.gender-label input[type="radio"] {
  margin-right: 10px;
}
.gender-label .fa-venus {
  color: #e75480;
  font-size: 1.3em;
}
.gender-label .fa-mars {
  color: #3b82f6;
  font-size: 1.3em;
}
.gender-label input[type="radio"]:checked + i,
.gender-label input[type="radio"]:checked ~ i {
  filter: drop-shadow(0 0 2px #3b82f6);
}
.gender-label input[type="radio"]:checked ~ span {
  font-weight: bold;
}
.gender-label:has(input[type="radio"]:checked) {
  border: 2px solid #3b82f6;
  background: #f5e9ff;
}


.decade-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px 18px;
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#questionnaire .decade-options label {
  width: 80%;
  text-align: center;
  font-size: 110%;
}

.options label:has(input[type="radio"]:checked) {
  border: 2px solid #eab308;
  background: #f5e9ff;
}

.zodiac-options label:has(input[type="radio"]:checked) {
  border: 2px solid #eab308;
  background: #f5e9ff;
}

.next-btn, .finish-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.2s;
  min-width: 150px;
}
.next-btn:hover, .finish-btn:hover {
  background: #2563eb;
}
.back-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.2s;
  min-width: 150px;
}
.back-btn:hover {
  background: #2563eb;
}

/* Zodiac icons */
.zodiac-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px 18px;
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.zodiac-options label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border 0.2s, background 0.2s;
}
.zodiac-options input[type="radio"]:checked + .zodiac-icon,
.zodiac-options input[type="radio"]:checked ~ .zodiac-icon {
  color: #eab308;
  font-weight: bold;
}
.zodiac-options input[type="radio"]:checked ~ span {
  font-weight: bold;
}

.zodiac-icon {
  font-size: 1.3em;
}

.zodiac-icon img { width: 45px; }


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.congrats-message {
  display: none;
  text-align: center;
  font-size: 1.3em;
  padding: 12px 0 25px 0;
}

.button-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  width: 100%;
  
}

.btn-hidden {
  display: none;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 9px auto;
}

.questionary_mode .header-flex { display:none; }
footer.questionary_mode { display:none; }

.header-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3b3b3b;
  margin-left: 10px;
  letter-spacing: 0.01em;
}

.progress-bar-container {
  width: 100%;
  height: 3px;
  background: #ddd;
  position: absolute;
  bottom: 0;
  left:0;
  right:0;
  overflow: hidden;
  display: none;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: #8b5cf6;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s cubic-bezier(.4,2,.6,1);
}

.intro-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto 32px auto;
  padding: 32px 0 24px 0;
  max-width: 480px;
  width: 100%;
}
.intro-title {
  color: #111;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.2;
}
.intro-tagline {
  color: #2563eb;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
}

.img-wrapper {
position: relative;
margin-bottom: 22px;

}

.img-wrapper span {
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  position: absolute;
  bottom:  22px;
  left:0;
  right:0;
  transform: translateX(-3px);
  text-align: center;
 
  }

.intro-image {
  width: 96%;
  max-width: 450px;
  border-radius: 8px;
}
.intro-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 11px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 18px;
  margin-top: 8px;
  transition: background 0.2s;
  max-width: 96%;
}
.intro-btn:hover {
  background: #2563eb;
}

#questionnaire {
  display: none;
  padding: 20px 25px;
}

#image-section {
  display: none;
  text-align: center;
  vertical-align: middle;
}

#questionnaire input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

#questionnaire label { border: 2px solid #f5e9ff; width: 90%; justify-content: center; }

#questionnaire label:hover {
  background-color: #dfd;
}

#questionnaire input[type="radio"]:focus + label {
  border: 2px dashed #444;
}

#questionnaire input[type="radio"]:checked + label {
  background-color: #bfb;
  border-color: #4c4;
}

.element-img, .planet-img {
  width: 120px;
  height: 120px;
  /*background: #f5f5fa;*/
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 24px auto;
  font-size: 1.2rem;
  /*color: #888;*/
  /*box-shadow: 0 2px 8px rgba(60,60,120,0.06);*/
}

h2 .user-element, h2 .user-planet, h2 .soulmate-zodiac { color: #a259e6; text-align: center; text-transform: uppercase; letter-spacing: 2px; }


#element-txt, #planet-txt {
  font-size: 17px;
  letter-spacing: 0.5px;
  text-align: justify;
  padding: 0px 25px;
  margin-bottom: 25px;
  font-weight: normal;
}

.element-img img, .planet-img img {
  width: 120px;
  height: 120px;
} 

.unlock-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px 0;
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.checkmark {
  color: #3b82f6;
  font-weight: bold;
  margin-right: 8px;
}
.unlock-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 38px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 18px;
  margin-top: 8px;
  transition: background 0.2s;
}
.unlock-btn:hover {
  background: #2563eb;
}
.unlock-subtitle {
  color: #2563eb;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}
.search-anim-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  font-size: 1.3rem;
  color: #3b82f6;
  gap: 20px;
}

.search-progress-item {
  width: 100%;
  max-width: 400px;
  opacity: 1;
}

.search-progress-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
  color: #3b82f6;
}

.search-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.search-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
  transition: width 0.1s ease;
}

#result-intro, #result-data { display: none; }

#result-data #intro {
    margin: 0 0 20px 0;
    text-align: justify;
    padding: 0 12px;
    font-size: 16px;
}

#result-intro h2 .result-soulmate-sign { 
  color: #a259e6;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px; 
}


#result-intro h2 { margin-bottom: 25px; font-size: 22px; }


#result-data { margin-top: 25px; }

#result-intro h3, #result-data h3 { 
  font-size: 22px;
  font-weight:bold;
  color: #a259e6;
  text-align: center;
  text-transform: capitalize;
  margin: 20px 0 15px 0;
}

#como-es h3 { margin-top: 50px; }

#result-data ul {
  list-style-type: none;
  text-align: center;
  font-size: 16px;
  width: 320px;
  padding-inline-start: 0;
  margin: 0 auto;
}


#result-data ul li { 
  color: #a259e6;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 10px 15px;
  margin: 0 0 25px 0;
  background: #F2E6FF;
  background: linear-gradient(90deg, rgba(242, 230, 255, 1) 27%, rgba(255, 255, 255, 1) 100%);
  position: relative;

 }

#result-data ul li strong { color: #111; text-transform: none; }

#result-data ul li .soulmate-zodiac,
#result-data ul li .soulmate-element,
#result-data ul li .soulmate-planet,
#result-data ul li .user-zodiac,
#result-data ul li .user-element,
#result-data ul li .user-planet {
  background: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 1px;
}


#result-data .soulmate-zodiac-icon,
#result-data .user-zodiac-icon,
#result-data .soulmate-element-icon,
#result-data .user-element-icon,
#result-data .soulmate-planet-icon,
#result-data .user-planet-icon
{
  display: block;
  width: 55px;
  height: 55px;
  position: absolute;
  top: -8px;
  right: -16px;
  border: 2px dotted #ecddfc;
  border-radius: 50%;
  text-align: center;
}

#result-data .soulmate-zodiac-icon img,
#result-data .user-zodiac-icon img,
#result-data .soulmate-element-icon img,
#result-data .soulmate-planet-icon img,
#result-data .user-element-icon img,
#result-data .user-planet-icon img
 {
  width: 100%;
  vertical-align: middle;
  margin: 0 auto;
}

#compatibilidad-cosmica h3 { margin: 60px auto 0 auto; }
#compatibilidad-cosmica h4 {
  text-transform: capitalize;
  background: #fff;
  border-radius: 6px;
  font-weight: 300;
  letter-spacing: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 1%, rgba(242, 230, 255, 1) 50%, rgba(255, 255, 255, 1) 100%);
  width: fit-content;
  margin: 15px auto 0 auto;
  text-align: center; 
  position: relative;
  padding: 6px 50px; 

}

#compatibilidad-cosmica .user-element-icon { right: auto; left: -15px; }
#compatibilidad-cosmica .soulmate-element-icon { right: -15px; }

#dinamica h3 { margin: 60px auto 0 auto; }
#dinamica h4 { margin-top: 15px; }

#como-entender {
  border: 3px dotted #dab8ff;
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 50px;
  background: #f7efff;
}

#como-entender p { font-weight: 300; letter-spacing: 0.3px; font-size: 16px; }

/* Footer styles */
footer {
  background: #fff;
  border-top: 1.5px solid #e9e9f3;
  box-shadow: 0 -2px 8px rgba(60,60,120,0.04);
  padding: 12px 0 12px 0;
  text-align: center;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin-top: 30px;
  flex-shrink: 0;
}

.footer-content {
  color: #888;
  font-size: 0.70rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.footer-content .footer-nav a { color: #666; }
.footer-content .footer-nav a:visited { color: rgb(99, 73, 124); }

/* Question popup styles */
.question-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.question-popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 75%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.question-popup-content h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 18px;
}

.question-popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.question-popup-btn {
  padding: 12px 30px;
  border: 2px solid #f5e9ff;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s;
}


.question-popup-btn.yes{ background: #dfd; }
.question-popup-btn.no{ background: #ffdddd; }

.question-popup-btn:hover {
  background: #dfd;
}


/* ANIMATIONS */
.animWoman {
  z-index: 99;
  width: 80px;
  height: 30px;
  fill: none;
  stroke: #bd1ec3;
  stroke-miterlimit: 20;
  stroke-width: 22px;
  position: relative;
  top: -70px;
}

.animMan {
  z-index: 99;
  width: 50px;
  height: 20px;
  fill: none;
  stroke: #bd1ec3;
  stroke-miterlimit: 20;
  stroke-width: 25px;
  position: relative;
  top: -76px;
  left: -20px;
}


.animWoman .path {
  stroke-dasharray: 100;
  stroke-dashoffset: 50;
  animation: dash 12s linear forwards;
  animation-iteration-count: infinite;
}

.animMan .path {
  stroke-dasharray: 100;
  stroke-dashoffset: 50;
  animation: dash 12s linear forwards;
  animation-iteration-count: infinite;
}

@keyframes dash {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 2500; }
  100% { stroke-dashoffset: 0; }

}



@media (min-width: 768px) {
  .question-step {
    max-width: 600px;
  }
  
  .unlock-btn {
    font-size: 1.4rem;
    padding: 16px 48px;
  }

  .unlock-subtitle {
    font-size: 1.3rem;
  }

  .search-anim-container {
    min-height: 220px;
    font-size: 1.5rem;
  }

  .search-anim-text {
    font-size: 1.4rem;
  }
}

@media (min-width: 1024px) {

  .questionary_mode .header-flex { display:block; }
  footer.questionary_mode { display:block; }

  .questionnaire {
    max-width: 800px;
    width: 90%;
    padding: 6px 25px;
    margin-top: 40px;
  }

  .question-step { max-width: 800px; }

  .zodiac-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 18px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .zodiac-icon img { width: 60px; }
  .zodiac-options label { padding: 6px 10px; }

  .img-wrapper span {
    font-size: 20px;
    bottom:  45px;
    
    }
  
  .intro-image {
    width: 96%;
    max-width: 800px;
    border-radius: 25px;
  }

  #main-image { margin: 60px 0; }
  #image-section{ width: calc(100% - 120px); max-width: 350px; padding: 22px 60px; }

  .intro-step {
    max-width: 800px;
  }

  .intro-btn {
    padding: 14px 30px;
    font-size: 1.2rem;
    max-width: 100%;
  }

  footer {
    padding: 12px 0 12px 0;
  }

  .footer-content { font-size: 0.8rem; }
}

/* Content card styles for static pages */
.content-card,
.policy-card,
.terms-card,
.faq-card,
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

main {
  flex: 1 0 auto;
}




