/* =========================================================
   WELEDA
   ENCUESTA + REGISTRO
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --registro-green: #0b4535;
  --registro-white: #ffffff;
  --registro-black: #000000;

  --registro-black-50: rgba(0, 0, 0, 0.5);

  --registro-silver: linear-gradient(
    270deg,
    #777575 0%,
    #969696 32.21%,
    #d9d9d9 72.6%,
    #969696 100%
  );

  --survey-width: 571px;

  --frame-left: #d9d9d9;
  --frame-right: #777575;
  --frame-width: 217px;
  --frame-stroke: 4px;
}

/* =========================================================
   DOCUMENTO
   ========================================================= */

html {
  background: #000;
}

body {
  margin: 0;

  min-width: 320px;

  background: #000;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
}

/* =========================================================
   LANDING REGISTRO
   ========================================================= */

.registro-landing {
  position: relative;

  z-index: 1;

  width: 100%;

  height: auto;
  min-height: 100vh;
  min-height: 100svh;

  overflow: visible;

  background: none;

  isolation: isolate;
}

/* =========================================================
   FONDO FIJO
   ---------------------------------------------------------
   POR DEFECTO = PREGUNTAS
   ========================================================= */

.registro-landing::after {
  content: "";

  position: fixed;

  inset: 0;

  z-index: 0;

  width: 100%;
  height: 100vh;
  height: 100svh;

  background-image: url("../../img/landing/bg_img_2.png");

  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: cover;

  pointer-events: none;
}

/* =========================================================
   FONDO CUANDO APARECE EL FORMULARIO
   ---------------------------------------------------------
   El JS del backend hace:
   container-registro.style.display = "block"

   Por eso podemos detectar únicamente esa fase sin tocar JS.
   ========================================================= */

.registro-landing:has(#container-registro[style*="display: block"])::after {
  background-image: url("../../img/landing/bg_img.png");
}

/* =========================================================
   OVERLAY OSCURO
   ========================================================= */

.registro-landing::before {
  content: "";

  position: fixed;

  inset: 0;

  z-index: 1;

  width: 100%;
  height: 100vh;
  height: 100svh;

  background: linear-gradient(
    to bottom,
    rgba(20, 0, 0, 0.34) 0%,
    rgba(20, 0, 0, 0.27) 55%,
    rgba(20, 0, 0, 0.18) 100%
  );

  pointer-events: none;
}

/* =========================================================
   CONTENIDO POR ENCIMA DEL FONDO
   ========================================================= */

.registro-landing > * {
  position: relative;

  z-index: 2;
}

/* =========================================================
   MÁSCARA SUPERIOR
   ---------------------------------------------------------
   Sin imagen.
   Color sólido pedido:
   #47080c
   ========================================================= */

.registro-top-mask {
  position: fixed !important;

  top: 0;
  left: 0;

  z-index: 100 !important;

  width: 100%;
  height: 20px;

  background: #47080c;

  pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.registro-landing .landing__header {
  position: sticky;

  top: 20px;
  left: auto;

  transform: none;

  z-index: 110;

  display: flex;

  width: min(1440px, calc(100% - 72px));
  height: 80px;

  margin: 20px auto 0;

  padding: 0 20px;

  justify-content: center;
  align-items: center;

  background: #fff;
}

/* =========================================================
   LOGO
   ========================================================= */

.registro-landing .landing__logo {
  width: 240px;
  height: auto;

  max-height: 58px;

  object-fit: contain;
}

/* =========================================================
   CONTENEDORES BOOTSTRAP
   ========================================================= */

#container-encuesta.container,
#container-registro.container {
  width: 100%;

  max-width: none;

  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   =========================================================
   ENCUESTA
   =========================================================
   ========================================================= */

#container-encuesta {
  width: 100%;

  padding: clamp(45px, 6vh, 70px) 24px clamp(60px, 8vh, 90px) !important;
}

/* =========================================================
   DOS COLUMNAS
   ========================================================= */

.registro-encuesta-layout {
  width: min(1220px, 100%);

  min-height: calc(100svh - 195px);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(350px, 1fr)
    minmax(470px, var(--survey-width));

  align-items: center;

  gap: clamp(45px, 6vw, 90px);
}

/* =========================================================
   IMAGEN IZQUIERDA
   ========================================================= */

.registro-visual {
  min-width: 0;

  display: flex;

  justify-content: flex-end;
  align-items: center;
}

.registro-visual__image {
  display: block;

  width: min(100%, 570px);
  height: auto;

  max-height: calc(100svh - 195px);

  object-fit: contain;
}

/* =========================================================
   COLUMNA DERECHA
   ========================================================= */

.registro-panel {
  width: 100%;

  max-width: var(--survey-width);

  justify-self: start;
}

.registro-panel > .row {
  margin: 0;
}

.registro-panel > .row > .col-lg-8 {
  width: 100%;
  max-width: none;

  flex: 0 0 100%;

  padding: 0;
}

/* =========================================================
   QUITAMOS VISUALMENTE LA CARD BOOTSTRAP
   ========================================================= */

.encuesta-card {
  width: 100%;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  box-shadow: none !important;
}

.encuesta-card > .card-body {
  padding: 0 !important;
}

/* =========================================================
   TÍTULO ORIGINAL ENCUESTA
   ========================================================= */

.encuesta-title-original {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}

/* =========================================================
   PASOS
   ---------------------------------------------------------
   Estas clases las controla encuesta.js
   ========================================================= */

.paso {
  display: none;
}

.paso.activo {
  display: flex;

  width: 100%;

  flex-direction: column;
  align-items: flex-start;
}

/* =========================================================
   PREGUNTA X
   ========================================================= */

.survey-progress-wrapper {
  width: 100%;

  margin: 0 0 24px;
}

.survey-step-label {
  margin: 0 0 10px;

  color: #fff;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

/* =========================================================
   PROGRESO
   ========================================================= */

.survey-progress {
  position: relative;

  width: 100%;
  max-width: 571px;

  height: 5px;

  overflow: hidden;

  border-radius: 100px;

  background: var(--registro-silver);
}

.survey-progress__fill {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: var(--registro-green);

  transition: width 300ms ease;
}

/* =========================================================
   PREGUNTA
   ========================================================= */

#formEncuesta .paso > h3 {
  max-width: 100%;

  margin: 0 0 30px;

  color: #fff;

  text-align: left;

  text-shadow: 0 0 20px #000;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;

  letter-spacing: -0.48px;
}

/* =========================================================
   OPCIONES
   ========================================================= */

.opcion {
  position: relative;

  display: inline-flex;

  width: max-content;
  max-width: 100%;

  min-height: 44px;

  margin: 0 0 10px;
  padding: 10px 20px;

  justify-content: center;
  align-items: center;

  gap: 10px;

  border: 0;
  border-radius: 0;

  background: rgba(0, 0, 0, 0.5);

  color: #fff;

  text-shadow: 0 0 20px #000;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    outline-color 160ms ease;
}

/* =========================================================
   RADIO
   ---------------------------------------------------------
   Sigue existiendo y funcionando.
   Solo lo ocultamos visualmente.
   ========================================================= */

.opcion input[type="radio"] {
  position: absolute;

  width: 1px;
  height: 1px;

  margin: 0;

  opacity: 0;

  pointer-events: none;
}

.opcion span {
  display: block;
}

/* =========================================================
   HOVER
   ---------------------------------------------------------
   Blanco + letras negras
   ========================================================= */

.opcion:hover {
  background: #fff;

  color: #000;

  text-shadow: none;

  outline: 2px solid #000;
  outline-offset: -2px;
}

/* =========================================================
   SELECCIONADA / CLICK
   ---------------------------------------------------------
   Se queda blanca con letras negras
   ========================================================= */

.opcion:has(input[type="radio"]:checked) {
  background: #fff;

  color: #000;

  text-shadow: none;

  outline: 2px solid #000;
  outline-offset: -2px;
}

/* =========================================================
   FOCUS TECLADO
   ========================================================= */

.opcion:has(input[type="radio"]:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* =========================================================
   BOTONERA
   ========================================================= */

.botones {
  width: 100%;

  margin-top: 28px;

  display: flex;

  justify-content: flex-start;
  align-items: center;

  gap: 12px;
}

/* =========================================================
   SIGUIENTE / FINALIZAR
   ========================================================= */

.registro-landing .btnSiguiente,
.registro-landing #finalizarEncuesta {
  display: inline-flex;

  width: auto;

  height: 40px;

  padding: 0 24px;

  justify-content: center;
  align-items: center;

  gap: 8px;

  border: 1px solid var(--registro-green) !important;
  border-radius: 8px;

  background: var(--registro-green) !important;

  color: #fff !important;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  box-shadow: none !important;
}

.registro-landing .btnSiguiente:hover,
.registro-landing #finalizarEncuesta:hover {
  border-color: #08392d !important;

  background: #08392d !important;
}

/* =========================================================
   ANTERIOR
   ---------------------------------------------------------
   Conservamos toda su lógica en HTML/JS pero NO se muestra.
   ========================================================= */

.registro-landing .btnAnterior {
  display: none !important;
}

/* =========================================================
   =========================================================
   FORMULARIO FINAL
   =========================================================
   ========================================================= */

/*
 * Se mantiene display:none porque así funciona actualmente
 * el JS del backend.
 */

#container-registro {
  display: none;

  width: 100%;

  padding: 34px 24px clamp(70px, 9vh, 110px) !important;
}

/* =========================================================
   CENTRADO
   ========================================================= */

#container-registro > .row {
  width: 100%;

  margin: 0;

  justify-content: center !important;
}

.registro-form-column {
  width: 100%;

  max-width: 640px;

  flex: 0 0 auto;

  padding: 0;
}

/* =========================================================
   CARD GLASS
   ========================================================= */

.registro-form-card {
  position: relative;

  width: 100%;

  margin: 0 auto;

  border: 0 !important;
  border-radius: 0 !important;

  background: rgba(0, 0, 0, 0.5);

  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);

  box-shadow: none !important;
}

/* =========================================================
   MARCO IZQUIERDO [
   ========================================================= */

.registro-form-card::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  z-index: 2;

  width: var(--frame-width);

  box-sizing: border-box;

  border-top: var(--frame-stroke) solid var(--frame-left);

  border-bottom: var(--frame-stroke) solid var(--frame-left);

  border-left: var(--frame-stroke) solid var(--frame-left);

  pointer-events: none;
}

/* =========================================================
   MARCO DERECHO ]
   ========================================================= */

.registro-form-card::after {
  content: "";

  position: absolute;

  top: 0;
  right: 0;
  bottom: 0;

  z-index: 2;

  width: var(--frame-width);

  box-sizing: border-box;

  border-top: var(--frame-stroke) solid var(--frame-right);

  border-right: var(--frame-stroke) solid var(--frame-right);

  border-bottom: var(--frame-stroke) solid var(--frame-right);

  pointer-events: none;
}

/* =========================================================
   CONTENIDO DEL FORMULARIO
   ========================================================= */

.registro-form-card > .card-body {
  position: relative;

  z-index: 3;

  display: flex;

  width: 100%;

  padding: 50px 118px !important;

  flex-direction: column;
  align-items: center;

  gap: 30px;
}

/* =========================================================
   TÍTULO FORMULARIO
   ========================================================= */

.registro-form-title {
  width: 100%;

  margin: 0 !important;

  color: #fff;

  text-align: center !important;

  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

/* =========================================================
   FORM
   ========================================================= */

#registroUsuario {
  width: 100%;
}

/* =========================================================
   COLUMNAS BOOTSTRAP -> COLUMNA VERTICAL
   ========================================================= */

#registroUsuario > .row {
  display: block;

  margin: 0;
}

#registroUsuario > .row > [class*="col-"] {
  width: 100%;
  max-width: none;

  padding: 0;

  flex: 0 0 100%;
}

/* =========================================================
   SEPARACIONES
   ========================================================= */

#registroUsuario .mb-3 {
  margin-bottom: 20px !important;
}

/* =========================================================
   LABELS
   ========================================================= */

#registroUsuario .form-label {
  margin: 0 0 8px;

  color: #fff;

  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

/* =========================================================
   LABEL ACCESIBLE NO VISIBLE
   ========================================================= */

.registro-hidden-label {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

/* =========================================================
   INPUTS / SELECTS
   ========================================================= */

#registroUsuario .form-control,
#registroUsuario .form-select {
  display: block;

  width: 100%;

  height: 40px;
  min-height: 40px;

  padding: 8px 12px;

  border: 0;
  border-radius: 2px;

  background: #fff;

  color: #151515;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  box-shadow: none;
}

#registroUsuario .form-control::placeholder {
  color: #151515;

  opacity: 1;
}

#registroUsuario .form-control:focus,
#registroUsuario .form-select:focus {
  border: 0;

  background: #fff;

  outline: 2px solid var(--registro-green);
  outline-offset: 1px;

  box-shadow: none;
}

/* =========================================================
   FECHA
   ========================================================= */

#registroUsuario input[type="date"] {
  color: #151515;

  color-scheme: light;
}

/* =========================================================
   CHECKBOXES
   ========================================================= */

#registroUsuario .form-check {
  position: relative;

  display: flex;

  width: 100%;

  margin-top: 14px !important;
  padding-left: 0;

  align-items: flex-start;

  gap: 10px;
}

#registroUsuario .form-check-input {
  position: relative;

  flex: 0 0 auto;

  width: 16px;
  height: 16px;

  margin: 2px 0 0;

  border: 1px solid rgba(255, 255, 255, 0.9);

  background-color: rgba(255, 255, 255, 0.95);
}

#registroUsuario .form-check-input:checked {
  border-color: var(--registro-green);

  background-color: var(--registro-green);
}

#registroUsuario .form-check-label {
  color: #fff;

  text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

/* =========================================================
   BOTÓN FINAL
   ========================================================= */

.registro-submit {
  width: 100%;

  margin-top: 30px !important;

  display: flex !important;

  justify-content: center;
  align-items: center;
}

#registroUsuario .btn-primary {
  display: inline-flex;

  width: auto;

  height: 40px;

  padding: 0 24px;

  justify-content: center;
  align-items: center;

  gap: 8px;

  border: 1px solid var(--registro-green) !important;

  border-radius: 8px;

  background: var(--registro-green) !important;

  color: #fff !important;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  box-shadow: none !important;
}

#registroUsuario .btn-primary:hover {
  border-color: #08392d !important;

  background: #08392d !important;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;

  z-index: 120;

  display: flex;

  width: 100%;
  min-height: 80px;

  padding: 0 56px;

  justify-content: space-between;
  align-items: center;

  border-top: 1px solid #fff;

  background: #000;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
}

.footer__copyright {
  margin: 0;

  color: #e3e3e3;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.footer__links {
  display: flex;

  align-items: center;

  gap: clamp(36px, 5vw, 72px);
}

.footer__links a {
  color: #fff;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  white-space: nowrap;

  text-decoration: none;
}

.footer__links a:hover {
  opacity: 0.75;
}

/* =========================================================
   DESKTOP CON POCA ALTURA
   ========================================================= */

@media (min-width: 901px) and (max-height: 820px) {
  .registro-landing .landing__header {
    top: 15px;

    height: 70px;

    margin-top: 15px;
  }

  .registro-top-mask {
    height: 15px;
  }

  .registro-landing .landing__logo {
    width: 215px;

    max-height: 50px;
  }

  #container-encuesta {
    padding-top: 30px !important;
    padding-bottom: 40px !important;
  }

  .registro-encuesta-layout {
    min-height: calc(100svh - 150px);
  }

  .registro-visual__image {
    max-height: calc(100svh - 155px);
  }

  .survey-progress-wrapper {
    margin-bottom: 16px;
  }

  #formEncuesta .paso > h3 {
    margin-bottom: 20px;
  }

  .opcion {
    min-height: 38px;

    margin-bottom: 7px;
    padding: 7px 18px;
  }

  .botones {
    margin-top: 18px;
  }
}

/* =========================================================
   TABLET HORIZONTAL
   ========================================================= */

@media (max-width: 1180px) {
  .registro-encuesta-layout {
    width: min(100%, 980px);

    grid-template-columns:
      minmax(300px, 0.9fr)
      minmax(420px, 1.1fr);

    gap: 36px;
  }

  .registro-visual__image {
    width: min(100%, 480px);
  }

  .registro-form-card > .card-body {
    padding: 50px clamp(75px, 8vw, 118px) !important;
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .registro-top-mask {
    height: 16px;
  }

  .registro-landing .landing__header {
    top: 16px;

    width: calc(100% - 32px);
    height: 64px;

    margin-top: 16px;

    padding: 0 16px;
  }

  .registro-landing .landing__logo {
    width: min(210px, 65vw);

    max-height: 48px;
  }

  /* ---------- ENCUESTA ---------- */

  #container-encuesta {
    padding: 42px 20px 55px !important;
  }

  .registro-encuesta-layout {
    width: min(100%, 620px);

    min-height: 0;

    grid-template-columns: 1fr;

    gap: 28px;
  }

  .registro-visual {
    justify-content: center;
  }

  .registro-visual__image {
    width: min(420px, 78vw);

    max-height: 330px;
  }

  .registro-panel {
    width: 100%;

    max-width: 571px;

    justify-self: center;
  }

  /* ---------- REGISTRO ---------- */

  #container-registro {
    padding: 35px 20px 70px !important;
  }

  .registro-form-column {
    max-width: 600px;
  }

  .registro-form-card > .card-body {
    padding: 45px clamp(50px, 10vw, 90px) !important;
  }

  :root {
    --frame-width: 170px;
    --frame-stroke: 3px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
  /*
     * Preguntas siguen usando bg_img_2.png.
     *
     * Cuando aparece el formulario la regla :has()
     * de arriba cambia automáticamente a bg_img.png.
     */

  .registro-landing::after {
    background-position: center center;
    background-size: cover;
  }

  /* ---------- ENCUESTA ---------- */

  #container-encuesta {
    padding: 35px 16px 48px !important;
  }

  .registro-visual__image {
    width: min(320px, 80vw);

    max-height: 270px;
  }

  .survey-step-label {
    font-size: 17px;
  }

  .survey-progress-wrapper {
    margin-bottom: 20px;
  }

  #formEncuesta .paso > h3 {
    margin-bottom: 24px;

    font-size: 22px;

    letter-spacing: -0.3px;
  }

  .opcion {
    min-height: 42px;

    padding: 9px 16px;

    font-size: 18px;
  }

  .botones {
    margin-top: 22px;

    flex-wrap: wrap;
  }

  /* ---------- FORMULARIO ---------- */

  #container-registro {
    padding: 30px 16px 55px !important;
  }

  .registro-form-card > .card-body {
    padding: 40px 28px !important;

    gap: 25px;
  }

  .registro-form-title {
    font-size: 19px;
  }

  #registroUsuario .mb-3 {
    margin-bottom: 16px !important;
  }

  #registroUsuario .form-control,
  #registroUsuario .form-select {
    height: 42px;

    min-height: 42px;
  }

  /* ---------- MARCO ---------- */

  :root {
    --frame-width: 120px;
    --frame-stroke: 3px;
  }

  /* ---------- FOOTER ---------- */

  .footer {
    min-height: 112px;

    padding: 18px 20px;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 12px;

    text-align: center;
  }

  .footer__copyright,
  .footer__links a {
    font-size: 14px;
  }

  .footer__links {
    gap: 28px;
  }
}

/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {
  .registro-top-mask {
    height: 12px;
  }

  .registro-landing .landing__header {
    top: 12px;

    width: calc(100% - 24px);
    height: 58px;

    margin-top: 12px;
  }

  .registro-landing .landing__logo {
    width: 180px;
  }

  /* ---------- ENCUESTA ---------- */

  #container-encuesta {
    padding: 28px 12px 45px !important;
  }

  .registro-visual__image {
    width: min(270px, 78vw);

    max-height: 220px;
  }

  .survey-step-label {
    font-size: 16px;
  }

  #formEncuesta .paso > h3 {
    font-size: 20px;

    line-height: 120%;
  }

  .opcion {
    font-size: 17px;
  }

  .registro-landing .btnSiguiente,
  .registro-landing #finalizarEncuesta {
    height: 40px;

    padding: 0 20px;
  }

  /* ---------- FORMULARIO ---------- */

  #container-registro {
    padding: 24px 12px 45px !important;
  }

  .registro-form-card > .card-body {
    padding: 34px 20px !important;
  }

  .registro-form-title {
    font-size: 18px;
  }

  #registroUsuario .form-check-label {
    font-size: 12px;
  }

  /* ---------- MARCO ---------- */

  :root {
    --frame-width: 85px;
    --frame-stroke: 2px;
  }

  /* ---------- FOOTER ---------- */

  .footer__links {
    width: 100%;

    justify-content: center;

    gap: 20px;
  }
}

/* =========================================================
   AJUSTES FINALES - VALIDACIÓN + MOBILE FIGMA
   ========================================================= */

/* Mensajes de validación personalizados para campos required */
.registro-field-error {
  display: none;
  width: 100%;
  margin: 5px 0 0;
  color: #fff;
  text-align: left;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.registro-field-error.is-visible {
  display: block;
}

#registroUsuario .form-control.registro-field-invalid,
#registroUsuario .form-select.registro-field-invalid {
  outline: 1px solid rgba(255, 255, 255, 0.95);
  outline-offset: 1px;
}

#registroUsuario .form-check.registro-check-invalid {
  flex-wrap: wrap;
}

#registroUsuario .form-check .registro-field-error {
  flex: 0 0 100%;
  margin-left: 26px;
}

@media (max-width: 640px) {
  /* Fondo mobile para preguntas y formulario */
  .registro-landing::after,
  .registro-landing:has(#container-registro[style*="display: block"])::after {
    background-image: url("../../img/landing/bg_img_mobile.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }

  /* Encuesta */
  #container-encuesta {
    padding: 30px 16px 45px !important;
  }

  .registro-encuesta-layout {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .registro-visual {
    justify-content: center;
  }

  .registro-visual__image {
    width: min(270px, 68vw);
    max-height: 230px;
  }

  .registro-panel {
    width: 100%;
    max-width: 571px;
    justify-self: center;
  }

  .survey-step-label {
    margin-bottom: 10px;
    color: #fff;
    font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
  }

  .survey-progress-wrapper {
    width: 100%;
    margin-bottom: 28px;
  }

  .survey-progress {
    width: 100%;
    max-width: none;
  }

  #formEncuesta .paso > h3 {
    width: 100%;
    margin-bottom: 28px;
    color: #fff;
    text-align: left;
    text-shadow: 0 0 20px #000;
    font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.48px;
  }

  .opcion {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 48px;
    margin: 0 0 10px;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    text-shadow: 0 0 20px #000;
    font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
  }

  .botones {
    width: 100%;
    margin-top: 28px;
    display: flex;
    flex-wrap: nowrap;
  }

  .registro-landing .btnSiguiente,
  .registro-landing #finalizarEncuesta {
    display: flex;
    width: 100%;
    height: 40px;
    padding: 0 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
  }

  /* Formulario */
  #container-registro {
    padding: 30px 16px 55px !important;
  }

  .registro-form-card > .card-body {
    padding: 40px 28px !important;
    gap: 25px;
  }

  .registro-form-title {
    font-size: 19px;
  }

  #registroUsuario .mb-3 {
    margin-bottom: 16px !important;
  }

  #registroUsuario .form-control,
  #registroUsuario .form-select {
    height: 42px;
    min-height: 42px;
  }

  .registro-field-error {
    margin-top: 5px;
    font-size: 11px;
  }

  :root {
    --frame-width: 120px;
    --frame-stroke: 3px;
  }

  /* Footer igual al style.css mobile */
  .footer {
    min-height: 140px;
    padding: 22px 24px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    text-align: left;
  }

  .footer__copyright {
    width: 100%;
    margin: 0;
    color: #e3e3e3;
    text-align: left;
    font-size: 16px;
    line-height: 140%;
  }

  .footer__links {
    width: 100%;
    justify-content: space-between;
    gap: 24px;
  }

  .footer__links a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .registro-top-mask {
    height: 12px;
  }

  .registro-landing .landing__header {
    top: 12px;
    width: calc(100% - 24px);
    height: 58px;
    margin-top: 12px;
  }

  .registro-landing .landing__logo {
    width: 180px;
  }

  #container-encuesta {
    padding: 24px 12px 42px !important;
  }

  .registro-visual__image {
    width: min(240px, 64vw);
    max-height: 195px;
  }

  .survey-step-label {
    font-size: 20px;
  }

  #formEncuesta .paso > h3 {
    font-size: 24px;
    line-height: 120%;
    letter-spacing: -0.48px;
  }

  .opcion {
    width: 100%;
    font-size: 20px;
  }

  .registro-landing .btnSiguiente,
  .registro-landing #finalizarEncuesta {
    width: 100%;
    height: 40px;
    padding: 0 24px;
    font-size: 16px;
  }

  #container-registro {
    padding: 24px 12px 45px !important;
  }

  .registro-form-card > .card-body {
    padding: 34px 20px !important;
  }

  .registro-form-title {
    font-size: 18px;
  }

  #registroUsuario .form-check-label {
    font-size: 12px;
  }

  .registro-field-error {
    font-size: 11px;
  }

  :root {
    --frame-width: 85px;
    --frame-stroke: 2px;
  }

  .footer {
    min-height: 135px;
    padding: 20px 24px 18px;
    gap: 18px;
  }

  .footer__copyright {
    font-size: 16px;
    text-align: left;
  }

  .footer__links {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }

  .footer__links a {
    font-size: 16px;
  }
}

/* =========================================================
   MENSAJES INLINE SIN SALTO DE LAYOUT
   ========================================================= */

/* Encuesta: el mensaje vive dentro de .botones y se coloca
   justo debajo sin alterar la altura del bloque. */
.botones {
  position: relative;
}

.survey-inline-error {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 4;

  display: none;
  width: 100%;

  margin: 0;
  padding: 0;

  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  pointer-events: none;
}

.survey-inline-error.is-visible {
  display: block;
}

/* Formulario: cada contenedor required reserva siempre el mismo
   espacio para que el mensaje absolute nunca haga saltar el layout. */
#registroUsuario .mb-3 {
  position: relative;
}

#registroUsuario .mb-3:has([required]) {
  padding-bottom: 16px;
}

#registroUsuario .form-check {
  position: relative;
}

#registroUsuario .form-check:has([required]) {
  padding-bottom: 16px;
}

.registro-field-error {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 4;

  display: none;
  width: 100%;

  margin: 0;
  padding: 0;

  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  pointer-events: none;
}

.registro-field-error.is-visible {
  display: block;
}

#registroUsuario .form-check .registro-field-error {
  left: 26px;
  bottom: -1px;
  width: calc(100% - 26px);
  margin: 0;
}

#registroUsuario .form-control.registro-field-invalid,
#registroUsuario .form-select.registro-field-invalid {
  outline: 1px solid rgba(255, 255, 255, 0.92);
  outline-offset: 1px;
}

/* Mensajes generales del servicio, debajo del botón final y en absolute. */
.registro-submit {
  position: relative;
}

.registro-submit-error {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 4;

  display: none;
  width: 100%;

  margin: 0;
  padding: 0;

  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  pointer-events: none;
}

.registro-submit-error.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .survey-inline-error {
    color: rgba(255, 255, 255, 0.94);
    text-align: center;
    font-size: 11px;
  }

  .registro-field-error,
  .registro-submit-error {
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
  }
}

/* =========================================================
   FIX FOOTER MOBILE · 3 ENLACES LEGALES
   Bases Legales | Política de Privacidad
   Aviso Legal
   ========================================================= */

@media (max-width: 768px) {
  .footer {
    min-height: auto;
    padding: 22px 24px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    text-align: left;
  }

  .footer__copyright {
    width: 100%;
    margin: 0;
    color: #e3e3e3;
    text-align: left;
    font-size: 16px;
    line-height: 140%;
  }

  .footer__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    width: 100%;
    gap: 14px 20px;
    align-items: start;
    justify-content: stretch;
  }

  .footer__links a {
    min-width: 0;
    font-size: 16px;
    line-height: 140%;
    white-space: normal;
  }

  .footer__links a:nth-child(1) {
    text-align: left;
  }

  .footer__links a:nth-child(2) {
    text-align: right;
    white-space: nowrap;
  }

  .footer__links a:nth-child(3) {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer {
    min-height: auto;
    padding: 20px 24px 18px;
    gap: 18px;
  }

  .footer__links {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 14px 14px;
  }

  .footer__links a {
    font-size: 15px;
  }

  .footer__links a:nth-child(2) {
    white-space: nowrap;
  }
}

/* =========================================================
   POPUPS LEGALES DEL REGISTRO
   Mismo lenguaje visual que bases_de_participacion.
   FRONTEND ONLY.
   ========================================================= */
body.registro-legal-modal-open {
  overflow: hidden;
}

.registro-legal-popup-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.registro-legal-popup-link:hover {
  color: inherit;
  opacity: 0.78;
}

.registro-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background-image: url("../../img/landing/bg_img.png");
  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: cover;
}
.registro-legal-modal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 0, 0, 0.34) 0%,
    rgba(20, 0, 0, 0.27) 55%,
    rgba(20, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}
.registro-legal-modal.is-open {
  display: block;
}
.registro-legal-modal > * {
  position: relative;
  z-index: 2;
}

.registro-legal-modal__top-mask {
  position: sticky !important;
  top: 0;
  z-index: 5100 !important;
  width: 100%;
  height: 20px;
  background: #47080c;
  pointer-events: none;
}
.registro-legal-modal__header {
  position: sticky;
  top: 20px;
  z-index: 5090;
  display: flex;
  width: min(1440px, calc(100% - 72px));
  height: 80px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
  align-items: center;
  background: #fff;
}
.registro-legal-modal__logo {
  display: block;
  width: 240px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}
.registro-legal-modal__close {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: inline-flex;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  align-items: center;
  border: 0;
  background: transparent;
  color: #151515;
  font:
    300 34px/1 Arial,
    Helvetica,
    sans-serif;
  cursor: pointer;
}
.registro-legal-modal__close:hover {
  opacity: 0.65;
}
.registro-legal-modal__close:focus-visible {
  outline: 2px solid #151515;
  outline-offset: 2px;
}

.registro-legal-modal__content {
  width: 100%;
  padding: 36px 24px 90px;
}
.registro-legal-modal__card {
  position: relative;
  width: min(960px, 100%);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: none;
}
.registro-legal-modal__card::before,
.registro-legal-modal__card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 285px;
  box-sizing: border-box;
  pointer-events: none;
}
.registro-legal-modal__card::before {
  left: 0;
  border-top: 4px solid #d9d9d9;
  border-bottom: 4px solid #d9d9d9;
  border-left: 4px solid #d9d9d9;
}
.registro-legal-modal__card::after {
  right: 0;
  border-top: 4px solid #777575;
  border-right: 4px solid #777575;
  border-bottom: 4px solid #777575;
}
.registro-legal-modal__body {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 58px 82px 64px;
  color: #fff;
}
.registro-legal-modal__body .bases-title {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 20px;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: 115%;
  letter-spacing: -0.5px;
}
.registro-legal-modal__body p,
.registro-legal-modal__body li {
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.65);
  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}
.registro-legal-modal__body p {
  margin: 0 0 16px;
}
.registro-legal-modal__body > p:first-of-type,
.registro-legal-modal__campaign {
  margin-bottom: 42px;
  text-align: center;
  font-size: 18px;
  line-height: 140%;
}
.registro-legal-modal__body > p:has(> strong:only-child) {
  margin: 34px 0 12px;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.68);
  font-size: 20px;
  font-weight: 700;
  line-height: 125%;
}
.registro-legal-modal__body > p:first-of-type:has(> strong:only-child) {
  margin-top: 0;
}

.registro-legal-modal__section-title {
  margin: 34px 0 12px !important;
  color: #fff !important;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.68) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 125% !important;
}
.registro-legal-modal__body ul,
.registro-legal-modal__body ol {
  margin: 4px 0 22px;
  padding-left: 24px;
}
.registro-legal-modal__body li {
  margin-bottom: 9px;
}
.registro-legal-modal__body li:last-child {
  margin-bottom: 0;
}
.registro-legal-modal__body a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.registro-legal-modal__body a:hover {
  color: #fff;
  opacity: 0.78;
}
.registro-legal-modal__loading {
  margin: 36px 0 0 !important;
  text-align: center;
}

@media (max-width: 900px) {
  .registro-legal-modal__top-mask {
    height: 16px;
  }
  .registro-legal-modal__header {
    top: 16px;
    width: calc(100% - 32px);
    height: 64px;
    padding: 0 16px;
  }
  .registro-legal-modal__logo {
    width: min(210px, 65vw);
    max-height: 48px;
  }
  .registro-legal-modal__content {
    padding: 34px 20px 70px;
  }
  .registro-legal-modal__card::before,
  .registro-legal-modal__card::after {
    width: 220px;
    border-width: 3px;
  }
  .registro-legal-modal__body {
    padding: 50px 62px 58px;
  }
  .registro-legal-modal__body .bases-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .registro-legal-modal {
    background-image: url("../../img/landing/bg_img_mobile.png");
    background-position: center top;
  }
  .registro-legal-modal__content {
    padding: 30px 16px 55px;
  }
  .registro-legal-modal__card::before,
  .registro-legal-modal__card::after {
    width: 120px;
    border-width: 3px;
  }
  .registro-legal-modal__body {
    padding: 40px 28px 44px;
  }
  .registro-legal-modal__body .bases-title {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 115%;
  }
  .registro-legal-modal__body p,
  .registro-legal-modal__body li {
    font-size: 16px;
    line-height: 150%;
  }
  .registro-legal-modal__body > p:first-of-type,
  .registro-legal-modal__campaign {
    margin-bottom: 36px;
    font-size: 17px;
  }
  .registro-legal-modal__section-title {
    margin-top: 28px !important;
    font-size: 19px !important;
  }
}

@media (max-width: 480px) {
  .registro-legal-modal__top-mask {
    height: 12px;
  }
  .registro-legal-modal__header {
    top: 12px;
    width: calc(100% - 24px);
    height: 58px;
  }
  .registro-legal-modal__logo {
    width: 180px;
  }
  .registro-legal-modal__close {
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 30px;
  }
  .registro-legal-modal__content {
    padding: 24px 12px 45px;
  }
  .registro-legal-modal__card::before,
  .registro-legal-modal__card::after {
    width: 85px;
    border-width: 2px;
  }
  .registro-legal-modal__body {
    padding: 34px 20px 38px;
  }
  .registro-legal-modal__body .bases-title {
    font-size: 26px;
  }
  .registro-legal-modal__body p,
  .registro-legal-modal__body li {
    font-size: 15px;
    line-height: 150%;
  }
  .registro-legal-modal__body > p:first-of-type,
  .registro-legal-modal__campaign {
    margin-bottom: 32px;
    font-size: 16px;
  }
  .registro-legal-modal__section-title {
    margin-top: 26px !important;
    font-size: 18px !important;
  }
}

.registro-legal-popup-link-privacidad:hover {
  color: inherit;
  opacity: 0.78;
}
