 :root {
    --naranja: #F58220;
    --naranja-oscuro: #D96D12;
    --naranja-claro: #F9A354;
    --azul: #003366;
    --azul-claro: #4a90c4;
    --crema: #faf7f2;
    --blanco: #ffffff;
    --gris-suave: #f0eee9;
    --gris-texto: #555;
    --sombra: 0 20px 60px rgba(0,51,102,0.15);
    --radio: 18px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--gris-suave);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    align-items: flex-start;
    padding: 10px;
  }

  /* Fondo animado */
  .bg-shapes {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    overflow: hidden;
  }
  .bg-shapes::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,98,26,0.18) 0%, transparent 70%);
    top: -200px; right: -150px;
    animation: floatBig 12s ease-in-out infinite;
  }
  .bg-shapes::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,196,0.2) 0%, transparent 70%);
    bottom: -150px; left: -100px;
    animation: floatBig 15s ease-in-out infinite reverse;
  }
  @keyframes floatBig {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.05); }
  }

  /* Grid de puntos */
  .bg-dots {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
  }

  /* Wrapper principal */
  .wrapper {
    position: relative; z-index: 1;
    display: flex;
    width: 100%;
    max-width: 980px;
    min-height: 600px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,0,0,0.4);
    margin: 20px;
  }

  /* Panel izquierdo */
  .panel-left {
    flex: 0 0 340px;
    background: linear-gradient(160deg, var(--naranja) 0%, var(--naranja-oscuro) 100%);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  .panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

  .logos-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    position: relative;
  }
  .logos-header img {
    height: 70px;
    width: auto;
    opacity: 0.92;
  }
  .logos-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.25);
  }

  .panel-left h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--blanco);
    line-height: 1.3;
    margin-bottom: 12px;
    position: relative;
  }
  .panel-left .subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    font-weight: 300;
    position: relative;
  }

  /* Decoración naranja */
  .accent-bar {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--naranja), var(--naranja-claro));
    border-radius: 4px;
    margin: 18px 0;
    position: relative;
  }

  /* Mascota */
  .mascota-container {
    margin-top: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  .mascota-svg {
    width: 140px;
    animation: mascotaIdle 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    cursor: pointer;
    transition: transform 0.2s;
  }
  .mascota-svg:hover {
    transform: scale(1.05) rotate(-2deg);
  }
  @keyframes mascotaIdle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }

  .mascota-bubble {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: var(--naranja);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    max-width: 160px;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: bubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.8s;
    opacity: 0;
  }
  @keyframes bubblePop {
    from { opacity: 0; transform: scale(0.5) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
  .mascota-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 12px;
    border: 4px solid transparent;
    border-top-color: white;
    border-left-color: white;
  }

  /* Logos acreditación abajo */
  .logos-bottom {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
    position: relative;
  }
  .logos-bottom img {
    height: 32px;
    width: auto;
    opacity: 0.55;
    transition: opacity 0.2s;
  }
  .logos-bottom img:hover { opacity: 0.9; }

  /* Panel derecho - LOGIN */
  .panel-right {
    flex: 1;
    background: var(--crema);
    padding: 48px 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }

  .login-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232,98,26,0.1);
    color: var(--naranja);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
    width: fit-content;
  }
  .login-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--naranja);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
  }

  .login-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--naranja);
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .login-desc {
    font-size: 14px;
    color: var(--gris-texto);
    margin-bottom: 36px;
    font-weight: 300;
  }

  .form-group {
    margin-bottom: 20px;
  }
  .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--naranja);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .form-group .input-wrap {
    position: relative;
  }
  .form-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--naranja-claro);
    font-size: 16px;
    pointer-events: none;
  }
  .form-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #e0ddd7;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--naranja);
    background: white;
    transition: all 0.2s;
    outline: none;
  }
  .form-group input:focus {
    border-color: var(--naranja-claro);
    box-shadow: 0 0 0 4px rgba(74,144,196,0.12);
    background: white;
  }
  .form-group input::placeholder { color: #bbb; font-weight: 300; }

  .btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--naranja-oscuro) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
  }
  .btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--naranja-claro) 100%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .btn-login:hover::before { opacity: 1; }
  .btn-login span { position: relative; z-index: 1; }
  .btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,51,102,0.3); }
  .btn-login:active { transform: translateY(0); }

  .login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
  }
  .login-footer a { color: var(--naranja-claro); text-decoration: none; }

  /* === FORMULARIO VIEW === */
  #view-form {
    display: none;
    width: 100%;
    max-width: 900px;
    background: var(--crema);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,0,0,0.4);
    margin: 20px;
    position: relative; z-index: 1;
  }

  /* Header del formulario */
  .form-header {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--naranja-oscuro) 100%);
    padding: 24px 36px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .form-header-logos {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .form-header-logos img {
    height: 36px;
    opacity: 0.9;
  }
  .form-header-divider {
    width: 1px; height: 28px;
    background: rgba(255,255,255,0.2);
  }
  .form-header-info {
    flex: 1;
  }
  .form-header-info h2 {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 18px;
    margin-bottom: 2px;
  }
  .form-header-info p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 300;
  }
  .form-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 13px;
  }
  .user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
  }

  .user-avatar img {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
  }

  /* Barra de progreso */
  .progress-bar-section {
    background: white;
    padding: 20px 36px;
    border-bottom: 1px solid #ede9e2;
  }
  .progress-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 14px;
  }
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer;
  }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0ddd7;
    z-index: 0;
    transition: background 0.4s;
  }
  .step.done:not(:last-child)::after { background: var(--naranja-claro); }
  .step.active:not(:last-child)::after { background: var(--naranja-claro); }

  .step-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #e0ddd7;
    background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #bbb;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
  }
  .step.done .step-circle {
    background: var(--naranja-claro);
    border-color: var(--naranja-claro);
    color: white;
  }
  .step.active .step-circle {
    background: var(--naranja);
    border-color: var(--naranja);
    color: white;
    box-shadow: 0 0 0 4px rgba(0,51,102,0.15);
    animation: stepPulse 2s infinite;
  }
  @keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0,51,102,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(0,51,102,0.08); }
  }
  .step-label {
    font-size: 10px;
    color: #bbb;
    margin-top: 6px;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    max-width: 70px;
    line-height: 1.3;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .step.done .step-label, .step.active .step-label { color: var(--naranja); }

  /* Barra de porcentaje */
  .progress-pct-bar {
    height: 6px;
    background: #e8e5df;
    border-radius: 6px;
    overflow: hidden;
  }
  .progress-pct-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--naranja) 0%, var(--naranja-claro) 60%, var(--azul-claro) 100%);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 14%;
  }
  .progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #aaa;
  }
  .progress-meta strong { color: var(--naranja); }

  /* Contenido sección */
  .section-content {
    padding: 32px 36px 28px;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,51,102,0.07);
    color: var(--naranja);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--naranja);
    margin-bottom: 4px;
  }
  .section-subtitle {
    font-size: 13px;
    color: var(--gris-texto);
    font-weight: 300;
    margin-bottom: 28px;
  }

  /* Preguntas demo */
  .questions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
  }
  /* Última sección con 3 columnas */
  .questions-grid-3col {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .questions-grid-3col .q-group.full {
    grid-column: 1 / -1;
  }
  .q-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .q-group.full { grid-column: 1 / -1; }
  .q-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--naranja);
    letter-spacing: 0.3px;
  }
  .q-select, .q-input {
    padding: 11px 14px;
    border: 2px solid #e0ddd7;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--naranja);
    background: white;
    transition: all 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    box-sizing: border-box;
  }
  .q-select:focus, .q-input:focus {
    border-color: var(--naranja-claro);
    box-shadow: 0 0 0 3px rgba(74,144,196,0.12);
  }

  /* Nav botones */
  .form-nav {
    padding: 20px 36px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-top: 1px solid #ede9e2;
  }
  .btn-nav {
    padding: 11px 24px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-width: 140px;
    white-space: nowrap;
  }
  .btn-back {
    background: transparent;
    border: 2px solid #e0ddd7;
    color: var(--gris-texto);
    min-width: 140px;
  }
  .btn-back:hover { border-color: var(--naranja-claro); color: var(--naranja); }
  .btn-next {
    background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
    color: white;
    padding: 11px 32px;
    position: relative; overflow: hidden;
    min-width: 160px;
  }
  .btn-next::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--naranja), var(--naranja-claro));
    opacity: 0; transition: opacity 0.3s;
  }
  .btn-next:hover::before { opacity: 1; }
  .btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,51,102,0.25); }
  .btn-next span { position: relative; z-index: 1; }

  /* Mascota flotante en formulario */
  .mascota-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    cursor: pointer;
    display: none;
  }
  .mascota-float.visible { display: block; }
  .mascota-float svg {
    width: 80px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
    animation: mascotaIdle 3s ease-in-out infinite;
    transition: transform 0.2s;
  }
  .mascota-float svg:hover { transform: scale(1.1) rotate(-3deg) !important; }
  .mascota-float-bubble {
    position: absolute;
    bottom: 194px;
    right: 0;
    background: var(--naranja);
    color: white;
    font-size: 12px;
    font-weight: 400;
    padding: 10px 14px;
    border-radius: 12px 12px 4px 12px;
    max-width: 180px;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
  }
  .mascota-float-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* Animaciones de entrada */
  .wrapper { animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  #view-form { animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .section-enter {
    animation: sectionEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes sectionEnter {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
  }


  .otro-wrapper {
    display: none;
    overflow: hidden;
    animation: slideDown 0.25s ease both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Campo de texto "otro" — visualmente conectado al select padre */
.otro-input {
    padding: 10px 14px;
    border: 2px dashed var(--naranja-claro);
    border-radius: 0 0 10px 10px;
    border-top: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--naranja);
    background: rgba(245, 130, 32, 0.04);
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otro-input:focus {
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.12);
    background: white;
}

.otro-input::placeholder {
    color: #c8b8a2;
    font-style: italic;
}

/* Cuando hay un otro-wrapper activo, redondear solo abajo el select padre */
.select-otro:has(+ .otro-wrapper[style*="block"]),
.select-otro.con-otro-activo {
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}

/* Grupos ocultos (condicionales) — transición suave al mostrarse */
.q-group {
    transition: opacity 0.2s ease;
}

.q-group[style*="display: none"],
.q-group[style*="display:none"] {
    opacity: 0;
    pointer-events: none;
}

/* Indicador visual sutil en campos condicionales visibles */
.q-group.condicional-activo {
    position: relative;
    padding-left: 10px;
}

.q-group.condicional-activo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(to bottom, var(--naranja-claro), transparent);
    border-radius: 4px;
}

/* Error de tipo de pregunta */
.q-error {
    font-size: 12px;
    color: #e53935;
    padding: 8px 12px;
    border: 1px dashed #e53935;
    border-radius: 8px;
    background: rgba(229, 57, 53, 0.05);
}

/* Mejora general: select con flecha personalizada naranja */
.q-select {
    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='%23F58220' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
    /* Tamaño fijo sin importar el texto de las opciones */
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estado de foco unificado para select e input */
.q-select:focus,
.q-input:focus {
    border-color: var(--naranja-claro);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
    background: white;
}

/* Placeholder más discreto */
.q-input::placeholder {
    color: #c8b8a2;
}

/* Scrollbar delgada en el contenedor de preguntas */
.section-content::-webkit-scrollbar {
    width: 4px;
}
.section-content::-webkit-scrollbar-track {
    background: transparent;
}
.section-content::-webkit-scrollbar-thumb {
    background: var(--naranja-claro);
    border-radius: 4px;
    opacity: 0.5;
}

/* =========================
   MULTI SELECT MÁS BONITO
   ========================= */

.multi-select {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.multi-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid #e7dfd4;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gris-texto);
}

.multi-option:hover {
  border-color: var(--naranja-claro);
  background: rgba(245, 130, 32, 0.05);
  transform: translateY(-1px);
}

.multi-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--naranja);
  flex-shrink: 0;
  cursor: pointer;
}

.multi-option span {
  font-size: 13px;
  line-height: 1.35;
  color: var(--azul);
}

/* opción marcada */
.multi-option:has(input:checked) {
  border-color: var(--naranja);
  background: rgba(245, 130, 32, 0.10);
  box-shadow: 0 6px 18px rgba(245, 130, 32, 0.10);
}

/* la caja del otro ocupa todo el ancho */
.multi-select .otro-wrapper {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.multi-select .otro-input {
  border-radius: 12px;
  border: 2px dashed var(--naranja-claro);
  background: rgba(245, 130, 32, 0.05);
  padding: 12px 14px;
}

/* responsive */
@media (max-width: 768px) {
  .multi-select {
    grid-template-columns: 1fr;
  }
}

/* Bloque informativo  */

.q-block-title {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245,130,32,0.10), rgba(245,130,32,0.04));
  border: 1px solid rgba(245,130,32,0.18);
  margin-top: 6px;
  margin-bottom: 2px;
}

.q-block-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--naranja);
  margin-bottom: 4px;
}

.q-block-subtitle {
  font-size: 12px;
  line-height: 1.45;
  color: var(--gris-texto);
}

/*  Habeas data */


.intro-block {
  background: linear-gradient(135deg, rgba(245,130,32,0.08), rgba(245,130,32,0.03));
  border: 1px solid rgba(245,130,32,0.18);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.intro-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gris-texto);
  text-align: justify;
}

.intro-text strong {
  color: var(--naranja);
}

.intro-text em {
  color: var(--naranja);
  font-style: normal;
  font-weight: 500;
}

/* Checkbox habeas data */
.habeas-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--gris-texto);
  cursor: pointer;
}

.habeas-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--naranja);
  cursor: pointer;
}

.habeas-check a {
  color: var(--naranja);
  text-decoration: none;
  font-weight: 500;
}

.habeas-check a:hover {
  text-decoration: underline;
}

/* Estilos de multiselector no aplica */

.multi-option-no-aplica {
  border-style: dashed;
}

.multi-option-no-aplica:has(input:checked) {
  background: rgba(0, 51, 102, 0.08);
  border-color: var(--azul-claro);
  box-shadow: 0 6px 18px rgba(0, 51, 102, 0.08);
}

.multi-option input:disabled + span {
  opacity: 0.55;
}

.multi-option:has(input:disabled) {
  background: #f7f7f7;
  cursor: not-allowed;
}

/* Etiqueta de error  */

.q-help-error{

  color:#e53935;
  font-size: 80%;
}

/*  Boton de correción de documento */

.btn-link-doc {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--naranja);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 6px;
}

.btn-link-doc:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.btn-link-doc:active {
  transform: scale(0.98);
}


@media (max-width: 768px) {

  .wrapper {
    flex-direction: column;
    min-height: auto;
    max-width: 100%;
    border-radius: 18px;
  }

  .panel-left {
    flex: none;
    width: 100%;
    padding: 24px;
    text-align: center;
  }

  .panel-right {
    width: 100%;
    padding: 24px;
  }

  .logos-header {
    justify-content: center;
  }

  .logos-header img {
    height: 50px;
  }

  .panel-left h1 {
    font-size: 22px;
  }

  /* Ocultar cosas pesadas en móvil */
  .mascota-container,
  .logos-bottom {
    display: none;
  }

  /* FORMULARIO */

  #view-form {
    max-width: 100%;
    margin: 0;
    border-radius: 18px;
  }

  .form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .form-header-user {
    width: 100%;
  }

  .section-content {
    padding: 20px;
    max-height: none;
  }

  /* GRID → UNA COLUMNA */
  .questions-grid,
  .questions-grid-3col {
    grid-template-columns: 1fr;
  }

  .q-group.full {
    grid-column: auto;
  }

  /* BOTONES */
  .form-nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .btn-nav {
    width: 100%;
  }

  /* PROGRESS SCROLL */
  .progress-bar-section {
    overflow-x: auto;
  }

  .progress-steps {
    min-width: 600px;
  }


  progress-bar-section {
    padding: 16px 20px;
    overflow: visible;
  }

  .progress-steps {
    display: none;
  }

  .progress-pct-bar {
    height: 8px;
  }

  .progress-meta {
    font-size: 12px;
    margin-top: 10px;
  }

  .progress-meta span:first-child {
    display: none;
  }

  .progress-meta strong {
    font-size: 13px;
  }
}


@media (max-width: 480px) {

  .panel-left,
  .panel-right {
    padding: 18px;
  }

  .login-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .q-input,
  .q-select {
    font-size: 14px;
  }
}