@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* ---- FUENTES GLOBALES (TODO EL PLUGIN) ---- */
.vf-kua-calculator,
.vf-kua-modal-content,
.vf-kua-title,
.vf-kua-title *,
.vf-kua-element-title,
.vf-kua-element-block,
.vf-kua-element-content,
.vf-kua-element-content *,
.vf-kua-table2,
.vf-kua-table2 *,
.vf-kua-table,
.vf-kua-table *,
.vf-kua-btn,
.vf-kua-btn *,
.vf-kua-gender-btn,
.vf-kua-gender-btn *,
.vf-field label,
.vf-kua-gender-label,
select,
button,
input {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
}

/* ---- CONTENEDOR PRINCIPAL ---- */
.vf-kua-calculator {
  max-width: 620px;
  margin: 40px auto;
  padding: 26px 36px 20px 36px;
  background: #fff;
  border: 2.5px solid #2c2c2c;
  border-radius: 18px;
  color: #222;
  box-shadow: 0 2px 24px rgba(44, 44, 44, 0.07);
}

/* ---- TÍTULO PRINCIPAL ---- */
.vf-kua-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
  text-align: center;
  font-size: 1.68rem; /* REDUCIDO 20% */
  margin-bottom: 22px;
  color: #ceb829;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

/* ---- CAMPOS DEL FORMULARIO ---- */
.vf-field {
  margin-bottom: 18px;
}

.vf-field label,
.vf-kua-gender-label {
  color: #ceb829;
  font-size: 1.09em;
  font-weight: 600;
  margin-bottom: 9px;
  display: block;
}

.vf-field input[type="text"],
.vf-field input[type="email"] {
  width: 100%;
  font-size: 1.05em;
  padding: 10px 12px;
  border: 1.7px solid #bebebe;
  border-radius: 8px;
  background: #fafaf8;
  color: #212121;
  outline: none;
  transition: border 0.17s, background 0.17s;
  box-sizing: border-box;
}

.vf-field input[type="text"]:focus,
.vf-field input[type="email"]:focus {
  border-color: #ceb829;
  background: #fffbe9;
}

/* FECHA */
.vf-kua-date-selects {
  display: flex;
  gap: 18px;
  width: 100%;
}

.vf-kua-date-selects select {
  width: 100%;
  font-size: 1.11em;
  padding: 7px 8px 7px 10px;
  border: 1.7px solid #bebebe;
  border-radius: 8px;
  background: #fafaf8;
  color: #212121;
  appearance: none;
  outline: none;
  transition: border 0.17s;
  line-height: 1.28;
  box-sizing: border-box;
  display: block;
  height: 40px;
}

.vf-kua-date-selects select:focus {
  border-color: #ceb829;
  background: #fffbe9;
}

.vf-kua-date-selects option {
  color: #2c2c2c;
  background: #fff;
}

/* GÉNERO */
.vf-kua-gender-btns {
  display: flex;
  gap: 14px;
}

.vf-kua-gender-btn {
  flex: 1 1 0;
  background: #fafaf8;
  color: #ceb829;
  border: 2px solid #bebebe;
  border-radius: 8px;
  font-size: 1.13em;
  font-weight: 600;
  padding: 13px 0;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, border 0.17s;
  outline: none;
}

.vf-kua-gender-btn.active,
.vf-kua-gender-btn:focus {
  background: #ceb829;
  color: #fff;
  border: 2px solid #ceb829;
}

.vf-kua-gender-btn:not(.active):hover {
  background: #fffbe9;
  color: #ceb829;
  border: 2px solid #ceb829;
}

.vf-kua-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 18px;
  color: #444;
  font-size: 0.92em;
  line-height: 1.35;
}

.vf-kua-consent input {
  margin-top: 3px;
}

.vf-kua-status {
  margin-top: 10px;
  min-height: 20px;
  color: #555;
  font-size: 0.92em;
  text-align: center;
}

.vf-kua-status.is-error {
  color: #b3261e;
}

.vf-kua-success-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fffbe9;
  color: #4f470f;
  font-size: 0.95em;
  line-height: 1.4;
}

/* BOTÓN CALCULAR */
.vf-kua-btn {
  display: block;
  width: 100%;
  max-width: none;
  padding: 16px 0;
  background: #ceb829;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: background 0.18s, color 0.13s;
  letter-spacing: 0.5px;
  margin-top: 10px;
  box-sizing: border-box;
}

.vf-kua-btn:hover,
.vf-kua-btn:focus {
  background: #b3a021;
  color: #222;
}

/* ---- RESULTADO OCULTO/MOSTRAR ---- */
#vf-kua-result {
  display: none;
}

#vf-kua-result.vf-kua-show {
  display: block;
}

.vf-kua-result {
  margin-top: 24px;
  padding: 16px;
  background: #f4f6f8; /* << antes #faf5d1 */
  /* border-left: 5px solid #ceb829;  ELIMINADO */
  font-size: 1.19rem;
  border-radius: 10px;
  min-height: 36px;
}

/* INFO */
.vf-kua-info {
  margin-top: 19px;
  color: #2c2c2c !important;
  font-size: 1.21em !important;
  text-align: center;
  line-height: 1.55;
}

select,
button,
input {
  font-family: inherit;
}

/* ---- MODAL DE AYUDA ---- */
.vf-kua-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf-kua-modal-content {
  background: #fff;
  padding: 32px 28px 28px 28px;
  border-radius: 15px;
  max-width: 540px;
  width: 98vw;
  box-shadow: 0 4px 28px rgba(30, 30, 30, 0.14);
  position: relative;
  outline: none;
  animation: vfKuaFadeIn 0.28s;
}

@keyframes vfKuaFadeIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.vf-kua-modal-close {
  position: absolute;
  right: 14px;
  top: 11px;
  font-size: 1.18rem; /* REDUCIDO */
  color: #ceb829;
  cursor: pointer;
  font-weight: bold;
  background: transparent;
  border: none;
  outline: none;
  line-height: 1;
}

.vf-kua-modal-close:hover,
.vf-kua-modal-close:focus {
  color: #e14b4b;
}

.vf-kua-modal h3 {
  margin-top: 0;
  color: #ceb829;
  font-size: 1.02rem; /* REDUCIDO 20% */
  margin-bottom: 15px;
}

.vf-kua-modal-content ol {
  margin: 13px 0 10px 23px;
  font-size: 1.06rem;
}

.vf-kua-modal-content ul {
  margin-top: 2px;
  margin-bottom: 9px;
}

.vf-kua-modal-content li {
  margin-bottom: 3px;
}

.vf-kua-modal-content p small {
  font-size: 1em;
}

/* ---- TABLAS KUA (VIEJAS) ---- */
.vf-kua-tables-wrap {
  margin-top: 20px;
  margin-bottom: 18px;
  width: 100%;
}

.vf-kua-table-title {
  color: #ceb829;
  font-weight: 700;
  font-size: 0.90em; /* REDUCIDO 20% */
  margin-bottom: 7px;
  margin-top: 10px;
  text-align: left;
}

.vf-kua-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 1em;
  background: #fafaf8;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 7px rgba(44, 44, 44, 0.06);
}

.vf-kua-table th,
.vf-kua-table td {
  padding: 7px 7px 7px 7px;
  text-align: center;
  border-bottom: 1px solid #e7e7e7;
}

.vf-kua-table th {
  background: #eae7d2;
  color: #222;
  font-size: 0.77em; /* REDUCIDO */
  font-weight: 700;
}

.vf-kua-table td {
  background: #fff;
  color: #353535;
  font-size: 0.86em; /* REDUCIDO */
}

.vf-kua-table tr:last-child td {
  border-bottom: none;
}

/* ---- TABLA 2 COLS (NUEVA) ---- */
.vf-kua-tables2-wrap {
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.vf-kua-table2 {
  width: 100%;
  max-width: 580px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(44, 44, 44, 0.06);
  border: 2px solid #eae7d2;
  overflow: hidden;
}

.vf-kua-table2 th,
.vf-kua-table2 td {
  text-align: center !important;
  vertical-align: middle;
}

.vf-kua-table2 th {
  background: #f7f3e0;
  font-size: 0.88em; /* REDUCIDO */
  text-align: center;
  font-weight: 700;
  padding: 14px 2px 12px 2px;
}

.vf-kua-table2 .th-mejor {
  color: #ceb829;
}

.vf-kua-table2 .th-peor {
  color: #222;
}

.vf-kua-table2 td {
  padding: 13px 8px 10px 8px;
  vertical-align: middle;
  font-size: 0.80em; /* REDUCIDO */
  border-bottom: 1px solid #ece7d9;
  background: #fff;
  width: 50%;
}

.vf-kua-ori-label {
  display: block;
  text-align: center;
  line-height: 1.12;
  font-weight: 700;
  padding-bottom: 0;
  margin-bottom: 0;
  font-size: 0.78em; /* REDUCIDO */
  color: #999;
}

.vf-kua-ori-label span {
  display: block;
  line-height: 1.12;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-align: center;
  margin-bottom: 0;
  font-weight: 700;
}

.vf-kua-ori-label span:first-child {
  font-size: 0.80em; /* REDUCIDO */
  color: #444;
  font-weight: 600;
}

.vf-kua-ori-desc {
  font-size: 0.74em; /* REDUCIDO */
  color: #888;
  margin-top: -2px;
  font-weight: 400;
  line-height: 1.02;
  display: block;
}

.vf-kua-ori-extra {
  font-size: 0.76em; /* REDUCIDO */
  color: #b7b7b7;
  margin-top: -2px;
}

.vf-kua-ori-value {
  text-align: center;
  margin-top: 8px;
  font-size: 0.90em; /* REDUCIDO */
  color: #353535;
  font-weight: 700;
  letter-spacing: 1px;
}

.vf-kua-table2 tr:last-child td {
  border-bottom: none;
}

.vf-kua-elemento {
  text-align: center;
  padding-top: 13px;
  font-size: 0.89em; /* REDUCIDO */
  color: #ceb829;
  background: #faf5d1;
  border-top: 2px solid #f4ecd2;
}

/* ---- BLOQUE ELEMENTO PERSONAL ---- */
.vf-kua-element-block {
  margin: 36px 0 14px 0;
  text-align: center;
  width: 100%;
}

.vf-kua-colors-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vf-kua-color-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 1px 7px rgba(44, 44, 44, 0.13);
  border: 2px solid #eee;
}

.vf-kua-element-box {
  background: none !important;
  box-shadow: none;
  color: #222;
  font-size: 0.95em; /* REDUCIDO */
  font-weight: 700;
  text-align: center;
  padding: 0;
  margin: 0 auto 8px auto;
}

.vf-kua-element-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
  font-size: 0.87em; /* REDUCIDO */
  color: #222;
  font-weight: 700;
  display: inline-block;
  margin: 0;
  padding: 0;
  letter-spacing: 0.02em;
  text-align: center;
}

.vf-kua-element-content {
  font-size: 0.74em; /* REDUCIDO */
  margin-bottom: 24px;
  margin-left: 0;
  text-align: left;
  display: inline-block;
  max-width: 440px;
}

.vf-kua-element-content ul {
  margin: 0 0 0 17px;
  padding: 0;
}

.vf-kua-element-content li {
  margin-bottom: 4px;
  line-height: 1.48;
}

/* ---- CUADROS SEPARADOS PARA ORIENTACIONES Y ELEMENTO ---- */
.vf-kua-result-block {
  background: #f4f6f8; /* << antes #fffbe9 */
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(206, 184, 41, 0.08);
  margin-bottom: 28px;
  padding: 18px 14px 14px 14px;
  /* border-left: 5px solid #ceb829;  ELIMINADO */
}

.vf-kua-block-title {
  font-size: 0.94em; /* REDUCIDO 20% */
  color: #ceb829;
  margin-bottom: 13px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.03em;
  line-height: 1.26;
}

.vf-kua-elem-inner {
  padding: 0;
  margin: 0;
}

/* ---- MEDIA QUERIES ---- */
@media (max-width: 820px) {
  .vf-kua-block-title {
    font-size: 0.72em;
    text-align: center;
  }
}

@media (max-width: 780px) {
  .vf-kua-calculator {
    max-width: 99vw;
    padding: 6vw 2vw 6vw 2vw;
  }
  .vf-kua-modal-content {
    max-width: 99vw;
    padding: 18px 2vw 18px 2vw;
  }
  .vf-kua-date-selects {
    gap: 8px;
  }
  .vf-kua-date-selects select {
    font-size: 1em;
    padding: 7px 4px;
    height: 40px;
  }
  .vf-kua-btn {
    font-size: 1em;
  }
}

@media (max-width: 600px) {
  .vf-kua-result-block {
    padding: 7px 2vw 7px 2vw;
    margin-bottom: 19px;
  }
  .vf-kua-block-title {
    font-size: 0.72em;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.18;
  }
  .vf-kua-title {
    font-size: 1.36rem; /* REDUCIDO TAMBIÉN EN CELULAR */
  }
  .vf-kua-tables-wrap {
    font-size: 0.96em;
  }
  .vf-kua-ori-label {
    font-size: 0.80em;
  }
  .vf-kua-ori-desc {
    font-size: 0.74em;
    line-height: 1;
    margin-top: -2px;
  }
  .vf-kua-table th,
  .vf-kua-table td {
    padding: 7px 2px;
    font-size: 0.76em;
  }
  .vf-kua-element-content {
    max-width: 98vw;
  }
}

@media (max-width: 470px) {
  .vf-kua-table2 th,
  .vf-kua-table2 td {
    font-size: 0.73em;
  }
  .vf-kua-table2 td {
    padding: 9px 2px;
  }
  .vf-kua-elemento {
    font-size: 0.80em;
  }
}
