/* =========================================================
   GLS FORMS + QUIZ + QUIZ RESULTS
   Versión completa premium para gls-forms.css
   ========================================================= */

/* =========================================================
   FORM WRAP
   ========================================================= */

.gls-form-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

.gls-step,
.gls-fields,
.gls-success {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 0%, rgba(26, 86, 219, .10), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(217, 119, 6, .10), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
  border: 1px solid rgba(226, 232, 240, .92);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, .10),
    inset 0 1px 0 rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@keyframes glsFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glsSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   QUIZ INICIAL — LIMPIO, CLARO Y SIN TARJETA INTERNA
   ========================================================= */

/* El paso del quiz ya vive dentro de la card principal del HTML */
.gls-step {
  position: relative;
  overflow: visible;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Quitar decoraciones internas */
.gls-step::before,
.gls-step::after {
  display: none;
  content: none;
}

/* Barra de progreso sobria */
.gls-step-progress {
  width: 100%;
  height: 7px;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #E2E8F0;
}

.gls-step-bar,
.gls-step-bar-full {
  height: 100%;
  border-radius: 999px;
  background: #1A56DB;
  transition: width .35s ease;
}

/* Etiqueta de pregunta */
.gls-step-counter {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1A56DB;
  border: 1px solid #DBEAFE;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Pregunta */
.gls-step-q {
  max-width: 620px;
  margin: 0 0 22px;
  color: #0B1E3D;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 900;
}

/* Contenedor de opciones */
.gls-opciones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.gls-opciones--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gls-opciones--grid .gls-opcion {
  min-height: 56px;
  font-size: 13.5px;
  padding: 12px 14px 12px 44px;
}

/* Opción limpia */
.gls-opcion {
  position: relative;
  width: 100%;
  min-height: 64px;
  padding: 15px 18px 15px 54px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
  color: #0B1E3D;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease,
    color .2s ease;
}

/* Radio visual */
.gls-opcion::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  box-shadow: inset 0 0 0 5px #F8FAFC;
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

/* Elimina degradados sucios */
.gls-opcion::after {
  display: none;
  content: none;
}

/* Hover premium sobrio */
.gls-opcion:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 86, 219, .34);
  background: #FFFFFF;
  color: #0B1E3D;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .10);
}

.gls-opcion:hover::before {
  border-color: #1A56DB;
  box-shadow:
    inset 0 0 0 5px #FFFFFF,
    0 0 0 4px rgba(26, 86, 219, .10);
}

/* Seleccionada */
.gls-opcion.selected {
  background: #0B1E3D;
  color: #FFFFFF;
  border-color: #0B1E3D;
  box-shadow: 0 20px 52px rgba(11, 30, 61, .22);
}

.gls-opcion.selected::before {
  background: #D97706;
  border-color: #F59E0B;
  box-shadow:
    inset 0 0 0 5px #0B1E3D,
    0 0 0 4px rgba(217, 119, 6, .18);
}

/* Focus accesible */
.gls-opcion:focus {
  outline: none;
  border-color: #1A56DB;
  box-shadow:
    0 0 0 4px rgba(26, 86, 219, .14),
    0 16px 42px rgba(15, 23, 42, .10);
}

/* Responsive tablet */
@media (max-width: 768px) {
  .gls-step-progress {
    height: 7px;
    margin-bottom: 20px;
  }

  .gls-step-counter {
    font-size: 10.5px;
    margin-bottom: 12px;
  }

  .gls-step-q {
    font-size: clamp(23px, 6.6vw, 32px);
    line-height: 1.14;
    margin-bottom: 18px;
  }

  .gls-opciones {
    gap: 10px;
  }

  .gls-opciones--grid {
    grid-template-columns: 1fr;
  }

  .gls-opcion {
    min-height: 58px;
    padding: 14px 16px 14px 50px;
    border-radius: 15px;
    font-size: 14px;
  }

  .gls-opcion::before {
    left: 17px;
    width: 19px;
    height: 19px;
  }
}

/* Responsive móvil */
@media (max-width: 480px) {
  .gls-step-q {
    font-size: clamp(22px, 7vw, 30px);
  }

  .gls-opcion {
    min-height: 56px;
    padding: 13px 14px 13px 48px;
    font-size: 13.8px;
  }

  .gls-opcion::before {
    left: 16px;
    width: 18px;
    height: 18px;
  }
}
/* =========================================================
   FORMULARIO FINAL DEL QUIZ
   ========================================================= */

.gls-form-heading {
  margin: 0 0 22px;
  color: #0B1E3D;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.gls-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.gls-input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  background: #FFFFFF;
  color: #1E293B;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.gls-input:focus {
  outline: none;
  border-color: #1A56DB;
  box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
  background: #FFFFFF;
}

.gls-input-full {
  display: block;
  margin-bottom: 14px;
}

textarea.gls-input {
  resize: vertical;
  min-height: 96px;
}

select.gls-input {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.gls-btn-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 20px;
  border: 2px solid #D97706;
  border-radius: 14px;
  background: #D97706;
  color: #FFFFFF;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .16s ease;
}

.gls-btn-submit:hover {
  background: #B45309;
  border-color: #B45309;
  transform: translateY(-2px);
}

.gls-btn-submit:active {
  transform: scale(.99);
}

.gls-btn-submit:disabled {
  background: #94A3B8;
  border-color: #94A3B8;
  cursor: not-allowed;
  transform: none;
}

.gls-form-note {
  margin: 12px 0 0;
  color: #94A3B8;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.gls-error {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  font-size: 14px;
  font-weight: 750;
}

/* =========================================================
   SUCCESS
   ========================================================= */

.gls-success {
  text-align: center;
}

.gls-success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #059669;
  color: #FFFFFF;
  font-size: 28px;
  box-shadow: 0 16px 38px rgba(5, 150, 105, .22);
}

.gls-success h3 {
  margin: 0 0 8px;
  color: #0B1E3D;
  font-size: 26px;
  line-height: 1.16;
  font-weight: 900;
}

.gls-success p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

/* =========================================================
   QUIZ RESULTS — PREMIUM CARDS
   Shortcode: [gls_quiz_results]
   ========================================================= */

.gls-results-page {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 60vh;
  overflow: hidden;
  background: #FFFFFF;
}

.gls-results-page::before,
.gls-results-page::after {
  display: none;
  content: none;
}

/* Hero */

.gls-results-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 74px 24px 70px;
  text-align: center;
  background: #0B1E3D;
  isolation: isolate;
}

.gls-results-hero::before {
  content: "";
  position: absolute;
  inset: 30px max(24px, calc((100vw - 1180px) / 2));
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 18% 18%, rgba(26, 86, 219, .22), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(217, 119, 6, .18), transparent 32%);
  pointer-events: none;
  z-index: -1;
}

.gls-results-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #F59E0B;
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gls-results-title {
  max-width: 860px;
  margin: 0 auto 16px;
  color: #FFFFFF;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-align: center;
}

.gls-results-sub {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

/* Container */

.gls-results-page .gls-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Grid */

.gls-uni-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* Card */

.gls-uni-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow:
    0 22px 64px rgba(15, 23, 42, .12),
    inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.gls-uni-card::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(26,86,219,.95), rgba(217,119,6,.95));
  box-shadow:
    0 10px 24px rgba(26,86,219,.18),
    0 10px 24px rgba(217,119,6,.14);
  z-index: 5;
}

.gls-uni-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(26, 86, 219, .08), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(217, 119, 6, .10), transparent 28%);
  pointer-events: none;
  z-index: 0;
}

.gls-uni-card:hover {
  transform: translateY(-8px);
  border-color: rgba(26, 86, 219, .26);
  box-shadow:
    0 34px 96px rgba(15, 23, 42, .18),
    inset 0 1px 0 rgba(255,255,255,.98);
}

.gls-uni-card > * {
  position: relative;
  z-index: 2;
}

/* Header / flag */

.gls-uni-card-flag {
  position: relative;
  min-height: 116px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  line-height: 1;
  background:
    radial-gradient(circle at 20% 18%, rgba(26, 86, 219, .28), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(217, 119, 6, .22), transparent 36%),
    linear-gradient(135deg, rgba(11, 30, 61, .98), rgba(19, 41, 82, .96));
  text-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.gls-uni-card-flag::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 18px 44px rgba(0,0,0,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
}

.gls-uni-card-flag::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -80px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}

/* Body */

.gls-uni-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.gls-uni-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.gls-uni-tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1A56DB;
  border: 1px solid #DBEAFE;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.gls-uni-card-name {
  margin: 0 0 9px;
  color: #0B1E3D;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 21px;
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.gls-uni-card-location {
  margin: 0 0 16px;
  color: #64748B;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.gls-uni-card-desc {
  flex: 1;
  margin: 0 0 22px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

/* Footer */

.gls-uni-card-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
}

.gls-uni-price {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #BBF7D0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  white-space: normal;
  text-align: center;
}

/* Buttons only in results */

.gls-results-page .gls-btn,
.gls-results-page .gls-btn-blue,
.gls-results-page .gls-btn-sm {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #1A56DB;
  color: #FFFFFF;
  border: 2px solid #1A56DB;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    transform .22s ease;
}

.gls-results-page .gls-btn:hover,
.gls-results-page .gls-btn-blue:hover,
.gls-results-page .gls-btn-sm:hover {
  background: #D97706;
  border-color: #D97706;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Loading */

.gls-results-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 24px;
  color: #64748B;
}

.gls-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border: 4px solid #E2E8F0;
  border-top-color: #1A56DB;
  border-right-color: #D97706;
  border-radius: 50%;
  animation: glsSpin .75s linear infinite;
}

/* Empty */

.gls-results-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 28px;
  border-radius: 28px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 18px 54px rgba(15, 23, 42, .10);
  color: #475569;
}

.gls-results-empty p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .gls-uni-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gls-results-title {
    font-size: clamp(34px, 6vw, 52px);
  }
}

@media (max-width: 768px) {
  .gls-form-wrap {
    max-width: 100%;
  }

  .gls-step,
.gls-fields,
.gls-success {
  padding: 24px 18px;
  border-radius: 24px;
}

.gls-step-q {
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.gls-opciones {
  gap: 10px;
}

.gls-opcion {
  min-height: 60px;
  padding: 14px 16px 14px 52px;
  border-radius: 17px;
  font-size: 14.5px;
}

.gls-opcion::before {
  left: 18px;
  width: 20px;
  height: 20px;
}

  .gls-step::before,
  .gls-fields::before,
  .gls-success::before {
    inset: 10px;
    border-radius: 20px;
  }

  .gls-step::after,
  .gls-fields::after,
  .gls-success::after {
    width: 190px;
    height: 190px;
    right: -90px;
    top: -90px;
  }

  .gls-opcion {
    min-height: 74px;
    padding: 18px 18px 18px 56px;
    border-radius: 20px;
  }

  .gls-opcion::before {
    left: 20px;
  }

  .gls-field-row {
    grid-template-columns: 1fr;
  }

  .gls-results-hero {
    padding: 56px 20px 44px;
  }

  .gls-results-hero::before {
    inset: 14px;
    border-radius: 24px;
  }

  .gls-results-title {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.08;
  }

  .gls-results-sub {
    font-size: 16px;
  }

  .gls-results-page .gls-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gls-uni-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gls-uni-card {
    border-radius: 24px;
  }

  .gls-uni-card::before {
    left: 20px;
    right: 20px;
  }

  .gls-uni-card-flag {
    min-height: 96px;
    padding: 24px;
    font-size: 40px;
  }

  .gls-uni-card-flag::before {
    inset: 14px;
    border-radius: 18px;
  }

  .gls-uni-card-body {
    padding: 24px 20px;
  }
}

@media (max-width: 500px) {
  .gls-step,
  .gls-fields,
  .gls-success {
    padding: 24px 18px;
  }

  .gls-step-q {
  font-size: clamp(23px, 7.5vw, 31px);
  line-height: 1.14;
}

  .gls-opciones {
    gap: 12px;
  }

  .gls-opcion {
    font-size: 15px;
  }

  .gls-results-page .gls-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gls-results-hero {
    padding: 48px 18px 38px;
  }

  .gls-results-label {
    font-size: 11px;
  }

  .gls-results-title {
    font-size: clamp(30px, 10vw, 40px);
  }

  .gls-uni-card-name {
    font-size: 20px;
  }

  .gls-uni-card-footer {
    gap: 10px;
  }
}